Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

chore(release): stamp large-pages behavior changes for v0.60.242.0

garrytan92345de017ce
diff --git a/src/core/behavior-change-notice.ts b/src/core/behavior-change-notice.ts
index 4306b1e3cd..45f0e55115 100644
--- a/src/core/behavior-change-notice.ts
+++ b/src/core/behavior-change-notice.ts
@@ -603,21 +603,21 @@ export const BEHAVIOR_CHANGES: ReadonlyArray<{ since: string; text: ChangeText }
{ since: '0.60.235.0', text: 'Maintenance no longer submits writes it knows will fail: a page whose canonical file is gone is refused before a request exists (`source_changed`, detail `canonical_file_missing`), and the same write refused three times in a day (`persistence.maintenance.refusal_breaker_threshold`; 0 turns it off) is held back until the page, the planner or the write changes. Doctor `maintenance_write_drift` lists what is held back and how to release it.' },
{ since: '0.60.236.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.236.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.' },
- // Large pages A7 (Lane 3b). `since` is set at the merge-slot stamp.
- { since: 'TBD', text: 'Automatic fact extraction from a page longer than 8,000 characters now reads the text appended since its last extraction (the newest 8,000 characters when more was appended) instead of the first 8,000 characters every time, so messages appended to a long conversation page yield facts. Re-extracting an unchanged long page makes no model call. A page that changed before that point, or was never extracted, is still read from its first 8,000 characters, and that is recorded in the new `page_extraction_state` table instead of passing silently.' },
- { since: 'TBD', text: '`extract_atoms` on a page over `cycle.extract_atoms.max_input_chars` now reads the text appended since its last extraction instead of the page head again. Such a read is still partial input: no completion stamp is written and no atom is retired. A complete appended-text read prints no stderr line; a cut read still does.' },
- { since: 'TBD', text: '`gbrain extract-conversation-facts` now checks a `raw_transcript` sidecar\'s size before reading it: a sidecar over the 25 MiB cap is skipped without being read (before, it was read whole and bypassed the cap), and the cap now applies to the text the parser reads, so a sidecar page whose own body is over the cap but whose sidecar is under it is no longer skipped. The cap is derived from the page ceiling and never sits below it. A size skip now leaves a durable receipt as well as the stderr line.' },
- { since: 'TBD', text: 'Doctor has a new `extraction_input_truncated` check listing pages whose last extraction read only part of their input (facts from the head or the newest window of a long append, atoms cut at the input cap, conversation pages skipped for size), with sample slugs and the remedy. It warns when atoms or conversation-facts receipts exist (naming `gbrain config set cycle.extract_atoms.max_input_chars <n>`, a paid change for the user to decide); facts-only receipts are reported as info.' },
- // Large pages A6/A9/T33/T3/F10 (Lane 3). `since` is set at the merge-slot stamp.
- { since: 'TBD', text: 'Pages up to 24 MiB are now stored, chunked and keyword-searchable: `content_sanity.bytes_block` defaults to the 24 MiB page ceiling (was 500 KB), so a page between 500 KB and 24 MiB is no longer stored with `embed_skip` and zero chunks. Import, sync, the managed sync read, CLI stdin (`gbrain put`, was 5 MB) and the MCP stdio message limit (was the SDK\'s 10 MiB) all admit a page at the ceiling; one byte more is refused with the limit named. Code files keep their 5 MB limit. Size refusals no longer tell agents to split pages under the ceiling. A page with an `embed_skip` marker, including one over an operator\'s lower `bytes_block`, keeps its chunks and stays keyword-searchable; it only gets no vectors (it used to drop to zero chunks). `put_page`, `remember` and sync receipts carry `size_state` (sync: `size_states`) naming a large or embed_skip page\'s embedding state: `deferred`, `partial`, `held` or `skipped`. A `put_page` or `capture` body over the ceiling is refused as `request_too_large` before journal admission, so no write request is recorded for it and a body over the journal\'s intent-byte cap no longer returns retryable `queue_capacity`.' },
- { since: 'TBD', text: 'A page over 1 MiB now commits with its chunks keyword-searchable and no vectors, and is embedded after the write by the stale sweep, `gbrain embed` or the post-write embedding job, instead of embedding every chunk inline before the write commits. Each such page spends at most `embed.max_usd_per_page` (default $2; unlimited under `spend.posture tokenmax` when unset; `off` disables it) over its lifetime per embedding model, newest chunks first; the run caps still apply and the lowest cap wins. A page the cap stopped, or one held for approval, leaves the stale queue, and doctor\'s new `partial_embedding` check names it with the approval command (`gbrain embed --held --max-usd N`, or `gbrain embed --slugs <slug> --max-usd N`). Before embedding, a large page whose head, middle and tail samples are all markup, or two of them match junk patterns, is held instead. Large pages use the free title context tier, never paid per-chunk synopses.' },
- { since: 'TBD', text: '`gbrain upgrade` now re-indexes pages an older gbrain stored without chunks because they were over 500 KB (`embed_skip: oversized`) when they fit under the effective `bytes_block`: for up to two minutes in its post-upgrade step, then `gbrain reindex --oversized` (new; `--dry-run`, `--source`, `--limit`, `--json`) finishes. It is CPU-only, works with embeddings off, makes those pages keyword-searchable at once and prints a receipt. It removes only the gate-written marker and its `content_flag: oversized`. Pages over 1 MiB are held for embedding approval; the post-upgrade notice shows their count and estimated cost and asks before anything is spent.' },
- { since: 'TBD', text: 'A page over 1 MiB keeps only its newest 5 large version snapshots in `page_versions` (each snapshot is a full copy of the body); its snapshots at or under 1 MiB, and every snapshot of a smaller page, are kept as before. The persistence journal now admits 64 MiB of outstanding write intent per principal (was 32 MiB), so a second ceiling-size write can wait behind the first. Write-through never writes a canonical file over the 25 MiB pre-push secret-scan limit: it skips with `over_push_scan_cap`, and a managed write that would produce one is refused with `request_too_large`.' },
- // Large pages: get_chunks truncation marker (coordinator follow-up to the read contract). `since` is set at the merge-slot stamp.
- { since: 'TBD', text: 'When `get_chunks` returns fewer chunks than the page holds, the last chunk in the list now carries `truncated: true` and `next_from_index`, so a client that reads only the array (and not `_meta.pagination` or the `listing_truncated` notice) sees the list is incomplete. The result is still a bare array; the other chunks are unchanged.' },
- // Large pages A3/T44, A4/T32 (Lane 3a). `since` is set at the merge-slot stamp.
- { since: 'TBD', text: 'Replacing a page\'s chunks now writes them in bounded batches (at most 500 rows and 16 MiB of encoded rows per statement) after one prune, all in the same transaction, instead of one statement carrying every chunk. A page with thousands of chunks no longer builds one giant statement, and a failure in any batch still rolls the whole replacement back.' },
- { since: 'TBD', text: 'A chunk vector is now tied to the chunk\'s text and its full embedding input rather than its position. When an edit inserts or removes chunks above it, a projection rebuild moves the unchanged chunk to its new index with its vector instead of dropping it, so only new or changed chunks wait for embedding. An embed that finishes after the page changed now commits the vectors of the chunks that are still the same (same text, source and embedding input) and leaves the rest for the next run, instead of discarding the whole run; the page\'s embedding signature is stamped only when every chunk got its vector. A vector built under an old title or synopsis is still dropped.' },
+ // Large pages A7 (Lane 3b).
+ { since: '0.60.242.0', text: 'Automatic fact extraction from a page longer than 8,000 characters now reads the text appended since its last extraction (the newest 8,000 characters when more was appended) instead of the first 8,000 characters every time, so messages appended to a long conversation page yield facts. Re-extracting an unchanged long page makes no model call. A page that changed before that point, or was never extracted, is still read from its first 8,000 characters, and that is recorded in the new `page_extraction_state` table instead of passing silently.' },
+ { since: '0.60.242.0', text: '`extract_atoms` on a page over `cycle.extract_atoms.max_input_chars` now reads the text appended since its last extraction instead of the page head again. Such a read is still partial input: no completion stamp is written and no atom is retired. A complete appended-text read prints no stderr line; a cut read still does.' },
+ { since: '0.60.242.0', text: '`gbrain extract-conversation-facts` now checks a `raw_transcript` sidecar\'s size before reading it: a sidecar over the 25 MiB cap is skipped without being read (before, it was read whole and bypassed the cap), and the cap now applies to the text the parser reads, so a sidecar page whose own body is over the cap but whose sidecar is under it is no longer skipped. The cap is derived from the page ceiling and never sits below it. A size skip now leaves a durable receipt as well as the stderr line.' },
+ { since: '0.60.242.0', text: 'Doctor has a new `extraction_input_truncated` check listing pages whose last extraction read only part of their input (facts from the head or the newest window of a long append, atoms cut at the input cap, conversation pages skipped for size), with sample slugs and the remedy. It warns when atoms or conversation-facts receipts exist (naming `gbrain config set cycle.extract_atoms.max_input_chars <n>`, a paid change for the user to decide); facts-only receipts are reported as info.' },
+ // Large pages A6/A9/T33/T3/F10 (Lane 3).
+ { since: '0.60.242.0', text: 'Pages up to 24 MiB are now stored, chunked and keyword-searchable: `content_sanity.bytes_block` defaults to the 24 MiB page ceiling (was 500 KB), so a page between 500 KB and 24 MiB is no longer stored with `embed_skip` and zero chunks. Import, sync, the managed sync read, CLI stdin (`gbrain put`, was 5 MB) and the MCP stdio message limit (was the SDK\'s 10 MiB) all admit a page at the ceiling; one byte more is refused with the limit named. Code files keep their 5 MB limit. Size refusals no longer tell agents to split pages under the ceiling. A page with an `embed_skip` marker, including one over an operator\'s lower `bytes_block`, keeps its chunks and stays keyword-searchable; it only gets no vectors (it used to drop to zero chunks). `put_page`, `remember` and sync receipts carry `size_state` (sync: `size_states`) naming a large or embed_skip page\'s embedding state: `deferred`, `partial`, `held` or `skipped`. A `put_page` or `capture` body over the ceiling is refused as `request_too_large` before journal admission, so no write request is recorded for it and a body over the journal\'s intent-byte cap no longer returns retryable `queue_capacity`.' },
+ { since: '0.60.242.0', text: 'A page over 1 MiB now commits with its chunks keyword-searchable and no vectors, and is embedded after the write by the stale sweep, `gbrain embed` or the post-write embedding job, instead of embedding every chunk inline before the write commits. Each such page spends at most `embed.max_usd_per_page` (default $2; unlimited under `spend.posture tokenmax` when unset; `off` disables it) over its lifetime per embedding model, newest chunks first; the run caps still apply and the lowest cap wins. A page the cap stopped, or one held for approval, leaves the stale queue, and doctor\'s new `partial_embedding` check names it with the approval command (`gbrain embed --held --max-usd N`, or `gbrain embed --slugs <slug> --max-usd N`). Before embedding, a large page whose head, middle and tail samples are all markup, or two of them match junk patterns, is held instead. Large pages use the free title context tier, never paid per-chunk synopses.' },
+ { since: '0.60.242.0', text: '`gbrain upgrade` now re-indexes pages an older gbrain stored without chunks because they were over 500 KB (`embed_skip: oversized`) when they fit under the effective `bytes_block`: for up to two minutes in its post-upgrade step, then `gbrain reindex --oversized` (new; `--dry-run`, `--source`, `--limit`, `--json`) finishes. It is CPU-only, works with embeddings off, makes those pages keyword-searchable at once and prints a receipt. It removes only the gate-written marker and its `content_flag: oversized`. Pages over 1 MiB are held for embedding approval; the post-upgrade notice shows their count and estimated cost and asks before anything is spent.' },
+ { since: '0.60.242.0', text: 'A page over 1 MiB keeps only its newest 5 large version snapshots in `page_versions` (each snapshot is a full copy of the body); its snapshots at or under 1 MiB, and every snapshot of a smaller page, are kept as before. The persistence journal now admits 64 MiB of outstanding write intent per principal (was 32 MiB), so a second ceiling-size write can wait behind the first. Write-through never writes a canonical file over the 25 MiB pre-push secret-scan limit: it skips with `over_push_scan_cap`, and a managed write that would produce one is refused with `request_too_large`.' },
+ // Large pages: get_chunks truncation marker (coordinator follow-up to the read contract).
+ { since: '0.60.242.0', text: 'When `get_chunks` returns fewer chunks than the page holds, the last chunk in the list now carries `truncated: true` and `next_from_index`, so a client that reads only the array (and not `_meta.pagination` or the `listing_truncated` notice) sees the list is incomplete. The result is still a bare array; the other chunks are unchanged.' },
+ // Large pages A3/T44, A4/T32 (Lane 3a).
+ { since: '0.60.242.0', text: 'Replacing a page\'s chunks now writes them in bounded batches (at most 500 rows and 16 MiB of encoded rows per statement) after one prune, all in the same transaction, instead of one statement carrying every chunk. A page with thousands of chunks no longer builds one giant statement, and a failure in any batch still rolls the whole replacement back.' },
+ { since: '0.60.242.0', text: 'A chunk vector is now tied to the chunk\'s text and its full embedding input rather than its position. When an edit inserts or removes chunks above it, a projection rebuild moves the unchanged chunk to its new index with its vector instead of dropping it, so only new or changed chunks wait for embedding. An embed that finishes after the page changed now commits the vectors of the chunks that are still the same (same text, source and embedding input) and leaves the rest for the next run, instead of discarding the whole run; the page\'s embedding signature is stamped only when every chunk got its vector. A vector built under an old title or synopsis is still dropped.' },
];
/** The newest disclosed change's release: the notice id moves only when a release adds rows. */