Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

Cat 41: CHANGELOG entry and approved #6607 behavior row

garrytan10cf9c946894
diff --git a/CHANGELOG.md b/CHANGELOG.md
index f154da17c2..3a944f418c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -10,6 +10,18 @@ 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.208.0] - 2026-10-13
+
+**Agents can now find `remember`, a private fact says it won't be pushed, and a keyless brain no longer sends OpenAI model discovery.** Cat 41's re-measure (gbrain-evals#142, v0.60.203.0) found three misses. In two first-push runs the agent searched `gbrain --help` for a way to save the user's item, didn't find `remember`, and used `gbrain capture`, which writes a page; session push only carries world-visible facts, so the next session got nothing. In the third run the fact was saved with visibility private, which push skips by design, and nothing told the agent. In the consent-negative cell, `gbrain doctor` on an existing keyless brain that never ran setup sent `GET /v1/models` with the user's `OPENAI_API_KEY`, because discovery ran on every engine connect. Fixes #6606 and #6607.
+
+### Itemized changes
+
+- **`gbrain --help`** gains a MEMORY section (`remember`, `recall`, `forget`). The remember line says world-visible facts are pushed into new agent sessions and private ones are recall-only; the `capture` line now says it writes a page and points at `remember` for facts.
+- **`gbrain setup <harness>`** prints a `Memory:` line after `Next:` naming `gbrain remember "<fact>"` (MCP tool: remember), what reaches new sessions, and that capture writes a page.
+- **A local `gbrain remember` with visibility private** prints `note: private — local CLI recall only; not pushed into new agent sessions` and emits the `private_fact_not_pushed` info notice, which tells the agent to ask the user before saving the fact again with visibility world and then forgetting the private copy (replaces cannot change visibility). World saves, duplicates and remote callers get neither. What is saved and what is pushed are unchanged.
+- **OpenAI model discovery** (`GET /v1/models`) now runs right before the first OpenAI-routed call (chat, expansion or embedding), once per gateway reconfigure, instead of on engine connect. A brain that never calls OpenAI sends nothing, even with `OPENAI_API_KEY` set. Cache, 24-hour TTL, failure backoff, the recorded-decline gate, `GBRAIN_MODEL_DISCOVERY` and the env-plane-only endpoint are unchanged. When the refresh changes the discovered tiers, the gateway re-resolves its models before the triggering call reads them. On existing OpenAI installs, callers that pick a model before calling OpenAI read the saved list: fact extraction, content repair and the eval judges, plus `gbrain models` and the doctor display. So on the first run after the 24-hour cache expires, or with no cache yet, they can use the previously discovered model or the static fallback; the next run picks up the new one. Approved by Garry, 2026-10-13.
+- **Tests:** `test/openai-discovery-lazy.serial.test.ts` (new) counts requests at a local `OPENAI_BASE_URL`: an existing keyless brain's `doctor` and `search` send 0; connect sends nothing and the first OpenAI chat sends exactly one `GET /v1/models` and runs on the discovered tier; an Anthropic-routed chat sends none. Both main cases fail on the previous gateway. `test/doctor-provider-consent.serial.test.ts` controls now measure discovery on the OpenAI-routed embedding probe; the decline tests are unchanged. New help, setup and private-notice tests fail on the previous code and pass now.
+
## [0.60.207.0] - 2026-10-13
**The claim root probe's buffer test no longer depends on how random worktree ids happen to sort.** `test/e2e/claim-earlier-equivalence.test.ts` checks that the indexed root probe reads fewer than 0.85× the buffers of the former COALESCE key. Its fixture queued each worktree's rows as one contiguous block. The former key's scan of the pending index `(worktree_id, sequence)` can only use `sequence` as an index condition, so it skipped every root whose rows all came after the candidate. When the random ids sorted in reverse insert order, the former key read 1388 buffers against the current probe's 1309 (ratio 0.943) and the test failed. It failed in #6613's CI at 1308 against `< 1205.3`.
diff --git a/src/core/behavior-change-notice.ts b/src/core/behavior-change-notice.ts
index e2cb669f02..34776abf55 100644
--- a/src/core/behavior-change-notice.ts
+++ b/src/core/behavior-change-notice.ts
@@ -534,10 +534,10 @@ export const BEHAVIOR_CHANGES: ReadonlyArray<{ since: string; text: ChangeText }
{ since: '0.60.204.0', text: '`recall` now accepts relative `since` phrases it used to refuse (`"6 weeks ago"`, `"a month ago"`, `"last month"`, `"the past 2 years"`; months and years step the calendar), and `question` with `include_expired: true` now ranks expired and superseded facts alongside active ones instead of refusing the call. Every `since` value that parsed before gives the same window, and calls without `include_expired` rank active facts only, as before.' },
// GBRA-81 item 5 (per-stage search timings). `since` is a placeholder equal to the branch's VERSION until the merge-slot stamp.
{ since: '0.60.205.0', text: 'Every `search` and `query` response now carries `_meta.retrieval.timings` (integer milliseconds per stage, `other_ms` and the operation total), and the CLI explain view of `gbrain search` and `gbrain query` prints them as a `timings:` line; results are unchanged and the timings never appear in result text.' },
- // Cat 41 first push (#6606, GBRA-60). `since` is a placeholder equal to the branch's VERSION until the merge-slot stamp.
- { since: '0.60.205.0', text: 'A `gbrain remember` call with visibility private from the local CLI now says the fact is recall-only: a `note: private` line and a `private_fact_not_pushed` agent notice naming the world re-save, because session hooks push world-visible facts only. `gbrain --help` lists `remember`, `recall` and `forget` in a MEMORY section, and `gbrain setup` prints a `Memory:` line after `Next:` naming `remember`. What is saved and what is pushed are unchanged.' },
- // Cat 41 consent (#6607, GBRA-60). `since` is a placeholder equal to the branch's VERSION until the merge-slot stamp.
- { since: '0.60.205.0', text: 'OpenAI model discovery (the unbilled `GET /v1/models` request that picks the newest OpenAI model for each tier) no longer runs on every engine connect when `OPENAI_API_KEY` is set. It runs just before the first OpenAI-routed chat, expansion or embedding call in a process, with the same 24-hour cache, so a brain that never calls OpenAI (a keyless brain running `gbrain doctor` or `gbrain search`) sends nothing. An install that uses OpenAI gets the same discovered models; the call that triggers discovery already runs on them. A recorded provider decline still stops it.' },
+ // Cat 41 first push (#6606, GBRA-60).
+ { since: '0.60.208.0', text: 'A `gbrain remember` call with visibility private from the local CLI now says the fact is recall-only: a `note: private` line and a `private_fact_not_pushed` agent notice naming the world re-save, because session hooks push world-visible facts only. `gbrain --help` lists `remember`, `recall` and `forget` in a MEMORY section, and `gbrain setup` prints a `Memory:` line after `Next:` naming `remember`. What is saved and what is pushed are unchanged.' },
+ // Cat 41 consent (#6607, GBRA-60), approved by Garry 2026-10-13.
+ { since: '0.60.208.0', text: 'OpenAI model discovery (`GET /v1/models`) now runs right before the first OpenAI-routed call instead of on every engine connect, so a brain that never calls OpenAI (a keyless brain running `gbrain doctor` or `gbrain search` with `OPENAI_API_KEY` set) sends nothing. On existing OpenAI installs, callers that pick a model before calling OpenAI read the saved list: fact extraction, content repair and the eval judges, plus `gbrain models` and the doctor display. So on the first run after the 24-hour cache expires, or with no cache yet, they can use the previously discovered model or the static fallback; the next run picks up the new one. A recorded provider decline still stops discovery. Approved by Garry, 2026-10-13.' },
];
/** The newest disclosed change's release: the notice id moves only when a release adds rows. */