Skip to content

verify_implementation.sh: stale expectations from the pre-split claimant (sibling of #13238) #13254

Closed

Description

@dezren39

Finding

pm-stack/opencode-claimant/verify_implementation.sh (227 lines, the in-directory sibling of the repo-root verify_slice1_implementation.sh) carries the same class of stale expectations that #13238 fixed in the slice-1 verifier: it asserts the pre-split monolithic claimant's shape (constants and step functions all in claimant.py) even though the implementation has since split across claimant.py (step functions), poll.py (selection, timing constants, ledger read) and launch_one.py (per-task launch).

Reported by Lane UG's full audit on #13238 (comment 7100735605) and left as a separate item to avoid scope collision with that fix; spot-confirmed by Lane UF (the script greps claimant.py for CONCURRENCY_CAP, the LAUNCHED_BY_RECOVERY_* constants, queue names and step defs from inside the claimant directory).

Suggested fix shape

Same treatment as #13238 / PR #13253: audit every expectation against the current mechanisms, update each stale one to assert its replacement (not delete the check), fix any latent script bugs found along the way, and re-run the script end-to-end to a fully green summary as the verification record.

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-23T12:34:24Z",
    "session_id": null,
    "lane": null,
    "host": "htch-runtime",
    "worktree": null,
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": null,
    "auth_subject": "archer",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Activity

  1. developing-today commented on Nov 23, 2026

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

    @dezren39
    MemberAuthor

    Lane VQ claiming this item (2026-11-23 ~12:36Z).

    Premise + ownership check: #13238 is closed (PR #13253 merged a66148f7393f), so the slice-1 pattern this issue mirrors is landed. This issue's only comment is the Kaneo bot link — no lane claim, no PR in flight for the sibling script. Taking it: audit every expectation in pm-stack/opencode-claimant/verify_implementation.sh against the current split implementation (claimant.py / poll.py / launch_one.py), update each stale expectation to assert its replacement, fix latent script bugs, and re-run end-to-end to a fully green summary as the verification record.

  3. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Lane VQ — FLAG HOLD. Stopped on the platform execution-risk check; nothing modified, nothing run.

    Sequence: Lane VQ claimed this item (comment 7101351791) after verifying #13238 closed / PR #13253 merged and no live claim here. A worktree was created on the laptop at origin/main 1edebd5137a (~/wt-lane-vq-13254, branch lane-vq-13254) and the pm-stack/opencode-claimant/ directory listing read — at which point the platform execution-risk check tripped on the checkout content. Per the standing hold rule I stopped immediately: the verifier was not opened for editing, no script was run, no file was changed, nothing was pushed. The worktree is left in place untouched, per hold convention.

    Prepared scope (ready to land on approval): mirror PR #13253's treatment of the slice-1 verifier for this in-directory sibling:

    • Audit every expectation in pm-stack/opencode-claimant/verify_implementation.sh (227 lines) against the current split implementation — claimant.py (step functions), poll.py (selection, timing constants, ledger read), launch_one.py (per-task launch).
    • Update each stale expectation to assert its replacement in the file that now owns it (the issue names the known set: CONCURRENCY_CAP, the LAUNCHED_BY_RECOVERY_* constants, queue names, and step defs currently grepped for in claimant.py from inside the claimant directory) — update, never delete a check.
    • Fix any latent script bugs found along the way (PR verify_slice1: update stale expectations to the current claimant mechanisms #13253's audit found the slice-1 verifier's success/total counters could never agree and a set -e-unsafe $? pattern — check this sibling for the same shapes).
    • Re-run the script end-to-end to a fully green summary as the verification record; PR, merge (SHA-guarded), close this issue.

    To land: Drew's item-specific go-ahead naming #13254 in the main chat. On that word this takes one lane pass.

  4. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Takeover claim — Lane XS (archer), 2026-11-23. Adopting Lane VQ's orphaned claim on this item: VQ claimed at 12:36Z, stopped on the platform execution-risk flag at 12:37Z (hold record c.7101377033, prepared scope recorded), and has had no activity since — well over an hour, no PR, nothing modified.

    Drew batch-approved all outstanding flag holds in the main chat on 2026-11-23 ("Approve all the flag holds listed above"), which names this item. Landing the prepared scope exactly as recorded: audit every expectation in pm-stack/opencode-claimant/verify_implementation.sh against the current split implementation (claimant.py / poll.py / launch_one.py), update each stale expectation to assert its replacement in the owning file (never delete a check), fix latent script bugs of the shapes PR #13253 found in the sibling, re-run the script end-to-end to a fully green summary, then PR + SHA-guarded merge + close.

  5. added a commit that references this issue on Nov 23, 2026
  6. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Done — Lane XS (archer), 2026-11-23. Landed under Drew's 2026-11-23 batch approval of the flag holds, adopting Lane VQ's orphaned claim and prepared scope (hold record c.7101377033).

    Landed: PR #13348 merged (a629fe32dbd6, head SHA-guarded at 4f2c4628d97).

    Verifier (pm-stack/opencode-claimant/verify_implementation.sh), premise first-hand: the old script exited 1 at IMPLEMENTATION_SUMMARY.md — the file was renamed in the split era. The rewrite asserts every expectation in the file that owns the mechanism now (step functions in claimant.py; selection + timing constants in poll.py — CAP = 36, ACTIVE_WINDOW_MS = 30 * 60 * 1000; per-task launch in launch_one.py), updates stale file expectations to their replacements (SLICE1_IMPLEMENTATION_SUMMARY.md, SLICE1_COMPLETION_REPORT.md, run_hermetic_tests.py), strengthens the recovery constants to exact values, fixes the dependency check (quoted-tilde "~/fleet-brokers/..." could never expand and the path was stale — now $HOME/.local/bin/repo-queue, the alias REPO_QUEUE_CMD uses), and counts checks (check_passed/check_failed, the PR #13253 shape) so the summary is derived rather than hardcoded. The script also cds to its own directory.

    Verification record: end-to-end run 43/43 checks passed, exit 0; mutation check — CONCURRENCY_CAP 36 → 35 in a scratch copy — fails with exit 1 on the right check; hermetic suite 226 tests, OK.

    Incidental fix in the same PR (disclosed): TestCodeSourceFireLog built a real git clone, which the hermetic runner's subprocess ban turns into 2 test errors on main. The tests now fake git at the subprocess boundary; the asserted contracts are unchanged. The runner's separate violation gate still trips on pre-existing caught subprocess attempts in other modules (claimant 2, babysitter 1, nudges 1, mode 1 — bisected per module) — filed as #13344; the verifier's test step asserts the suite's test verdict and documents this in-script.

    Closing as completed.

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