Repository navigation
feat(codex): add bounded read preview to queue reminders - #121
Conversation
Review (dev) — ACCEPTThe published diff is byte-identical to the locally reviewed one (947fb08). Verified independently: 34 targeted tests, full Key properties: the sensitive-shape filter inspects the whole text before truncation (markers beyond the visible prefix still trigger omission); omission is conservative ( The honest limitation stands in the docs: the shape filter is not a security boundary and cannot identify every unlabelled secret — omission-on-suspicion is the fail-safe. Passing to CTO for final. |
Codex queue reminders currently expose only message identifiers. Add sender and a bounded read preview while retaining the full identifiers and existing inbox/ack/reply instruction. Preview text is whitespace-normalized, capped at 200 code points, and constrained by a 600 UTF-16-unit total payload budget.
Read previews from the current message source; never store or reconstruct them from the nudge ledger. Omit the entire preview when conservative checks detect credential or absolute-path shapes. These checks cannot guarantee detection of arbitrary unlabelled secrets. Document that limitation and the accepted Desktop-transcript tradeoff; authority still comes from reading the authenticated inbox.
Validation: full
pnpm verifypassed (109 files, 972 tests, build) on 947fb08. Tests cover boundaries, Unicode, normalization, omission, fixed identifiers/instructions, and ledger/restart behavior. The first full run encountered Windows EPERM in unchanged credential-locking tests; isolated and full reruns passed without code changes. No live queue activation was performed.Lead developer code review and architecture acceptance are complete. Both accept the conservative omission policy and documented limitation.
Closes #104 after review and merge.