Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

belief ledger lane A: error-code docs for purge_mirror_unwritable; page body reader rows for registerVersionCarriers

garrytanee375b685ac0
diff --git a/docs/guides/error-codes.md b/docs/guides/error-codes.md
index ab32546fcc..17dc168741 100644
--- a/docs/guides/error-codes.md
+++ b/docs/guides/error-codes.md
@@ -2636,6 +2636,16 @@ More: [docs/guides/memory-boundaries.md#purge](../../docs/guides/memory-boundari
More: [docs/guides/write-refusals.md#purge_lookup_timeout](../../docs/guides/write-refusals.md#purge_lookup_timeout)
+### purge_mirror_unwritable
+
+<a id="purge_mirror_unwritable"></a>
+
+| Meaning | Why | Next step | Who acts · consent | Verify | Exit | Retryable |
+|---|---|---|---|---|---|---|
+| A purge could not append its intent line to the purge mirror (<brain home>/.gbrain/purge-events.jsonl), so it was refused; nothing was removed, tombstoned or redacted. | Restore replays the purges recorded in that text-free mirror; a purge that committed without its line would come back silently from an older backup. | Do not assume the requested content was erased. Make the mirror a writable regular file owned by the brain's user (mode 0600), then run the purge again with a new request_id. | host_admin | `repeat the read that failed` | 1 | no |
+
+More: [docs/guides/write-refusals.md#purge_mirror_unwritable](../../docs/guides/write-refusals.md#purge_mirror_unwritable)
+
### purged_content
<a id="purged_content"></a>
diff --git a/scripts/page-body-readers-baseline.tsv b/scripts/page-body-readers-baseline.tsv
index 2e1036912e..9260d9cac7 100644
--- a/scripts/page-body-readers-baseline.tsv
+++ b/scripts/page-body-readers-baseline.tsv
@@ -74,6 +74,8 @@ src/core/belief/backfill.ts preparePage field STREAM the backfill parses inline
src/core/belief/backfill.ts preparePage sql STREAM the backfill parses inline version and page bodies; a segmented page or version is skipped (summary reasons large_page_versions_pruned, segmented_version_body)
src/core/belief/purge.ts pagePurgeClaims field STREAM segmented version: NULL body parses no fence claims; the live rows' and the lifetimes' event claims still cover it
src/core/belief/purge.ts pagePurgeClaims sql STREAM segmented version: NULL body parses no fence claims; the live rows' and the lifetimes' event claims still cover it
+src/core/belief/purge.ts registerVersionCarriers field STREAM segmented version: NULL body registers no carriers; the backfill skips the same version (segmented_version_body), so nothing it appends can copy one
+src/core/belief/purge.ts registerVersionCarriers sql STREAM segmented version: NULL body registers no carriers; the backfill skips the same version (segmented_version_body), so nothing it appends can copy one
src/core/belief/state.ts readBeliefState sql META size only (the over-1 MiB creation rule); a segmented page counts as large by body_storage
src/core/brainstorm/domain-bank.ts fetchFar field LEAD
src/core/brainstorm/orchestrator.ts _runBrainstormInner field LEAD