Skip to content

fix(fleet): bind bootstrap reuse to lease identity - #72

Merged
steipete merged 1 commit into
mainfrom
fix/pr58-rebootstrap-reviewed
Aug 28, 2026
Merged

fix(fleet): bind bootstrap reuse to lease identity#72
steipete merged 1 commit into
mainfrom
fix/pr58-rebootstrap-reviewed

Conversation

@steipete

Copy link
Copy Markdown
Contributor

Reviewed integration of #58: rebootstraps native evals when recovery replaces a lease, handling legacy timestamp-only manifests, replacement leases, and failed hydration retries without disturbing running jobs. Regression reproduced first; 48 focused + 460 full-suite tests pass, autoreview clean through P2. Credit to @vincentkoc for the original repair in #58. Fixes #55.

Integrate PR #58 onto current main while preserving active-harness
hydration. Cover legacy manifests, mismatched and matching lease IDs,
active-run preservation, and retry after a failed bootstrap.

Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
@steipete
steipete requested a review from a team as a code owner August 28, 2026 09:19
@clawsweeper

clawsweeper Bot commented Aug 28, 2026

Copy link
Copy Markdown

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@steipete
steipete merged commit 986c2fc into main Aug 28, 2026
10 checks passed
@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 Merging this PR could break existing users, config, migrations, defaults, or upgrades. P2 Normal priority bug or improvement with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Aug 28, 2026
@clawsweeper

clawsweeper Bot commented Aug 28, 2026

Copy link
Copy Markdown

Codex review: needs real behavior proof before merge. Reviewed August 28, 2026, 5:21 AM ET / 09:21 UTC.

ClawSweeper review

What this changes

The PR makes native fleet recovery rehydrate a replacement machine unless the recorded bootstrap lease ID matches the active lease, with regression coverage for legacy manifests and failed hydration retries.

Merge readiness

Blocked until real behavior proof is added - 2 items remain

Keep open: the pinned base still trusts a timestamp alone, while this focused branch binds reuse to the active lease and covers legacy, replacement, and failed-hydration paths. No correctness defect was found, but external-contributor real-behavior proof is still required before merge.

Priority: P2
Reviewed head: 565d6409bb03231a232176967cb41a3c81206d5a

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The implementation and focused coverage are strong, but the required real-behavior evidence is absent.
Proof confidence 🦪 silver shellfish (2/6) Needs real behavior proof before merge: The PR body reports tests and a prior reproduction, but contains no inspectable after-fix real fleet trace or artifact; add redacted runtime evidence before merge. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Needs proof Needs real behavior proof before merge: The PR body reports tests and a prior reproduction, but contains no inspectable after-fix real fleet trace or artifact; add redacted runtime evidence before merge. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed 4 items Current-main gap: The pinned main base dispatches a missing remote run whenever a bootstrap timestamp exists, without checking which lease was bootstrapped; therefore the central repair is not already on main.
Introduced repair: The PR compares the persisted bootstrap lease ID with the active lease before hydration and records that ID only after hydration succeeds.
Regression coverage: Focused cases cover missing and mismatched lease IDs, matching IDs, running remote jobs, and retry after a failed hydration without persisting the ID early.
Findings None None.
Security None None.

How this fits together

The native-eval fleet controller resumes benchmark runs on leased remote machines. It reads the local run manifest, decides whether the remote runner is usable, hydrates a lease when needed, and then dispatches the selected harness.

flowchart LR
A[Run manifest] --> B[Fleet recovery]
C[Active remote lease] --> B
B --> D{Remote run missing?}
D -->|Yes| E{Bootstrap bound to lease?}
E -->|No| F[Hydrate remote runner]
E -->|Yes| G[Dispatch harness]
F --> G
D -->|No| H[Preserve or resume remote run]
Loading

Before merge

  • Add real behavior proof - Needs real behavior proof before merge: The PR body reports tests and a prior reproduction, but contains no inspectable after-fix real fleet trace or artifact; add redacted runtime evidence before merge. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Resolve merge risk (P1) - Recovery manifests written before this field will intentionally rehydrate once when their remote run is missing; focused fake-executor coverage supports that compatibility path, but there is no inspectable real remote recovery trace for this branch.
Agent review details

Security

None.

Review metrics

Metric Value Why it matters
Changed surface 3 files affected; production +2/-1, tests +80 The change is narrowly scoped to recovery persistence and targeted regression coverage.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #55
Summary: This PR is a candidate fix for the canonical replacement-lease recovery report; the earlier overlapping PR remains open and dirty.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Add replacement-lease proof before merge (recommended)
    Attach a redacted real recovery trace showing that a legacy manifest hydrates the replacement lease and then dispatches the harness.
  2. Accept local-only coverage
    Maintainers may merge based on the focused fake-executor coverage while explicitly accepting the absence of a real remote recovery trace.

Technical review

Best possible solution:

Land the lease-identity check with a redacted real controller trace showing a legacy timestamp-only recovery hydrates the replacement lease and dispatches successfully.

Do we have a high-confidence way to reproduce the issue?

Yes, from source: a recovery entry with an old bootstrap timestamp, no valid active bootstrap lease ID, and a missing remote run follows the former skip-hydration path. The focused test models that state, although this review did not run the remote fleet.

Is this the best way to solve the issue?

Yes. Binding bootstrap reuse to the actual lease identity is the narrowest durable repair because timestamps cannot establish that a replacement machine contains the runner.

AGENTS.md: not found in the target repository.

Codex review notes: model internal, reasoning high; reviewed against 643c395f6793.

Labels

Label changes:

  • add P2: This fixes a bounded native-fleet recovery failure that can invalidate a benchmark run.
  • add merge-risk: 🚨 compatibility: The patch changes persisted recovery-manifest semantics and must remain safe for timestamp-only legacy entries.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🐚 platinum hermit.
  • add status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: The PR body reports tests and a prior reproduction, but contains no inspectable after-fix real fleet trace or artifact; add redacted runtime evidence before merge. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Label justifications:

  • P2: This fixes a bounded native-fleet recovery failure that can invalidate a benchmark run.
  • merge-risk: 🚨 compatibility: The patch changes persisted recovery-manifest semantics and must remain safe for timestamp-only legacy entries.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🐚 platinum hermit.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: The PR body reports tests and a prior reproduction, but contains no inspectable after-fix real fleet trace or artifact; add redacted runtime evidence before merge. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Evidence

What I checked:

Likely related people:

  • steipete: Peter Steinberger authored the immediately preceding current-main native-fleet bootstrap change and the reviewed recovery fix. (role: recent area contributor; confidence: high; commits: 643c395f6793, 565d6409bb03; files: scripts/native_eval/fleet.py, tests/test_native_eval_fleet.py)
  • vincentkoc: Vincent Koc introduced and stabilized the native matrix and fleet surfaces that this recovery behavior extends. (role: native-eval feature contributor; confidence: high; commits: 69f75c6629c4, b9acd9f7a010, 569b5c39c783; files: scripts/native_eval/fleet.py, tests/test_native_eval_fleet.py)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Add a redacted replacement-lease recovery transcript or artifact that shows hydration followed by successful dispatch; updating the PR body triggers a fresh review, or a maintainer can request @clawsweeper re-review.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

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

Labels

merge-risk: 🚨 compatibility 🚨 Merging this PR could break existing users, config, migrations, defaults, or upgrades. P2 Normal priority bug or improvement with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rebootstrap native evals when recovery replaces a lease

1 participant