Repository navigation
fix: identify cloud worker bootstrap failures - #133663
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 30, 2026, 8:35 PM ET / August 31, 2026, 00:35 UTC. ClawSweeper reviewWhat this changesThe PR makes cloud-worker bootstrap failures identify their phase and native error code, adds an interrupted-download regression case, and atomically publishes test readiness data. Merge readinessKeep this PR open: it is still needed because current main retains the lossy bootstrap catch. The introduced change records failure phase at the generated-script owner while preserving the provider’s existing cleanup and redaction path; no discrete correctness finding was identified. Priority: P2 Review scores
Verification
How this fits togetherCrabbox provisions cloud workers by downloading and installing a Node runtime, then launching an enrolled node. Bootstrap command output returns through the Crabbox provider’s cleanup and error formatter to the operator. flowchart LR
A[Cloud session request] --> B[Crabbox worker provisioning]
B --> C[Node bootstrap script]
C --> D[Download, install, or launch phase]
D --> E[Provider cleanup and formatting]
E --> F[Operator-visible failure]
Before merge
Agent review detailsSecurityNone. PR surfaceSource -5, Tests +14. Total +9 across 4 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Land the owner-boundary diagnostics repair once exact-head required CI completes successfully, retaining the existing provider redaction and cleanup behavior. Do we have a high-confidence way to reproduce the issue? Yes, from source: an interrupted response during the generated runtime download reaches the old error-message-only catch; the introduced loopback truncation case exercises that path. This read-only review did not rerun the test. Is this the best way to solve the issue? Yes: recording phase at the bootstrap-script owner preserves the native failure detail before the provider applies its established cleanup and redaction formatter, without adding configuration or retry behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 2896a942c2f1. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
What Problem This Solves
Fixes an issue where operators creating a cloud session would receive only
abortedwhen the node runtime download was interrupted. The message lost the failing bootstrap phase and the native transport error code, making a network interruption hard to distinguish from package installation or node startup failures.Why This Change Was Made
The generated enrollment script now reports the phase and optional error code where those facts are known. The existing provider formatter still bounds and redacts that message. The provider's one-use permanent-error wrapper is removed; error classification and cleanup are unchanged.
No retry, timeout, allocation, credential, schema, configuration, or protocol changes. This diagnoses the failed operation; it does not claim to repair an underlying network failure. An observed test-fixture race was also repaired at the producer by publishing its readiness JSON atomically.
User Impact
An interrupted response now reports
Cloud worker node bootstrap download failed (ECONNRESET): aborted. Installation, verification, activation, and node launch failures likewise identify their phase. This is the release-note context; the root changelog is release-generated.Evidence
Fresh isolated Codex review: scoped-clean at P0, confidence 0.99. The real HTTP regression also passes on both Node 24 and Node 26.
Production LOC: +9/-14, net −5. Tests: net +14. Four files; no generated or dependency changes.
Provenance: the lossy catch is present in the current artifact-bootstrap implementation. Related outer-phase and packaging fixes do not preserve the native code discarded here; exact introducing ancestry has not been established, so no author attribution is inferred.
AWS changed-path proof: the exact candidate generated script passed the same real interrupted-HTTP reproduction on Node 24.18.1, provider aws, task lease cbx_c5cd202c5338, run run_fa541cd46568. One request, expected ECONNRESET diagnosis, temporary-state cleanup, no published runtime/PID, and no credential output. This is live Linux failure-path proof, not a successful model-backed cloud turn; that separate broader test remains in progress.
ClawSweeper review follow-through: exact-head CI 33344633552 passed, and maintainer code review found no actionable defect. Its generic unknown-data-model-change flag does not correspond to a persistence change: the production diff adds only a process-local phase variable and error formatting and inlines an equivalent error constructor. No stored table, file format, migration, retention, or replay semantics change.