DD-469: Attention 1/6 — foundation and authenticated identity #3
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
dev/attention-mind-mcp#3
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?
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
None. This is the initial implementation frontier.
Deliverables and acceptance
Deliverables. Establish the Python package, locked dependencies, CI checks, immutable contract input and local validation instructions. Separate domain service, MCP adapter, administrative CLI and test harness. Provision a durable queue UUID, recovery generation, explicitly mapped principals, independent grants, optional submitter namespace and selected delivery-host association. Load credentials from mounted files without including them in images, logs or fixtures. Serve authenticated
infowith truthful readiness, declared finite limits and backup-policy status; build the remaining tools only against the pinned schemas as their slices land.Use a single writer process with an exclusive writer lock, SQLite WAL and
synchronous=FULL. Administrative operations that need exclusive database ownership must respect the same boundary. Ordinary restart preserves queue identity and the persisted nondecreasing effective-time floor. Bootstrap may discover identity through authenticatedinfo; normal startup must check a deliberately pinned binding. Do not silently rebind after mismatch or recovery.Acceptance. Exercise a real HTTP/MCP session for implemented tools, including exact schemas and structured-result/error mapping. An unauthenticated or unmapped caller obtains no queue UUID or generation. Verify independent submit/read/disposition/Forget/delivery grant resolution, namespace mapping, selected-host policy and revocation in the authority boundary. As domain tools land, their slices must prove operation-specific ownership, no content/cached-outcome leakage and reauthorisation before retries; those future operations are not required to close this foundation slice. Demonstrate that a second writer cannot open the active queue and that normal restart preserves identity. Use only synthetic credentials and isolated data. Record real transport checks separately from the reference adapter's JSON round trip.
Boundary. No source credentials, automatic ingestion, public provisioning tools, native Stallari adapter or notification effect. CI results establish only the implemented foundation; unsupported operations and test scenarios remain explicitly incomplete. Creating a workflow does not establish required-check branch protection. Record that configuration only after verifying it; unavailable administration access remains a separate limitation.
Completion evidence
Foundation is complete and landed in PR #10 as
9b5a7c0b6e4c. The landed tree equals approved head52431b750304; local main is fast-forwarded and the remote feature branch is deleted. The named T4 grant and advisory ruling and independent review are recorded. The actual merge row includes the grant, review URL and forge-verified merge commit.Post-merge main pipeline 2 also passed on
9b5a7c0b6e4c: quality, unit/installed-wheel and real HTTP transport stages all succeeded. Linux PR pipeline 1 passed at the approved head: 202 unit/installed-wheel tests plus 17 real HTTP transport tests, Ruff lint/format and strict mypy. Local Python 3.12 full-suite execution also passed all 219 tests. Commands:uv run ruff check .,uv run ruff format --check .,uv run mypy src,uv run python3 -m pytest -m unit, anduv run python3 -m pytest -m transport; wheel installation/resource checks are exercised by the unit suite. See the linked review for acceptance and regression evidence.The provider exposes only authenticated
attention_info_v1, always reports quarantine, and has 13 unsupported operations. Its six declared capacity limits are not yet enforced; managed backup/cleanup and complete provider conformance remain later slices. Main has no enforced required-check protection. The operator accepted deferring the optional response-correlation duplication cleanup. No deployment or package release occurred.Parent #1 remains open at 1 of 6 slices complete. The next ready frontier is #4, durable queue and commands; it has not been dispatched.
⏸ SVD architect gate: dev/attention-mind-mcp#3 dd-469-attention-1-6-foundation-and-authenticated-identity
Status: CLEAN after 0 rework round(s) · 0 blocking defect(s) · 0 lens(es) INCONCLUSIVE (could not run) · 0 lens(es) DEGRADED (deterministic denial) · complexity
substrate· dispatch efforthighRun:
20261115T065747Z-90a2939aHeld because: CLEAN but 7 open risk(s) (3 verification · 4 decision) — HOLD-ALL parks everything. The risks, verbatim:
Open risks:
Change: Greenfield: there is no in-repo pattern to mirror, and the sibling repos were unreadable, so the lean comes from the pinned mind-spec@3da6a26 contract (read via WebFetch) and ADR 0002 §Process and storage. Steps: (1) Vendor the exact bytes of schema.json, requests.schema.json and types.schema.json into contracts/attention-v1/. Pin the commit and per-file SHA-256 in contract.py, which builds a jsonschema/referencing validator and exposes the inlined info request branch. (2) store.py: an fcntl.flock writer lock taken before SQLite opens; WAL plus synchronous=FULL, both read back; forward-only user_version migrations; a single-row queue table (queue_id and recovery_generation created only by
init, effective_floor_us, quarantined, selected_host, limits_json, backup_cleanup); principal and grant tables holding only sha256 credential digests; an injectable clock with max(wall, floor), persisted. (3) authority.py: resolve(bearer), where missing, unknown and revoked look identical, and a pure authorize() over the contract grant table for all 14 operations, including namespace ownership and the selected-host rule. (4) service.info validates the request and maps failures to refusal (no ids, for invalid/unsupported/unauthorized), queue_mismatch to the info error branch, and success to ok with readiness, limits and backup_policy{30, not_configured}. Every output is validated against the vendored schema. (5) mcp_adapter.py: Starlette bearer middleware returns a fixed 401 with no ids, a contextvar carries the principal, and one Streamable HTTP tool, attention_info_v1, publishes the exact contract input/output schemas with structuredContent/isError. If FastMCP can't publish exact schemas, fall back to the low-level mcp server. serve requires --expected-queue-id unless --bootstrap and never rebinds. (6) cli.py: init, principal, grant, host, show and serve, all behind the same writer lock; tokens come only from files (0600 with --generate). (7) pyproject/uv.lock, a Forgejo CI with separate unit and transport steps, and README validation instructions.Files:
pyproject.toml·uv.lock·.forgejo/workflows/ci.yml·contracts/attention-v1/schema.json·contracts/attention-v1/requests.schema.json·contracts/attention-v1/types.schema.json·src/attention_mind_mcp/__init__.py·src/attention_mind_mcp/contract.py·src/attention_mind_mcp/store.py·src/attention_mind_mcp/authority.py·src/attention_mind_mcp/service.py·src/attention_mind_mcp/mcp_adapter.py·src/attention_mind_mcp/cli.py·tests/test_foundation.py·tests/test_transport.py·README.mdDecision: accept the 7 open risk(s) above and dispatch this spec (
svd:go), or park (svd:skip) / re-spec (svd:respec)?Your call (when this issue is held at the gate via
svd:hold):svd:go— approve; Half-B dispatch accepts exactly this spec (open risks accepted)svd:firebesidesvd:go— approve AND authorise the Half-B fire from the phone; never on its ownsvd:skip— park it; dispatch refuses it and the issue stays for a humansvd:respec— discard this spec; the next Half-A run re-produces it with this record as prior-attempt contextSpec:
/Users/piers/.local/state/exhaust/groupthink/specs/2026-11-15-dd-469-attention-1-6-foundation-and-authenticated-identity.md— next:codex-svd dispatch --args '<same-json>' --approved-spec-path /Users/piers/.local/state/exhaust/groupthink/specs/2026-11-15-dd-469-attention-1-6-foundation-and-authenticated-identity.mdMeasured facts: Half-A run
20261115T065747Z-90a2939areturned CLEAN with four verification lenses and no blocking defects. The architect's independent review nevertheless found that the draft initializes readiness as ready although only info exists, substitutes a server UUID flag for binding 1.1 client startup, and guesses Forgejo Actions despite the sibling Woodpecker setup. No runtime code has been changed. The canonical target remains clean atf8d652d5199ed.Buckets: Python/SQLite, the immutable mind-spec pin, single writer, independent grants and authenticated info are already decided by ADR0002 and this issue. Exact schema bytes, actual HTTP mapping, lock/time persistence and CI results are verification duties. The sandbox could not read the custom anchor path; the architect has read it and confirms it has no Prior Attempt and explicitly requires truthful partial readiness. No new product choice is needed to retain only implemented tools, leave licensing unchanged pending distribution, or keep exclusive administration offline with a documented revocation completion boundary.
Ruling: re-spec before dispatch. Amend the actual approach, Primary Files and Test Strategy, then independently verify the amended specification. Require quarantined foundation readiness, strict binding 1.1 loading and authenticated pin/profile verification, raw transport bounds/strict JSON, and the reviewed persistence/authentication tests. Use a bounded explicit coding file list; CI remains an architect-owned Woodpecker companion edit outside SVD's forbidden surfaces. Never move CI to another directory to evade that boundary. The complete PR must be reviewed at its actual final head, and no CI/branch-protection claim is made until measured.
Drafted line: RESPEC Attention #3; correct readiness, binding and CI assumptions, verify the amended spec, then implement only this foundation slice under the user's proceed instruction.
Delegation: gate §17 records the standing instruction to “present your leans … apply them, unless extraordinary-level HITL decisions are required” and says the grant persists across sessions. This ruling uses that delegation; it grants no live credential operation, deployment, or T4 merge.
⏸ SVD architect gate: dev/attention-mind-mcp#3 dd-469-attention-1-6-foundation-and-authenticated-identity
Status: CLEAN after 1 rework round(s) · 0 blocking defect(s) · 0 lens(es) INCONCLUSIVE (could not run) · 0 lens(es) DEGRADED (deterministic denial) · complexity
substrate· dispatch efforthighRun:
20261115T072301Z-35a6d0abHeld because: CLEAN but 4 open risk(s) (3 verification · 1 decision) — HOLD-ALL parks everything. The risks, verbatim:
Open risks:
git -C <mind-spec> show 3da6a263e6aeb3f37d25590d6ab755045ff53786:<path> | shasum -a 256for the four resources. Each result must equal the Reference Hashes row and the contract.py digest. On a mismatch, halt. [verification]Change: The target is greenfield at
f8d652d, with no in-repo pattern to mirror. Steps:initcreates queue_id and recovery_generation. Persist an integer-microsecond effective-time floor. Principals and grants are independent rows.Prior art: Mail server.py:1030 for exact-schema serialization; People binding.py for URL/closed-model checks only.
Rework fixed the drift-guard table:
## Source Hashesnow uses the| File | sha256[:12] |format with twelve-hex values.createrow.Files:
pyproject.toml·uv.lock·contracts/attention-v1/schema.json·contracts/attention-v1/requests.schema.json·contracts/attention-v1/types.schema.json·contracts/connectivity/binding-1.1.schema.json·src/attention_mind_mcp/__init__.py·src/attention_mind_mcp/contract.py·src/attention_mind_mcp/binding.py·src/attention_mind_mcp/store.py·src/attention_mind_mcp/authority.py·src/attention_mind_mcp/service.py·src/attention_mind_mcp/mcp_adapter.py·src/attention_mind_mcp/cli.py·tests/test_foundation.py·README.mdWrite-set divergence: present table wins. structured return named pyproject.toml, uv.lock, contracts/attention-v1/schema.json, contracts/attention-v1/requests.schema.json, contracts/attention-v1/types.schema.json, contracts/connectivity/binding-1.1.schema.json, src/attention_mind_mcp/init.py, src/attention_mind_mcp/contract.py, src/attention_mind_mcp/binding.py, src/attention_mind_mcp/store.py, src/attention_mind_mcp/authority.py, src/attention_mind_mcp/service.py, src/attention_mind_mcp/mcp_adapter.py, src/attention_mind_mcp/cli.py, tests/test_foundation.py, README.md, .gitignore, tests/test_transport.py; table names pyproject.toml, uv.lock, contracts/attention-v1/schema.json, contracts/attention-v1/requests.schema.json, contracts/attention-v1/types.schema.json, contracts/connectivity/binding-1.1.schema.json, src/attention_mind_mcp/init.py, src/attention_mind_mcp/contract.py, src/attention_mind_mcp/binding.py, src/attention_mind_mcp/store.py, src/attention_mind_mcp/authority.py, src/attention_mind_mcp/service.py, src/attention_mind_mcp/mcp_adapter.py, src/attention_mind_mcp/cli.py, tests/test_foundation.py, README.md.
Source Hashes table: 1 of 21 row(s) malformed and skipped —
Drift-guard input (spec-pipeline.md:40). Each row issha256[:12]of a target-repo file read at basef8d652d519, re-measured in the Half-A sandbox on 2026-11-15 withshasum -a 256(cut -c1-12. Create rows mark Primary Files absent at that base:createis a literal token, not a hash. All entries are target-repo paths only. Reference/sibling hashes live under## Reference Hashes.) — the drift guard cannot check them; Half-A will report HOLD.Decision: accept the 4 open risk(s) above and dispatch this spec (
svd:go), or park (svd:skip) / re-spec (svd:respec)?Your call (when this issue is held at the gate via
svd:hold):svd:go— approve; Half-B dispatch accepts exactly this spec (open risks accepted)svd:firebesidesvd:go— approve AND authorise the Half-B fire from the phone; never on its ownsvd:skip— park it; dispatch refuses it and the issue stays for a humansvd:respec— discard this spec; the next Half-A run re-produces it with this record as prior-attempt contextSpec:
/Users/piers/.local/state/exhaust/groupthink/specs/2026-11-15-dd-469-attention-1-6-foundation-and-authenticated-identity.md— next:codex-svd dispatch --args '<same-json>' --approved-spec-path /Users/piers/.local/state/exhaust/groupthink/specs/2026-11-15-dd-469-attention-1-6-foundation-and-authenticated-identity.mdMeasured facts: the architect and two independent reviewers checked the accepted foundation against local immutable contract bytes. The amended spec corrects quarantined readiness, binding 1.1 startup, delivery grant distinctions, namespace shape and mandatory MCP structured content. Only info will be served. The target remains the documentation-only base
f8d652d5199ed. Verification run20261115T072301Z-35a6d0abcompleted CLEAN after one rework round, with zero blocking, degraded or inconclusive lenses. The source-hash table now parses correctly. The architect independently re-hashed all four immutable resources; every digest matches.Buckets: Python/SQLite, one writer, independent authority, the portable contract and synthetic-only tests are already decided. Exact library behaviour, strict parsing, persistence and real HTTP checks are implementation verification duties. The existing licence remains unsettled for later distribution; no licence or distribution is added here. Branch readback shows main unprotected and no required checks. CI and branch protection are separate claims.
Ruling: GO with verification riders for the exact sixteen coding paths in the final canonical spec. Accept the rework layout: unit and real HTTP tests share one module but have strict, separately counted markers; the architect adds .gitignore with the CI companion. This preserves every functional requirement and needs no scope-ceiling override. No directory/glob or additional file is authorized. Keep
issueBinding: refs; the architect adds the Woodpecker companion after SVD coding/integration and reviews the complete resulting head. No future domain tool, deployment, live credential operation, branch-protection mutation or merge is granted by this gate.Base floor: at
f8d652d5199ed,uv run python3 -m pytest -p no:cacheprovider tests/test_foundation.py tests/test_transport.py -qexits 1 with no pytest installed. No package or tests exist at this base, soknownFailingTests: []is the explicit empty ID set, not a passing result or later failure allowance.Shortcomings: session-fresh advice lists 15 needs-workaround entries and no blocks-lane. #1423/#1872: canonical host-qualified anchor and explicit checkout. #1127: clean main/origin and actual Forgejo status readback if phantom contexts appear. #1315: external test temporary paths and no nested Git. #1842: actual spec tables amended, later rework diffs reviewed. #1894: target has no import allowlist. #2125: retain dispatch/integrate worktree. #1308, #1379, #1548, #1712, #1835, #1844, #1845 and #1891 concern absent datasources or paths outside this write set; no corresponding workaround is needed.
Drafted line: GO Attention #3 foundation only; dispatch the approved sixteen-file spec, run the actual provider checks, then add and verify the architect-owned CI companion.
Delegation: gate §17 records the standing instruction to “present your leans … apply them, unless extraordinary-level HITL decisions are required” and preserves it across sessions. This ruling applies that grant to the authorized implementation. Final merge authority follows the actual full diff class and required reviews.
svc-svd-writer referenced this issue2026-11-15 08:02:15 +00:00
spec-verify-dispatch Half B for dev/attention-mind-mcp#3 dd-469-attention-1-6-foundation-and-authenticated-identity completed integration verify.
1ae60c1e5d1ae60c1is open and mergeable. Forgejo shows no commit statuses, so remote CI is absent. Local checks are green: 219 tests, ruff, mypy.1ae60c1; remote CI is absent, so the architect's CI result remains a whole-issue gate for #3.1ae60c1has no commit statuses on Forgejo and no required checks were readable; no CI run exists in its history. — reported as absent, not blocking (gh#633)codex-svd ship --run-id 20261115T073300Z-8f126aa8 --confirm-merge)Foundation implementation is published in PR #10, combined head
e14201996653. The completed scope includes durable queue identity/effective time, current independent grants, offline administration, authenticated info-only MCP, binding 1.1 discovery/pinning, immutable packaged schemas, tests and the architect-owned CI companion.Validation: 202 unit + 17 real HTTP transport tests = 219. Final combined-head Python 3.12 run passed all 219, as did Ruff lint/format and strict mypy. Independent specification and security review found no remaining defects; Standards found no documented breach and one nonblocking duplication suggestion. Review and hold record.
Architect HOLD on whole-issue acceptance. SVD integration passed at runtime head
1ae60c1e5db7, but its readyForMerge flag treats absent CI as nonblocking. The approved spec additionally requires actual Linux CI evidence. Woodpecker authenticated reads returned 403 and Forgejo statuses for the combined head are empty. Workflow presence is not successful execution or branch protection. This issue and parent #1 stay open; no merge or deployment occurred.Next: restore CI repository/agent visibility, verify repository activation and pull-request execution, and run the committed workflow on the reviewed head. After green CI, complete the named-PR T4 merge gate and resolve the recorded advisory. Other five product slices remain separate work.
Foundation implementation in PR #10 now has successful Linux CI at head
52431b750304. Pipeline 1 passed quality checks, 202 unit/installed-wheel tests and 17 real HTTP transport tests; Forgejo reports the validation check as successful for that exact head. Three independent sub-agents reconfirmed the final README-only delta.The earlier CI-access hold is resolved: standard curl accesses the documented Woodpecker API, repository 76 is activated and PR runs are enabled. The product remains foundation-only and always quarantined. Merge awaits the operator's named T4 grant and disposition of the optional response-correlation maintenance advisory. This issue remains open until landing; parent #1 and the remaining slices remain open.
Foundation is complete and landed in PR #10 as
9b5a7c0b6e4c. The landed tree equals approved head52431b750304; local main is fast-forwarded and the remote feature branch is deleted. The named T4 grant and advisory ruling and independent review are recorded. The actual merge row includes the grant, review URL and forge-verified merge commit.Post-merge main pipeline 2 also passed on
9b5a7c0b6e4c: quality, unit/installed-wheel and real HTTP transport stages all succeeded. Linux PR pipeline 1 passed at the approved head: 202 unit/installed-wheel tests plus 17 real HTTP transport tests, Ruff lint/format and strict mypy. Local Python 3.12 full-suite execution also passed all 219 tests. Commands:uv run ruff check .,uv run ruff format --check .,uv run mypy src,uv run python3 -m pytest -m unit, anduv run python3 -m pytest -m transport; wheel installation/resource checks are exercised by the unit suite. See the linked review for acceptance and regression evidence.The provider exposes only authenticated
attention_info_v1, always reports quarantine, and has 13 unsupported operations. Its six declared capacity limits are not yet enforced; managed backup/cleanup and complete provider conformance remain later slices. Main has no enforced required-check protection. The operator accepted deferring the optional response-correlation duplication cleanup. No deployment or package release occurred.Parent #1 remains open at 1 of 6 slices complete. The next ready frontier is #4, durable queue and commands; it has not been dispatched.