Startup: each verb opens only the secret files that it uses #33
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#33
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 0006 (
docs/adr/0006-retention-deletion-and-forget.md) for the tombstone salt,SECURITY.md, and the table "Which verb opens which secret file" inREADME.md.What to build
After #31, the api does not open the Feeder token file. Two more reads have no use:
syncopensauth.read_token_fileandauth.evidence_token_filewhen the config holds[auth]. It never uses a token.apiopensstore.tombstone_salt_file. It never uses the salt.Give every secret file a closed set of verbs that open it, in the same form as
FEEDER_TOKEN_VERBS. A verb outside the set never opens the file.checkkeeps every file, because its job is to validate them.The write-token refusal does not change. Every verb still lists the directory of every secret file that the config names.
Acceptance criteria
syncdoes not open an auth token file. The config holds[auth], the files are absent, andsync --oncestill starts.apidoes not open the tombstone salt file.checkstill refuses each secret file that is absent, too short or open to another user, with a code and a location.SECURITY.mdstates the rule in one sentence.Blocked by
Filed under: operator word "Go" sha256:6cc8519b9158
⏸ SVD architect gate: dev/messages-mind-mcp#33 startup-each-verb-opens-only-the-secret-files-that-it-uses
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:
20261113T120736Z-6f02d4f2Held because: CLEAN but 2 open risk(s) (2 decision) — HOLD-ALL parks everything. The risks, verbatim:
Open risks:
secrets.salt is Nonereuses the CLI secret-error line (secret=error code=secret-missing at=store.tombstone_salt_file, exit 2) on a path the CLI cannot reach; it exists to narrow the type for mypy strict. Is this acceptable, or should Secrets keep salt: bytes and the api get a separate Secrets type (a wider change)? [decision]Change: Mirror FEEDER_TOKEN_VERBS (startup.py:15) and its gated read (startup.py:73-77). Add these Final[frozenset[Verb]] sets: KEY_FILE_VERBS (all verbs), TOMBSTONE_SALT_VERBS {check, sync}, AUTH_TOKEN_VERBS {check, api}. Add VERBS and a SECRET_FILE_VERBS mapping keyed by config location. Gate the salt read (line 60) and the auth block (line 62) on
verb in <set>. Widen Secrets.salt tobytes | Noneand keep repr=False. Leave refuse_write_token_files unchanged. In sync._run (sync.py:248), add a mypy-narrowing guard:secret=error code=secret-missing at=store.tombstone_salt_file, exit 2. Rebuild the README table from SECRET_FILE_VERBS and replace the doc test at test_config_cli.py:651-657 with a full-table render comparison. Add a one-sentence rule to SECURITY.md. Write new tests that mirror the os.open spy test at test_config_cli.py:539-571 and the sync --once fake at :665-680.Files:
src/messages_mind_mcp/startup.py·src/messages_mind_mcp/sync.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-startup-each-verb-opens-only-the-secret-files-that-it-uses.md— next:codex-svd dispatch --args '<same-json>' --approved-spec-path /Users/piers/.local/state/exhaust/groupthink/specs/2026-11-13-startup-each-verb-opens-only-the-secret-files-that-it-uses.mdread_secret_file#42spec-verify-dispatch Half B for dev/messages-mind-mcp#33 startup-each-verb-opens-only-the-secret-files-that-it-uses completed integration verify.
269ae7734ecodex-svd ship --run-id 20261113T124005Z-7d15c115 --confirm-merge)read_secret_file#42