DD-469: Attention 5/6 — fake host and delivery #7

Open
opened 2026-11-15 06:40:49 +00:00 by svc-agent-writer · 2 comments

Scope and authority

Parent: #1 (DD-469). Product decisions: ADR 0002. Agreed decomposition.

Implement attention/1.0 and binding 1.1 pinned to mind-spec 3da6a263e6aeb3f37d25590d6ab755045ff53786, including its schemas and conformance obligations. Preserve the single queue authority, independent grants and host-owned interruption policy. This issue is a bounded implementation brief; it does not claim working software or grant production deployment.

Blocked by

Delivery preparation may start after slice 2 against its interfaces; the complete issue stays blocked by slice 4 because final acceptance requires durable erasure/recovery. No separate partial completion claim.

Completed prerequisite

Durable queue/commands #4 landed in PR #11 as 04b0704842de on 2026-11-15. This retires the #4 dependency; it does not dispatch this issue.

Deliverables and acceptance

Deliverables. Implement delivery_request, delivery_begin, delivery_receipt and delivery_suppress with durable revision-bound intents and selected-host association. A host explicitly fetches a projection and requests delivery; submit/read alone cannot produce an effect. Recheck eligibility, revision, host association and erasure immediately before starting one serialised attempt. Receipts record an attempt outcome and never change disposition.

Provide an isolated fake host with a durable effect ledger, configurable deduplication guarantee and observable effect count. Keep those controls outside the public MCP surface. Retain the same intent-level adapter key for a permitted uncertain retry, within both the seven-day intent deadline and the declared durable deduplication deadline. Without that guarantee, retain an unknown result. A cached delivery_begin response is not permission to repeat an effect. Cancel obsolete unstarted intents, block newly ineligible attempts and remove provider-held render data when obsolete/terminal or forgotten; an already-started effect cannot be recalled.

Acceptance. Count effects across lost responses, host restart, repeated begin/receipt calls and uncertain outcomes with and without sufficient deduplication. Verify one active attempt, deadlines, selected-host and grant revocation, late receipt resolution, suppression and disposition independence. Exercise edits, withdrawal, snooze and Forget before begin and during buffered work. After slice 4 lands, repeat crash/restore and late completion tests against durable suppression and recovery fences; no forgotten payload or cancelled work may return. Check pending-delivery count/byte capacity and release on suppression, expiry and Forget.

Boundary. This slice proves only fake-host behaviour. It neither selects a real notification adapter nor certifies global exactly-once delivery, receipt-as-seen semantics, Signals policy or live host switching.

Completion evidence

Link the implementing PR and exact commit, commands and results for the acceptance obligations above. Distinguish actual provider checks from reference-model tests; record unsupported checks as unsupported. Follow the repository's specification/review process before implementation. Do not close the parent epic from this slice.

## Scope and authority Parent: https://git.groupthink.asia/dev/attention-mind-mcp/issues/1 (DD-469). Product decisions: [ADR 0002](https://git.groupthink.asia/dev/attention-mind-mcp/src/branch/main/docs/adr/0002-standalone-product-and-managed-recovery.md). [Agreed decomposition](https://git.groupthink.asia/dev/attention-mind-mcp/src/branch/main/docs/planning/implementation-slices.md). Implement attention/1.0 and binding 1.1 pinned to [mind-spec `3da6a263e6aeb3f37d25590d6ab755045ff53786`](https://git.groupthink.asia/dev/mind-spec/src/commit/3da6a263e6aeb3f37d25590d6ab755045ff53786/contracts/attention-v1/README.md), including its schemas and [conformance obligations](https://git.groupthink.asia/dev/mind-spec/src/commit/3da6a263e6aeb3f37d25590d6ab755045ff53786/contracts/attention-v1/CONFORMANCE.md). Preserve the single queue authority, independent grants and host-owned interruption policy. This issue is a bounded implementation brief; it does not claim working software or grant production deployment. ## Blocked by - https://git.groupthink.asia/dev/attention-mind-mcp/issues/6 Delivery preparation may start after slice 2 against its interfaces; the complete issue stays blocked by slice 4 because final acceptance requires durable erasure/recovery. No separate partial completion claim. ## Completed prerequisite Durable queue/commands #4 landed in [PR #11](https://git.groupthink.asia/dev/attention-mind-mcp/pulls/11) as `04b0704842de` on 2026-11-15. This retires the #4 dependency; it does not dispatch this issue. ## Deliverables and acceptance **Deliverables.** Implement `delivery_request`, `delivery_begin`, `delivery_receipt` and `delivery_suppress` with durable revision-bound intents and selected-host association. A host explicitly fetches a projection and requests delivery; submit/read alone cannot produce an effect. Recheck eligibility, revision, host association and erasure immediately before starting one serialised attempt. Receipts record an attempt outcome and never change disposition. Provide an isolated fake host with a durable effect ledger, configurable deduplication guarantee and observable effect count. Keep those controls outside the public MCP surface. Retain the same intent-level adapter key for a permitted uncertain retry, within both the seven-day intent deadline and the declared durable deduplication deadline. Without that guarantee, retain an unknown result. A cached `delivery_begin` response is not permission to repeat an effect. Cancel obsolete unstarted intents, block newly ineligible attempts and remove provider-held render data when obsolete/terminal or forgotten; an already-started effect cannot be recalled. **Acceptance.** Count effects across lost responses, host restart, repeated begin/receipt calls and uncertain outcomes with and without sufficient deduplication. Verify one active attempt, deadlines, selected-host and grant revocation, late receipt resolution, suppression and disposition independence. Exercise edits, withdrawal, snooze and Forget before begin and during buffered work. After slice 4 lands, repeat crash/restore and late completion tests against durable suppression and recovery fences; no forgotten payload or cancelled work may return. Check pending-delivery count/byte capacity and release on suppression, expiry and Forget. **Boundary.** This slice proves only fake-host behaviour. It neither selects a real notification adapter nor certifies global exactly-once delivery, receipt-as-seen semantics, Signals policy or live host switching. ## Completion evidence Link the implementing PR and exact commit, commands and results for the acceptance obligations above. Distinguish actual provider checks from reference-model tests; record unsupported checks as unsupported. Follow the repository's specification/review process before implementation. Do not close the parent epic from this slice.
Author
Member

This was generated by AI during triage.

Operator asks to leave recovery #6 paused today and progress independent ownrepo work. The accepted implementation plan already permits coordinated delivery preparation after durable commands. Tracking the isolated fake-host subset in #13: test-only durable synthetic effect ledger, explicit deduplication controls, restart/lost-response/concurrency evidence and fixture documentation.

This implements no public delivery tool, provider recovery/Forget path, real notification adapter or ADR change. Full #7 remains blocked by #6; #8 and the parent epic remain open. Completing #13 will establish fixture evidence only, not delivery/recovery or production acceptance. mind-spec was notified of this coordinated subset.

> *This was generated by AI during triage.* Operator asks to leave recovery #6 paused today and progress independent ownrepo work. The accepted implementation plan already permits coordinated delivery preparation after durable commands. Tracking the isolated fake-host subset in [#13](https://git.groupthink.asia/dev/attention-mind-mcp/issues/13): test-only durable synthetic effect ledger, explicit deduplication controls, restart/lost-response/concurrency evidence and fixture documentation. This implements no public delivery tool, provider recovery/Forget path, real notification adapter or ADR change. Full #7 remains blocked by #6; #8 and the parent epic remain open. Completing #13 will establish fixture evidence only, not delivery/recovery or production acceptance. mind-spec was notified of this coordinated subset.
Author
Member

This was generated by AI during triage.

Completed the independent test-only preparation in PR #14, merged as 5375725434c7 after own detached-checkout execution, independent review, and native exact-head Linux validation passed. The changes add a durable synthetic effect ledger, its retry/crash/concurrency/expiry/capacity tests, and a short fixture guide. Local evidence: 29 fixture tests, 359 unit tests and 64 transport tests passed; Ruff and mypy passed. Native validation: https://ci.groupthink.asia/repos/76/pipeline/9/1 . Final ruling: #14 (comment) .

Only #13 is complete. Recovery #6 remains HOLD with its consumed attempt cap. #7, #8 and the epic remain open; this preparation does not complete their dependency edges or establish production delivery, Forget/restore, packaged acceptance or deployment readiness.

> *This was generated by AI during triage.* Completed the independent test-only preparation in [PR #14](https://git.groupthink.asia/dev/attention-mind-mcp/pulls/14), merged as `5375725434c7` after own detached-checkout execution, independent review, and native exact-head Linux validation passed. The changes add a durable synthetic effect ledger, its retry/crash/concurrency/expiry/capacity tests, and a short fixture guide. Local evidence: 29 fixture tests, 359 unit tests and 64 transport tests passed; Ruff and mypy passed. Native validation: https://ci.groupthink.asia/repos/76/pipeline/9/1 . Final ruling: https://git.groupthink.asia/dev/attention-mind-mcp/pulls/14#issuecomment-40669 . Only #13 is complete. Recovery #6 remains HOLD with its consumed attempt cap. #7, #8 and the epic remain open; this preparation does not complete their dependency edges or establish production delivery, Forget/restore, packaged acceptance or deployment readiness.
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/attention-mind-mcp#7
No description provided.