Sync: the api must not read the Feeder token #31
Labels
No labels
boundary:crosses
bug
enhancement
epic
needs-info
needs-triage
ready-for-agent
ready-for-human
svd:go
svd:hold
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
dev/messages-mind-mcp#31
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?
Parent: #6. Records: ADR 0004 (
docs/adr/0004-source-mac-and-feeder-network-face.md),SECURITY.md, the token table inREADME.md.What to build
The Feeder token is the only credential for the Feeder (ADR 0004). The token table in the README gives it to
syncand to no other process.The code from #12 does not hold that line.
start()insrc/messages_mind_mcp/startup.pyreadsfeeder.token_filefor every verb when the config holds[feeder]. Anapiprocess with such a config holds the Feeder token in memory and never uses it. A fault in the api could then expose a credential that the api has no need for.start()reads the Feeder token only for the verbs that need it.syncuses the token.checkvalidates the token file.apiverb does not openfeeder.token_file, also when the config holds[feeder].Secrets.feeder_tokenisNonein anapiprocess.README.mdandSECURITY.mdstate which verb opens which secret file. They state that the api never opens the Feeder token file.Acceptance criteria
apiverb does not openfeeder.token_file: the config holds[feeder], the token file is absent, the start succeeds andfeeder_tokenisNone.syncandcheckrefuse a Feeder token file that is absent, shorter than 32 characters or open to another user. The output holds a code and the locationfeeder.token_file, and no part of the file.checkwith[feeder]still validates the token file and makes no request.SECURITY.mdagree with the code.Blocked by
Filed under: operator word "go" sha256:4cd0e21a9a07
⏸ SVD architect gate: dev/messages-mind-mcp#31 sync-the-api-must-not-read-the-feeder-token
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
standard· dispatch effortmediumRun:
20261113T090302Z-6f50569fHeld because: CLEAN but 2 open risk(s) (1 verification · 1 decision) — HOLD-ALL parks everything. The risks, verbatim:
Open risks:
validationlane (make check) is green on the PR branch, and that the five new tests in tests/test_config_cli.py report as passed in that run. [verification]Change: Extend the existing conditional-read pattern in start() at src/messages_mind_mcp/startup.py:57-71. Add
type Verb = Literal["check","api","sync"]andFEEDER_TOKEN_VERBS: Final = frozenset({"check","sync"}). Makeverba required parameter: start(config_path, verb). Gate the feeder.token_file read withcfg.feeder is not None and verb in FEEDER_TOKEN_VERBS, so it fails closed. Leave refuse_write_token_files and Config.secret_files() unchanged: every verb still lists the Feeder token's directory. cli.py:69 passes args.verb. Update all 8 start() calls in tests/test_config_cli.py. Add tests for:secret=error code=<c> at=feeder.token_file;README and SECURITY.md each get a which-verb-opens-which-secret-file statement, and both contain "The api never opens the Feeder token file."
Files:
src/messages_mind_mcp/startup.py·src/messages_mind_mcp/cli.py·tests/test_config_cli.py·README.md·SECURITY.mdDecision: accept the 2 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-13-sync-the-api-must-not-read-the-feeder-token.md— next:codex-svd dispatch --args '<same-json>' --approved-spec-path /Users/piers/.local/state/exhaust/groupthink/specs/2026-11-13-sync-the-api-must-not-read-the-feeder-token.mdspec-verify-dispatch Half B for dev/messages-mind-mcp#31 sync-the-api-must-not-read-the-feeder-token completed integration verify.
0ff48a76f10ff48a7: ci/woodpecker/pr/validation green. Local: ruff, format, mypy clean; 510 tests passed.codex-svd ship --run-id 20261113T104723Z-30f100cd --confirm-merge)