Secret errors name the config key of the file that failed #92
Labels
No labels
bug
enhancement
epic
needs-info
needs-triage
ready-for-agent
ready-for-human
svd:fire
svd:go
svd:hold
svd:respec
svd:skip
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
dev/people-mind-mcp#92
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?
Problem
When
peoplemind check,syncorapicannot read a store or auth secret file, it printssecret=error code=<code>and exits 2. The line does not name the file. Source secrets already printsource=<name>first, so only the store salt and the auth tokens give no location.Seen live on rc.11 (2026-11-05).
peoplemind checkin theapicontainer printedsecret=error code=secret-unreadable. The failed file was the tombstone salt, which theprepareinit container gives only tosync(README, Kubernetes section). The cause could be found only by readingcli.py.Change
Add the config key of the failed file to the line, in the same
at=form thatconfig=erroralready uses (cli.py:98):secret=error code=<code> at=store.tombstone_salt_file, from the salt read atcli.py:114.secret=error code=<code> at=auth.read_token_fileorat=auth.write_token_file, fromTokens.loadatcli.py:105. The caller must know which of the two failed, soTokens.load(auth.py) needs to report the key with the error, for example throughConfigError.locations.source=<name> secret=error code=<code>lines stay as they are.The line gives the config key only. It never prints the file path or any part of the file.
In the README Kubernetes section, add one sentence: run
peoplemind checkin thesynccontainer, becausecheckreads the tombstone salt.Acceptance criteria
tests/test_config_cli.py::test_check_bad_salt_file_exits_2expectssecret=error code=<code> at=store.tombstone_salt_file\nfor both cases.tests/test_config_cli.py::test_api_bad_token_exits_2expectssecret=error code=secret-unreadable at=auth.read_token_file\n.at=auth.write_token_file.make checkpasses.Out of scope
apiandsynccontainers. It is by design (README; ADR 0001).source=lines, the error codes, and the exit codes.Context
src/people_mind_mcp/cli.py,src/people_mind_mcp/auth.py,tests/test_config_cli.py,README.md.Filed under: operator word "file it" sha256:f61c822d8f15
⏸ SVD architect gate: dev/people-mind-mcp#92 secret-errors-name-the-config-key-of-the-file-that-failed
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:
20261105T040526Z-984bdd36Held because: CLEAN but 2 open risk(s) (1 verification · 1 decision) — HOLD-ALL parks everything. The risks, verbatim:
Open risks:
make checkon pristine93df63ebefore editing, then run it again after the change and confirm it is green. It must also confirm thatuv run python3 -m pytest tests/test_config_cli.py tests/test_auth.py tests/test_carddav.py -qpasses, with test_auth.py and test_carddav.py unedited. [verification]Change: Copy the
config=error … at={','.join(exc.locations)}line at cli.py:98. In auth.py, make every ConfigError raised by Tokens.load (lines 44-50) carry its config key in ConfigError.locations. Do this either by giving _read_token akeyparameter or by wrapping each call site, re-raising with ConfigError(exc.code, [key]) from None. The keys are "auth.read_token_file" and "auth.write_token_file". For tokens-equal, the lean gives both keys. Keep the code unchanged so that str(exc) is still the code. In cli.py, change line 107 to printat={','.join(exc.locations)}. Change line 116 to print the literalat=store.tombstone_salt_file. Leave read_secret_file and the source= lines (cli.py:125-131) untouched. Update the expected output in test_check_bad_salt_file_exits_2 and test_api_bad_token_exits_2, and add tests for a missing write token and for equal tokens. Each of these tests asserts that no path or token appears in the output. Add one sentence to README.md:152 telling operators to runpeoplemind checkin the sync container.Files:
src/people_mind_mcp/auth.py·src/people_mind_mcp/cli.py·tests/test_config_cli.py·README.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-05-secret-errors-name-the-config-key-of-the-file-that-failed.md— next:codex-svd dispatch --args '<same-json>' --approved-spec-path /Users/piers/.local/state/exhaust/groupthink/specs/2026-11-05-secret-errors-name-the-config-key-of-the-file-that-failed.mdspec-verify-dispatch Half B for dev/people-mind-mcp#92 secret-errors-name-the-config-key-of-the-file-that-failed completed integration verify.
2b97c5f564codex-svd ship --run-id 20261105T042222Z-dc1df5f2 --confirm-merge)