Skip to content

Closing seam inventory + stub-shape audit + contract statement (Phase 4 of the claimant seam-contract design #7770) #7772

Closed

Description

@dezren39

🤖 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

  1. 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.
  2. 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.
  3. 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.
  4. Required dispositions (record each on this issue with evidence):

Acceptance

Activity

  1. developing-today commented on Nov 8, 2026

    @developing-today
    Contributor
  2. developing-today commented on Nov 9, 2026

    @developing-today
    Contributor

    🤖 Agent note · triaged — gating recorded, still blocked on Phases 2–3 of #7770

  3. added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    work/assignedQueue worker lifecycle state
    and removed on Nov 9, 2026
  4. dezren39 commented on Nov 9, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · triaged — resume check, gating still not cleared

  5. dezren39 commented on Nov 9, 2026

    @dezren39
    MemberAuthor

    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.

  6. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    🤖 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.

  7. added and removed
    status/blockedQueue or user escalation state
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 10, 2026
  8. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · triage verdict — gating CLEARED (Phases 1–3 all landed); implementation packet enqueued (task 13907)

  9. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    🤖 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.

  10. dezren39 commented on Nov 11, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up — Phase 4 implementation (task 14782)

  11. added a commit that references this issue on Nov 11, 2026
  12. dezren39 commented on Nov 11, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done — Phase 4 closing audit landed (PR #8367, merged)

    Acceptance check:

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions