Startup secret check follow-ups from the PR #98 reviews: pin the reported pair when two pairs collide #99

Open
opened 2026-11-16 11:45:24 +00:00 by svc-agent-writer · 0 comments

Non-blocking findings from the two fresh merge-gate reviews of PR #98 (#75) at fc9a45d. PR #98 merged as c6c9e1f.

Test gap

  1. No test pins "the reported pair stays the same when two pairs collide". The spec for #75 states this invariant. The mutant pair = salt_pair or pair in src/messages_mind_mcp/startup.py survives the full suite, because no test has two collisions at once. Example: a read token equal to the evidence token, plus a salt of "\x1c" + KEY. Base and PR report auth.read_token_file,auth.evidence_token_file; the mutant reports the key/salt pair. The token-vs-key loop had the same gap before #98. Fix: add one test with two collisions, and assert the reported at= pair.

Notes

  1. The NBSP parametrize ids print raw \xa0 characters. Explicit ids= would make them readable.
  2. The NBSP limit has no salt-side copy test. The spec does not require one; the key-format half and the non-ASCII skip are covered.

Blocked by

None.


Filed under: operator grant "file tickets, merge T4, label/de-label svd:go, continue svd and batch-svd (with auto-gate)" (2026-11-16, DD-469 minds workspace), merge gate of PR #98.

Non-blocking findings from the two fresh merge-gate reviews of PR #98 (#75) at `fc9a45d`. PR #98 merged as `c6c9e1f`. ## Test gap 1. **No test pins "the reported pair stays the same when two pairs collide".** The spec for #75 states this invariant. The mutant `pair = salt_pair or pair` in `src/messages_mind_mcp/startup.py` survives the full suite, because no test has two collisions at once. Example: a read token equal to the evidence token, plus a salt of `"\x1c" + KEY`. Base and PR report `auth.read_token_file,auth.evidence_token_file`; the mutant reports the key/salt pair. The token-vs-key loop had the same gap before #98. Fix: add one test with two collisions, and assert the reported `at=` pair. ## Notes 2. The NBSP parametrize ids print raw `\xa0` characters. Explicit `ids=` would make them readable. 3. The NBSP limit has no salt-side copy test. The spec does not require one; the key-format half and the non-ASCII skip are covered. ## Blocked by None. -------- Filed under: operator grant "file tickets, merge T4, label/de-label svd:go, continue svd and batch-svd (with auto-gate)" (2026-11-16, DD-469 minds workspace), merge gate of PR #98.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
dev/messages-mind-mcp#99
No description provided.