Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
chore(defaults): wave-1 defaults as approved (facts arm on, per-model supersession thresholds, pinned questions opt-in, other wave knobs off); BEHAVIOR_CHANGES rows for the facts arm, uncalibrated-model supersession and the auto_think-to-pins migration
garrytan57148c5a7fbf
diff --git a/src/core/behavior-change-notice.ts b/src/core/behavior-change-notice.tsindex d9e4ecafbe..e40a5a5bd2 100644--- a/src/core/behavior-change-notice.ts+++ b/src/core/behavior-change-notice.ts@@ -380,6 +380,10 @@ export const BEHAVIOR_CHANGES: ReadonlyArray<{ since: string; text: ChangeText }{ since: '0.60.159.0', text: 'Captured session files (compaction segments, Stop-hook turns and SessionEnd transcripts) now record the source their session started under and are filed there, in a `sourced/` folder of the corpus directory, instead of under whatever source the sweep runs for. Files written before this upgrade on a brain with more than one source are held until you say where they belong: `gbrain doctor` names them, `gbrain sweep --assign-corpus <source>` previews and `--apply` maps them. A serve asked to file a session under another source refuses instead of rerouting it.' },{ since: '0.60.159.0', text: 'On OpenClaw 2026.9.x, which no longer passes a session file to the context engine, compaction now banks a gbrain checkpoint segment again by reading the transcript through the host\'s session-transcript runtime. Each compaction leaves an `openclaw-compact` entry in the hooks heartbeat, and `gbrain doctor` warns when a week of compactions banked nothing.' },{ since: '0.60.159.0', text: 'Transcript pages now keep every message whole: a message longer than 4,000 characters was cut there, and now continues in the next block under the same speaker. Re-ingesting a transcript or export re-imports the pages that had long messages (and re-extracts their facts if fact extraction is on). Chat connector syncs also keep retrying a conversation that failed until it imports and report `partial` with `unresolved` meanwhile (`gbrain doctor` warns the archive is incomplete). Conversations synced earlier are not repaired on their own: after asking the user, run `gbrain connectors sync <provider> --full` once.' },+ // Memory proof wave (#6066). `since` is a placeholder equal to the branch's VERSION until the merge-slot stamp.+ { since: '0.60.159.0', text: '`query` now adds saved facts that match the question as rows of their own, at most 3, only in row and token capacity the pages left free, so no page row is pushed out. A fact row has `result_type: "fact"`, `fact_id` and a `follow_up` recall call, and never a page slug or id; a page row whose claim a newer saved fact replaced carries `superseded_claim`. It adds up to three database lookups per query and no model call. Remote callers see only facts whose source pages they could read. `gbrain config set search.query_facts_arm false` restores the previous results.' },+ { since: '0.60.159.0', text: 'A saved fact now replaces a similar older fact by embedding similarity only when the brain\'s embedding model has a measured threshold. The default voyage-4 at 1024 dimensions keeps 0.95 and decides as before. With any other model, both facts stay active and the conflict review sweep judges the pair where it is on; exact-text duplicates are still merged. Doctor `supersession_calibration` names the command that measures a threshold (about a cent of synthetic text, no brain content), and `gbrain config set facts.supersession_thresholds \'{"<provider:model@dims>": <threshold>}\'` registers one.' },+ { since: '0.60.159.0', text: 'Pinned questions replace `dream.auto_think`. On upgrade, each question in `dream.auto_think.questions` becomes a pinned question, with its budget, cooldown, model and commit setting; it is inactive when auto_think was off or its budget was 0. An active pin is refreshed by the dream cycle\'s new `standing_questions` phase, which spends from `cycle.standing_questions.budget_usd`; auto_think never ran in the cycle. `gbrain questions list` shows the pins, `gbrain questions unpin <id>` stops one, and `gbrain config set cycle.standing_questions.enabled false` stops the phase. `gbrain dream --phase auto_think` now exits with a usage error naming the replacement.' },];/** The newest disclosed change's release: the notice id moves only when a release adds rows. */diff --git a/src/core/search/facts-arm.ts b/src/core/search/facts-arm.tsindex 3da28c8a7d..f45ad5fe3e 100644--- a/src/core/search/facts-arm.ts+++ b/src/core/search/facts-arm.ts@@ -1,5 +1,5 @@/**- * Facts arm for `query` (`search.query_facts_arm`, default off; gates in+ * Facts arm for `query` (`search.query_facts_arm`, default on; gates in* docs/eval/decisions/query-facts-arm/). A correction saved with `remember`* lives in the facts table, which page search never ranks, so the stale page* text answers instead. With the key on, `query` adds the active facts that