Repository navigation
fix(update): unblock source updates after interrupted compiler cleanup - #167219
roboclaw-bot wants to merge 4 commits into
Conversation
Recover only generation-bound, native-settled artifact custody while retaining legacy and uncertain fences with actionable inspection diagnostics. Co-authored-by: RomneyDa <[email protected]>
Worked on by: - @RomneyDa Co-authored-by: RomneyDa <[email protected]> OpenClaw-Publication: b77f8bc9-e85d-453b-b5c3-0a9b174ab40d
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed October 8, 2026, 10:27 AM ET / 14:27 UTC (Revision 4). ClawSweeper reviewWhat this changesThe PR adds generation-bound recovery for interrupted Linux compiler ownership release, clearer update diagnostics, and an opt-in published-source update harness with stricter Docker cleanup. Example: Run a source update after an interrupted Linux compiler fence release
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 2 items remain This PR addresses a remaining source-update recovery problem, but published-updater compatibility evidence is still incomplete. No definite introduced code defect was found. Priority: P2 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherSource builds and updates share checkout artifact ownership so compilers cannot invalidate one another's outputs. This change carries native process-settlement facts into later update admission. flowchart TD
A[Linux one-shot typecheck] --> B[Checkout artifact owner]
B --> C[Native descendant supervisor]
C --> D[Complete settlement receipt]
E[Later source update] --> F{Identity and generation match?}
D --> F
F -->|Yes| B
F -->|No| G[Retain fence and explain refusal]
Technical reviewBest possible solution: Keep recovery with the existing artifact owner and establish interoperability with the published updater without weakening uncertain-writer retention. Do we have a high-confidence way to reproduce the issue? Yes: current-main source always retains stale artifact fences, and the supplied native interrupted-unlink scenario establishes the failure boundary. This read-only review did not execute it. Is this the best way to solve the issue? Yes at the owner boundary: generation-bound native settlement addresses the cause while retaining uncertified work; installed-updater compatibility still needs its recorded outcome. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e2dc6ad93f8a. Provenance checked
TestingProof path: shipped entry point. Added test files: 16. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +64, Tests +1419, Docs +30, Config +1, Other +1531. Total +3045 across 51 files. View PR surface stats
Stored data modelPersistent data-model change detected: LabelsLabel changes: No label changes. Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment History |
Bind sibling assertions to the owner generation, verify subsequent admission remains refused, and isolate the synthetic updater checkout from temp ancestors. Co-authored-by: RomneyDa <[email protected]>
Add bounded opt-in source-update cells and preserve Docker custody after cleanup failures. Use canonical account state and shared absolute deadlines. Co-authored-by: RomneyDa <[email protected]>
What Problem This Solves
Fixes source updates staying blocked after interrupted compiler cleanup leaves an artifact-ownership fence, even when the qualified native work has completely settled.
User Impact
Supported Linux, noninteractive, one-shot source compiler runs can recover an interrupted fence release only when native identity, complete descendant settlement, unchanged inputs and the original lock generation are proven. Unknown custody and legacy identityless fences still refuse with inspection guidance; PID death alone never permits reclamation.
Darwin/Windows, TTY, watch/API/LSP, metrics/preload, generic callback and service-delegating paths retain ordinary explicit release without a recovery certificate. Configuration, history, databases and existing dist outputs are not reset. Integrated compatibility with the published 2026.9.9 source updater remains an external proof gate, not a completed claim.
Native preparation adds overhead separate from compiler work: recent cold samples were 3.9–4.1s, warm preparation 1.84s (852 inputs, 3 outputs), and earlier cold samples 3.8–15s. These are observations, not guarantees. Metadata-only and source-preflight paths do not prepare this runtime.
Why This Change Was Made
Extend the existing artifact owner with process-birth/boot/PID-namespace identity and generation-bound custody. Reuse the compiled Linux subreaper for the fixed compiler entry; require native extinction, drained output, unchanged launch inputs and current lock authority. Recovery checks that the original owner retired and uses fs-safe’s final byte comparison. Generic declaration consumers keep their source graph without loading the optional native bootstrap. Retained ownership emits one actionable diagnostic while preserving raw causes and unexpected filesystem/preparation details.
The new opt-in source-update harness installs immutable published source, uses canonical OS-account state paths in independent COW containers, and records installer-created state without deleting it. Four planned cells cover legacy/escaped-descendant refusal, healthy active update with configuration/history preservation, and stopped/no-restart intent. The fixture uses a real Gateway with a synthetic service-manager adapter; actual Docker execution is still unrun.
The existing generic Docker cleanup owner now retains unresolved container IDs and mounted package inputs after removal failure, including caller cleanup outside logging subshells. Primary failures/timeouts and caller traps/file descriptors are preserved. Seed operations use a private immutable CID; uncertain commit/removal is not automatically retried. Build, logs, wait, commit and cleanup consume absolute budgets. The 270-minute lane and 285-minute outer job are upper envelopes, not measured runtimes. No competing reaper, release, credential, permission, dependency-pin, schema/version or live Gateway change is introduced.
Evidence
Remaining qualifications: selected checks still fail on the unchanged inherited Knip export
observePlacementAuthority; script exports pass, but the aggregate is not green. The earlier successful full build reported an unattributed nonfatal startup-JS gzip warning (+297B); no baseline UI rebuild was performed. Hosted run 37777739361 atfd84900bcompleted with 75 successful, three failed (two UI jobs and aggregate), and 23 skipped jobs; the previously failing Node siblings passed. The 14 UI failures are maintainer-reported baseline failures (reported baseline); this task has not verified a raw baseline replay. These are prior-head results, not passing CI for this harness update. ClawSweeper’s prior-head review found no code defect but requested published-source compatibility evidence. Current-head CI/review and actual source-update acceptance remain open; no readiness completion is claimed.Validation scope and measured cost
Focused tests use
node scripts/run-vitest.mjs … --maxWorkers=1, the same runner aspnpm testwithout dependency reconciliation. Local wall times are not CI timings.Proof uses synthetic isolated data. The opt-in Docker cells have not run; resource/ref/source admission and explicit dispatch remain separate from publication.
Worked on by
Work sessions
View the OpenClaw team session