Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
chore(behavior-changes): stamp Wave A read-contract rows with 0.60.231.0
garrytanb356bab7db6f
diff --git a/src/core/behavior-change-notice.ts b/src/core/behavior-change-notice.tsindex 7f8521af07..72773c7d8f 100644--- a/src/core/behavior-change-notice.ts+++ b/src/core/behavior-change-notice.ts@@ -562,14 +562,14 @@ export const BEHAVIOR_CHANGES: ReadonlyArray<{ since: string; text: ChangeText }{ since: '0.60.223.0', text: 'On Linux, a `gbrain sync` started after another gbrain process on the same machine was killed no longer treats the dead process\'s heartbeat as a live write owner. Before, it refused to hand its catch-up to the running `gbrain serve` for up to 30 s and ran its own consumer next to it; now it hands the catch-up to the serve (or runs its own consumer when no serve is running). A waiter-only consumer deferring to the dead process promotes on its next check instead of after 60 s. A heartbeat row from another host or container, or from an older gbrain, keeps the time-only rule, as does every row where `/proc` is unavailable.' },{ since: '0.60.223.0', text: 'On Linux, when the process holding write claims on this host is killed, another consumer on the same machine now reclaims those claims within about 5 s instead of waiting out their lease (up to `persistence.publication_ceiling_ms` plus about 65 s, so about 365 s by default). Only claims with no recovery record and no publication started are taken, the same guard an expired claim has. An owner that is alive, however slow, or on another host or container keeps its full lease.' },// Large pages, Wave A read contract. `since` is a placeholder equal to the branch's VERSION until the merge-slot stamp.- { since: '0.60.224.0', text: 'A page over 256 KB (`mcp.inline_body_bytes`) read with MCP `get_page` and no body mode now returns an outline plus a first window instead of the whole page; `compiled_truth`, `timeline` and `content` are never filled with part of a page. Read on with `body: "window"` (`lines`, `bytes`, `around_chunk_id` from a search hit, or `next_cursor`); `body: "none"` returns just the revision and size; `body: "full"` or `include_content: true` still return the whole page when it fits the connection. The local `gbrain get` still prints whole pages, and gbrain\'s own thin client pages a large page to its end and checks its sha256 before printing. Hosts advertise this as `capabilities: ["large_pages_v1"]` in `get_brain_identity`.' },- { since: '0.60.224.0', text: 'Every MCP tool result is now measured as its complete encoded response, and a read over the connection\'s cap (4 MiB on stdio, `mcp.max_result_bytes_stdio`; 1 MiB on HTTP, `mcp.max_result_bytes_http`) is replaced by a `result_too_large` error instead of a response the client would cut or reject. A whole page that does not fit is refused with `page_too_large_for_inline`, whose fix reads its outline; an older gbrain CLI gets that refusal rather than a partial page and should be upgraded.' },- { since: '0.60.224.0', text: 'A remote `put_page` of a page over 256 KB now needs `expected_revision` (`force` no longer stands in for it), and content under half the stored page is refused with `page_shrink_refused` unless `allow_shrink: true` (also accepted per entry by `put_pages`). This stops a window sent back as the page from deleting the unread rest; change large pages with `edit_page`, whose revision `get_page body: "none"` returns.' },- { since: '0.60.224.0', text: '`fetch` of a page over 256 KB now returns the window around the searched chunk instead of the whole page, with `metadata.total_bytes`, `metadata.window` and `metadata.next_id` (fetch it to read on). Search result ids for hits past a page\'s first chunk now name that chunk; they decode to the same page and grant nothing.' },- { since: '0.60.224.0', text: 'Evidence delivery (`return_unit` on search, query, recall and `assemble_evidence`) no longer assembles a page over 256 KB whole: a `page` unit becomes the window around the hits and `delivered.fallback_reason` says `page_over_inline_bytes`. A truncated snippet for a hit past a page\'s first chunk now points at `get_page <slug> around_chunk_id=<id>`.' },- { since: '0.60.224.0', text: '`get_chunks` now returns a page\'s chunks 50 at a time in chunk_index order instead of all of them. Pass `from_index` and `limit` (up to 500 over MCP) to read further. The result is still a list; `_meta.pagination` reports `total_chunks` and `next_from_index`, and MCP callers get a `listing_truncated` notice naming the next call when more chunks remain. The local CLI prints a stderr hint when the default cut the list.' },- { since: '0.60.224.0', text: '`get_versions` (`gbrain history`) now returns metadata only for the newest 20 versions by default: id, snapshot time, title, type, tags and frontmatter, without `compiled_truth` or `timeline`. Pass `include_body: true` for the bodies (still filtered for remote callers) and a larger `limit` for older versions (up to 100 over MCP; the local CLI honors any limit). When older versions exist, `_meta.pagination` says so and MCP callers get a `listing_truncated` notice. `gbrain history` shows each version\'s title when no body was requested; `revert_version` is unchanged.' },- { since: '0.60.224.0', text: 'Short page leads (exact-slug and alias search snippets, relational-recall synopses, reflex pointer synopses, entity card summaries, entity-name leads, and think\'s anchor and date-window page rows) now read only the first 64 KiB of a page, respect fact withdrawals, and mask private-key text as a token. Think\'s anchor and date-window rows carry at most 64 KiB of page text instead of the whole page. Output for ordinary small pages is unchanged.' },+ { since: '0.60.231.0', text: 'A page over 256 KB (`mcp.inline_body_bytes`) read with MCP `get_page` and no body mode now returns an outline plus a first window instead of the whole page; `compiled_truth`, `timeline` and `content` are never filled with part of a page. Read on with `body: "window"` (`lines`, `bytes`, `around_chunk_id` from a search hit, or `next_cursor`); `body: "none"` returns just the revision and size; `body: "full"` or `include_content: true` still return the whole page when it fits the connection. The local `gbrain get` still prints whole pages, and gbrain\'s own thin client pages a large page to its end and checks its sha256 before printing. Hosts advertise this as `capabilities: ["large_pages_v1"]` in `get_brain_identity`.' },+ { since: '0.60.231.0', text: 'Every MCP tool result is now measured as its complete encoded response, and a read over the connection\'s cap (4 MiB on stdio, `mcp.max_result_bytes_stdio`; 1 MiB on HTTP, `mcp.max_result_bytes_http`) is replaced by a `result_too_large` error instead of a response the client would cut or reject. A whole page that does not fit is refused with `page_too_large_for_inline`, whose fix reads its outline; an older gbrain CLI gets that refusal rather than a partial page and should be upgraded.' },+ { since: '0.60.231.0', text: 'A remote `put_page` of a page over 256 KB now needs `expected_revision` (`force` no longer stands in for it), and content under half the stored page is refused with `page_shrink_refused` unless `allow_shrink: true` (also accepted per entry by `put_pages`). This stops a window sent back as the page from deleting the unread rest; change large pages with `edit_page`, whose revision `get_page body: "none"` returns.' },+ { since: '0.60.231.0', text: '`fetch` of a page over 256 KB now returns the window around the searched chunk instead of the whole page, with `metadata.total_bytes`, `metadata.window` and `metadata.next_id` (fetch it to read on). Search result ids for hits past a page\'s first chunk now name that chunk; they decode to the same page and grant nothing.' },+ { since: '0.60.231.0', text: 'Evidence delivery (`return_unit` on search, query, recall and `assemble_evidence`) no longer assembles a page over 256 KB whole: a `page` unit becomes the window around the hits and `delivered.fallback_reason` says `page_over_inline_bytes`. A truncated snippet for a hit past a page\'s first chunk now points at `get_page <slug> around_chunk_id=<id>`.' },+ { since: '0.60.231.0', text: '`get_chunks` now returns a page\'s chunks 50 at a time in chunk_index order instead of all of them. Pass `from_index` and `limit` (up to 500 over MCP) to read further. The result is still a list; `_meta.pagination` reports `total_chunks` and `next_from_index`, and MCP callers get a `listing_truncated` notice naming the next call when more chunks remain. The local CLI prints a stderr hint when the default cut the list.' },+ { since: '0.60.231.0', text: '`get_versions` (`gbrain history`) now returns metadata only for the newest 20 versions by default: id, snapshot time, title, type, tags and frontmatter, without `compiled_truth` or `timeline`. Pass `include_body: true` for the bodies (still filtered for remote callers) and a larger `limit` for older versions (up to 100 over MCP; the local CLI honors any limit). When older versions exist, `_meta.pagination` says so and MCP callers get a `listing_truncated` notice. `gbrain history` shows each version\'s title when no body was requested; `revert_version` is unchanged.' },+ { since: '0.60.231.0', text: 'Short page leads (exact-slug and alias search snippets, relational-recall synopses, reflex pointer synopses, entity card summaries, entity-name leads, and think\'s anchor and date-window page rows) now read only the first 64 KiB of a page, respect fact withdrawals, and mask private-key text as a token. Think\'s anchor and date-window rows carry at most 64 KiB of page text instead of the whole page. Output for ordinary small pages is unchanged.' },// GBRA-96 (default reranker). `since` is a placeholder equal to the branch's VERSION until the merge-slot stamp.{ 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.