Repository navigation
Conversation
…e, server-call inventory, /list limit=500 disposition (#4916)
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 26 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
Agent note — task 17242 (lane any-b): PR #8224 closed as superseded by PR #8323 — nothing unique to salvage
Evidence (all fresh this shift): the same Phase 4 audit landed via PR #8323 (merged 2026-11-11T00:29:02Z, commit b0a8ea4). Section-by-section diff against current main's README: the contract rules, the server-call inventory, and the limit=500 exempt disposition (with its revisit trigger) are all present in the landed version; the landed version additionally carries the /message-vs-/messages correction in the Recovery Rules themselves and the later #7770 seam contract beside it. The one literal gap in the landed inventory — #8224's footnote that poll.py's REPO_QUEUE_CMD has no remaining call site — is factually stale today (the constant lives in claimant.py and is used at claimant.py:412, 572, 864), so there is nothing correct-and-unique to salvage. The full comparison is recorded in the salvage note on canonical PR #8323. Closing this PR as superseded (not merged). |
Phase 4 (closing audit) of design #4912, for issue #4916 — queue task 13022, lane code-w. Docs only.
What this adds
A new
## The Session Contract (#4912)section inpm-stack/opencode-claimant/README.md(after Hard Rules, so it survives prompt.md regeneration):location.directory, opencode-claimant: session create sends a top-leveldirectory, which the v2 API ignores — launched workers land in /home/user, not the repo primary #4870); every bound state dispositioned.REPO_QUEUE_CMDconstant in poll.py, recorded as a non-call so the inventory is complete./listread atlimit=500is exempt from the fail-closed-at-equality rule, with reasons from evidence: it is the queue-broker, not PostgREST (that route died in the design: repo-queue + secrets brokers on the laptop behind the session proxy #5362 cutover) and not the OpenCode server the contract governs; a truncated page can only under-report (never invent a candidate or fake a gone session — launch/recovery decisions re-gate on the fail-closed session reads); and claimed rows across the pilot queue numbered 62 at the 2026-11-10 health read, an order of magnitude under one page. The revisit trigger (a queue approaching 500 claimed+parked) is named in the doc.One record discrepancy found and flagged in the inventory: README's Recovery Rules say
GET /api/session/{id}/messages; the implemented path in claimant.py is/api/session/{id}/message.Verification
directory, which the v2 API ignores — launched workers land in /home/user, not the repo primary #4870, opencode-claimant: bound session that never received its prompt (task 6722) has no recovery path — stuck claimed forever #4758 all CLOSED.python3 -m unittest test_pollin the worktree: 56 tests, OK.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.