GeezerVison is showing github.com — Closing seam inventory + stub-shape audit + contract statement (Phase 4 of the claimant seam-contract design #7770) · Issue #7772 · developing-today/code
Closing seam inventory + stub-shape audit + contract statement (Phase 4 of the claimant seam-contract design #7770) #7772Description
🤖 Agent note · design-architect pass 74 — Phase 4 (closing audit) of design #7770
Phase 4 (closing audit) of design #7770 — act only on a verified read: one seam contract for the opencode-claimant. Design doc: files/designs/code-claimant-seam-contract.md in the keep-the-four-repos-healthy goal workspace.
Gated on Phases 1–3 of #7770 landing (#7325 + #7375 + #7706 queue seam; #7367 + #7760 server seam; #7356 + #7366 + #7732 actuation seam).
Scope
- Seam inventory. List every external read and call in
pm-stack/opencode-claimant/poll.py, pm-stack/opencode-claimant/claimant.py, and the queue reads prompt.md prescribes, and disposition each against the Act only on a verified read — one seam contract for the opencode-claimant #7770 contract: verified through the seam's one transport, in the shape the writer produces, status checked; unknown never authorizes a side effect and is never recorded as a measurement. Any call that cannot be dispositioned gets a follow-up issue, not a silent pass.
- Stub-shape audit. Every test stub in the claimant suites (
test_poll.py, test/test_claimant.py, test_claimant.py) names the writer whose shape it mirrors (checkpoint verb's progress shape, the v2 server's singular /message envelope, the CLI's JSON mode). A stub mirroring the reader's assumption instead of the writer's output is a defect of the same class as opencode-claimant(claimant.py): zero-message gate calls /api/session/<id>/messages — a 404 empty body reads as "zero messages" (fail-open before DELETE + binding clear) #7760's plural-path stub — file or fix per instance.
- Contract statement. Write the seam contract (the verified-read rule, the three seam decisions, the unknown-state rule) into
pm-stack/opencode-claimant/README.md beside Phase 4 (audit) of #4912 — closing server-call inventory + contract statement for the opencode-claimant #4916's session state table, so the contract survives prompt and implementation edits.
- Required dispositions (record each on this issue with evidence):
- (a) The repo-queue verb trio repo-queue:
list and health reject --worker, which the opencode-claimant packet mandates on every verb #7349 / repo-queue(client): a list response over 32 KiB comes back chunked — the client does not de-chunk, parses Null, and silently prints "(no tasks)" for a 178-row queue #7355 / repo-queue: claim (and list/health) silently default to the shadow queue — the trap enqueue was hardened against #7358: per verb, whether the Phase 1 JSON channel depends on its fix or is independent of it.
- (b) fleet(queue): claim verb cannot target a specific task — monitor Duty 1B PR binding has no claim path for a queued task #7735 (claim verb cannot target a specific task): queue-side capability, recorded as NOT a phase of Act only on a verified read — one seam contract for the opencode-claimant #7770; note whether the claimant has any use for it.
- (c) The Phase 4 (audit) of #4912 — closing server-call inventory + contract statement for the opencode-claimant #4916 boundary: Phase 4 (audit) of #4912 — closing server-call inventory + contract statement for the opencode-claimant #4916's inventory owns
poll.py/prompt.md OpenCode-server calls; this audit owns claimant.py and both queue seams. Any row both audits claim is resolved here if Phase 4 (audit) of #4912 — closing server-call inventory + contract statement for the opencode-claimant #4916 is still parked, or cross-referenced if it landed first — never duplicated.
- (d) opencode-claimant: handed-off tasks are never launched — executed_lane/session_id stay null across repeated claim→handed_off→park cycles #6533 (claimant handed-off tasks never launched): closed with Phase 1 evidence or re-scoped with the reason stated — opencode-claimant(poll): candidate filter reads progress.stage, but the checkpoint verb writes progress.last_checkpoint.stage — ~60 recorded yields invisible per fire, stale stages offered unsafely #7706 names it as the standing symptom of the queue-seam defect.
- (e) Whether
prompt.md's prose steps should be generated from claimant.py's constants (paths, field names) — the drift class behind opencode-claimant(claimant.py): zero-message gate calls /api/session/<id>/messages — a 404 empty body reads as "zero messages" (fail-open before DELETE + binding clear) #7760's wrong path; a yes files a follow-up, a no records why prose stays.
Acceptance
Activitydeveloping-today commented on Nov 8, 2026 developing-today commented on Nov 9, 2026 🤖 Agent note · triaged — gating recorded, still blocked on Phases 2–3 of #7770
- Agent: repo queue worker, lane code-t (repo-worker-code)
- Session / ID: cron repo-queue-worker-shift-t run 2026-11-08; triage task 13907
- Found via: claimed triage task 13907 this shift; execution lane direct
- Task: triage of issue Closing seam inventory + stub-shape audit + contract statement (Phase 4 of the claimant seam-contract design #7770) #7772 (Phase 4 closing seam inventory of design Act only on a verified read — one seam contract for the opencode-claimant #7770). Scope confirmed against the issue as filed and the packet: the five-part scope (seam inventory, stub-shape audit, contract statement in the claimant README, the five required dispositions) is independently landable as a closing audit once its gating clears, and matches the design doc's terms — no rescope proposed. Gating verified fresh 2026-11-09: Phase 1 LANDED (opencode-claimant(poll): repo-queue list emits a table, not JSON — every queue read fails and candidate discovery is blind fleet-wide #7325, opencode-claimant: repo-queue list emits a table, claimant poll/claimant parse JSON — candidate discovery silently no-ops #7375, opencode-claimant(poll): candidate filter reads progress.stage, but the checkpoint verb writes progress.last_checkpoint.stage — ~60 recorded yields invisible per fire, stale stages offered unsafely #7706 all CLOSED); Phase 2 NOT landed (opencode-claimant(claimant.py): every OpenCode server call is unauthenticated — session create always 401s, and the delete gate trusts curl's exit status #7367 OPEN, opencode-claimant(claimant.py): zero-message gate calls /api/session/<id>/messages — a 404 empty body reads as "zero messages" (fail-open before DELETE + binding clear) #7760 OPEN); Phase 3 PARTIAL (opencode-claimant(claimant.py): launch_step binds a session and never sends the prompt — every live launch creates a zero-message bound session #7356, opencode-claimant(claimant.py): launch_step ignores its mode argument — a shadow fire creates and binds a session if discovery ever returns a candidate #7366 CLOSED; opencode-claimant(claimant.py): gate-exit logs a hardcoded cap_room 0 — idle fires read as cap-saturated #7732 OPEN). So the gate has NOT cleared: this issue stays status/blocked, and the implementation follow-up packet is NOT enqueued yet — per the packet acceptance it is enqueued once the gating clears.
- Expectation: when opencode-claimant(claimant.py): every OpenCode server call is unauthenticated — session create always 401s, and the delete gate trusts curl's exit status #7367, opencode-claimant(claimant.py): zero-message gate calls /api/session/<id>/messages — a 404 empty body reads as "zero messages" (fail-open before DELETE + binding clear) #7760 and opencode-claimant(claimant.py): gate-exit logs a hardcoded cap_room 0 — idle fires read as cap-saturated #7732 have closed, resume task 13907 (or re-triage) and enqueue the implementation follow-up for Closing seam inventory + stub-shape audit + contract statement (Phase 4 of the claimant seam-contract design #7770) #7772 with its acceptance criteria intact. Parked 1200s in the meantime.
- Links: task 13907 · issue Closing seam inventory + stub-shape audit + contract statement (Phase 4 of the claimant seam-contract design #7770) #7772 · design Act only on a verified read — one seam contract for the opencode-claimant #7770 · blockers opencode-claimant(claimant.py): every OpenCode server call is unauthenticated — session create always 401s, and the delete gate trusts curl's exit status #7367 · opencode-claimant(claimant.py): zero-message gate calls /api/session/<id>/messages — a 404 empty body reads as "zero messages" (fail-open before DELETE + binding clear) #7760 · opencode-claimant(claimant.py): gate-exit logs a hardcoded cap_room 0 — idle fires read as cap-saturated #7732
dezren39 commented on Nov 9, 2026 🤖 Agent note · triaged — resume check, gating still not cleared
- Agent: queue worker (repo-worker-code), lane code-j
- Session / ID: task 13907
- Found via: queue claim (resume of the parked triage; prior verdict by lane code-t at 2026-11-09T00:49Z)
- Task: Re-verified the gate fresh 2026-11-09T01:12Z: Phase 1 landed (opencode-claimant(poll): repo-queue list emits a table, not JSON — every queue read fails and candidate discovery is blind fleet-wide #7325, opencode-claimant: repo-queue list emits a table, claimant poll/claimant parse JSON — candidate discovery silently no-ops #7375, opencode-claimant(poll): candidate filter reads progress.stage, but the checkpoint verb writes progress.last_checkpoint.stage — ~60 recorded yields invisible per fire, stale stages offered unsafely #7706 CLOSED); Phase 2 not landed (opencode-claimant(claimant.py): every OpenCode server call is unauthenticated — session create always 401s, and the delete gate trusts curl's exit status #7367 OPEN, opencode-claimant(claimant.py): zero-message gate calls /api/session/<id>/messages — a 404 empty body reads as "zero messages" (fail-open before DELETE + binding clear) #7760 OPEN); Phase 3 partial (opencode-claimant(claimant.py): launch_step binds a session and never sends the prompt — every live launch creates a zero-message bound session #7356, opencode-claimant(claimant.py): launch_step ignores its mode argument — a shadow fire creates and binds a session if discovery ever returns a candidate #7366 CLOSED; opencode-claimant(claimant.py): gate-exit logs a hardcoded cap_room 0 — idle fires read as cap-saturated #7732 OPEN). Gate unchanged — issue Closing seam inventory + stub-shape audit + contract statement (Phase 4 of the claimant seam-contract design #7770) #7772 stays status/blocked, the implementation follow-up packet is NOT enqueued yet (per acceptance it is enqueued only once the gating clears), and task 13907 is parked again.
- Expectation: when opencode-claimant(claimant.py): every OpenCode server call is unauthenticated — session create always 401s, and the delete gate trusts curl's exit status #7367, opencode-claimant(claimant.py): zero-message gate calls /api/session/<id>/messages — a 404 empty body reads as "zero messages" (fail-open before DELETE + binding clear) #7760 and opencode-claimant(claimant.py): gate-exit logs a hardcoded cap_room 0 — idle fires read as cap-saturated #7732 close, resume task 13907 and enqueue the implementation follow-up for issue Closing seam inventory + stub-shape audit + contract statement (Phase 4 of the claimant seam-contract design #7770) #7772 with its acceptance criteria intact.
- Links: issue Closing seam inventory + stub-shape audit + contract statement (Phase 4 of the claimant seam-contract design #7770) #7772 · design Act only on a verified read — one seam contract for the opencode-claimant #7770
dezren39 commented on Nov 9, 2026 agent-note:v1
task 13907 (lane code-l, resume): gate revalidated fresh 2026-11-09T01:40Z — issues #7367, #7760 and #7732 (Phases 2-3 of design #7770) are all still OPEN, so the Phase 4 closing-seam inventory for issue #7772 still cannot start. Parking again; resume condition unchanged: when #7367, #7760 and #7732 close, enqueue/run the implementation follow-up for issue #7772. dezren39 commented on Nov 10, 2026 🤖 Dropped-thread catcher — blocked claim validated WRONG, gate cleared, unblocked in place
Re-validation on new evidence, 2026-11-10 (catcher run, 16:31Z window): the Phase 4 gate for this issue — Phases 1–3 of design #7770 landing — is now fully satisfied. Live gh reads this run:
The last gate check on record (task 13907, 2026-11-09T01:40Z) correctly found #7367/#7760/#7732 still open; all three have since closed, satisfying task 13907's own recorded resume condition ("when #7367, #7760 and #7732 close, enqueue/run the implementation follow-up for #7772").
Action: status/blocked and queue/parked removed, queue/queued added so the code-pilot feeder enqueues the implementation follow-up. No Drew act was ever involved — this was a fleet gate that has now cleared. dezren39 commented on Nov 10, 2026 🤖 Agent note · triage verdict — gating CLEARED (Phases 1–3 all landed); implementation packet enqueued (task 13907)
- Agent: repo queue worker, lane code-g (repo-worker-code)
- Session / ID: cron repo-queue-worker-shift-g run 2026-11-10 13:43 CST; task 13907 (direct per fix(queue): single-session by default — launch-on-handoff, lane works, inline triage (reverses #8097 Rule 3) #8187, lane row 6155). Triage only — no implementation in this task, per its terms.
- Gate check (fresh, 2026-11-10): every Phase 1–3 gate of design Act only on a verified read — one seam contract for the opencode-claimant #7770 is CLOSED — queue seam opencode-claimant(poll): repo-queue list emits a table, not JSON — every queue read fails and candidate discovery is blind fleet-wide #7325, opencode-claimant: repo-queue list emits a table, claimant poll/claimant parse JSON — candidate discovery silently no-ops #7375, opencode-claimant(poll): candidate filter reads progress.stage, but the checkpoint verb writes progress.last_checkpoint.stage — ~60 recorded yields invisible per fire, stale stages offered unsafely #7706; server seam opencode-claimant(claimant.py): every OpenCode server call is unauthenticated — session create always 401s, and the delete gate trusts curl's exit status #7367, opencode-claimant(claimant.py): zero-message gate calls /api/session/<id>/messages — a 404 empty body reads as "zero messages" (fail-open before DELETE + binding clear) #7760; actuation seam opencode-claimant(claimant.py): launch_step binds a session and never sends the prompt — every live launch creates a zero-message bound session #7356, opencode-claimant(claimant.py): launch_step ignores its mode argument — a shadow fire creates and binds a session if discovery ever returns a candidate #7366, opencode-claimant(claimant.py): gate-exit logs a hardcoded cap_room 0 — idle fires read as cap-saturated #7732. The gating this issue was parked behind has cleared.
- Scope confirmed against current main:
pm-stack/opencode-claimant/ is present with claimant.py and README.md; nothing on the issue or in the tree shows the closing audit (seam inventory, stub-shape audit, README contract statement, dispositions (a)–(e)) as landed. The phase as scoped is independently landable now — no rescope needed.
- Routing: the implementation follow-up is converted to a small_fix packet carrying the issue's acceptance criteria intact (inventory with dispositions, stub-shape audit, README contract statement beside Phase 4 (audit) of #4912 — closing server-call inventory + contract statement for the opencode-claimant #4916's session state table, dispositions (a)–(e) with evidence, and the per-phase evidence comments on the eight adopted origins + Act only on a verified read — one seam contract for the opencode-claimant #7770). The broker dedupe key (
repo-health:v1:fix:developing-today/code:issue:7772) is held by task 13907 itself until completion, so the packet is enqueued as this task's completion follow-on and its id recorded in an addendum here.
- Labels: this issue leaves triage as
queue/queued (it already carries it) with status/blocked removed if present — the block was the Phase 1–3 gate, which has cleared.
- Links: issue Closing seam inventory + stub-shape audit + contract statement (Phase 4 of the claimant seam-contract design #7770) #7772, design Act only on a verified read — one seam contract for the opencode-claimant #7770, task 13907
dezren39 commented on Nov 10, 2026 🤖 Agent note · addendum (task 13907): the Phase 4 closing-audit packet was enqueued as task 14782 (queued) as this triage completed. The audit routes there; this issue stays open under queue/queued. dezren39 commented on Nov 11, 2026 🤖 Agent note · picked up — Phase 4 implementation (task 14782)
- Agent: repo-worker-code, lane code-y
- Task: task 14782 (small_fix, repo-health-code-pilot) — the Phase 4 closing-audit implementation packet enqueued by triage task 13907 (lane code-g addendum on this issue, 2026-11-10).
- Packet-wording defect, recorded not obeyed: task 14782's payload problem/acceptance text still carries the original triage packet's wording ("Do not implement in this triage task", triage acceptance). That text is stale: the triage it describes was completed by task 13907, whose completion addendum defines task 14782 as the small_fix implementation packet carrying this issue's acceptance criteria. Per the runbook, GitHub current state wins over the packet, so this task implements the phase; the defect is checkpointed on the task.
- Gate re-verified fresh: Phases 1–3 of design Act only on a verified read — one seam contract for the opencode-claimant #7770 are all CLOSED — opencode-claimant(poll): repo-queue list emits a table, not JSON — every queue read fails and candidate discovery is blind fleet-wide #7325, opencode-claimant: repo-queue list emits a table, claimant poll/claimant parse JSON — candidate discovery silently no-ops #7375, opencode-claimant(poll): candidate filter reads progress.stage, but the checkpoint verb writes progress.last_checkpoint.stage — ~60 recorded yields invisible per fire, stale stages offered unsafely #7706 (queue seam), opencode-claimant(claimant.py): every OpenCode server call is unauthenticated — session create always 401s, and the delete gate trusts curl's exit status #7367, opencode-claimant(claimant.py): zero-message gate calls /api/session/<id>/messages — a 404 empty body reads as "zero messages" (fail-open before DELETE + binding clear) #7760 (server seam), opencode-claimant(claimant.py): launch_step binds a session and never sends the prompt — every live launch creates a zero-message bound session #7356, opencode-claimant(claimant.py): launch_step ignores its mode argument — a shadow fire creates and binds a session if discovery ever returns a candidate #7366, opencode-claimant(claimant.py): gate-exit logs a hardcoded cap_room 0 — idle fires read as cap-saturated #7732 (actuation seam). The phase is independently landable.
- Plan: seam inventory of
poll.py / claimant.py / prompt.md queue reads with per-call dispositions; stub-shape audit of test_poll.py, test/test_claimant.py, test_claimant.py; contract statement into pm-stack/opencode-claimant/README.md beside Phase 4 (audit) of #4912 — closing server-call inventory + contract statement for the opencode-claimant #4916's session state table; dispositions (a)–(e) recorded here with evidence; per-phase evidence comments on the eight adopted origins and on Act only on a verified read — one seam contract for the opencode-claimant #7770. Work in a laptop worktree, PR, merge under standing criteria.
dezren39 commented on Nov 11, 2026 🤖 Agent note · done — Phase 4 closing audit landed (PR #8367, merged)
Acceptance check:
- Seam inventory covers every external read/call in
poll.py, claimant.py, and prompt.md's queue reads, each dispositioned — ✅ README "Seam Contract (Act only on a verified read — one seam contract for the opencode-claimant #7770)" inventory table; server calls cross-referenced to Phase 4 (audit) of #4912 — closing server-call inventory + contract statement for the opencode-claimant #4916's landed inventory per disposition (c); residuals routed to opencode-claimant: fire log cannot distinguish a failed queue read from an empty queue, or say why a bind failed #8042 (poll.py per-queue unknown marker, supervision fire-log silence), none silently passed.
- Stub-shape audit complete; every stub names its writer — ✅ audit table in the README. One defect found and fixed:
test/test_claimant.py's curl stub mirrored the reader's pre-Act only on a verified read — one seam contract for the opencode-claimant #7770 assumption (2 of 5 tests failing); it now mirrors the transport writer (status trailer, rc 0 on HTTP errors, v2 404 body).
- README carries the seam contract statement beside Phase 4 (audit) of #4912 — closing server-call inventory + contract statement for the opencode-claimant #4916's session state table — ✅ "Seam Contract (Act only on a verified read — one seam contract for the opencode-claimant #7770 — closing audit, Phase 4)" section directly after the Phase 4 (audit) of #4912 — closing server-call inventory + contract statement for the opencode-claimant #4916 Session Contract.
- Dispositions (a)–(e) recorded with evidence — ✅ (a) verb trio repo-queue:
list and health reject --worker, which the opencode-claimant packet mandates on every verb #7349/repo-queue(client): a list response over 32 KiB comes back chunked — the client does not de-chunk, parses Null, and silently prints "(no tasks)" for a 178-row queue #7355/repo-queue: claim (and list/health) silently default to the shadow queue — the trap enqueue was hardened against #7358 independent of the landed channel, per verb; (b) fleet(queue): claim verb cannot target a specific task — monitor Duty 1B PR binding has no claim path for a queued task #7735 not a phase of Act only on a verified read — one seam contract for the opencode-claimant #7770, no claimant use; (c) Phase 4 (audit) of #4912 — closing server-call inventory + contract statement for the opencode-claimant #4916 boundary resolved by cross-reference (landed first); (d) opencode-claimant: handed-off tasks are never launched — executed_lane/session_id stay null across repeated claim→handed_off→park cycles #6533 re-scoped to live-fire verification with the Phase 1 evidence chain on it (comment 6783227312); (e) prompt.md generation YES — filed as opencode-claimant: prompt.md constants drift from claimant.py — generate them or pin them by a sync check (#7772 disposition e) #8366; prompt.md's stale CLI-path constants repaired in PR claimant: #7770 Phase 4 closing audit — seam contract, fire-log unknowns, stub-shape fix (#7772) #8367.
- Evidence comments on the eight adopted origins and on Act only on a verified read — one seam contract for the opencode-claimant #7770 — ✅ comments 6783202918 (opencode-claimant(poll): repo-queue list emits a table, not JSON — every queue read fails and candidate discovery is blind fleet-wide #7325), 6783204149 (opencode-claimant: repo-queue list emits a table, claimant poll/claimant parse JSON — candidate discovery silently no-ops #7375), 6783205366 (opencode-claimant(poll): candidate filter reads progress.stage, but the checkpoint verb writes progress.last_checkpoint.stage — ~60 recorded yields invisible per fire, stale stages offered unsafely #7706), 6783206518 (opencode-claimant(claimant.py): every OpenCode server call is unauthenticated — session create always 401s, and the delete gate trusts curl's exit status #7367), 6783207761 (opencode-claimant(claimant.py): zero-message gate calls /api/session/<id>/messages — a 404 empty body reads as "zero messages" (fail-open before DELETE + binding clear) #7760), 6783208840 (opencode-claimant(claimant.py): launch_step binds a session and never sends the prompt — every live launch creates a zero-message bound session #7356), 6783209936 (opencode-claimant(claimant.py): launch_step ignores its mode argument — a shadow fire creates and binds a session if discovery ever returns a candidate #7366), 6783211101 (opencode-claimant(claimant.py): gate-exit logs a hardcoded cap_room 0 — idle fires read as cap-saturated #7732), 6783226140 (Act only on a verified read — one seam contract for the opencode-claimant #7770, including the Decision 1 channel divergence recorded for the design thread).
Also fixed in PR #8367 (audit findings): fire log recorded the cap step's -1 unknown sentinel as a cap_room measurement, and a failed candidate discovery identically to a verified empty queue — both now record null (cap_unknown / gate_unknown), pinned by two new tests. claimant.py's server-seam comments cited Decision 3; corrected to Decision 2.
Tests (laptop): python3 -m unittest test_poll test_claimant — 80 passed; discover -s test — 5 passed; test_dispatch_batch test_launch_one test_send_to_opencode — 50 passed. Codex review on PR #8367: completed, no findings.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|