Repository navigation
feat: add opt-in durable Codex CLI queue nudger (#83) - #88
Merged
Merged
Conversation
Owner
Author
Review (dev) — ACCEPTChecked against the approved plan (dev-staff1-83-gate-lifted) and CTO decision (4e1d48d0):
Verified independently: Non-blocking notes:
Passing to CTO for final. |
This was referenced Nov 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Codex roles can leave Synloq mail unread until someone activates their chat. This adds an opt-in relay service that queues an identifier-only inbox reminder through
codex queue --thread <exact UUID>, without--resume. The default remains disabled.The maximum observable claim is queue accepted: exit 0, recognized queue ID and exact target UUID echo. Versions are pinned to the two probed CLI versions. Unexpected output, UUID mismatch, timeout, rejection or process uncertainty stops automatic retries. No Desktop turn observer, app-server, session/writer contract or protocol v1 change is introduced.
The separate local SQLite journal reserves ownership before spawning, persists the role's 30-minute cooldown and each message's five-iteration cap, and prevents concurrent owners/restarts/binding changes from resetting that budget. Orphan reservations are never stolen. After five iterations without a real ack, it logs
undelivered after 5 nudgesand stops that head. Nudges never change message delivery state. Pause/quarantine/submitted heads block nudging; actual recipient ack remains authoritative. Codex placement and absence of a push conversation/active-delivery registration exclude overlap with #45.Configuration, diagnostics, recovery and the live acceptance matrix are documented in
docs/adapters/codex-queue.mdanddocs/runbooks/codex-queue-nudger.md. Configuration and the journal stay local to the existing project/Synloq home; no new dependency or main message schema migration is needed.Validation: full
pnpm verifyon the final commit: 104 test files / 901 tests, formatting, import check, typecheck and build pass. Includes 54 new tests for strict CLI fixtures, real bounded child processes, concurrent owners, crash reservations, restarts, ack/cooldown/cap boundaries, shutdown, config/schema guards and host exclusion. The first sandboxed full run could not connect to loopback (EACCES); the complete run with local socket access passed.Limitations: CLI acceptance is not delivery, independently verified queue persistence, or turn start. Unloaded chats may stay inactive. Integrated watcher live activation has not been performed; the earlier manual CLI probe matrix is cited separately and the runbook preserves this acceptance step. Manual sender-side reminders must be disabled for an enabled test role during that window, since external queue commands cannot share the journal's dedup. Local metadata is deliberately retained; uncertain/orphaned attempts require operator reconciliation, not a reset of the attempt budget.
Commits: (a)
21e5a64wrapper/fixtures; (b)4c96728durable coordinator and relay lifecycle; (c)3dcf044conformance and runbook. Review: dev → CTO. Refs #83 (live acceptance remains explicit).