Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

docs(changelog): GBRA-190 wave entry; BEHAVIOR_CHANGES rows wait for the merge-slot stamp

garrytan6b04ac5f3e4a
diff --git a/CHANGELOG.md b/CHANGELOG.md
index debda20022..70bdab5525 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -10,6 +10,36 @@ credits are retained; no result has been reassigned to another provider. Origina
identifiers and attribution are available in the pre-removal Git revision
`6040075c6cb95be5881cc2e1b76ef7d71f4e5d29` (retained on 2026-09-23).
+## [0.60.433.0] - 2026-10-24
+
+**Eight fixes for memory writes and maintenance. A `remember` batch now applies its top-level `entity`, `content_origin` and `valid_from` to every item, so batched facts keep their subject and batched tool output keeps its lower trust tier. Conversation-fact extraction no longer throws away a page's facts over one purged claim. `facts relink` works on strict structured-output backends and no longer times out on large brains, `think` gives reasoning models behind a proxy room to answer, Hermes imports keep clarify answers, and raising the extract_atoms input cap re-extracts the pages it cut.**
+
+### What changed
+
+| Situation | Before | Now |
+|---|---|---|
+| `remember` with a top-level `entity` and `items` | the entity was ignored; every item without its own was saved with no subject and a `NO_ENTITY` warning, so entity recall missed them | the top-level `entity` is the default subject; an item's own `entity` (or explicit null) still wins |
+| `remember` batch with `content_origin: tool_output` or `valid_from` | ignored at the top level and refused on an item, so batched tool output was stored at the writer's trust tier | both apply as defaults and per item; batched tool output is stored as `external_untrusted`, like a single `remember` |
+| Conversation-fact extraction meets a claim the owner purged | the facts insert refused the whole page after the model call was paid for; on a managed brain every page in the same batch failed and was blocked after three tries | the purged claim is left out (`facts_skipped_purged`) and the rest of the page publishes |
+| `gbrain facts relink` model tier on a strict structured-output backend | every batch was rejected (`invalid_json_schema`) and recorded as `model_unavailable` | the response schema is strict-compatible |
+| `gbrain facts relink --conversation` on a large brain | each relink attempt scanned every live page of its source and the run hit `statement_timeout`, dry runs included | an index on live pages by source and creation time answers each check with one probe |
+| Subject inference on "paid CHF 80", "Invoice total ...", "including X notes" | a currency amount or a label word made a one-person fact ambiguous; an entity named only as an example became the subject | amounts and label openers don't block the subject; an example is never chosen as the subject; a page actually named CHF, Invoice or Work still counts |
+| `gbrain think` on `litellm:gpt-6-luna`, `openrouter:openai/gpt-5.2` or `openai:gpt-6-*` | 4,000 output tokens; long answers came back truncated (`LLM_OUTPUT_TRUNCATED`) | 16,000, as gpt-5 and the o-series already got under `openai:` |
+| Hermes transcript import of a `clarify` form | the user's answers were dropped, so the imported conversation skipped their correction | answered responses (submitted, or locked before a timeout) import as user turns after their question; skipped, cancelled and unselected options never do |
+| `dream --phase extract_atoms --drain` after raising `cycle.extract_atoms.max_input_chars` | reported drained with 0 batches; the pages cut at the old cap stayed partial | the backlog counts them, so the drain re-extracts them under the new cap |
+
+### What to watch for after you upgrade
+
+- Upgrading builds the index `pages_source_created_idx` (migration v270): online on Postgres, a short plain build on PGLite. Nothing else is rewritten.
+- If you raised the extract_atoms input cap earlier, the next drain or autopilot run re-extracts the pages that were cut, with model calls.
+- Hermes sessions that hold clarify answers re-render on their next import, which can re-run fact extraction for those pages.
+- Thanks to @Masashi-Ono0611, @javieraldape and @veltri-23, whose pull requests these fixes build on.
+
+### For contributors
+
+- `notePurgedSkips` in `src/core/facts/conversation-publication.ts` counts and logs purged claims for both the managed and unmanaged publication paths.
+- The remember batch builds its top-level defaults from the item field list (`src/core/remember-batch.ts`), so the two can't drift apart again.
+
## [0.60.430.0] - 2026-10-24
**On a managed brain, a script or cron can now commit the files it wrote with `gbrain git commit-push -m <msg> -- <paths>`. It commits only those paths and never fetches, pushes or moves the checkout. A checkout whose local commits diverged from the remote now has a supported fix: one ask-user command publishes them merged, after which `gbrain sources refresh` fast-forwards. `sources writer status` and doctor list each unpushed commit (sha, author, date, paths) with the porcelain counts. `gbrain sources set-sync` turns a source's automatic sync off and on, and doctor `cron_gbrain_home` flags cron commands that would act on `~/.gbrain` instead of this brain.**
diff --git a/src/core/behavior-change-notice.ts b/src/core/behavior-change-notice.ts
index 3b2fcd28f0..6307214ef6 100644
--- a/src/core/behavior-change-notice.ts
+++ b/src/core/behavior-change-notice.ts
@@ -1230,13 +1230,13 @@ export const BEHAVIOR_CHANGES: ReadonlyArray<{ since: string; text: ChangeText;
{ since: '0.60.430.0', text: 'New `gbrain sources set-sync <id> <on|off>` sets `config.syncEnabled`, which includes or excludes a source from automatic sync (`sync --all`, autopilot\'s freshness dispatcher and the full-cycle fan-out; an explicit `gbrain sync --source <id>` runs either way). `--dry-run` prints the current state and the apply command, which carries `--expect <current>`; an apply whose expectation no longer holds refuses `preview_changed` and changes nothing. Setting it used to need a raw write to `sources.config`.' },
{ since: '0.60.430.0', text: 'New doctor check `cron_gbrain_home` reads `crontab -l` (read-only, 5 s; no result unless the crontab mentions gbrain or src/cli.ts) and the scripts its lines run (at most 20, 64 KiB each) and warns on each command that runs `src/cli.ts` directly without GBRAIN_HOME, or the `gbrain` binary without GBRAIN_HOME while this brain runs under one: cron passes no GBRAIN_HOME, so those commands act on `~/.gbrain` instead of this brain. A GBRAIN_HOME assignment on the line, in the crontab\'s environment lines or in the script counts. The fix asks the user to edit the crontab.' },
// GBRA-190 (verified-bug wave). `since` is stamped at the merge slot.
- { since: '0.60.430.0', text: 'Upgrading builds the index `pages_source_created_idx` (migration v270) over live pages by source and creation time: on Postgres online (`CREATE INDEX CONCURRENTLY`; reads and writes go on while it builds), on PGLite as a plain build that holds writes until it ends. With it, `gbrain facts relink --conversation` (dry runs included) and doctor `unlinked_facts` check for a page created since each relink attempt with one index probe instead of reading every live page of the source, which ran into `statement_timeout` on large brains (#7379).' },
- { since: '0.60.430.0', text: 'A `remember` items batch now applies the top-level `entity`, `content_origin` and `valid_from` to every item that does not set its own, as it already did for `provenance`, `kind`, `ttl` and `visibility`, and accepts `content_origin` and `valid_from` on an item. Before, a top-level `entity` was ignored (the items were saved with no subject and a `NO_ENTITY` warning), a top-level `content_origin: tool_output` was ignored, so batched tool output was stored at the writer\'s trust tier instead of `external_untrusted`, and an item carrying `content_origin` or `valid_from` was refused (#7432).' },
- { since: '0.60.430.0', text: 'Conversation-facts extraction leaves out an extracted claim that matches a purge tombstone and publishes the rest of the page (the run reports `facts_skipped_purged`). Before, that one claim made the facts insert guard refuse the page\'s whole insert after the model call was paid for, and on a managed brain every page in the same batch request failed with it and was blocked after three attempts until it changed (#7438).' },
- { since: '0.60.430.0', text: 'The extract_atoms backlog (doctor, `dream --phase extract_atoms --drain` and autopilot drains) now counts a page whose last extraction was cut at a lower `cycle.extract_atoms.max_input_chars` than the current cap, so raising the cap re-extracts those pages, with model calls, instead of the drain reporting drained with 0 batches. At an unchanged or lowered cap nothing changes (#7391).' },
- { since: '0.60.430.0', text: 'Hermes transcript import keeps the answers a user gave in a `clarify` form (answered responses of a submitted form, or the answers a timed-out form had already locked) as user turns, each after its question as the assistant\'s turn. A Hermes session imported before re-renders on its next import scan when it holds such answers, which can run fact extraction for that page again (#7396).' },
- { since: '0.60.430.0', text: 'Fact subject inference links more facts and fewer wrong ones: a currency code next to an amount (`CHF 80`) and a record label opening a sentence (`Invoice ...`, `Work session ...`) no longer block a fact that names one person or company, and an entity introduced only as an example (`including X notes`, `for example, X`) is never chosen as the subject. A page named like the code or label still competes. A sentence that opens with `For example, X ...` no longer takes X as its subject (#7405).' },
- { since: '0.60.430.0', text: '`gbrain think` gives reasoning models from gpt-5 on 16,000 output tokens behind any provider or router prefix, as it already did for gpt-5 and the o-series on their own provider; gpt-6 ids get it too. Before, those got 4,000 and long answers came back truncated (`LLM_OUTPUT_TRUNCATED`). Providers bill the tokens used, not the cap (#7421).' },
+ { since: 'TBD', text: 'Upgrading builds the index `pages_source_created_idx` (migration v270) over live pages by source and creation time: on Postgres online (`CREATE INDEX CONCURRENTLY`; reads and writes go on while it builds), on PGLite as a plain build that holds writes until it ends. With it, `gbrain facts relink --conversation` (dry runs included) and doctor `unlinked_facts` check for a page created since each relink attempt with one index probe instead of reading every live page of the source, which ran into `statement_timeout` on large brains (#7379).' },
+ { since: 'TBD', text: 'A `remember` items batch now applies the top-level `entity`, `content_origin` and `valid_from` to every item that does not set its own, as it already did for `provenance`, `kind`, `ttl` and `visibility`, and accepts `content_origin` and `valid_from` on an item. Before, a top-level `entity` was ignored (the items were saved with no subject and a `NO_ENTITY` warning), a top-level `content_origin: tool_output` was ignored, so batched tool output was stored at the writer\'s trust tier instead of `external_untrusted`, and an item carrying `content_origin` or `valid_from` was refused (#7432).' },
+ { since: 'TBD', text: 'Conversation-facts extraction leaves out an extracted claim that matches a purge tombstone and publishes the rest of the page (the run reports `facts_skipped_purged`). Before, that one claim made the facts insert guard refuse the page\'s whole insert after the model call was paid for, and on a managed brain every page in the same batch request failed with it and was blocked after three attempts until it changed (#7438).' },
+ { since: 'TBD', text: 'The extract_atoms backlog (doctor, `dream --phase extract_atoms --drain` and autopilot drains) now counts a page whose last extraction was cut at a lower `cycle.extract_atoms.max_input_chars` than the current cap, so raising the cap re-extracts those pages, with model calls, instead of the drain reporting drained with 0 batches. At an unchanged or lowered cap nothing changes (#7391).' },
+ { since: 'TBD', text: 'Hermes transcript import keeps the answers a user gave in a `clarify` form (answered responses of a submitted form, or the answers a timed-out form had already locked) as user turns, each after its question as the assistant\'s turn. A Hermes session imported before re-renders on its next import scan when it holds such answers, which can run fact extraction for that page again (#7396).' },
+ { since: 'TBD', text: 'Fact subject inference links more facts and fewer wrong ones: a currency code next to an amount (`CHF 80`) and a record label opening a sentence (`Invoice ...`, `Work session ...`) no longer block a fact that names one person or company, and an entity introduced only as an example (`including X notes`, `for example, X`) is never chosen as the subject. A page named like the code or label still competes. A sentence that opens with `For example, X ...` no longer takes X as its subject (#7405).' },
+ { since: 'TBD', text: '`gbrain think` gives reasoning models from gpt-5 on 16,000 output tokens behind any provider or router prefix, as it already did for gpt-5 and the o-series on their own provider; gpt-6 ids get it too. Before, those got 4,000 and long answers came back truncated (`LLM_OUTPUT_TRUNCATED`). Providers bill the tokens used, not the cap (#7421).' },
];
/** The newest disclosed change's release: the notice id moves only when a release adds rows. */