attention: let a stateless host list its pending delivery intents #6
Labels
No labels
epic
needs-info
needs-triage
ready-for-agent
ready-for-human
svd:fire
svd:go
svd:hold
svd:respec
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
dev/mind-spec#6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.0assumes a stateful delivery host. The host creates an intent withdelivery_requestand keeps itsintent_idfordelivery_beginanddelivery_receipt. A Grok Bot routine cannot do that:item_id,occurrence_id,revision,candidate,disposition,eligible,withdrawnandprovenance.listcontinuations expire five minutes after the first page, so they cannot carry state across runs.disposeto 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.getand the read grant.unknown. Each row carriesintent_id,item_id, the item revision, the intent state, the intent deadline, and the current attempt'sattempt_idand state when an attempt exists. Rows carry no title, references, provenance or render data.list(50 by default, 100 at most), the 1 MiB response ceiling and the five-minute continuation rules.The stateless routine's loop is then:
delivery_listto find pending work.getwith the read grant to obtain the current projection.admit, thendelivery_beginimmediately before presenting.delivery_receiptwith a closed outcome.On the next run, a lost
delivery_beginresponse appears as an existing attempt. The routine resolves it withdelivery_receiptand 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)andattention_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
Host-side context (informative)
A standalone deployment could run two principals for one selected host:
The calm attention classes from Stallari ADR-0107 would then map as follows. This mapping is host policy, not contract.
list.Open questions
attention/1.1? Binding 1.1 currently lists exactly["attention/1.0"].intent_id, or by item rank?delivery_listcontinuation?allview?Acceptance cases to add
delivery_beginresponse is lost. The next run sees the active attempt, cannot begin a second attempt, and resolves the first with a receipt.delivery_listresponse prevents release.Provenance
Raised on 2026-11-20 in an
attention-mind-mcpdesign 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-classdirective.Human act
ruling: the contract owner rules on open questions 1 to 5 (CONV-40)
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.0at3da6a26and selects no new delivery adapter or host.Premises checked against the pinned contract:
delivery_begin. No operation among the fourteen lists intents.The five open questions, sorted:
listrule 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.allview. Open. Leaving it out is cheaper to reverse, because an additive view can follow.Next step: a prepared ruling sitting on these five questions.