Repository navigation
fix: make fixed lease IDs idempotent - #1261
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed August 9, 2026, 2:52 AM ET / 06:52 UTC. ClawSweeper reviewWhat this changesAdds fixed Merge readiness⛔ Blocked until real behavior proof from a real setup is added - 6 items remain Keep open: the fixed-ID behavior is not on current main, but this PR still needs real provider/coordinator recovery proof and removal of its release-owned changelog edit. Priority: P2 Review scores
Verification
How this fits together
flowchart LR
A[Warmup CLI request] --> B[Fixed lease ID]
B --> C[Direct AWS adapter]
C --> D[Durable claim and launch attempt]
B --> E[Coordinator PUT request]
E --> F[Durable lease record]
D --> G[Provisioned lease]
F --> G
Decision needed
Why: The branch adds a new CLI option and durable Worker HTTP contract with intentionally strict replay and tombstone semantics; no maintainer discussion in the supplied PR context confirms that permanent product/API direction. Before merge
Findings
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep legacy random-ID creation unchanged, remove the release-owned changelog entry, and land the fixed-ID contract only after a redacted real recovery trace proves identical replay yields one lease/resource. Do we have a high-confidence way to reproduce the issue? Not applicable as a conventional bug reproduction: current main lacks the fixed-ID PUT route and the PR introduces a new CLI/API contract rather than demonstrating an existing failing flow. Is this the best way to solve the issue? No. The implementation direction may be sound, but release-owned notes must be removed and a real injected-fault recovery run is needed before this large provider/Worker change is the best supported solution. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against ce9487f55205. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
Summary
crabbox warmup --lease-id cbx_<12 lowercase hex>the fixed operation identity for direct AWS and coordinator-backed creationlease_id_conflictbefore side effects on immutable-intent driftDirect AWS
RunInstances, derive deterministic regional/zonal client tokens, and never resubmit an ambiguous persisted attemptaws-fixed-v1terminal tombstones after release or exact missing-resource cleanup so operation IDs cannot be reusedCoordinator
PUT /v1/leases/:idwhile leaving legacy random-ID POST behavior unchangedTests and documentation
Verification
go test -race ./...npm run format:check --prefix workernpm run lint --prefix workernpm run check --prefix workernpm test --prefix workernpm run build --prefix workerThe live OpenClaw timeout-recovery proof is intentionally the downstream phase after this Crabbox change lands. This PR does not touch OpenClaw and no release, publication, coordinator deployment, package-version bump, or live-infrastructure mutation was performed.