Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
Merge fix lane N (doctor and frontmatter repair report skipped segmented pages)
garrytan4f49e50dcc81
diff --cc docs/guides/memory-boundaries.mdindex 9c4e49c3fd,cb24c007a5..64552c5cb6--- a/docs/guides/memory-boundaries.md+++ b/docs/guides/memory-boundaries.md@@@ -180,17 -180,19 +180,30 @@@ pages wait. A quarantined page say`searchable: false`. `gbrain import` waits for the build and reports`searchable` in its result the same way.+Deleting and restoring a segmented page on a source backed by files works up+to the page ceiling. A restore reserves room for its file twice (the staging+file and the file) in the worktree recovery budget, so with the switch on+`persistence.limits.worktree_recovery_bytes` defaults to twice `pages.max_bytes`+plus 2 MiB, never less than 256 MiB (514 MiB on Postgres and 258 MiB on PGLite+at the default ceilings). A value you set is kept; a page that does not fit it+is refused with `request_too_large` before anything is touched. A restored+page is searchable when the restore commits, or, when its chunks were never+built, right after it (`gbrain projections drain` builds it if that build+dies).++ <a id="segmented-doctor-skips"></a>+ **What doctor does not read on a segmented page.** Some doctor checks read a+ page's whole body as one string, and a page stored in segments has none.+ Those checks say how many such pages they passed by: `oversized_pages`,+ `scraper_junk_pages`, `markdown_body_completeness`,+ `link_resolution_opportunity`, `fence_integrity`, `core_memory` and+ `extract_health` (its facts-backlog overlay) carry `skipped_segmented: N` in+ `gbrain doctor --json` and end their message with `skipped (segmented): N`.+ `gbrain repair frontmatter` reports the same count (residual+ `skipped_segmented` and a warning) for the stored bodies it does not check;+ it still checks their files. An `ok` from such a check covers only the pages+ it read. The field is absent when no page is stored in segments.+While the switch is off (unset in this release, set to `off`, or held by anolder writer), new pages are stored inline up to 24 MiB as before.Pages already stored in segments stay readable and exportable; a write that