Skip to content

feat(codex): add bounded read preview to queue reminders - #121

Merged
OBenner merged 1 commit into
mainfrom
codex/104-nudge-preview
Nov 17, 2026
Merged

OBenner merged 1 commit into
mainfrom
codex/104-nudge-preview

Conversation

@OBenner

@OBenner OBenner commented Nov 17, 2026

Copy link
Copy Markdown
Owner

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 verify passed (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.

@OBenner

OBenner commented Nov 17, 2026

Copy link
Copy Markdown
Owner Author

Review (dev) — ACCEPT

The published diff is byte-identical to the locally reviewed one (947fb08). Verified independently: 34 targeted tests, full pnpm verify 109/972 PASS; CI 5/5 on this head (run 44037593299), arch hygiene ACCEPT (d8f12328).

Key properties: the sensitive-shape filter inspects the whole text before truncation (markers beyond the visible prefix still trigger omission); omission is conservative ([preview omitted]); the preview is code-point-safe with a UTF-16 payload budget ≤ 600; full IDs and the original instruction are unchanged; the excerpt is read fresh from the authoritative message store only — the ledger carries no text and a vanished source cannot be reconstructed after restart (test-pinned). The delegation model update and the explicitly operator-accepted G2 tradeoff are documented in the same PR.

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.

@OBenner
OBenner merged commit c1f8a5a into main Nov 17, 2026
5 checks passed
@OBenner
OBenner deleted the codex/104-nudge-preview branch November 17, 2026 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[P2] Codex nudge preview: bounded message excerpt in the queue reminder

1 participant