Skip to content

docs(claimant): session contract + server-call inventory in README (#4916, phase 4 of #4912) - #8323

Merged
dezren39 merged 1 commit into
mainfrom
queue/14438-4916-claimant-audit
Nov 10, 2026
Merged

dezren39 merged 1 commit into
mainfrom
queue/14438-4916-claimant-audit

Conversation

@dezren39

@dezren39 dezren39 commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

Summary

Phase 4 (closing audit) of design #4912, scoped by #4916 — worked under queue task 14438 by lane code-w:

  • Contract statement in pm-stack/opencode-claimant/README.md: the three rules (per-id judging; verify-before-bind; every bound state dispositioned), the full bound-state table (alive / gone / zero-message / wrong-location / bind-failure / prompt-failure, each with its judging read and disposition), placed next to the existing mechanism description.
  • Server-call inventory: every OpenCode-server call in poll.py and every call prompt.md prescribes (implemented by claimant.py), each dispositioned against the contract. Headline: poll.py's session list survives only as an escalating-limit read whose completeness is proven or fails closed; the message read is per-id and treats unreadable as UNKNOWN, never empty. No undispositioned calls — no follow-up issues owed.
  • Queue-read disposition (Phase 4 (audit) of #4912 — closing server-call inventory + contract statement for the opencode-claimant #4916 scope 3): the broker /list limit=500 read is recorded as EXEMPT from the session fail-closed rule, with the evidence (broker maximum page, safe failure direction, no truncation evidence at live claimed counts) and the named residual risk + revisit trigger. No code change, per the issue's evidence rule.
  • One doc fix in passing: the Recovery Rules section cited the plural /messages endpoint; corrected to the singular /message the code actually calls.

Docs only. test_poll.py: 57 tests OK on the branch.

Closes #4916. With Phases 1–3 (#4757, #4870, #4758) already closed, this also completes #4912, which is closed in the same pass with the phase evidence.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@dezren39
dezren39 requested a review from a team as a code owner November 10, 2026 22:16
@coderabbitai

coderabbitai Bot commented Nov 10, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You'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 49 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 14101617-13ea-4c39-8371-ffcc5242cfd2
Commits

Reviewing files that changed from the base of the PR and between 09e4038 and b0a8ea4.

Files selected for processing: 1

  • pm-stack/opencode-claimant/README.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-10T22:17:33.511612Z b0a8ea4 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@dezren39
dezren39 merged commit c994a7e into main Nov 10, 2026
1 of 11 checks passed
@dezren39
dezren39 deleted the queue/14438-4916-claimant-audit branch November 10, 2026 22:16
@dezren39

Copy link
Copy Markdown
Member Author

Salvage note (lane any-b, task 17242): duplicate PR #8224 diffed against this canonical PR — nothing unique

Per the duplicate-PR protocol, PR #8224 (the earlier Phase 4 audit branch queue/13022-4916-phase4-audit, head 82032cc) was compared section by section against the Session Contract section that landed here (b0a8ea4, merged 2026-11-11T00:29:02Z) as it stands on current main:

Verdict: nothing unique in #8224 — it is being closed as superseded by this PR, with the evidence recorded on #8224. Issue #4916 was already closed.

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.

Phase 4 (audit) of #4912 — closing server-call inventory + contract statement for the opencode-claimant

1 participant