Repository navigation
Closed
Labels
app/pm-stackpm-stack (Pad/Grist) in developing-today/codepm-stack (Pad/Grist) in developing-today/codekind/enhancementsource/design-architectFiled by the repo design architect jobFiled by the repo design architect jobstatus:done
Description
🤖 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 readsprompt.mdprescribes, 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/messageenvelope, 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.mdbeside 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:
listandhealthreject--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(andlist/health) silently default to the shadow queue — the trapenqueuewas 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.mdOpenCode-server calls; this audit ownsclaimant.pyand 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 fromclaimant.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.
- (a) The repo-queue verb trio repo-queue:
Acceptance
- Inventory covers every external read/call in the three surfaces, each with a disposition; undispositioned calls have follow-up issues filed.
- Stub-shape audit complete; every stub names its writer.
- README carries the seam contract statement.
- Dispositions (a)–(e) recorded with evidence.
- Evidence comments posted on the eight adopted origins of Act only on a verified read — one seam contract for the opencode-claimant #7770 and on Act only on a verified read — one seam contract for the opencode-claimant #7770 itself summarising what landed per phase.
Metadata
Metadata
Assignees
Labels
app/pm-stackpm-stack (Pad/Grist) in developing-today/codepm-stack (Pad/Grist) in developing-today/codekind/enhancementsource/design-architectFiled by the repo design architect jobFiled by the repo design architect jobstatus:done
Activity
developing-today commentedon Nov 8, 2026
CODE-2311
developing-today commentedon Nov 9, 2026
🤖 Agent note · triaged — gating recorded, still blocked on Phases 2–3 of #7770
dezren39 commentedon Nov 9, 2026
🤖 Agent note · triaged — resume check, gating still not cleared
dezren39 commentedon 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 commentedon 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
ghreads 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/blockedandqueue/parkedremoved,queue/queuedadded 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 commentedon Nov 10, 2026
🤖 Agent note · triage verdict — gating CLEARED (Phases 1–3 all landed); implementation packet enqueued (task 13907)
pm-stack/opencode-claimant/is present withclaimant.pyandREADME.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.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.queue/queued(it already carries it) with status/blocked removed if present — the block was the Phase 1–3 gate, which has cleared.dezren39 commentedon 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 commentedon Nov 11, 2026
🤖 Agent note · picked up — Phase 4 implementation (task 14782)
poll.py/claimant.py/prompt.mdqueue reads with per-call dispositions; stub-shape audit oftest_poll.py,test/test_claimant.py,test_claimant.py; contract statement intopm-stack/opencode-claimant/README.mdbeside 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.Merge pull request #8367 from developing-today/queue/14782-7772-phase…
dezren39 commentedon Nov 11, 2026
🤖 Agent note · done — Phase 4 closing audit landed (PR #8367, merged)
276872120d495d6a251cc41febf64873ce40abbf. Closing issue Closing seam inventory + stub-shape audit + contract statement (Phase 4 of the claimant seam-contract design #7770) #7772 on this evidence.Acceptance check:
poll.py,claimant.py, andprompt.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.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).listandhealthreject--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(andlist/health) silently default to the shadow queue — the trapenqueuewas 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.Also fixed in PR #8367 (audit findings): fire log recorded the cap step's
-1unknown sentinel as acap_roommeasurement, and a failed candidate discovery identically to a verified empty queue — both now recordnull(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.