Repository navigation
fix(diagnostics): replace retired snapshot hints with usable guidance - #150894
Conversation
|
🦞👀 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: needs maintainer review before merge. Reviewed September 17, 2026, 8:48 AM ET / 12:48 UTC. ClawSweeper reviewWhat this changesUpdates critical-memory warnings and troubleshooting guidance, and makes Doctor identify the retired configuration paths it removes. Merge readiness✅ Ready for maintainer review Keep open: the misleading guidance remains on current main and in v2026.9.4. The patch preserves the intentional snapshot retirement, addresses the reporter’s clarification, and introduces no actionable correctness finding. Priority: P3 Review scores
Verification
How this fits togetherGateway diagnostics turn process-memory measurements into pressure events and operator warnings. Doctor normalizes legacy configuration during repair; its notices explain which settings changed. flowchart TD
A[Process memory measurements] --> B[Pressure detection]
B --> C[Pressure event and warning]
C --> D[Supported diagnostic commands]
E[Legacy configuration] --> F[Shared Doctor migration]
F --> G[Normalized configuration]
F --> H[Named removal notice]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource -7, Tests +37, Docs +1. Total +31 across 11 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Keep automatic capture retired while giving operators accurate diagnostic commands and precise notices through the existing diagnostics and Doctor owners. Do we have a high-confidence way to reproduce the issue? Yes, from source: a critical pressure event emits both obsolete messages on current main, and retired-key migration emits a generic notice. No live Gateway or memory-pressure workload was executed. Is this the best way to solve the issue? Yes: the patch corrects the existing owners’ output and documentation while preserving configuration deletion semantics, pressure detection, and the intentional capture retirement. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 3c0fb2025a1d. 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.
|
…openclaw#150894) Clarify the retirement of diagnostics.memoryPressureSnapshot and automatic pre-OOM stability snapshots. Critical-memory warnings now emit the existing measurements once and point to supported diagnostics export, existing stability bundle inspection, and manual Node allocation profiling. Doctor now names the retired tuning keys it actually removes, including explicit false values and concrete wildcard paths, through the shared migration owner. Preserve the intentional retirement from openclaw#111382 and openclaw#130754, configuration deletion semantics, backup/write flow, and automatic startup repair ownership. Related: openclaw#150864. Thanks @dom521 for reporting the confusing upgrade messaging. Validation: five focused suites (350 tests) and check:changed passed in the author lane; exact-head CI run 35222541964 is green. Approved Codex autoreview and ClawSweeper review found no actionable issues. Proof used synthetic inputs; no real Gateway or OOM workload was run.
Related: #150864
What Problem This Solves
Critical memory-pressure warnings point operators at a retired snapshot setting, while Doctor removes that setting without naming it. Thanks @dom521 for reporting the confusing upgrade behavior.
User Impact
Critical pressure now produces one warning containing the existing measurements and supported next steps: diagnostics export, inspection of an existing stability bundle, or manual allocation profiling on Node. Doctor names the retired paths it actually removes, including explicit
falsevalues, in one notice.The intentional retirement from #111382 and writer removal from #130754 remain in place. This adds no setting or capture capability and does not change which config values Doctor removes, its backup/write flow, or automatic startup repair ownership.
Why This Change Was Made
The obsolete
memoryPressureSnapshot=disabledfield and separate disabled-snapshot warning implied an operator could enable a removed knob. The diagnostics owner now provides current guidance once. The shared retired-path deletion helper records actual paths, including concrete wildcard entries, so both Doctor migration entry points use the same notice:The migration reference explains the retirement, and troubleshooting no longer promises automatic pre-OOM bundles.
Release-note context: Clarify the retirement of
diagnostics.memoryPressureSnapshotand automatic pre-OOM stability snapshots. Doctor now identifies removed tuning keys, and critical-memory warnings point to supported diagnostics export, existing bundle inspection, and manual Node allocation profiling. Thanks @dom521 for highlighting the unclear migration messaging.Evidence
diagnostics.memoryPressureSnapshot; the no-retired-key case passed. The pressure-log regression also failed on the obsolete second warning.pnpm check:changedpassed in full: config docs, line-cap and suppression ratchets, core and test typechecks, changed-file lint, all dead-export scans (zero entries), and runtime import cycles (zero).--mode branch --base origin/main --max-priority P1: scoped-clean, no findings.