Repository navigation
fix(doctor): check the operator state volume during mixed lint - #154829
roboclaw-bot wants to merge 1 commit into
Conversation
Forward the preserved lint context environment to the existing disk-space owner so a private plugin snapshot cannot redirect capacity checks. Preserve thresholds, ordinary environment fallback, opt-in selection, and post-plugin readiness. Tree-identical signed publication of validated local candidate 99b82f2b4c3a661e3e5cfcf05dc37d16f907dafd. Current focused regressions, selected changed gates, canonical package integrity, and published 2026.9.4-driver Doctor compatibility passed. Broader release metadata and package-size qualification remain red and are documented in the PR. Related: #117415 Co-authored-by: steipete <[email protected]>
|
🦞👀 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 6, 2026, 8:52 PM ET / October 7, 2026, 00:52 UTC (Revision 2). ClawSweeper reviewWhat this changesDoctor’s read-only health check uses the operator’s state volume during mixed plugin checks, with regression coverage and documentation for disk thresholds and filtering. Merge readiness⛔ Blocked before merge - 3 items remain The wrong-volume defect remains on current main, and this is a useful, focused repair. No introduced correctness finding was established; the protected maintainer label also precludes automatic closure. Priority: P2 Review scores
Verification
How this fits togetherDoctor lint combines core and plugin health checks into findings and an exit status. Plugin inspection uses private state snapshots, while disk capacity must describe the operator’s actual state volume. flowchart TD
A[Operator configuration and environment] --> B[Doctor lint]
B --> C[Private plugin snapshot]
C --> D[Plugin health checks]
B --> E[Operator state volume check]
E --> F[Capacity thresholds]
D --> G[Filtered findings and exit status]
F --> G
Before merge
Agent review detailsSecurityNone. PR surfaceSource 0, Tests +44, Docs +6. Total +50 across 4 files. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep one disk-capacity owner that receives the operator’s state location while plugin inspection retains its private snapshot, without restoring unrelated test-only injection hooks. Do we have a high-confidence way to reproduce the issue? Yes, source establishes the trigger: select disk-space alongside an isolated plugin check while operator state and temporary snapshot storage have different capacity. Current main still reads the private ambient environment; no runtime reproduction was executed during this review. Is this the best way to solve the issue? Yes against the pinned base: forwarding the preserved environment reuses the existing owner and preserves isolation. Current main’s changed collector contract requires a focused integration refresh. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 058de57ceb6d. LabelsLabel changes: No label 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)
|
Replace one-second state polling in the two final-startup exhaustion tests with the existing root-admission completion boundary. Join every final-target recovery promise before retaining the original row, charge, reservation, call-count, fresh-row and distinct-store assertions. Stop and join recovery before fixture teardown, including cancellation before final reconciliation begins. Keep runtime behavior, schemas, authority, test routing and timeouts unchanged. A temporary controlled 1.5-second startup-admission delay reproduces both original assertions and passes with this fixture repair; diagnostic source was removed and hash-restored before final proof. Focused tests, an eight-file original-plan subset, admission siblings, scoped types/lint/format and independent P2 review pass locally. Node26 proof does not establish the historical hosted Node24 slowdown cause or a full original-shard pass. Related: #154829 Co-authored-by: steipete <[email protected]>
|
Current-main integration note after checking the split lint runner and disk-space owner:
That means the central mixed-volume failure is still structurally possible on current A minimal current-main-compatible repair looks narrower than restoring any broad test hook:
One review bookkeeping point also looks stale: the latest ClawSweeper text says the previous migration blocker is resolved and that this patch introduces no schema/persisted-format/state-write change, but the “Before merge” checklist still asks for data-model compatibility proof. Unless there is a separate stored-data delta outside the reviewed patch, that item appears inconsistent with the evidence section. I’m happy to help reduce this to an exact current-main regression/patch if useful. |
|
Follow-up after checking current I wrote out the exact current-main patch shape here: The core change is only:
That preserves plugin-state isolation and makes the ownership boundary explicit at the health-check registration point. I have not claimed runtime execution of this patch; this is a source-reviewed proposal against current main. |
|
I reduced the current-main refresh to an exact mixed-volume regression: It adds two checks on top of the narrow production patch:
That directly matches the current review ask: operator-volume selection + mixed plugin isolation on the split lint runner. It also makes the compatibility point explicit: no persisted schema/config/migration owner changes; only the disk-capacity dependency is made explicit at the registered health-check boundary. Still source-reviewed/not-executed on my side. |
|
Closing as superseded. Superseded by #117415. Doctor passes the retained operator environment into disk-space checks, including mixed lint selection. This closes the PR without deleting its branch. |
Related: #117415
What Problem This Solves
Fixes Doctor lint missing critically low free space when a disk-space check runs alongside a plugin check whose private snapshot is on a healthier volume.
User Impact
The opt-in check measures the operator’s state volume during mixed lint runs. Existing thresholds remain: below 100 MiB is an error; 100 MiB through less than 500 MiB is a warning. Ordinary environment fallback, selection, severity filtering and post-update readiness behavior are unchanged. This fix requires no schema migration or operator action.
Why This Change Was Made
The registered detector forwards the lint context’s existing environment to the existing disk-space owner. Plugin checks retain private-state isolation, and current coverage is preserved.
Evidence
Tested candidate:
99b82f2b4c3a661e3e5cfcf05dc37d16f907dafdBase:
761725d03f294aaddc399a759a0755d34a0e1ecfTree:
be44f932acfe01475186e0bd85337f599694f8a3Signed publication head:
943fa8cf8637ce9d729104c6f39713fa5e22e6d1. Its tree and single parent exactly match the tested candidate; publication changed commit metadata, not source bytes.[email protected]→ candidate, maintainedprojects-doctorcellRelease qualification remains red. The frozen candidate needs version alignment for
@openclaw/facetime,@openclaw/onnxand@openclaw/typesafe, plus a Control UI fallback-catalog baseline update. Unpacked size was 256,945,332 bytes, above the 246,415,360-byte budget. These inputs are unchanged by this patch. No version/baseline/budget exception or baseline-size comparison was used; successful bug-specific checks are not a release-ready claim.Regression: disk capacity is injected, but the registered lint/config/snapshot flow is real. It covers critical findings, the exact 100 MiB boundary, filtering, exit status and source SQLite preservation. The earlier reproduction failed before the repair. No live low-disk proof is claimed.
Compatibility: the unmodified published 9.4 driver installed this exact candidate. The harness verified both application payloads and ran installed Doctor twice while preserving project/workspace state and snapshot lifecycle. An ordinary first-hop advisory warning was retained; no zero-warning assertion was added. This is not Gateway startup/restart, health/readiness/RPC or live-disk proof.
Package SHA-256:
583c4395671cb425c268df01ccfb28c77b4575bc9b0da5e1fa250d771a0cee46. Build-info identifies the candidate commit. Testbox carrier/hydration run is not PR exact-head CI.Main drift: startup-migration changes were inspected, but they are separate from
runDoctorLintCli. At inspected main28dbfcc05f2fceb49fb29a17c7d9a60133b5dde5, the lint route, affected owner and nine direct inputs are unchanged from the tested base. Lint still preserves capturedsourceEnv, private plugin state and explicitcoreCtx.env; the collector only resolves the path and reads capacity. No contrary call-graph interaction was found. Frozen-candidate compatibility remains valid for that candidate; latest-main runtime execution is unproved. Current exact merge-ref CI must exercise integration, and native drift guards still apply.Historical evidence and preserved execution failures
14ad80a1aea9dfac39bca02410d722f444a1027e/ base47f1d6ad8eb67a0e22db2191f9da9a386eb08e5b. This is old-input evidence, not 220 tests rerun on the current candidate. The identical patch’s independent P2 scoped-clean review was reused..openclaw/tmpchanged the compiler’s resolution namespace. Moving proof scratch/cache to excluded.artifactsand serializing the same test selection resolved that interference. The failure was retained; no product, assertion, timeout, baseline or cache guard was weakened.b0c201051f8b9bec40746e602a9209d3139e3c2dwas kept distinct from the actual candidate execution checkout; no carrier relabeling. The task-owned Testbox was stopped after evidence recovery, and all commands joined.Worked on by
Work sessions
View the OpenClaw team session