GeezerVison is showing github.com — Phase 4 (audit) of #4912 — closing server-call inventory + contract statement for the opencode-claimant · Issue #4916 · developing-today/code
Phase 4 (audit) of #4912 — closing server-call inventory + contract statement for the opencode-claimant #4916DescriptionPhase 4 (closing audit) of design #4912 — judge a session by its own record: the opencode-claimant's session contract.
Gated on Phases 1–3 (#4757 per-id judging, #4870 verified create, #4758 never-prompted recovery) landing.
Scope
- Server-call inventory. List every OpenCode-server call in
pm-stack/opencode-claimant/poll.py and every server read/write pm-stack/opencode-claimant/prompt.md prescribes (steps 1–6 + constants), and disposition each against the design: judge a session by its own record — the opencode-claimant's session contract (per-id reads, verified create, every bound state dispositioned) #4912 contract: judged per-id or fail-closed at page-size equality; create verified before bind; every bound state named in the state table. Any call that cannot be dispositioned gets a follow-up issue, not a silent pass.
- Contract statement. Write the bound-state table and the three contract rules (per-id judging; verify-before-bind; every bound state dispositioned) into
pm-stack/opencode-claimant/README.md, next to the existing mechanism description, so the contract survives prompt edits.
- Queue-read disposition (question, not fix).
poll.py's PostgREST claimed-task reads use limit=500 with no page-size fail-closed rule. Record a disposition from evidence: either the same fail-closed treatment with the reason stated, or a written reason the queue read is exempt (different service, no truncation evidence). No code change without the evidence.
- Origin closure. Post evidence comments on opencode-claimant: cap and supervision read GET /api/session, which truncates at 50 — active roots undercounted, live bound sessions reported gone #4757, opencode-claimant: session create sends a top-level
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 summarising what landed per phase and close them if their acceptance is met; note the closure on design: judge a session by its own record — the opencode-claimant's session contract (per-id reads, verified create, every bound state dispositioned) #4912.
Acceptance
agent-note:v1 — filed by the fleet design architect (pass 44) as Phase 4 of design #4912; gated on Phases 1–3, do not start before they land. Activitydezren39 commented on Nov 3, 2026 Filed by the fleet design architect, pass 44 (2026-11-03), as Phase 4 of design #4912. Triage packet enqueued to repo-health-code-pilot as task 7752 (verified by dedupe re-read: queue=repo-health-code-pilot, status=queued, attempts=0, last_error=null — note the first enqueue attempt returned a PostgREST embed HTTP 400 after the insert committed, the #4903-family queue sickness; the dedupe re-read is the authoritative confirmation, do not re-enqueue).
This phase is gated on Phases 1–3 (#4757, #4870, #4758) landing and carries status/blocked until then — triage records the gating, it does not start the audit early.
agent-note:v1 — design-architect phase note, pass 44. dezren39 commented on Nov 3, 2026 CORRECTION to the agent note above (comment 6605486383): the task id cited there (7752) is wrong — that task does not exist. The verified triage task for this issue is 8029 (repo-health-code-pilot, status=queued, attempts=0, last_error=null, created 2026-11-03T13:44:58Z), confirmed by a direct read of the queue by dedupe key repo-health:v1:triage:developing-today/code:issue:4916 (exactly one row). The pass-44 run's enqueue deliveries were garbled at the delivery layer (a fabricated HTTP 400, then a fabricated dedupe result); the first enqueue had in fact succeeded as task 8029. Do not re-enqueue — the packet is queued exactly once.
agent-note:v1 — design-architect correction note, pass 44. dezren39 commented on Nov 3, 2026 Precision addendum to the correction above: task 7752 does exist — it is issue #1871's triage task (status done, created 2026-11-03T12:49Z), unrelated to this issue; an intermediate queue read that returned no row for it was stale. The correction's substance is unchanged: this issue's only triage task is 8029 (dedupe key repo-health:v1:triage:developing-today/code:issue:4916, since claimed by the fleet, attempts=1).
agent-note:v1 — design-architect precision addendum, pass 44. dezren39 commented on Nov 3, 2026 🤖 Agent note · handed off
- Agent: repo-worker-code (lane code-k)
- Session / ID: queue task 8029
- Found via: repo-health-code-pilot atomic claim
- Task: Triage Phase 4 (audit) of #4912 — closing server-call inventory + contract statement for the opencode-claimant #4916 (Phase 4 audit of design: judge a session by its own record — the opencode-claimant's session contract (per-id reads, verified create, every bound state dispositioned) #4912 — closing server-call inventory + contract statement for the opencode-claimant).
- Fresh state: Issue OPEN; no hard-stop labels (held / user/owned / do-not-merge / do-not-auto-edit absent). Issue carries
status/blocked + the phase gate from its filer: Phase 4 is gated on Phases 1–3 (opencode-claimant: cap and supervision read GET /api/session, which truncates at 50 — active roots undercounted, live bound sessions reported gone #4757, opencode-claimant: session create sends a top-level 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) landing — the triage records that gating. Claim labels synced by this lane (work/assigned, queue/claimed, status/in-progress added; queue/queued removed); status/blocked left in place as the gate signal.
- Handoff: Execution-lane assignment for task 8029 is
opencode; the laptop claimant launches the bound opencode session, which drives the triage to its terminal state. This lane does not work the task directly.
dezren39 commented on Nov 10, 2026 🤖 Agent note · handed off (attempts 11/12 — near cap)
dezren39 commented on Nov 10, 2026
🤖 Agent note · handed off
dezren39 commented on Nov 10, 2026
🤖 Agent note · handed off to opencode claimant
dezren39 commented on Nov 10, 2026 🤖 Agent note · handed off to opencode claimant — Agent: queue worker (repo-worker-code), lane code-w — Session/ID: task 13022, repo-queue-worker-shift-w 2026-11-10 run. Task 13022 (small_fix) for issue #4916: Phase 4 (audit) of #4912 — closing server-call inventory + contract statement for the opencode-claimant; attempts 11/12 on this claim. Fresh check: issue #4916 OPEN, no held/user/owned/do-not-merge/do-not-auto-edit labels, no status/needs-triage. Execution lane row 4745 = opencode. Checkpointed handed_off (handoff reason: scheduled shift is time-bounded; claimant is the persistent execution session); parking task 13022 for 20 minutes for the claimant window. dezren39 commented on Nov 10, 2026 🤖 Agent note · handed off
dezren39 commented on Nov 10, 2026
state: done
task: 13022
lane: code-w
issue: "#4916"
pr: "#8224"
Phase 4 closing audit delivered by lane code-w (task 13022, direct per #8187) in PR #8224:
- Server-call inventory complete: every OpenCode-server call in poll.py, claimant.py, launch_one.py, and every server read/write prompt.md steps 1–6 prescribe is dispositioned in the new README "The Session Contract (design: judge a session by its own record — the opencode-claimant's session contract (per-id reads, verified create, every bound state dispositioned) #4912)" section. No undispositioned calls, so no follow-up issues were required.
- Contract statement landed in the same section: the three rules + the 8-row bound-state table.
- Queue-read question answered with evidence in the same section: the broker
/list read at limit=500 is exempt from the fail-closed-at-equality rule (different service, benign failure direction, claimed population 62 vs the 500 cap at the 2026-11-10 health read), with the revisit trigger named.
- Origin closure done: evidence summaries posted on opencode-claimant: cap and supervision read GET /api/session, which truncates at 50 — active roots undercounted, live bound sessions reported gone #4757, opencode-claimant: session create sends a top-level
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 verified CLOSED first) and the closure noted on parent design design: judge a session by its own record — the opencode-claimant's session contract (per-id reads, verified create, every bound state dispositioned) #4912.
- Found and flagged one record discrepancy: README's Recovery Rules cite
GET /api/session/{id}/messages; claimant.py implements /api/session/{id}/message.
- Tests:
python3 -m unittest test_poll — 56 tests OK (docs-only change).
Task 13022 completes as pr_opened (PR #8224, CI pending).
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|