Implement durable attention queue and authenticated commands #11

Merged
Collaborator

Summary

Durable Attention commands now survive restart, concurrent updates and lost responses. The service refreshes authority before replay and fences unresolved prepared work.

admit → authenticated seven-day window
command → current authority → replay or capacity/CAS decision
        → atomic item + minimal outcome + accounting
prepared work → quarantine → verified private completion

Implements info, admit, submit, replace, withdraw and dispose against the unchanged mind-spec pin. Fresh valid queues and clean v1 migrations become ready for this subset. Ordinary outcomes and future erasure reserves remain separately bounded.

Evidence

  • Before: the foundation exposed info only; 219 baseline tests passed at 9b5a7c0.
  • After: architect-owned Python 3.12.12 checks at 0a1e335689d9a553f4bf89e4eb19d386ca04201e: 255 passed, 40 deselected in 20.66s; 40 passed, 255 deselected in 96.55s (0:01:36). All 295 collected tests have exactly one unit/transport marker. Ruff lint/format, strict mypy and native wheel/sdist build passed.
  • Actual Linux CI passed at the same head: 255 passed, 40 deselected in 28.64s; 40 passed, 255 deselected in 78.10s (0:01:18); quality checks passed.
  • Mandatory cross-vendor integration and independent Standards, Spec and Security reviews passed. Security also reran seven focused tests and six reviewer-written probe groups at this head. All initial review findings were fixed.
  • Real HTTP evidence includes concurrent clients and twelve barrier-confirmed writer SIGKILL/retry cases. In-process storage tests and synthetic custody-verifier probes are distinct evidence categories.

Merge Danger

Door: one-way for the database migration. Source can be reverted, but the v1 runtime refuses a migrated v2 database; there is no downgrade path in this slice.

Blast Radius: queue

Public Forget, queries, delivery, S3, backup/restore, deployment and full-provider conformance remain later slices. No live service or production data was changed.

Refs #4. Issue acceptance and closure remain explicit; parent #1 stays open.

## Summary Durable Attention commands now survive restart, concurrent updates and lost responses. The service refreshes authority before replay and fences unresolved prepared work. ```text admit → authenticated seven-day window command → current authority → replay or capacity/CAS decision → atomic item + minimal outcome + accounting prepared work → quarantine → verified private completion ``` Implements info, admit, submit, replace, withdraw and dispose against the unchanged mind-spec pin. Fresh valid queues and clean v1 migrations become ready for this subset. Ordinary outcomes and future erasure reserves remain separately bounded. ## Evidence - **Before:** the foundation exposed info only; 219 baseline tests passed at `9b5a7c0`. - **After:** architect-owned Python 3.12.12 checks at `0a1e335689d9a553f4bf89e4eb19d386ca04201e`: 255 passed, 40 deselected in 20.66s; 40 passed, 255 deselected in 96.55s (0:01:36). All 295 collected tests have exactly one unit/transport marker. Ruff lint/format, strict mypy and native wheel/sdist build passed. - [Actual Linux CI](https://ci.groupthink.asia/repos/76/pipeline/4/1) passed at the same head: 255 passed, 40 deselected in 28.64s; 40 passed, 255 deselected in 78.10s (0:01:18); quality checks passed. - Mandatory cross-vendor integration and independent Standards, Spec and Security reviews passed. Security also reran seven focused tests and six reviewer-written probe groups at this head. All initial review findings were fixed. - Real HTTP evidence includes concurrent clients and twelve barrier-confirmed writer SIGKILL/retry cases. In-process storage tests and synthetic custody-verifier probes are distinct evidence categories. ## Merge Danger **Door:** one-way for the database migration. Source can be reverted, but the v1 runtime refuses a migrated v2 database; there is no downgrade path in this slice. **Blast Radius:** queue Public Forget, queries, delivery, S3, backup/restore, deployment and full-provider conformance remain later slices. No live service or production data was changed. Refs #4. Issue acceptance and closure remain explicit; parent #1 stays open.
Implement durable attention queue and authenticated commands
All checks were successful
ci/woodpecker/pr/validation Pipeline was successful
6e3d0cf6c1
Add transactional schema-v2 migration, seven-day authenticated admissions, durable item lifecycle/CAS and scoped replay outcomes, finite capacity and erasure reserves, and bounded prepared-transition fencing with verified private finalization. Expose the exact six MCP tools and document derived readiness and unsupported obligations.

Validation: 255 unit/packaging tests and 40 HTTP/MCP tests passed, including concurrency and writer-termination cases. Ruff lint/format, strict mypy and native build passed.

Refs #4

Closes #4
Co-Authored-By: gpt-6.1-sol <noreply@openai.com>
piers force-pushed feat/svd-dev-attention-mind-mcp-4-dd-469-attention-2-6-durabl-dcef0f7c from 6e3d0cf6c1
All checks were successful
ci/woodpecker/pr/validation Pipeline was successful
to 0a1e335689
All checks were successful
ci/woodpecker/pr/validation Pipeline was successful
2026-11-15 10:47:16 +00:00
Compare

This was generated by AI during triage.

Measured facts

PR #11, base 9b5a7c0b6e4c3b7baded63a4ed7c8a569828030e, final head 0a1e335689d9a553f4bf89e4eb19d386ca04201e. Approved spec SHA-256 87e321e4ceaeac3e93998f57389797202f44e5033ff233692f054a5d467f6100; immutable mind-spec pin 3da6a263e6aeb3f37d25590d6ab755045ff53786. All eleven permitted files are accounted for; schemas, dependencies, CI and binding.py are unchanged. Worktree is clean.

Standards

Zero unresolved findings. The initial attribution breach and duplicated reservation-calculation heuristic were fixed, then independently re-reviewed. The commit now contains only Refs #4 and the single literal attribution required by AGENTS. The private shared calculator retains both callers' validation order and independent persisted-field comparisons. No waiver was used.

Spec

Zero actionable findings. All sixteen acceptance obligations map to concrete assertions, including eight-thread CAS, concurrent HTTP clients, twelve real barrier/SIGKILL cases, durable refusal clock floor, current authority before replay, separate capacity reserves, and prepared restart/evidence/finalization behavior. The final helper extraction preserves these conclusions.

Security

Zero actionable findings. An independent manual security review substitutes for the unavailable security-review skill. At the final head, seven focused prepared/restart tests and six reviewer-written probe groups passed, including authenticated malformed tokens, stale authority, null association rebinding, capacity races, persistent fences, exact-evidence completion and real HTTP diagnostic canaries. These use synthetic credentials and temporary state.

Verification

  • Architect-owned final-head execution: 255 passed, 40 deselected in 20.66s; 40 passed, 255 deselected in 96.55s (0:01:36); 295 collected, marker partition checked; Ruff lint/format, strict mypy and native wheel/sdist build passed. Empty known-failure floor; no discounted failures.
  • Woodpecker pipeline 4 is successful at the exact head, including quality, unit/wheel and real HTTP steps: 255 passed, 40 deselected in 28.64s; 40 passed, 255 deselected in 78.10s (0:01:18).
  • Mandatory SVD integrate 20261115T101807Z-dcef0f7c is ready at this exact head. Its build-manifest detector reports no recognized manifest for this Python package; the architect separately executed and passed the actual native package build.
  • Actual HTTP/provider tests, local storage/domain tests and synthetic evidence-verifier probes are distinguished. No S3, backup/deletion custody, public Forget or complete-provider conformance claim is made.

Buckets

Already decided: exact six tools and the approved queue/command semantics. Verification: all checks above passed; the dispatch caller's missing issueBinding: refs argument and the runner's attribution override were corrected without changing the approved spec or original evidence. Genuinely open: the named-PR merge grant. The path-only classifier returns T1 for generic Python paths; the actual token, secret and authority work falls within gate §12's T4 examples, so the stricter T4 boundary is retained. No harness classification rule is changed here.

Ruling

GO-held: implementation and validation are complete for the slice; merge remains held for an operator grant naming T4 and PR #11 at 0a1e335689d9a553f4bf89e4eb19d386ca04201e under gate §22.1. No deployment or issue closure is authorised by this record. The v2 database migration has no downgrade path; a source revert alone cannot reopen migrated state using the v1 runtime.

Drafted line: Approve T4 merge of dev/attention-mind-mcp PR #11 at 0a1e335689d9a553f4bf89e4eb19d386ca04201e.

Delegation: gate §17.1 records “the delegation is standing (with ongoing open review)” and “run the merge line, after having posted lines to conversation”. Its T0–T3 scope does not supply this T4 grant; §22.1 requires “a seat or session under an operator grant that names T4 and the PR”.

Standards: 0 unresolved findings. Spec: 0 findings. Security: 0 actionable findings. Refs #4; parent #1 remains open.

> *This was generated by AI during triage.* ## Measured facts PR #11, base `9b5a7c0b6e4c3b7baded63a4ed7c8a569828030e`, final head `0a1e335689d9a553f4bf89e4eb19d386ca04201e`. Approved spec SHA-256 `87e321e4ceaeac3e93998f57389797202f44e5033ff233692f054a5d467f6100`; immutable mind-spec pin `3da6a263e6aeb3f37d25590d6ab755045ff53786`. All eleven permitted files are accounted for; schemas, dependencies, CI and binding.py are unchanged. Worktree is clean. ## Standards Zero unresolved findings. The initial attribution breach and duplicated reservation-calculation heuristic were fixed, then independently re-reviewed. The commit now contains only `Refs #4` and the single literal attribution required by AGENTS. The private shared calculator retains both callers' validation order and independent persisted-field comparisons. No waiver was used. ## Spec Zero actionable findings. All sixteen acceptance obligations map to concrete assertions, including eight-thread CAS, concurrent HTTP clients, twelve real barrier/SIGKILL cases, durable refusal clock floor, current authority before replay, separate capacity reserves, and prepared restart/evidence/finalization behavior. The final helper extraction preserves these conclusions. ## Security Zero actionable findings. An independent manual security review substitutes for the unavailable security-review skill. At the final head, seven focused prepared/restart tests and six reviewer-written probe groups passed, including authenticated malformed tokens, stale authority, null association rebinding, capacity races, persistent fences, exact-evidence completion and real HTTP diagnostic canaries. These use synthetic credentials and temporary state. ## Verification - Architect-owned final-head execution: 255 passed, 40 deselected in 20.66s; 40 passed, 255 deselected in 96.55s (0:01:36); 295 collected, marker partition checked; Ruff lint/format, strict mypy and native wheel/sdist build passed. Empty known-failure floor; no discounted failures. - [Woodpecker pipeline 4](https://ci.groupthink.asia/repos/76/pipeline/4/1) is successful at the exact head, including quality, unit/wheel and real HTTP steps: 255 passed, 40 deselected in 28.64s; 40 passed, 255 deselected in 78.10s (0:01:18). - Mandatory SVD integrate `20261115T101807Z-dcef0f7c` is ready at this exact head. Its build-manifest detector reports no recognized manifest for this Python package; the architect separately executed and passed the actual native package build. - Actual HTTP/provider tests, local storage/domain tests and synthetic evidence-verifier probes are distinguished. No S3, backup/deletion custody, public Forget or complete-provider conformance claim is made. ## Buckets **Already decided:** exact six tools and the approved queue/command semantics. **Verification:** all checks above passed; the dispatch caller's missing `issueBinding: refs` argument and the runner's attribution override were corrected without changing the approved spec or original evidence. **Genuinely open:** the named-PR merge grant. The path-only classifier returns T1 for generic Python paths; the actual token, secret and authority work falls within gate §12's T4 examples, so the stricter T4 boundary is retained. No harness classification rule is changed here. ## Ruling GO-held: implementation and validation are complete for the slice; merge remains held for an operator grant naming T4 and PR #11 at `0a1e335689d9a553f4bf89e4eb19d386ca04201e` under gate §22.1. No deployment or issue closure is authorised by this record. The v2 database migration has no downgrade path; a source revert alone cannot reopen migrated state using the v1 runtime. **Drafted line:** Approve T4 merge of dev/attention-mind-mcp PR #11 at `0a1e335689d9a553f4bf89e4eb19d386ca04201e`. **Delegation:** gate §17.1 records “the delegation is standing (with ongoing open review)” and “run the merge line, after having posted lines to conversation”. Its T0–T3 scope does not supply this T4 grant; §22.1 requires “a seat or session under an operator grant that names T4 and the PR”. Standards: 0 unresolved findings. Spec: 0 findings. Security: 0 actionable findings. Refs #4; parent #1 remains open.

This was generated by AI during triage.

Measured facts

At 2026-11-15T22:10:49+11:00, PR #11 is open and mergeable at reviewed head 0a1e335689d9, with base 9b5a7c0b6e4c. The forge reports successful Woodpecker pipeline 4 at that exact head. The primary and implementation worktrees are clean. This is the repository's only open PR.

The completed independent review and completion evidence remain applicable: 255 unit/packaging tests and 40 real HTTP/MCP tests, quality checks, native package build and final integration passed at this head. These are the previous architect's recorded executions, read back during handoff, rather than new test executions by this receiving session.

Gate section 25: inspected all local ride PID files and tested process liveness. The sole live run is PID 4969, dd466-trial batch dd466-trial-hermod-s8-1820-811-a1; its manifest names only dev/stables issues #1820 and #811. No active ride run serves dev/attention-mind-mcp.

Buckets

Already decided: the implemented slice, completed review and tests, and operator-requested landing of PR #11. Verification: exact head/base, successful CI, clean worktrees and repository-scoped active-run exclusion. Open decisions: none for this merge.

Ruling and grant

Merge PR #11 under grant attention-pr11-t4-20261115-7ac1157b. The operator's exact instruction in receiving session 7ac1157b-ea2f-4ae1-ae40-a21a78ada166 was merge 11, directly following the stated pending T4 + PR #11 grant. This accepts that specific pending T4 merge in context; it is not a new implementation or deployment grant. The substantive class remains T4; the existing path-only T1 classifier output is unchanged.

Drafted action: squash merge pinned to 0a1e335689d9, delete the remote feature branch, preserve Refs #4 and the existing single Codex attribution, record the actual landing SHA, fast-forward the clean main checkout, and explicitly accept issue #4, mark it closed and update dependency progress. Parent #1 remains open.

Revert path: an operator-authorised follow-up PR referencing #4 can revert the resulting single squash commit. Source rollback cannot downgrade a migrated v2 database; no live deployment or production state is changed by this merge.

> *This was generated by AI during triage.* ## Measured facts At 2026-11-15T22:10:49+11:00, PR #11 is open and mergeable at reviewed head `0a1e335689d9`, with base `9b5a7c0b6e4c`. The forge reports successful Woodpecker pipeline 4 at that exact head. The primary and implementation worktrees are clean. This is the repository's only open PR. The [completed independent review](https://git.groupthink.asia/dev/attention-mind-mcp/pulls/11#issuecomment-40112) and [completion evidence](https://git.groupthink.asia/dev/attention-mind-mcp/issues/4#issuecomment-40115) remain applicable: 255 unit/packaging tests and 40 real HTTP/MCP tests, quality checks, native package build and final integration passed at this head. These are the previous architect's recorded executions, read back during handoff, rather than new test executions by this receiving session. Gate section 25: inspected all local ride PID files and tested process liveness. The sole live run is PID 4969, `dd466-trial` batch `dd466-trial-hermod-s8-1820-811-a1`; its manifest names only `dev/stables` issues #1820 and #811. No active ride run serves `dev/attention-mind-mcp`. ## Buckets Already decided: the implemented slice, completed review and tests, and operator-requested landing of PR #11. Verification: exact head/base, successful CI, clean worktrees and repository-scoped active-run exclusion. Open decisions: none for this merge. ## Ruling and grant Merge PR #11 under grant `attention-pr11-t4-20261115-7ac1157b`. The operator's exact instruction in receiving session `7ac1157b-ea2f-4ae1-ae40-a21a78ada166` was `merge 11`, directly following the stated pending **T4 + PR #11** grant. This accepts that specific pending T4 merge in context; it is not a new implementation or deployment grant. The substantive class remains T4; the existing path-only T1 classifier output is unchanged. Drafted action: squash merge pinned to `0a1e335689d9`, delete the remote feature branch, preserve `Refs #4` and the existing single Codex attribution, record the actual landing SHA, fast-forward the clean main checkout, and explicitly accept issue #4, mark it closed and update dependency progress. Parent #1 remains open. Revert path: an operator-authorised follow-up PR referencing #4 can revert the resulting single squash commit. Source rollback cannot downgrade a migrated v2 database; no live deployment or production state is changed by this merge.
svc-agent-writer deleted branch feat/svd-dev-attention-mind-mcp-4-dd-469-attention-2-6-durabl-dcef0f7c 2026-11-15 11:11:26 +00:00
Sign in to join this conversation.
No description provided.