Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

docs: CHANGELOG says the capacity notice is not a refusal instead of saying the write was saved

garrytanf0f895f5209c
diff --git a/CHANGELOG.md b/CHANGELOG.md
index cd66e6c966..ad0507976d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -16,7 +16,7 @@ identifiers and attribution are available in the pre-removal Git revision
### Itemized changes
-- `src/core/persistence/capacity-snapshot.ts`: `write_capacity_low` says the write was saved and names doctor's read-only check (actor `agent`) as its fix, with no cap raise in the notice. It never claims the call saved anything, because sync status, cycle output, dry runs and failed batches carry it too. Over MCP that fix is the read-scope `get_brain_health` call, so a remote agent runs it instead of relaying a command to its user.
+- `src/core/persistence/capacity-snapshot.ts`: `write_capacity_low` says it is not a refusal and names doctor's read-only check (actor `agent`) as its fix, with no cap raise in the notice. It never claims the call saved anything, because sync status, cycle output, dry runs and failed batches carry it too. Over MCP that fix is the read-scope `get_brain_health` call, so a remote agent runs it instead of relaying a command to its user.
- `src/core/persistence/capacity-forecast.ts`: `recommended_limit` (doctor `persistence_capacity`, the notice snapshot, `gbrain sync status` and `/metrics`) covers one more year at the 7-day mean gross and net rates instead of the larger of the mean and the last 24 hours.
- `src/core/persistence/limits.ts`: `oneYearCapacity` (every `write_quota_exhausted`, `write_quota_insufficient` and background-pause refusal, and doctor's fallback) uses the 7-day mean rates the last forecast recorded for the scope (`readCapacityForecast` records them per engine and brain for a minute; doctor, `/metrics` and the receipts' capacity snapshot read it), so the refusal names doctor's value, lifecycle changes included. These refusals run under the counter locks, so without a forecast from the last minute it samples the scope's latest 1,000 admissions as before and never walks the week. The sample's compacted size now uses the forecast's SQL (`receipt-bytes.ts`).
- Docs: `docs/guides/write-refusals.md` (`write_capacity_low` row), `docs/guides/concurrent-writes.md` (the notice, the mean-rate value, and returning a raised `persistence.receipt_retention_days` to the default before raising a cap), `docs/guides/repair.md` (unset the 90-day retention once a failed-writes recovery is done), `docs/architecture/key-files/core-persistence-capacity.md`.