Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
docs(changelog): large pages crash-fix entry; stamp behavior-change rows
garrytanacca5b4e75d2
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 6eb1308c66..a29759427c 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -10,6 +10,17 @@ credits are retained; no result has been reassigned to another provider. Originaidentifiers and attribution are available in the pre-removal Git revision`6040075c6cb95be5881cc2e1b76ef7d71f4e5d29` (retained on 2026-09-23).+## [0.60.232.0] - 2026-10-14++**Large pages no longer crash or stall edit_page, parsing, chunking or code indexing, and a long timeline no longer fails the page write (large pages Wave A, crash fixes).** Several steps did work that grew with the square of the page size. On a 1.79 MB chat page (about 30,000 lines), `edit_page`'s receipt diff built a full line-by-line table and ran the process out of memory. Splitting a page that uses `---` separators took 54 s at 4 MB. Chunking newline-free text took 155 s at 10 MB. The code edge extractor took over 200 s on a 10 MB source file. Separately, the page keyword vector indexed the whole timeline, so roughly 1 MB of varied timeline text overflowed Postgres's 1 MB `tsvector` limit and aborted the write. All of these now run in linear time and bounded memory. Every fix produces byte-identical output, proven by differential tests against the old code, except the two bounded behaviors below.++### Itemized changes++- **edit_page receipt diff** (`src/core/persistence/page-edit.ts`, `src/core/skillpack/diff-text.ts`): the diff trims common leading and trailing lines and keeps the line table under 4 million cells. Past that it emits one coarse hunk marked `diff_coarse: true`. `unifiedDiff` output is unchanged for every other caller. Tested on a 50,000-line page under a 3 GB memory cap.+- **Timeline split** (`src/core/markdown.ts`): the check for content above a `---` or `## Timeline` line is O(1) per line instead of re-joining every line above it. Output is byte-identical, so `content_hash` is unchanged.+- **Chunker and edge extractor** (`src/core/chunkers/recursive.ts`, `src/core/chunkers/edge-extractor.ts`): `splitAtDelimiters` is covered by a differential test and a scan-count probe. The edge extractor resolves receivers through a lazy per-file binding index and locates chunks by binary search, and emits identical edges.+- **Bounded page keyword vector** (migration v245, `src/schema.sql`, `src/core/fts-language.ts`): the title arm indexes the first 65,536 characters of the timeline and the first 32,768 characters of timeline entries. The densest worst-case page stays under the 1 MB limit on both engines. The upgrade rebuilds pages with long timelines once.+## [0.60.231.0] - 2026-10-14**Reading a large page no longer pulls the whole page into a response: `get_page` returns an outline and a window, and every remote window is cut from the privacy-sanitized view of the page (large pages Wave A, part 1).** Before, `get_page` of a 100 MB page built a 204 MB JSON-RPC frame. That is over the MCP SDK's 10 MiB stdio limit and far over the 25k tokens a harness accepts. Evidence delivery also read the whole body for every conversation hit: 2 s and +622 MB per hit at 100 MB. Now an MCP client that is not the thin client gets the full body up to the inline threshold, and above it an outline plus the first window with the exact call to read on. Windows, outlines and short leads all slice one projection with withdrawals applied, takes/facts fences stripped and credentials projected. A partial response never fills `compiled_truth`, `timeline` or `content`, so a read followed by a write cannot shrink a page by accident. Another guard backs this up: a remote `put_page` that would cut a large page to under half refuses unless `allow_shrink: true`. Pages up to today's ingest limits read as before through the local CLI and the thin client. The ceiling increase and searchability of large pages come in the next Wave A PR.diff --git a/src/core/behavior-change-notice.ts b/src/core/behavior-change-notice.tsindex 42b6dae308..6d8b20d8ab 100644--- a/src/core/behavior-change-notice.ts+++ b/src/core/behavior-change-notice.ts@@ -574,8 +574,8 @@ export const BEHAVIOR_CHANGES: ReadonlyArray<{ since: string; text: ChangeText }{ since: '0.60.228.0', text: 'The default search reranker is now Voyage `rerank-3-lite` instead of `rerank-2.5`, for brains that never set `search.reranker.model` (a brain that set one keeps it). In gbrain-evals #148 (v0.10.93) it cut rerank cost 60% at the same 50 candidates × 1,400 tokens, with retrieval quality within noise. To go back: `gbrain config set search.reranker.model voyage:rerank-2.5`.' },// #6650 follow-up (group follower stamps). `since` is a placeholder equal to the branch's VERSION until the merge-slot stamp.{ since: '0.60.229.0', text: 'On Linux, when a gbrain process holding a group of writes is killed, the group members it had claimed but not started are now reclaimed with its other claims within about 5 s, instead of after their 30 s claim lease. Members it had started, and any member with a recovery record or a publication in progress, are handled as before. A host with a dead owner row ahead of more than eight others now still finds the live `gbrain serve` to hand a sync to.' }, // Large-pages lane 1 (crash fixes). `since` is 'TBD' until the merge-slot stamp.- { since: 'TBD', text: '`edit_page` on a large page no longer line-diffs the whole page for its receipt diff: past 4 million old-by-new line pairs (about 2,000 x 2,000 lines) only the changed region between the common leading and trailing lines is diffed, with the same 3 lines of context and page line numbers. When that region is itself that large, the diff is one hunk (every old line removed, every new line added) and the receipt says `diff_coarse: true`. Before, a one-line edit on a 50,000-line page could run the process out of memory. Diffs of smaller pages are unchanged.' },- { since: 'TBD', text: 'The page keyword vector (the title arm of search) now indexes the first 65,536 characters of a page\'s timeline, and the database trigger the first 32,768 characters of its timeline entries, so a word that appears only past that point no longer finds the page through the title arm; chunk search still covers the whole timeline. Before, writing a page with a diverse timeline over about 1 MB failed with "string is too long for tsvector". The upgrade rebuilds the vectors of pages whose timeline is over 32,768 characters once.' },+ { since: '0.60.232.0', text: '`edit_page` on a large page no longer line-diffs the whole page for its receipt diff: past 4 million old-by-new line pairs (about 2,000 x 2,000 lines) only the changed region between the common leading and trailing lines is diffed, with the same 3 lines of context and page line numbers. When that region is itself that large, the diff is one hunk (every old line removed, every new line added) and the receipt says `diff_coarse: true`. Before, a one-line edit on a 50,000-line page could run the process out of memory. Diffs of smaller pages are unchanged.' },+ { since: '0.60.232.0', text: 'The page keyword vector (the title arm of search) now indexes the first 65,536 characters of a page\'s timeline, and the database trigger the first 32,768 characters of its timeline entries, so a word that appears only past that point no longer finds the page through the title arm; chunk search still covers the whole timeline. Before, writing a page with a diverse timeline over about 1 MB failed with "string is too long for tsvector". The upgrade rebuilds the vectors of pages whose timeline is over 32,768 characters once.' },];/** The newest disclosed change's release: the notice id moves only when a release adds rows. */