Skip to content

verify_slice1: update stale expectations to the current claimant mechanisms - #13253

Merged
dezren39 merged 1 commit into
mainfrom
lane-uf-13238
Nov 23, 2026
Merged

dezren39 merged 1 commit into
mainfrom
lane-uf-13238

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Refs #13238 (deliberate close with evidence follows the merge).

verify_slice1_implementation.sh asserted the slice-1 monolith's shape and failed Check 2 on current main: ACTIVE_WINDOW_MS moved to poll.py with the stuck-bound selection (#8038). Lane UG's audit (on #13238) found the drift was much wider — Checks 2, 5, 6, 7, 8, 9, 11, 12, 13, 14 — plus two latent verifier bugs. This PR is UG's verified rewrite, adopted from lane-ug-13238 @ 6e2fb6bf02f with one header amendment (UF), and re-verified end-to-end by UF.

What changed, per check:

  • Check 2 (the filed defect): ACTIVE_WINDOW_MS = 30 * 60 * 1000 is now asserted in poll.py, where the constant lives.
  • Checks 5–9, 11–13: each stale grep now asserts the mechanism that replaced it — step functions (gate_step/cap_step/launch_step), poll.is_stuck_bound / poll.parse_lease_ms selection, _get_messages, _delete_session, _recover_error_stopped / _fail_attempts_exhausted, _server_request session POST, the PRIMARY_CLONE location body, repo-queue bind argv elements, launch_one.build_prompt, HELD_ISSUE_LABELS (renamed; same set), current README wording, and CAP = 36 in poll.py (LAUNCH_WORKERS no longer exists; launches are sequential).
  • Check 14: required-field list updated to poll.py's current JSON (stale_binding, ledger_readable, cap, concurrency_cap, …).
  • Latent bugs fixed: the pass/total counters could never agree, so a fully green run still exited 1; Checks 14/15 used a set -e-unsafe $? pattern that killed the script before its failure branch.
  • CLAIMANT_DIR override (default: the primary clone) so a worktree can be verified; the header documents the staged-HOME read paths Check 15's fire needs (~/tools, ~/.config/turso, ~/.config/repo-queue, ~/.config/queue-broker, ~/.local/bin/repo-queue).

Verification (laptop route — the script's own execution is the test surface; no build applies): run against this branch's worktree with a staged shadow HOME:

Passed: 39 / 39 checks
=== ALL CHECKS PASSED ===
exit 0

including Check 14's live poll and Check 15's full shadow fire (gate → cap → launch, "Fire complete. Launched 0 sessions."). An earlier Check 15 failure during verification was the staged HOME missing the turso-exec read path — the claimant failing closed on an unreadable ledger, as designed; the header now documents this.

Sibling note: pm-stack/opencode-claimant/verify_implementation.sh is stale the same way (UG's finding); it gets its own follow-up issue rather than riding this PR.

{
  "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:10Z",
    "session_id": null,
    "lane": null,
    "host": "amd",
    "worktree": "/home/user/wt-lane-uf-13238",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/user/wt-lane-uf-13238",
      "repo": "developing-today/code",
      "branch": "lane-uf-13238",
      "sha": "68bc2d22a566e01a1fb8741c3e8228396cac1db6"
    },
    "auth_subject": "oc-code-01",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Show it working
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…anisms

Refs #13238.

The verifier asserted the slice-1 monolith's shape; the claimant has
since been split across claimant.py (step functions), poll.py
(selection, timing constants, ledger read) and launch_one.py
(per-task launch). Every drifted check now asserts the mechanism that
replaced the original:

- Check 2: ACTIVE_WINDOW_MS is defined in poll.py (#8038), not
  claimant.py -- the filed defect.
- Checks 5-9, 11-13: step functions (gate_step/cap_step/launch_step),
  poll.is_stuck_bound / poll.parse_lease_ms selection, _get_messages,
  _delete_session, _recover_error_stopped / _fail_attempts_exhausted,
  cap_step room, _server_request session POST, PRIMARY_CLONE location
  body, repo-queue bind argv, launch_one.build_prompt,
  HELD_ISSUE_LABELS (renamed, same set), current README wording,
  CAP = 36 in poll.py (LAUNCH_WORKERS is gone; launches are
  sequential).
- Check 14: poll.py's JSON field set as emitted today.
- Two latent verifier bugs fixed: the pass/total counters could
  never agree (a fully green run still exited 1), and Checks 14/15
  used a set -e-unsafe $? pattern that killed the script before the
  failure branch could run.
- CLAIMANT_DIR override (defaults to the primary clone) so a
  worktree can be verified; header documents the staged-HOME read
  paths Check 15's fire needs.

Verified end-to-end on the laptop against this worktree with a
staged shadow HOME: 39/39 sub-checks pass, exit 0, including
Check 14's live poll and Check 15's full shadow fire (gate, cap,
launch; launched 0 sessions).

The rewrite was adopted from Lane UG's stand-down copy
(lane-ug-13238 @ 6e2fb6b) with one header amendment; UG's audit
of all 15 checks is recorded on #13238.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T12:35:38.195194Z 68bc2d2 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant