Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

Merge lane 2r-maint (repair scans, integrity/reconcile-links/aliases/quarantine on segmented pages) into lane 2r

garrytandc9471146c4c
diff --cc src/core/behavior-change-notice.ts
index 39681a0582,f9c3d3e252..6e224182c2
--- a/src/core/behavior-change-notice.ts
+++ b/src/core/behavior-change-notice.ts
@@@ -653,9 -653,7 +653,10 @@@ export const BEHAVIOR_CHANGES: Readonly
{ since: 'TBD', text: 'A page over 24 MiB imported or synced from its file is no longer stamped `embed_skip` and `content_flag: oversized` for its size: while `content_sanity.bytes_block` is unset, a segmented page is judged against its page ceiling, and the markup check samples its head, middle and tail as it does for any large page. A `content_sanity.bytes_block` set above 24 MiB no longer holds such a file; one set below the page still stops its embedding.' },
{ since: 'TBD', text: 'Forget and purge on a page stored in segments now rewrite and re-index only the segments that hold the struck or purged row.' },
{ since: 'TBD', text: 'Export accepts a page stored in segments up to the page ceiling (was 32 MiB per page), streams it to disk, and still aborts rather than produce a partial export.' },
+ { since: 'TBD', text: '`remember` whose entity page (named, or inferred from the fact) is stored in segments over 24 MiB refuses with code `page_body_segmented` (wire error `invalid_params`, not retryable) and a fix that saves the claim without an entity, instead of `unavailable` / `storage_error`, or of silently saving an inferred subject without its entity. A segmented entity up to 24 MiB now links when it is inferred, as it does when named.' },
+ { since: 'TBD', text: '`get_page` with `body: "full"` (or `include_content`) on a page stored in segments refuses with `page_body_segmented` for local and MCP callers alike (MCP callers got `invalid_params` / `page_too_large_for_inline`; gbrain\'s thin client keeps paging on that one), and every `page_body_segmented` fix now reads the page with `body: "auto"` instead of `body: "none"`. `grammar_diagnostics` on such a page returns `line_grammar: {state: "skipped", reason: "page_body_segmented"}` instead of failing the read, and the `entity` card is built from the page\'s first 64 KiB.' },
+ { since: 'TBD', text: '`gbrain import` of a Markdown file over 24 MiB from outside its source root now says in the error itself to move the file into the source root and import it there, naming the target path.' },
+ { since: 'TBD', text: 'Maintenance on pages stored in segments: `gbrain repair timeline` (and `repair --all`) no longer crashes on one; it repairs inline pages and reports segmented pages carrying timeline rows as `segmented_pages` / `segmented_rows` with their slugs, and doctor `timeline_history` counts them separately without recommending a repair for them. `repair timeline-comments`, `connector-fences`, `split-facts` and `conversation-labels` report the segmented pages they do not handle instead of skipping them silently, and a repair item refused with `page_body_segmented` is listed in `failed[]` while the run goes on. `gbrain integrity check` / `integrity auto` and `gbrain reconcile-links` read a segmented page block by block and give the results its text gives inline; `gbrain reindex --aliases` derives its aliases as its import did; `gbrain quarantine scan` lists it under `skipped` (not re-checked). A page one of these commands cannot read is listed under `skipped` and the run goes on.' },
];
/** The newest disclosed change's release: the notice id moves only when a release adds rows. */
diff --cc test/postgres-unit-arms.txt
index 2a07d7e3bb,bdfb6aa47a..a52d8af140
--- a/test/postgres-unit-arms.txt
+++ b/test/postgres-unit-arms.txt
@@@ -90,8 -89,8 +90,10 @@@ test/large-pages/segmented-evidence.tes
test/large-pages/segmented-get-cli.test.ts
test/large-pages/segmented-get-page-parity.test.ts
test/large-pages/segmented-leads.test.ts
+ test/large-pages/segmented-maintenance-commands.test.ts
+test/large-pages/segmented-read-refusals.test.ts
+test/large-pages/segmented-remember-refusal.test.ts
+ test/large-pages/segmented-repair-scans.test.ts
test/large-pages/segmented-search-dedup.test.ts
test/large-pages/segmented-shrink-below-ceiling.test.ts
test/large-pages/segmented-storage-visibility.test.ts