Expose disk space doctor lint findings#98391
Conversation
|
@clawsweeper review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
Codex review: needs maintainer review before merge. Reviewed July 2, 2026, 12:55 PM ET / 16:55 UTC. Summary PR surface: Source +61, Tests +113. Total +174 across 4 files. Reproducibility: not applicable. This PR adds a structured Doctor lint surface rather than reporting broken existing behavior. The relevant verification is code-path review plus the PR body's source CLI proof and focused tests. Review metrics: 1 noteworthy metric.
Stored data model Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Next step before merge
Security Review detailsBest possible solution: Land the default-disabled disk-space lint exposure after maintainer review and required checks, keeping default Do we have a high-confidence way to reproduce the issue? Not applicable; this PR adds a structured Doctor lint surface rather than reporting broken existing behavior. The relevant verification is code-path review plus the PR body's source CLI proof and focused tests. Is this the best way to solve the issue? Yes; the narrow owner-boundary solution is to register disk-space as a default-disabled health check on the existing Doctor contribution and reuse the existing warning builder. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 019603d33602. Label changesLabel justifications:
Evidence reviewedPR surface: Source +61, Tests +113. Total +174 across 4 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
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. How this review workflow works
|
73df622 to
31b866c
Compare
|
@clawsweeper review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
31b866c to
b0f5233
Compare
|
Merged via squash.
|
* Expose disk space doctor lint findings * test(doctor): type disk-space health finding mock
* Expose disk space doctor lint findings * test(doctor): type disk-space health finding mock
Summary
core/doctor/disk-spacestructured health check for low free space aroundOPENCLAW_STATE_DIRdoctornote output and structured lint findings share thresholds/messagesReal behavior proof
OPENCLAW_CONFIG_PATHandOPENCLAW_STATE_DIR:node scripts/run-node.mjs doctor --lint --jsonran broad default lint withdisk=0, proving default lint skips the new default-disabled checknode scripts/run-node.mjs doctor --lint --json --only core/doctor/disk-spaceranchecksRun=1,checksSkipped=36,disk=0, exit 0 on a healthy temp state partitionValidation
mainafter Doctor: expose tool result cap findings #97500 merged and fixed the CIcheck-test-typesfailure by typing the disk-space health-finding mock.node scripts/run-vitest.mjs src/commands/doctor-disk-space.test.ts src/flows/doctor-health-contributions.test.ts./node_modules/.bin/oxfmt --check src/commands/doctor-disk-space.test.ts src/commands/doctor-disk-space.ts src/flows/doctor-health-contributions.test.ts src/flows/doctor-health-contributions.ts./node_modules/.bin/oxlint src/commands/doctor-disk-space.test.ts src/commands/doctor-disk-space.ts src/flows/doctor-health-contributions.test.ts src/flows/doctor-health-contributions.tspnpm tsgo:core:testpnpm tsgo:corenode scripts/plugin-sdk-surface-report.mjs --checkgit diff --check origin/main...HEAD