Implement Attention foundation and authenticated identity #10

Merged
Collaborator

Summary

Attention now has a runnable foundation for authenticated identity discovery. Its only public tool is attention_info_v1; it always reports quarantine, and its six declared capacity limits are not yet enforced. This is slice 1 of the accepted six-slice product plan.

file credential → current principal and independent grants
authenticated HTTP/MCP → info service → single-writer SQLite identity
binding 1.1 → authenticated discovery → pinned identity and closed readiness gate
offline CLI → stop / update authority / restart with unchanged identity

The package includes the four byte-identical schemas from mind-spec 3da6a263e6ae, locked dependencies, isolated wheel verification and a secret-free Woodpecker validation workflow. It adds no deployment or future domain operations.

Refs #3. Merged as 9b5a7c0b6e4c under the named T4 operator grant; foundation #3 is complete and parent #1 remains open. The operator accepted deferring the optional duplication cleanup. The landed tree equals reviewed head 52431b750304. SVD integration passed at runtime head 1ae60c1e5db7, with only the architect CI/ignore/README companion added afterward. Linux CI passed at the reviewed head and post-merge main pipeline 2 passed on the landed commit.

Evidence

  • Before: base f8d652d5199e contained five documentation files and no runtime or tests.
  • After: Linux CI pipeline 1 passed on 52431b750304 with Python 3.12.16: 202 unit/installed-wheel tests in 20.17s and 17 real HTTP transport tests in 38.39s. Ruff lint/format and strict mypy passed. Local Python 3.12 full-suite evidence remains 219 passed in 69.36s; the final commit changes README only.
  • Installed-wheel proof loads and hash-checks every schema from an isolated environment while denying checkout access. Unit evidence is separated from real subprocess HTTP/MCP evidence by exclusive markers.
  • Independent adversarial checks reproduced blocking FIFO reads, decompression before response limits, and oversized logical JSON/SSE accepted after normalization. The fixes have regressions that fail against the original code and pass after correction.
  • Final standards, specification and security review: specification: zero findings; security: zero remaining findings; standards: zero documented breaches and one nonblocking duplication suggestion in response-envelope checks.
  • Woodpecker repository 76 is active with PR validation enabled and all three privileged trust settings false. The pipeline ran as pull_request for refs/pull/10/head on the Meridian Linux dev agent; Forgejo reports ci/woodpecker/pr/validation: success for the exact head. Main readback reports protected=false, enable_status_check=false, and no required contexts; passing CI does not establish enforcement.

Merge Danger

Door: two-way

This branch adds the foundation and can be reverted. It does not activate services, create production credentials, migrate live data or publish a package.

Blast Radius: foundation

Storage, authentication and binding interfaces underpin subsequent slices. The service remains quarantined until later work supplies the domain operations and acceptance evidence.

## Summary Attention now has a runnable foundation for authenticated identity discovery. Its only public tool is `attention_info_v1`; it always reports quarantine, and its six declared capacity limits are not yet enforced. This is slice 1 of the accepted six-slice product plan. ```text file credential → current principal and independent grants authenticated HTTP/MCP → info service → single-writer SQLite identity binding 1.1 → authenticated discovery → pinned identity and closed readiness gate offline CLI → stop / update authority / restart with unchanged identity ``` The package includes the four byte-identical schemas from mind-spec `3da6a263e6ae`, locked dependencies, isolated wheel verification and a secret-free Woodpecker validation workflow. It adds no deployment or future domain operations. Refs #3. **Merged as `9b5a7c0b6e4c` under [the named T4 operator grant](https://git.groupthink.asia/dev/attention-mind-mcp/pulls/10#issuecomment-39905); foundation #3 is complete and parent #1 remains open.** The operator accepted deferring the optional duplication cleanup. The landed tree equals reviewed head `52431b750304`. SVD integration passed at runtime head `1ae60c1e5db7`, with only the architect CI/ignore/README companion added afterward. Linux CI passed at the reviewed head and [post-merge main pipeline 2](https://ci.groupthink.asia/repos/76/pipeline/2/1) passed on the landed commit. ## Evidence - **Before:** base `f8d652d5199e` contained five documentation files and no runtime or tests. - **After:** [Linux CI pipeline 1](https://ci.groupthink.asia/repos/76/pipeline/1/1) passed on `52431b750304` with Python 3.12.16: 202 unit/installed-wheel tests in 20.17s and 17 real HTTP transport tests in 38.39s. Ruff lint/format and strict mypy passed. Local Python 3.12 full-suite evidence remains 219 passed in 69.36s; the final commit changes README only. - Installed-wheel proof loads and hash-checks every schema from an isolated environment while denying checkout access. Unit evidence is separated from real subprocess HTTP/MCP evidence by exclusive markers. - Independent adversarial checks reproduced blocking FIFO reads, decompression before response limits, and oversized logical JSON/SSE accepted after normalization. The fixes have regressions that fail against the original code and pass after correction. - Final standards, specification and security review: specification: zero findings; security: zero remaining findings; standards: zero documented breaches and one nonblocking duplication suggestion in response-envelope checks. - Woodpecker repository 76 is active with PR validation enabled and all three privileged trust settings false. The pipeline ran as `pull_request` for `refs/pull/10/head` on the Meridian Linux dev agent; Forgejo reports `ci/woodpecker/pr/validation: success` for the exact head. Main readback reports `protected=false`, `enable_status_check=false`, and no required contexts; passing CI does not establish enforcement. ## Merge Danger **Door:** two-way This branch adds the foundation and can be reverted. It does not activate services, create production credentials, migrate live data or publish a package. **Blast Radius:** foundation Storage, authentication and binding interfaces underpin subsequent slices. The service remains quarantined until later work supplies the domain operations and acceptance evidence.
Add the locked Python package and four hash-verified schemas pinned to mind-spec 3da6a263e6aeb3f37d25590d6ab755045ff53786. Implement guarded WAL/FULL SQLite storage, durable identity and effective time, file credentials, independent grants and offline administration.

Expose only authenticated attention_info_v1 with exact schemas, bounded private errors and always-quarantined status. Add binding 1.1 validation, explicit bootstrap and authenticated pinned discovery with a closed readiness gate. Document foundation limits and deferred capabilities.

Validation passed: 166 unit tests, 17 real transport tests and 183 full-suite tests; ruff and strict mypy passed. The unit suite builds and installs a wheel outside the checkout and verifies all four resources with checkout access denied.

Refs #3. CI companion and combined-head acceptance remain architect-owned.

Closes #3
Co-Authored-By: gpt-6.1-sol <noreply@openai.com>
piers force-pushed feat/svd-dev-attention-mind-mcp-3-dd-469-attention-1-6-founda-8f126aa8 from c02c7c2c57 to 1ae60c1e5d 2026-11-15 08:07:06 +00:00 Compare
Run locked dependency installation, quality checks, unit/wheel proof and real HTTP transport tests in a secret-free Woodpecker lane. Add ignore rules and document measured local results and the unresolved remote CI activation/runner gate.

Refs #3. This companion follows completed SVD coding/integration; issue acceptance remains open pending actual CI and final review.

Co-Authored-By: Codex GPT-5 <noreply@openai.com>

This was generated by AI during triage.

Review and acceptance record

PR #10, base f8d652d5199e, final combined head e14201996653. Three independent sub-agents reviewed Standards, Spec and security; final companion deltas were checked against the exact committed head. The security-review skill is unavailable in this environment, so the security review was manual and included independent regression probes.

Standards

Zero documented-standard breaches. One nonblocking heuristic remains open. The domain service, authority, store, transport and CLI are separated as ADR 0002 requires. Contract bytes are pinned, foundation limits remain explicit, and every authored commit has exactly one prescribed attribution trailer and references #3 without an automatic issue-closing keyword.

Possible Duplicated Code: binding.py:184–192, 223–230 and 269–275 repeat JSON-RPC version/integer-ID/correlation checks. A small shared predicate could reduce later drift while retaining operation-specific checks. Current checks are conservative; this is maintainability advice, not evidence of an authorization defect. No waiver or accepted-risk ruling is claimed. The combined-head CI/ignore/README delta adds no further finding.

Spec

Zero confirmed implementation findings. Reviewed the approved foundation spec, ADR 0002 and immutable mind-spec pin against runtime code and acceptance tests. Strict raw/logical validation, pinned package resources, SQLite identity/time/ownership, current independent authority, offline administration, authenticated info-only transport, and bootstrap/pinned binding handshake match the coding scope. Quarantine and unsupported capabilities remain truthful.

Combined-head CI/ignore/README delta is authorised and consistent. Actual Linux CI evidence remains an outstanding whole-issue gate under spec lines 195 and 257; neither coding completion nor this review satisfies it.

Security

Zero remaining actionable findings. Independent probes verified prompt FIFO refusal, compressed-response refusal before body consumption, and exact raw JSON/SSE logical bounds. The companion's interpreter-spelling finding is resolved in committed python3 -m pytest commands. Authentication/context isolation, grants, credential handling, binding/redirect/timeout behavior and SQLite durability were inspected. Runtime, tests, schemas and dependencies are unchanged between the integrated and combined heads.

Validation and hold

  • SVD integration 20261115T073300Z-8f126aa8: 202 unit + 17 transport = 219 full-suite tests, Ruff and strict mypy passed at 1ae60c1e5db7; zero rework rounds.
  • Final combined head: Python 3.12, 219 passed in 69.36s; Ruff lint/format and strict mypy pass. Installed-wheel isolation checks all four immutable resource hashes while denying checkout access. All tests carry exactly one unit/transport marker.
  • CI YAML structure, trigger policy, digest-pinned images, separate checks and secret-free configuration validated locally. Authenticated Woodpecker reads returned 403; Forgejo statuses at final head return an empty list. Actual activation, runner availability and Linux execution remain unverified. Main readback was unprotected with no required status checks.
  • The runner's readyForMerge flag applies to its coding scope and treats absent CI as nonblocking. It is not whole-issue acceptance: architect HOLD remains for actual CI verification and the later T4 named-PR merge gate. No merge, deployment or issue closure occurred.
  • Runner-appended automatic closure text was corrected to Refs before integration, and attribution follows the current explicit AGENTS instruction. Original run artifacts remain unmodified.

Standards: 0 documented breaches, 1 nonblocking heuristic; Spec: 0 implementation findings; Security: 0 remaining findings. Refs #3; parent #1 remains open.

> *This was generated by AI during triage.* ## Review and acceptance record PR #10, base `f8d652d5199e`, final combined head `e14201996653`. Three independent sub-agents reviewed Standards, Spec and security; final companion deltas were checked against the exact committed head. The security-review skill is unavailable in this environment, so the security review was manual and included independent regression probes. ## Standards **Zero documented-standard breaches. One nonblocking heuristic remains open.** The domain service, authority, store, transport and CLI are separated as ADR 0002 requires. Contract bytes are pinned, foundation limits remain explicit, and every authored commit has exactly one prescribed attribution trailer and references #3 without an automatic issue-closing keyword. Possible Duplicated Code: `binding.py:184–192`, `223–230` and `269–275` repeat JSON-RPC version/integer-ID/correlation checks. A small shared predicate could reduce later drift while retaining operation-specific checks. Current checks are conservative; this is maintainability advice, not evidence of an authorization defect. No waiver or accepted-risk ruling is claimed. The combined-head CI/ignore/README delta adds no further finding. ## Spec **Zero confirmed implementation findings.** Reviewed the approved foundation spec, ADR 0002 and immutable mind-spec pin against runtime code and acceptance tests. Strict raw/logical validation, pinned package resources, SQLite identity/time/ownership, current independent authority, offline administration, authenticated info-only transport, and bootstrap/pinned binding handshake match the coding scope. Quarantine and unsupported capabilities remain truthful. Combined-head CI/ignore/README delta is authorised and consistent. Actual Linux CI evidence remains an outstanding whole-issue gate under spec lines 195 and 257; neither coding completion nor this review satisfies it. ## Security **Zero remaining actionable findings.** Independent probes verified prompt FIFO refusal, compressed-response refusal before body consumption, and exact raw JSON/SSE logical bounds. The companion's interpreter-spelling finding is resolved in committed `python3 -m pytest` commands. Authentication/context isolation, grants, credential handling, binding/redirect/timeout behavior and SQLite durability were inspected. Runtime, tests, schemas and dependencies are unchanged between the integrated and combined heads. ## Validation and hold - SVD integration `20261115T073300Z-8f126aa8`: 202 unit + 17 transport = 219 full-suite tests, Ruff and strict mypy passed at `1ae60c1e5db7`; zero rework rounds. - Final combined head: Python 3.12, 219 passed in 69.36s; Ruff lint/format and strict mypy pass. Installed-wheel isolation checks all four immutable resource hashes while denying checkout access. All tests carry exactly one unit/transport marker. - CI YAML structure, trigger policy, digest-pinned images, separate checks and secret-free configuration validated locally. Authenticated Woodpecker reads returned 403; Forgejo statuses at final head return an empty list. Actual activation, runner availability and Linux execution remain unverified. Main readback was unprotected with no required status checks. - The runner's readyForMerge flag applies to its coding scope and treats absent CI as nonblocking. It is **not** whole-issue acceptance: architect HOLD remains for actual CI verification and the later T4 named-PR merge gate. No merge, deployment or issue closure occurred. - Runner-appended automatic closure text was corrected to Refs before integration, and attribution follows the current explicit AGENTS instruction. Original run artifacts remain unmodified. Standards: 0 documented breaches, 1 nonblocking heuristic; Spec: 0 implementation findings; Security: 0 remaining findings. Refs #3; parent #1 remains open.
Record verified Attention CI activation
All checks were successful
ci/woodpecker/pr/validation Pipeline was successful
52431b7503
Refs #3

Co-Authored-By: Codex GPT-5 <noreply@openai.com>

This was generated by AI during triage.

Current-head review and CI evidence

PR #10, base f8d652d5199e, head 52431b750304. This record supersedes the CI-access hold in the previous review. The final commit changes only README to record verified activation. Three independent sub-agents confirmed that runtime, tests, schemas, dependencies and workflow are unchanged from their reviewed combined head.

  • Standards: zero documented breaches. The existing response-correlation duplication heuristic remains a maintenance suggestion; it identifies no demonstrated correctness or security defect.
  • Spec: zero implementation or documentation findings. The required actual Linux execution is now evidenced by the run below.
  • Security: zero remaining actionable findings. The previous independent regression proofs carry forward unchanged; manual security review substitutes for the unavailable security-review skill.

Woodpecker pipeline 1 passed on this exact head: event pull_request, ref refs/pull/10/head, workflow validation, Meridian dev agent 14, Python 3.12.16. The architect read back pipeline/step results and logs: Ruff lint/format and strict mypy passed; 202 unit/installed-wheel tests passed in 20.17s and 17 real HTTP transport tests passed in 38.39s. Forgejo's combined status is success, with context ci/woodpecker/pr/validation. This adds actual Linux evidence to the existing local 219-test full-suite proof.

The earlier 403 was Cloudflare error 1010 for the Python urllib client signature. Standard curl succeeds with the existing documented token integration. Repository 76 is now active with allow_pr=true; privileged network, volume and security trust flags remain false. No credential was minted or rotated and the validation workflow holds no secrets. Branch-protection enforcement remains separate and unconfigured in the last writer-visible readback.

Proposed merge disposition

The implementation and CI gates are satisfied. Merge remains held for the operator's named T4 grant under gate §22.1. Proposed disposition for the duplication advisory: defer a shared correlation predicate because all current paths enforce the checks, no correctness/security failure was found, and this foundation slice has passed the relevant regressions. This is a proposal, not a recorded waiver or operator ruling; gate §19 requires its disposition before merge.

Refs #3. Issue #3 remains open until landing; parent #1 remains open for later slices. No merge, deployment, release or production service activation occurred.

> *This was generated by AI during triage.* ## Current-head review and CI evidence PR #10, base `f8d652d5199e`, head `52431b750304`. This record supersedes the CI-access hold in [the previous review](https://git.groupthink.asia/dev/attention-mind-mcp/pulls/10#issuecomment-39880). The final commit changes only README to record verified activation. Three independent sub-agents confirmed that runtime, tests, schemas, dependencies and workflow are unchanged from their reviewed combined head. - **Standards:** zero documented breaches. The existing response-correlation duplication heuristic remains a maintenance suggestion; it identifies no demonstrated correctness or security defect. - **Spec:** zero implementation or documentation findings. The required actual Linux execution is now evidenced by the run below. - **Security:** zero remaining actionable findings. The previous independent regression proofs carry forward unchanged; manual security review substitutes for the unavailable security-review skill. [Woodpecker pipeline 1](https://ci.groupthink.asia/repos/76/pipeline/1/1) passed on this exact head: event `pull_request`, ref `refs/pull/10/head`, workflow `validation`, Meridian dev agent 14, Python 3.12.16. The architect read back pipeline/step results and logs: Ruff lint/format and strict mypy passed; **202 unit/installed-wheel tests passed in 20.17s and 17 real HTTP transport tests passed in 38.39s**. Forgejo's combined status is `success`, with context `ci/woodpecker/pr/validation`. This adds actual Linux evidence to the existing local 219-test full-suite proof. The earlier 403 was Cloudflare error 1010 for the Python urllib client signature. Standard curl succeeds with the existing documented token integration. Repository 76 is now active with `allow_pr=true`; privileged network, volume and security trust flags remain false. No credential was minted or rotated and the validation workflow holds no secrets. Branch-protection enforcement remains separate and unconfigured in the last writer-visible readback. ## Proposed merge disposition The implementation and CI gates are satisfied. Merge remains held for the operator's named T4 grant under gate §22.1. Proposed disposition for the duplication advisory: defer a shared correlation predicate because all current paths enforce the checks, no correctness/security failure was found, and this foundation slice has passed the relevant regressions. This is a proposal, not a recorded waiver or operator ruling; gate §19 requires its disposition before merge. Refs #3. Issue #3 remains open until landing; parent #1 remains open for later slices. No merge, deployment, release or production service activation occurred.

This was generated by AI during triage.

Measured facts

PR #10 is open and mergeable at approved head 52431b750304; base remains f8d652d5199e. Linux pipeline 1 and Forgejo validation status are successful for that exact head: 202 unit/installed-wheel plus 17 transport tests, Ruff lint/format and strict mypy passed. The final independent review record has zero documented Standards breaches, zero Spec findings and zero remaining actionable security findings.

Buckets

Already decided: foundation scope and quarantine, immutable contract pin, successful Linux execution and independent reviews. Verification: pin the squash merge to the approved head, verify the landed tree, then close foundation issue #3 and update epic #1. Genuinely open: later implementation slices and full product acceptance remain separate work.

Ruling and delegation

Operator prompt: “Approve the T4 merge of PR #10 at 52431b7, with minor duplication cleanup deferred?” Operator reply: “Approve”. Grant id: attention-pr10-t4-20261115-52431b7. This names the PR and T4 class under gate §22.1 and accepts the proposed advisory disposition under §19: defer the minor duplicated response-correlation predicate. All current paths enforce the checks, no correctness/security defect was found, and their regression coverage is green. The earlier hold is lifted for this approved head.

Drafted line

Squash-merge dev/attention-mind-mcp#10 with head_commit_id=52431b750304, delete its remote feature branch, verify the landed tree and record the merge. After landing, mark foundation issue #3 complete; keep parent #1 open. This grant does not authorise deployment, publishing, credential changes or subsequent slices.

> *This was generated by AI during triage.* ## Measured facts PR #10 is open and mergeable at approved head `52431b750304`; base remains `f8d652d5199e`. [Linux pipeline 1](https://ci.groupthink.asia/repos/76/pipeline/1/1) and Forgejo validation status are successful for that exact head: 202 unit/installed-wheel plus 17 transport tests, Ruff lint/format and strict mypy passed. [The final independent review record](https://git.groupthink.asia/dev/attention-mind-mcp/pulls/10#issuecomment-39895) has zero documented Standards breaches, zero Spec findings and zero remaining actionable security findings. ## Buckets Already decided: foundation scope and quarantine, immutable contract pin, successful Linux execution and independent reviews. Verification: pin the squash merge to the approved head, verify the landed tree, then close foundation issue #3 and update epic #1. Genuinely open: later implementation slices and full product acceptance remain separate work. ## Ruling and delegation Operator prompt: “Approve the T4 merge of PR #10 at `52431b7`, with minor duplication cleanup deferred?” Operator reply: **“Approve”**. Grant id: `attention-pr10-t4-20261115-52431b7`. This names the PR and T4 class under gate §22.1 and accepts the proposed advisory disposition under §19: defer the minor duplicated response-correlation predicate. All current paths enforce the checks, no correctness/security defect was found, and their regression coverage is green. The earlier hold is lifted for this approved head. ## Drafted line Squash-merge dev/attention-mind-mcp#10 with `head_commit_id=52431b750304`, delete its remote feature branch, verify the landed tree and record the merge. After landing, mark foundation issue #3 complete; keep parent #1 open. This grant does not authorise deployment, publishing, credential changes or subsequent slices.
svc-agent-writer deleted branch feat/svd-dev-attention-mind-mcp-3-dd-469-attention-1-6-founda-8f126aa8 2026-11-15 08:57:52 +00:00

This was generated by AI during triage.

Foundation is complete and landed in PR #10 as 9b5a7c0b6e4c. The landed tree equals approved head 52431b750304; 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, and uv 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.

> *This was generated by AI during triage.* Foundation is complete and landed in [PR #10](https://git.groupthink.asia/dev/attention-mind-mcp/pulls/10) as [`9b5a7c0b6e4c`](https://git.groupthink.asia/dev/attention-mind-mcp/commit/9b5a7c0b6e4c3b7baded63a4ed7c8a569828030e). The landed tree equals approved head `52431b750304`; local main is fast-forwarded and the remote feature branch is deleted. The [named T4 grant and advisory ruling](https://git.groupthink.asia/dev/attention-mind-mcp/pulls/10#issuecomment-39905) and [independent review](https://git.groupthink.asia/dev/attention-mind-mcp/pulls/10#issuecomment-39895) are recorded. The actual merge row includes the grant, review URL and forge-verified merge commit. Post-merge [main pipeline 2](https://ci.groupthink.asia/repos/76/pipeline/2/1) also passed on `9b5a7c0b6e4c`: quality, unit/installed-wheel and real HTTP transport stages all succeeded. [Linux PR pipeline 1](https://ci.groupthink.asia/repos/76/pipeline/1/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`, and `uv 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.
Sign in to join this conversation.
No description provided.