attention: let a stateless host list its pending delivery intents #6

Open
opened 2026-11-19 21:13:46 +00:00 by svc-agent-writer · 1 comment

Summary

Add a read operation that lets the selected delivery host list the delivery intents waiting for it. A host with no memory between runs, such as a Grok Bot routine, can then find its work, begin attempts and record receipts. The operation returns identifiers and states only, never item content.

Problem

attention/1.0 assumes a stateful delivery host. The host creates an intent with delivery_request and keeps its intent_id for delivery_begin and delivery_receipt. A Grok Bot routine cannot do that:

  • MCP stays outbound. The routine calls tools, and the provider cannot push to it between runs.
  • The routine keeps no memory between runs, so it cannot hold an intent ID or a retry key.
  • No operation lists intents.
  • The item projection carries no delivery state. Its fields are item_id, occurrence_id, revision, candidate, disposition, eligible, withdrawn and provenance.
  • list continuations expire five minutes after the first page, so they cannot carry state across runs.
  • Marking an item with dispose to record "presented" would merge delivery with disposition. The contract keeps these separate.

Grok Bot routines do accept signed webhook POSTs that start a run. A host-side adapter can therefore wake a routine. The woken routine still has to find its pending intents through the provider.

Proposal

Add one operation, provisionally named delivery_list.

  • Authority: the delivery grant and the selected-host association. It needs no read grant because it returns no render content. Content stays behind get and the read grant.
  • Rows: one row for every intent of the authenticated host that is still pending, including an intent with an active attempt or an attempt whose outcome is unknown. Each row carries intent_id, item_id, the item revision, the intent state, the intent deadline, and the current attempt's attempt_id and state when an attempt exists. Rows carry no title, references, provenance or render data.
  • Bounds: the same page sizes as list (50 by default, 100 at most), the 1 MiB response ceiling and the five-minute continuation rules.
  • Reads stay reads. The operation never begins, completes, suppresses or cancels an intent.
  • Erasure: reauthorise and recheck erasure before release. An intent of a forgotten item never appears.

The stateless routine's loop is then:

  1. Call delivery_list to find pending work.
  2. Call get with the read grant to obtain the current projection.
  3. Call admit, then delivery_begin immediately before presenting.
  4. Present the item, then call delivery_receipt with a closed outcome.

On the next run, a lost delivery_begin response appears as an existing attempt. The routine resolves it with delivery_receipt and does not start a second effect. This applies the rule "reconcile through authorised reads" to a host without memory.

Alternative considered: a queue cursor per consumer

The 2026-11-01 Attention Mind sketch used attention_next(consumer) and attention_ack. That is a public queue change feed, which ADR0004 Q10 deferred from v1 to avoid a second replication protocol. It would also let the consumer decide what is new.

With delivery_list, the host's policy decides which items get intents, and the consumer sees only what the policy granted. The intent model is already durable, bounded, bound to one host and limited to seven days.

Not in scope

  • No push or webhook in the contract. A wake stays a host-side trigger that carries no content.
  • No dependency on MCP Events (draft SEP-3415).
  • No change to interruption authority. Policy stays with the selected host, which is Signals in Stallari.
  • No live host switching and no exactly-once claim.

Host-side context (informative)

A standalone deployment could run two principals for one selected host:

  • A policy adapter. It reads the queue, applies quiet hours, rate limits and user caps, creates intents and sends wakes.
  • A Grok routine. It lists pending intents, presents items and records receipts.

The calm attention classes from Stallari ADR-0107 would then map as follows. This mapping is host policy, not contract.

Class Host behaviour
Ambient No intent. The item appears only when someone calls list.
Peripheral An intent, collected by the next scheduled routine run.
Interruptive An intent plus a content-free wake. The adapter sends the wake only on a change, such as a new high-priority item or a due-time crossing.

Open questions

  1. What is the operation name, and is this an additive attention/1.1? Binding 1.1 currently lists exactly ["attention/1.0"].
  2. May one selected host comprise several principals with independent grants, such as the policy adapter and the routine? The current text binds host association to an authenticated context.
  3. Should rows sort by intent creation time and then intent_id, or by item rank?
  4. Which changes invalidate a delivery_list continuation?
  5. Do completed, suppressed, cancelled or expired intents need an explicit all view?

Acceptance cases to add

  • A host with no retained state lists, begins and records a receipt. The next list omits the completed intent.
  • A delivery_begin response is lost. The next run sees the active attempt, cannot begin a second attempt, and resolves the first with a receipt.
  • An edit or withdrawal cancels an unstarted intent, and the list omits it.
  • Forget during a buffered delivery_list response prevents release.
  • Another host, or a principal without the delivery grant, receives an identity-free refusal.
  • Rows contain no candidate content.

Provenance

Raised on 2026-11-20 in an attention-mind-mcp design session about Grok Bot as the first consumer. The Grok Bot facts come from build guidance that Piers supplied in that session. They have not been checked against xAI documentation.

Related: DD-469; ADR0004 Q10, Q17 and Q24; Attention Mind ADR 0001 §4; Attention #7 (delivery slice); the draft 2026-11-20 amendment to the mind-mcp-class directive.

Human act

ruling: the contract owner rules on open questions 1 to 5 (CONV-40)

## Summary Add a read operation that lets the selected delivery host list the delivery intents waiting for it. A host with no memory between runs, such as a Grok Bot routine, can then find its work, begin attempts and record receipts. The operation returns identifiers and states only, never item content. ## Problem `attention/1.0` assumes a stateful delivery host. The host creates an intent with `delivery_request` and keeps its `intent_id` for `delivery_begin` and `delivery_receipt`. A Grok Bot routine cannot do that: - MCP stays outbound. The routine calls tools, and the provider cannot push to it between runs. - The routine keeps no memory between runs, so it cannot hold an intent ID or a retry key. - No operation lists intents. - The item projection carries no delivery state. Its fields are `item_id`, `occurrence_id`, `revision`, `candidate`, `disposition`, `eligible`, `withdrawn` and `provenance`. - `list` continuations expire five minutes after the first page, so they cannot carry state across runs. - Marking an item with `dispose` to record "presented" would merge delivery with disposition. The contract keeps these separate. Grok Bot routines do accept signed webhook POSTs that start a run. A host-side adapter can therefore wake a routine. The woken routine still has to find its pending intents through the provider. ## Proposal Add one operation, provisionally named `delivery_list`. - **Authority:** the delivery grant and the selected-host association. It needs no read grant because it returns no render content. Content stays behind `get` and the read grant. - **Rows:** one row for every intent of the authenticated host that is still pending, including an intent with an active attempt or an attempt whose outcome is `unknown`. Each row carries `intent_id`, `item_id`, the item revision, the intent state, the intent deadline, and the current attempt's `attempt_id` and state when an attempt exists. Rows carry no title, references, provenance or render data. - **Bounds:** the same page sizes as `list` (50 by default, 100 at most), the 1 MiB response ceiling and the five-minute continuation rules. - **Reads stay reads.** The operation never begins, completes, suppresses or cancels an intent. - **Erasure:** reauthorise and recheck erasure before release. An intent of a forgotten item never appears. The stateless routine's loop is then: 1. Call `delivery_list` to find pending work. 2. Call `get` with the read grant to obtain the current projection. 3. Call `admit`, then `delivery_begin` immediately before presenting. 4. Present the item, then call `delivery_receipt` with a closed outcome. On the next run, a lost `delivery_begin` response appears as an existing attempt. The routine resolves it with `delivery_receipt` and does not start a second effect. This applies the rule "reconcile through authorised reads" to a host without memory. ## Alternative considered: a queue cursor per consumer The 2026-11-01 Attention Mind sketch used `attention_next(consumer)` and `attention_ack`. That is a public queue change feed, which ADR0004 Q10 deferred from v1 to avoid a second replication protocol. It would also let the consumer decide what is new. With `delivery_list`, the host's policy decides which items get intents, and the consumer sees only what the policy granted. The intent model is already durable, bounded, bound to one host and limited to seven days. ## Not in scope - No push or webhook in the contract. A wake stays a host-side trigger that carries no content. - No dependency on MCP Events (draft SEP-3415). - No change to interruption authority. Policy stays with the selected host, which is Signals in Stallari. - No live host switching and no exactly-once claim. ## Host-side context (informative) A standalone deployment could run two principals for one selected host: - A policy adapter. It reads the queue, applies quiet hours, rate limits and user caps, creates intents and sends wakes. - A Grok routine. It lists pending intents, presents items and records receipts. The calm attention classes from Stallari ADR-0107 would then map as follows. This mapping is host policy, not contract. | Class | Host behaviour | | --- | --- | | Ambient | No intent. The item appears only when someone calls `list`. | | Peripheral | An intent, collected by the next scheduled routine run. | | Interruptive | An intent plus a content-free wake. The adapter sends the wake only on a change, such as a new high-priority item or a due-time crossing. | ## Open questions 1. What is the operation name, and is this an additive `attention/1.1`? Binding 1.1 currently lists exactly `["attention/1.0"]`. 2. May one selected host comprise several principals with independent grants, such as the policy adapter and the routine? The current text binds host association to an authenticated context. 3. Should rows sort by intent creation time and then `intent_id`, or by item rank? 4. Which changes invalidate a `delivery_list` continuation? 5. Do completed, suppressed, cancelled or expired intents need an explicit `all` view? ## Acceptance cases to add - A host with no retained state lists, begins and records a receipt. The next list omits the completed intent. - A `delivery_begin` response is lost. The next run sees the active attempt, cannot begin a second attempt, and resolves the first with a receipt. - An edit or withdrawal cancels an unstarted intent, and the list omits it. - Forget during a buffered `delivery_list` response prevents release. - Another host, or a principal without the delivery grant, receives an identity-free refusal. - Rows contain no candidate content. ## Provenance Raised on 2026-11-20 in an `attention-mind-mcp` design session about Grok Bot as the first consumer. The Grok Bot facts come from build guidance that Piers supplied in that session. They have not been checked against xAI documentation. Related: DD-469; ADR0004 Q10, Q17 and Q24; Attention Mind ADR 0001 §4; Attention #7 (delivery slice); the draft 2026-11-20 amendment to the `mind-mcp-class` directive. ## Human act ruling: the contract owner rules on open questions 1 to 5 (CONV-40)
Author
Member

This was generated by AI during triage.

Triage notes

Category: enhancement. The repo has no category label, so none is applied.

State: ready-for-human. The proposal changes a portable contract. Only the contract owner can rule on that, as the Q1 to Q25 owner responses show. No agent implements this before a ruling.

Relation to the release gate: this proposal does not block #4. Issue #4 assesses attention/1.0 at 3da6a26 and selects no new delivery adapter or host.

Premises checked against the pinned contract:

  • Confirmed: the Delivery section has the host request an intent and then call delivery_begin. No operation among the fourteen lists intents.
  • Confirmed: Q10 deferred a public queue change feed from v1. This proposal is a bounded read, not a feed.
  • Confirmed: public xAI documentation says a custom connector needs a publicly reachable HTTPS URL and takes optional headers or OAuth.
  • Not confirmed: a signed webhook that starts a Grok routine. No public xAI page found on 2026-11-20 describes it. The proposal's contract case does not depend on it, because the wake stays outside the contract.

The five open questions, sorted:

  1. Name and version. Open. Precedent: ADR0004 decision 18 added binding 1.1 as an additive profile and left the released binding 1.0 unchanged. No record says how a contract minor version is advertised. A ruling after the 1.0 release is the option that is cheaper to reverse, because it leaves the pin and the evidence untouched.
  2. Several principals for one selected host. Open at the contract level. Q17 fixes one selected delivery host, and Q24 defines a constrained delivery grant with a separate read grant. In the Attention provider, the principal record carries a host label with no uniqueness rule, so the product already permits two principals with one host label. The ruling is whether the contract permits that split.
  3. Row order. Open. Low cost either way.
  4. Continuation invalidation. Open. The list rule is the default candidate: a continuation binds actor, queue, recovery generation, query, limit, mutation generation and frozen evaluation time. The new point is whether a delivery state change invalidates a view.
  5. An explicit all view. Open. Leaving it out is cheaper to reverse, because an additive view can follow.

Next step: a prepared ruling sitting on these five questions.

> *This was generated by AI during triage.* ## Triage notes **Category:** enhancement. The repo has no category label, so none is applied. **State:** `ready-for-human`. The proposal changes a portable contract. Only the contract owner can rule on that, as the Q1 to Q25 owner responses show. No agent implements this before a ruling. **Relation to the release gate:** this proposal does not block [#4](https://git.groupthink.asia/dev/mind-spec/issues/4). Issue #4 assesses `attention/1.0` at `3da6a26` and selects no new delivery adapter or host. **Premises checked against the pinned contract:** - Confirmed: the Delivery section has the host request an intent and then call `delivery_begin`. No operation among the fourteen lists intents. - Confirmed: Q10 deferred a public queue change feed from v1. This proposal is a bounded read, not a feed. - Confirmed: public xAI documentation says a custom connector needs a publicly reachable HTTPS URL and takes optional headers or OAuth. - Not confirmed: a signed webhook that starts a Grok routine. No public xAI page found on 2026-11-20 describes it. The proposal's contract case does not depend on it, because the wake stays outside the contract. **The five open questions, sorted:** 1. **Name and version.** Open. Precedent: ADR0004 decision 18 added binding 1.1 as an additive profile and left the released binding 1.0 unchanged. No record says how a contract minor version is advertised. A ruling after the 1.0 release is the option that is cheaper to reverse, because it leaves the pin and the evidence untouched. 2. **Several principals for one selected host.** Open at the contract level. Q17 fixes one selected delivery host, and Q24 defines a constrained delivery grant with a separate read grant. In the Attention provider, the principal record carries a host label with no uniqueness rule, so the product already permits two principals with one host label. The ruling is whether the contract permits that split. 3. **Row order.** Open. Low cost either way. 4. **Continuation invalidation.** Open. The `list` rule is the default candidate: a continuation binds actor, queue, recovery generation, query, limit, mutation generation and frozen evaluation time. The new point is whether a delivery state change invalidates a view. 5. **An explicit `all` view.** Open. Leaving it out is cheaper to reverse, because an additive view can follow. **Next step:** a prepared ruling sitting on these five questions.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
dev/mind-spec#6
No description provided.