[Objects](https://oods-foundry.com/objects) / Closure

# Closure

The third part of the Grant story, what a product reports became of the work after a grant ended. Only a report should move it, a rule your product keeps.

alpha 4 traits · 5 contexts · 28 fields [Closure.object.yaml](#file) [How objects work](https://oods-foundry.com/guides/objects-and-traits)

Generated from @oods/foundry 0.18.0

This object is marked alpha.

## Screens

Every screen below was generated from this object by OODS Foundry 0.18.0, in React and Vue, and shows the calls that made it and its content hash. Each runs as its generated app runs, in this site's brand, Aquex, in the theme you choose, with the sample records this object's own file carries; the lists on its detail screens show related records from the shipped objects' samples. A value no record gives is left out where this object's views mark the place to leave out, and elsewhere shows as a neutral one, such as an empty value or "Not recorded"; OODS Foundry invents none.

[Closure detail screen generated by OODS Foundry in React](https://oods-foundry.com/objects/closure/screens/detail-react)

React app · sample records Maturity: alpha `sha256:9d8991ce7d3a…` [Open full size: Closure detail screen generated by OODS Foundry in React](https://oods-foundry.com/objects/closure/screens/detail-react)

Vue app · sample records Maturity: alpha `sha256:a6178acec848…` [Open full size: Closure detail screen generated by OODS Foundry in Vue](https://oods-foundry.com/objects/closure/screens/detail-vue)

React app · sample records Maturity: alpha `sha256:3c6a77a3a22b…` [Open full size: Closure list screen generated by OODS Foundry in React](https://oods-foundry.com/objects/closure/screens/list-react)

Vue app · sample records Maturity: alpha `sha256:251e2f5181b6…` [Open full size: Closure list screen generated by OODS Foundry in Vue](https://oods-foundry.com/objects/closure/screens/list-vue)

This object doesn't compose in form. Its definition leaves form out.

React app · sample records Maturity: alpha `sha256:82561fc73c5f…` [Open full size: Closure timeline screen generated by OODS Foundry in React](https://oods-foundry.com/objects/closure/screens/timeline-react)

Vue app · sample records Maturity: alpha `sha256:e4dfb5496ec3…` [Open full size: Closure timeline screen generated by OODS Foundry in Vue](https://oods-foundry.com/objects/closure/screens/timeline-vue)

React app · sample records Maturity: alpha `sha256:71aa30d08af3…` [Open full size: Closure card screen generated by OODS Foundry in React](https://oods-foundry.com/objects/closure/screens/card-react)

Vue app · sample records Maturity: alpha `sha256:f8962b642f9f…` [Open full size: Closure card screen generated by OODS Foundry in Vue](https://oods-foundry.com/objects/closure/screens/card-vue)

React app · sample records Maturity: alpha `sha256:2150da402e4c…` [Open full size: Closure inline screen generated by OODS Foundry in React](https://oods-foundry.com/objects/closure/screens/inline-react)

Vue app · sample records Maturity: alpha `sha256:2e494116511d…` [Open full size: Closure inline screen generated by OODS Foundry in Vue](https://oods-foundry.com/objects/closure/screens/inline-vue)

This object doesn't compose in workflow. A workflow needs list, detail, form and timeline, and this object's definition leaves out form.

What `design_compose` reported for every screen here:

- `OODS-V121` Object 'Closure' has maturity 'alpha' — composed output may change.

The calls that made the Closure detail apps, in React and Vue

3 calls, as the pipeline sent them

```
design_compose {
  "object": "Closure",
  "context": "detail",
  "preferences": {
    "brand": "Aquex",
    "theme": "light"
  }
}

code_generate {
  "schemaRef": "compose-c941f634",
  "framework": "react",
  "profile": "build",
  "options": {
    "output": "application",
    "brand": "Aquex",
    "theme": "light",
    "payloadMode": "file"
  }
}

code_generate {
  "schemaRef": "compose-c941f634",
  "framework": "vue",
  "profile": "build",
  "options": {
    "output": "application",
    "brand": "Aquex",
    "theme": "light",
    "payloadMode": "file"
  }
}
```

The React app's content hash: `sha256:9d8991ce7d3aabdfa864561a3bf9decc97e6ef9fe052437effa3ebaca06c5651`. Its `src/` folder: App.tsx, GeneratedUI.tsx, app.css, main.tsx, oods-brand-aquex.css

The Vue app's content hash: `sha256:a6178acec84851a11c112c9c99b86b2a6a7fffca95578d2fa4dda7cc328bfb0f`. Its `src/` folder: App.vue, GeneratedUI.vue, app.css, main.ts, oods-brand-aquex.css

The calls that made the Closure list apps, in React and Vue

3 calls, as the pipeline sent them

```
design_compose {
  "object": "Closure",
  "context": "list",
  "preferences": {
    "brand": "Aquex",
    "theme": "light"
  }
}

code_generate {
  "schemaRef": "compose-83c74429",
  "framework": "react",
  "profile": "build",
  "options": {
    "output": "application",
    "brand": "Aquex",
    "theme": "light",
    "payloadMode": "file"
  }
}

code_generate {
  "schemaRef": "compose-83c74429",
  "framework": "vue",
  "profile": "build",
  "options": {
    "output": "application",
    "brand": "Aquex",
    "theme": "light",
    "payloadMode": "file"
  }
}
```

The React app's content hash: `sha256:3c6a77a3a22b63bf480eafb9b3f5046f49d8f908eb829b8b7d2e10d8ebfee1dd`. Its `src/` folder: App.tsx, GeneratedUI.tsx, app.css, main.tsx, oods-brand-aquex.css

The Vue app's content hash: `sha256:251e2f5181b6ea5dbc485b769af8ab709259fdefbe85b1c6c5c2b1876ce367ba`. Its `src/` folder: App.vue, GeneratedUI.vue, app.css, main.ts, oods-brand-aquex.css

The calls that made the Closure timeline apps, in React and Vue

3 calls, as the pipeline sent them

```
design_compose {
  "object": "Closure",
  "context": "timeline",
  "preferences": {
    "brand": "Aquex",
    "theme": "light"
  }
}

code_generate {
  "schemaRef": "compose-86e73b12",
  "framework": "react",
  "profile": "build",
  "options": {
    "output": "application",
    "brand": "Aquex",
    "theme": "light",
    "payloadMode": "file"
  }
}

code_generate {
  "schemaRef": "compose-86e73b12",
  "framework": "vue",
  "profile": "build",
  "options": {
    "output": "application",
    "brand": "Aquex",
    "theme": "light",
    "payloadMode": "file"
  }
}
```

The React app's content hash: `sha256:82561fc73c5ff195d9d76ad57e0c1d08796482fa8212a8f53344bd07411994dd`. Its `src/` folder: App.tsx, GeneratedUI.tsx, app.css, main.tsx, oods-brand-aquex.css

The Vue app's content hash: `sha256:e4dfb5496ec38f365b861b6d2cac74b7013b7c95ba43d620718d950c5b75f5a4`. Its `src/` folder: App.vue, GeneratedUI.vue, app.css, main.ts, oods-brand-aquex.css

The calls that made the Closure card apps, in React and Vue

3 calls, as the pipeline sent them

```
design_compose {
  "object": "Closure",
  "context": "card",
  "preferences": {
    "brand": "Aquex",
    "theme": "light"
  }
}

code_generate {
  "schemaRef": "compose-d9793c47",
  "framework": "react",
  "profile": "build",
  "options": {
    "output": "application",
    "brand": "Aquex",
    "theme": "light",
    "payloadMode": "file"
  }
}

code_generate {
  "schemaRef": "compose-d9793c47",
  "framework": "vue",
  "profile": "build",
  "options": {
    "output": "application",
    "brand": "Aquex",
    "theme": "light",
    "payloadMode": "file"
  }
}
```

The React app's content hash: `sha256:71aa30d08af35e43b8833804b686f4a3bac2a4a992bdfa56e4374260da21e276`. Its `src/` folder: App.tsx, GeneratedUI.tsx, app.css, main.tsx, oods-brand-aquex.css

The Vue app's content hash: `sha256:f8962b642f9fa07f648d6433388b9a660fafaed9335a8b564732f9dbedfb6a5d`. Its `src/` folder: App.vue, GeneratedUI.vue, app.css, main.ts, oods-brand-aquex.css

For this screen it also reported:

- `OODS-V119` No view_extensions found for context "inline" in object "Closure". Available contexts: list, card, detail

The calls that made the Closure inline apps, in React and Vue

3 calls, as the pipeline sent them

```
design_compose {
  "object": "Closure",
  "context": "inline",
  "preferences": {
    "brand": "Aquex",
    "theme": "light"
  }
}

code_generate {
  "schemaRef": "compose-c21d44fe",
  "framework": "react",
  "profile": "build",
  "options": {
    "output": "application",
    "brand": "Aquex",
    "theme": "light",
    "payloadMode": "file"
  }
}

code_generate {
  "schemaRef": "compose-c21d44fe",
  "framework": "vue",
  "profile": "build",
  "options": {
    "output": "application",
    "brand": "Aquex",
    "theme": "light",
    "payloadMode": "file"
  }
}
```

The React app's content hash: `sha256:2150da402e4caa4a0bd82b875bfdd265ac65e95555fdd53103b0bf025a3ab68d`. Its `src/` folder: App.tsx, GeneratedUI.tsx, app.css, main.tsx, oods-brand-aquex.css

The Vue app's content hash: `sha256:2e494116511d78a257b633f3079abddb9b50f4a140b7c1f2ffee12d617b1a38f`. Its `src/` folder: App.vue, GeneratedUI.vue, app.css, main.ts, oods-brand-aquex.css

## Fields

| Field | Type | Description |
| - | - | - |
| `closes_id` | string | What ended, by the id your product knows it by: for a closure, the grant. |
| `closes_name` | string | What ended, as shown ("Northwind customer replies").MoreKept on the record. |
| `ended_how` | string | How it ended: the ended record's state as people read it ("Revoked", "Replaced", "Expired"). |
| `ended_at` | datetime | The instant it ended, as the ended record keeps it. |
| `for_id` | string | Who it was for, by the id your product knows them by: the person or organization the ended record was for. |
| `for_name` | string | Who it was for, as shown ("Northwind Traders").MoreKept on the record. |
| `scope` | string | What this record covers, in words: the systems and the work its reports speak for ("What the support desk controls"). |
| `summary` | string | Where it stands now, in one line your product writes with each report. |
| `deadline_at` | datetime | When your product stops waiting for answers.MoreA line saying it passed with no answer reports only that nothing is known. |
| `still_works_until` | datetime | Until when access already given may still work, as reported. |
| `still_works_note` | string | What access already given may still work, and until when, in words ("Not known: the booking service has not said"). |
| `receipt_sent_at` | datetime | When your product sent the receipt, outside this page. |
| `receipt_sent_to_name` | string | Who the receipt was sent to, as shown.MoreKept on the record. |
| `receipt_channel` | string | How the receipt was sent ("Email"). |
| `status`required | string | Canonical lifecycle state derived from the states parameter.MoreThis is the single source of truth for the entity's current lifecycle position. Consumed by Colorized to resolve visual tokens, and by view extensions to render StatusBadge and StatusTimeline. |
| `state_history` | StateTransition\[] | Chronological log of state transitions.MoreEach entry records the before/after states, timestamp, and (when governance is enabled) the actor, reason, and transition metadata. Rendered by StatusTimeline in the detail and timeline views. Entry structure: - from: string (previous state) - to: string (new state) - timestamp: ISO 8601 datetime - actor_id: string (user/system who triggered the transition, optional) - reason: string (human-readable justification, required when requireTransitionReason is true) - transition_metadata: Record\<string, unknown> (arbitrary context, optional) Every recorded change can name who acted, who it acted for and who approved it. All optional, following Relationship's source_id/source_name pattern; only a \*\_name names a party, and an entry that names no one renders as it always has: - actor_name: string (who acted, as shown: "Billing Agent") - actor_kind: string (person, agent or system: the Actor trait's kinds) - on_behalf_of_name / on_behalf_of_id: string (the person or organization it acted for) - approved_by_name / approved_by_id: string (who approved the change, when someone did) StatusTimeline then reads "Billing Agent for Tidewater Co-op · approved by Ruth Adeyemi". A change someone approved can also say which approval it belongs to and what level of yes it was. Both optional; the id stays in the record's data, a pointer and not a link, and an entry without them renders as it always has: - approval_id: string (the Approval record the yes is kept in) - approval_level: string (the level of yes, one of the levels the product declares: "approval") StatusTimeline then reads "Billing Agent for Tidewater Co-op · approved by Ruth Adeyemi (level: Approval)". A change made as part of a task can also say which task it was. Both optional; the id stays in the record's data, a pointer and not a link, and an entry without them renders as it always has: - task_id: string (the Task record the change was made under) - task_name: string (the task, as shown: "Get INV-2026-0155 paid") StatusTimeline then reads "… · approved by Ruth Adeyemi (level: Approval) · task: Get INV-2026-0155 paid". A change made under a grant, the standing yes an actor acts under for a person or organization, can also say which grant it was. Both optional; the id stays in the record's data, a pointer and not a link, and an entry without them renders as it always has: - grant_id: string (the Grant record the change was made under) - grant_name: string (the grant, as shown: "Resend returned transfers") StatusTimeline names the grant after any approval and before the task: "Billing Agent for Tidewater Co-op · grant: Resend returned transfers". |
| `allowed_transitions` | string\[] | Materialized list of the next states the product allows from the current status, written by the product from the transitionRules parameter.MoreWhen transitionRules is null (open model), this contains all states except the current one. The detail page's StatusTimeline lists it when the record holds it. A generated StatusSelector reads transitionRules instead: it offers the current state and the moves the order allows (every state where no order is declared). |
| `created_at`required | datetime | Timestamp recording when the entity was first created. |
| `updated_at` | datetime | Timestamp for the most recent modification, when available. |
| `last_event`required | string | Lifecycle event associated with the most recent timestamp mutation. |
| `last_event_at` | datetime | Timestamp for the lifecycle event captured in last_event. |
| `owner_id`required | string | Identifier of the owning principal scoped by owner_type. |
| `owner_type`required | string | Categorical owner type sourced from the ownerTypes parameter. |
| `ownership_role` | string | Optional role name describing how the owner governs the entity. |
| `ownership_transferred_at` | datetime | Timestamp recording when ownership was last transferred. |
| `closure_id`required | uuid | Primary identifier for the closure. |
| `name`required | string | What the closure is called, saying it is a closure and of what ("Closure of Northwind customer replies"). |
| `owner_name` | string | Who answers for the closure, a person or a team, as shown. |

## Traits

Each trait adds fields and behaviour. Every object with the trait gets the same.

- [Closeout](https://oods-foundry.com/traits/closeout)
- [Stateful as ClosureState](https://oods-foundry.com/traits/stateful)
- [Timestampable as ClosureTimes](https://oods-foundry.com/traits/timestampable)
- [Ownerable as ClosureAnswers](https://oods-foundry.com/traits/ownerable)

## Relationships

This object declares no relationships with other object types. Its detail screens also list related records, declared on the object as related lists, apart from relationships.

## The object file

The Closure object definition in YAML: `objects/core/Closure.object.yaml`

```
object:
  name: Closure
  version: 1.0.0
  domain: core.governance
  description: The third part of the Grant story, what a product reports became of the work after a grant ended. Only a report should move it, a rule your product keeps.
  tags:
    - universal
    - governance
    - core
    - closure

# The third part of the Grant story: a grant is a standing yes (0.15.0), a person sees their grants and takes one back
# (0.16.0), and a closure is what a product reports became of the work after a grant ended (0.17.0). Taking a grant back
# ends the yes, not the work. A product opens one closure for each grant that was given and then ended: revoked,
# replaced, or expired after it was given. A request that was declined, withdrawn or left to expire was never given and
# gets none, and a grant that ended with its outer grant gets none of its own: your product may name it, in words, in a
# line of the outer grant's closure.
#
# Its facts are the Closeout trait's: what ended and how, when, who it was for, what the closure covers, where it stands,
# when your product stops waiting for answers, until when access already given may still work, and the receipt as sent.
# Its lines are its history: each names who reported it, and a line that reports without moving the state (a party
# told, a party's answer, a piece of work's fate, the receipt sent) keeps the state it stands in, written from: null.
# Only a report should move a closure, a rule your product keeps; time and silence close nothing. A product's own
# deadline line may move it to not known, never to reported closed or failed. Reported closed means nothing more can start under the grant, as reported, for the
# stated scope; it never means everything stopped. A reported-closed closure moves again only to failed, on a report that
# something that had to stop did not, and failed is final.
#
# It is read-only in OODS Foundry: it composes no form and so no workflow, and its page offers no Edit, no Delete and no
# move. A product writes its closures from reports. OODS Foundry models and shows the record; it writes no closure,
# tells no one, stops nothing and cannot know whether everything stopped. The receipt is sent outside the page by your
# product; the closure's own page, drawn by your product from its own record with the generated components, is its
# content.
traits:
  - name: core/Closeout
  - name: lifecycle/Stateful
    alias: ClosureState
    parameters:
      states:
        - closing
        - reported_closed
        - still_running
        - not_known
        - failed
      initialState: closing
      # The order your product keeps. A closure opens closing, when its grant ends; a report moves it to reported closed,
      # still running, not known or failed. Reported closed moves only to failed, on a report that something that had to
      # stop did not, and failed is final (an empty list): what is done about it afterwards is a line on the failed
      # closure. The order cannot tell a deadline line from another report, so no check holds the deadline rule; the
      # product keeps it.
      transitionRules:
        closing: [reported_closed, still_running, not_known, failed]
        still_running: [reported_closed, not_known, failed]
        not_known: [reported_closed, still_running, failed]
        reported_closed: [failed]
        failed: []
  - name: lifecycle/Timestampable
    alias: ClosureTimes
    parameters:
      recordedEvents:
        - opened
        - reported
        - updated
      timezone: UTC
  # The one who answers for the closure: the one who answered for the grant when it ended, a person or a team.
  - name: structural/Ownerable
    alias: ClosureAnswers
    parameters:
      ownerTypes:
        - user
        - team
      primaryOwnerType: user
      allowTransfer: true

schema:
  closure_id:
    type: uuid
    required: true
    description: Primary identifier for the closure.
  name:
    type: string
    required: true
    description: What the closure is called, saying it is a closure and of what ("Closure of Northwind customer replies").
    validation:
      minLength: 1
      maxLength: 160
  owner_name:
    type: string
    required: false
    description: Who answers for the closure, a person or a team, as shown.

semantics:
  closure_id:
    semantic_type: governance.closure.id
    token_mapping: tokenMap(identity.id.primary)
  name:
    semantic_type: text.label
    token_mapping: tokenMap(identity.name.primary)
  # The one-line summary under the closure's name in lists: where it stands now.
  summary:
    semantic_type: text.summary
    token_mapping: tokenMap(text.body.*)
    ui_hints:
      component: Text
      label: Where it stands
  # structural/Ownerable's owner reference: the one who answers for the closure, named by owner_name.
  owner_id:
    semantic_type: ownership.owner.id
    token_mapping: tokenMap(ownership.owner.id)
    ui_hints:
      component: OwnerReference
      ownerTypeField: owner_type
      displayLabelField: owner_name

tokens:
  identity.id.primary: "var(--text-strong)"
  identity.name.primary: "var(--text-strong)"

metadata:
  owners:
    - Core team
    - Platform team
  steward: Design team
  maturity: alpha
  # Read-only: no form, so no workflow, no Edit, no Delete and no move.
  supportedContexts:
    - card
    - detail
    - inline
    - list
    - timeline
  changelog:
    - version: 1.0.0
      date: "2026-11-17"
      description: Initial Closure object, the sixteenth public reference object and the third part of the Grant story; what a product reports became of the work after a grant ended.
  # The lists a closure's page shows. Each reads a field of the closure through key (the grant it closes, the party), so
  # the page says its rows were matched by id. The grant's end is the closure's own ended_at (endedAt), so a row is read
  # at the instant the grant ended, not at the closure's own state.
  relatedLists:
    - id: ended
      label: The grant and its party now
      empty: Neither the grant nor its party is a record here.
      sources:
        - { from: Grant, key: closes_id, seat: Grant, kept: { name: closes_name }, row: { line: [ended_reason] } }
        - { from: [Organization, User], key: for_id, seat: For, kept: { name: for_name } }
    - id: under-way
      label: Still under way when the grant ended, by the records here
      empty: No record here that names the grant was under way when it ended.
      note: These are read from the records here that name the grant. They are not a report.
      endedAt: { field: ended_at, noun: grant }
      finality: [not_final, not_known]
      sources:
        - { from: [Task, Approval, Transaction, Grant], via: "state_history[].grant_id", key: closes_id }
    - id: after-end
      label: Recorded under the grant after it ended
      empty: Nothing here was recorded under the grant after it ended.
      endedAt: { field: ended_at, noun: grant }
      afterEnd: true
      sources:
        - { from: [Task, Approval, Transaction, Grant], via: "state_history[].grant_id", key: closes_id }

# Three authored closures, one for each shipped Grant sample that was given and then ended, in the order the grants
# ended, so the third is the one a measured detail screen shows. Each names its grant, the grant's party and the one who
# answered for the grant at its end as the shipped records do. Every line names its reporter: the product's own system,
# or a service it told, each named in words, so no line carries the id of a shipped record. Times are UTC.
samples:
  - closure_id: '7c3e9b1d-2a4f-4b6c-8d0e-1f2a3b4c5d01'
    name: Closure of Northwind spring order replies
    closes_id: '4d7a9c2e-1b3f-4e6a-9c8d-5e2f7a1b3c04'
    closes_name: Northwind spring order replies
    ended_how: Replaced
    ended_at: '2026-03-09T15:00:00Z'
    for_id: '3f1c2a4e-5b6d-4e7f-8a9b-0c1d2e3f4a01'
    for_name: Northwind Traders
    scope: What the support desk controls
    summary: Reported closed for what the support desk controls; nothing was recorded under it.
    owner_id: '8b2e4d6f-1a3c-4e5b-9d7f-2c4e6a8b0d01'
    owner_type: user
    owner_name: Dana Whitfield
    ownership_role: Answers for it
    status: reported_closed
    state_history:
      - { title: Opened, from: null, to: closing, at: '2026-03-09T15:00:00Z', reason: Opened when the grant was replaced by Northwind customer replies, actor_name: Northwind support desk, actor_kind: system }
      - { title: Nothing recorded under it, from: null, to: closing, at: '2026-03-09T15:02:00Z', reason: 'The grant holds no use, and no recorded change here names it', actor_name: Northwind support desk, actor_kind: system }
      - { title: Reported closed, from: closing, to: reported_closed, at: '2026-03-09T15:05:00Z', reason: Nothing more can start under it at the support desk, actor_name: Northwind support desk, actor_kind: system }
    created_at: '2026-03-09T15:00:00Z'
    updated_at: '2026-03-09T15:05:00Z'
    last_event: reported
    last_event_at: '2026-03-09T15:05:00Z'
  - closure_id: '7c3e9b1d-2a4f-4b6c-8d0e-1f2a3b4c5d02'
    name: Closure of Marlow Yoga class bookings
    closes_id: '4d7a9c2e-1b3f-4e6a-9c8d-5e2f7a1b3c03'
    closes_name: Marlow Yoga class bookings
    ended_how: Revoked
    ended_at: '2026-07-10T08:55:00Z'
    for_id: '3f1c2a4e-5b6d-4e7f-8a9b-0c1d2e3f4a06'
    for_name: Marlow Yoga
    scope: Class bookings and the waitlist offers the Scheduling Agent sent
    summary: Not known; the booking service did not answer by the deadline.
    deadline_at: '2026-07-17T08:55:00Z'
    still_works_note: 'Not known: the booking service has not said whether offers already sent can still be taken up.'
    owner_id: '8b2e4d6f-1a3c-4e5b-9d7f-2c4e6a8b0d07'
    owner_type: user
    owner_name: Jonah Marlow
    ownership_role: Answers for it
    status: not_known
    state_history:
      - { title: Opened, from: null, to: closing, at: '2026-07-10T08:55:00Z', reason: 'Opened when Jonah Marlow revoked the grant: the studio closed', actor_name: Marlow Yoga front desk, actor_kind: system }
      - { title: Booking service told, from: null, to: closing, at: '2026-07-10T09:00:00Z', reason: Asked the booking service to stop the Scheduling Agent's waitlist offers, actor_name: Marlow Yoga front desk, actor_kind: system }
      - { title: No answer by the deadline, from: closing, to: not_known, at: '2026-07-17T08:55:00Z', reason: 'The booking service did not answer by the deadline, so nothing is known', actor_name: Marlow Yoga front desk, actor_kind: system }
    created_at: '2026-07-10T08:55:00Z'
    updated_at: '2026-07-17T08:55:00Z'
    last_event: reported
    last_event_at: '2026-07-17T08:55:00Z'
  - closure_id: '7c3e9b1d-2a4f-4b6c-8d0e-1f2a3b4c5d03'
    name: Closure of Northwind customer replies
    closes_id: '4d7a9c2e-1b3f-4e6a-9c8d-5e2f7a1b3c05'
    closes_name: Northwind customer replies
    ended_how: Revoked
    ended_at: '2026-10-08T16:00:00Z'
    for_id: '3f1c2a4e-5b6d-4e7f-8a9b-0c1d2e3f4a01'
    for_name: Northwind Traders
    scope: What the support desk controls
    summary: Still running; the reply about order NW-2207 waits on Dana Whitfield's answer.
    still_works_until: '2026-10-09T16:00:00Z'
    still_works_note: The Support Agent's access to the order system may still work until it runs out.
    receipt_sent_at: '2026-10-08T16:10:00Z'
    receipt_sent_to_name: Dana Whitfield
    receipt_channel: Email
    owner_id: '8b2e4d6f-1a3c-4e5b-9d7f-2c4e6a8b0d01'
    owner_type: user
    owner_name: Dana Whitfield
    ownership_role: Answers for it
    status: still_running
    state_history:
      - { title: Opened, from: null, to: closing, at: '2026-10-08T16:00:00Z', reason: 'Opened when Dana Whitfield revoked the grant: replies go back to the support team', actor_name: Northwind support desk, actor_kind: system }
      - { title: A reply is still waiting, from: closing, to: still_running, at: '2026-10-08T16:05:00Z', reason: Reply about order NW-2207 still waits on Dana Whitfield's answer, actor_name: Northwind support desk, actor_kind: system }
      - { title: Receipt sent, from: null, to: still_running, at: '2026-10-08T16:10:00Z', reason: Sent to Dana Whitfield by email, actor_name: Northwind support desk, actor_kind: system }
    created_at: '2026-10-08T16:00:00Z'
    updated_at: '2026-10-08T16:10:00Z'
    last_event: reported
    last_event_at: '2026-10-08T16:10:00Z'
```
