Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
Key files: Commands (2/6, doctor alert)
Subsystem index · Previous entries. Read only the entries relevant to your change. Current behavior and load-bearing invariants; history belongs in Git and CHANGELOG.
src/commands/doctor/alert.ts— GBRA-224 W4DoctorReport.alert:computeAlert(checks, { ran, render })(called bycomputeDoctorReportafter fixes render) grades onlyPAGE_CHECK_LEVELS(src/core/doctor-categories.ts):actitems keep the check's renderedfixplus a stablecodeanddocs;unknownitems (budget, bound, errored, last_known, not_run) name the check,budget_msand a measuringfix; act over unknown over none.ran(alertRanChecks: none without an okconnection, else the page checks whose entry runs at the tier) makes a page check the run executed but did not emit "did not apply"; without it a missing page check is unknown. A non-CLI render omits messages and redacts.alertRunArgsturns--alertinto--only <page class> --budget-ms 30000 --scope=brainunless--tier/--only/--budget-msis given;recordAlertStreakkeeps the per-brain consecutive-unknown count indoctor-alert-state.json(atomic, read-only home tolerated); exit 0/17/18 viaalertExitCode. Tests:test/doctor-alert-w4.test.ts,test/doctor-alert-cli-w4.test.ts.