Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
docs(key-files): the retention note names purge-deleted.ts inline so the file keeps one bullet
garrytanefd0a15daab6
diff --git a/docs/architecture/key-files/belief-ledger.md b/docs/architecture/key-files/belief-ledger.mdindex 15e652542b..726f3c669b 100644--- a/docs/architecture/key-files/belief-ledger.md+++ b/docs/architecture/key-files/belief-ledger.md@@ -17,4 +17,4 @@ Design: [BELIEF_LEDGER.md](../../designs/BELIEF_LEDGER.md). Operator surface: `g- `src/core/belief/history.ts` — the one history reader (`readBeliefHistory`); remote callers see only events that were world-visible when recorded on a page visible now, failing closed.- `src/commands/beliefs.ts` — `gbrain beliefs enable|disable|status|reconcile|backfill` (local only; `--json`); an unknown source is `invalid_params`.- `src/commands/doctor/checks/belief-ledger.ts` — doctor `belief_ledger_coverage`: intervals and certification, baseline progress, drift (sampled; complete under `--tier deep`), orphan lifetimes, unmarked publications, and a restore whose purge replay was partial, unavailable or unverified (`ask_user`). `--fix` reconciles and fills marks; a brain without coverage is information with an `ask_user` enable.-- `src/core/persistence/purge-deleted.ts` (retention, BELIEF_LEDGER.md 6.5) — a managed brain's retention purge passes the internal `retention: true` (`purge-params.ts` accepts it only from a local caller with `purge: true`): it writes no content tombstone, redacts no history, appends no purge-mirror line and records `page.expired`. On an unmanaged brain each expired tombstone of a source with belief coverage is first deleted under its page key in a belief batch that appends `page.expired`; the bulk delete takes the rest.+- Retention purge (BELIEF_LEDGER.md 6.5): on a managed brain `purge-deleted.ts` passes the internal `retention: true` (`purge-params.ts` accepts it only from a local caller with `purge: true`): it writes no content tombstone, redacts no history, appends no purge-mirror line and records `page.expired`. On an unmanaged brain each expired tombstone of a source with belief coverage is first deleted under its page key in a belief batch that appends `page.expired`; the bulk delete takes the rest.