Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
v0.60.77.0: zero-model saves, forget review, remember.replaces, quote grounding on by default; release notes, upgrade playbook, behavior-change notice rows
garrytana5ee55e4b37e
diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.jsonindex b3bcb50ddb..ad79ed4c50 100644--- a/.claude-plugin/plugin.json+++ b/.claude-plugin/plugin.json@@ -1,6 +1,6 @@{"name": "gbrain",- "version": "0.60.76.0",+ "version": "0.60.77.0","description": "Personal knowledge brain for your coding agent — hybrid search, synthesis, graph traversal, and durable cross-session memory over Postgres/PGLite with pgvector, plus a curated brain-first skill set.","author": {"name": "Garry Tan",diff --git a/.codex-plugin/plugin.json b/.codex-plugin/plugin.jsonindex fa2c3d0d4f..b6b6a367d8 100644--- a/.codex-plugin/plugin.json+++ b/.codex-plugin/plugin.json@@ -1,6 +1,6 @@{"name": "gbrain",- "version": "0.60.76.0",+ "version": "0.60.77.0","description": "Personal knowledge brain for your coding agent — hybrid search, synthesis, graph traversal, and durable cross-session memory over Postgres/PGLite with pgvector, plus a curated brain-first skill set.","author": {"name": "Garry Tan",diff --git a/BOOTSTRAP_FOR_AGENTS.md b/BOOTSTRAP_FOR_AGENTS.mdindex 00e5c092d3..d4a76b3eeb 100644--- a/BOOTSTRAP_FOR_AGENTS.md+++ b/BOOTSTRAP_FOR_AGENTS.md@@ -1,4 +1,4 @@-<!-- gbrain-runbook-stamp: 0.60.76.0 -->+<!-- gbrain-runbook-stamp: 0.60.77.0 --><!-- This stamp must equal the VERSION file at every release; CI enforces it(scripts/check-bootstrap-tag.sh). `gbrain bootstrap status` compares it tothe installed binary and warns on skew. -->diff --git a/CHANGELOG.md b/CHANGELOG.mdindex c58ba20245..8b8c26a314 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -10,6 +10,62 @@ credits are retained; no result has been reassigned to another provider. Originaidentifiers and attribution are available in the pre-removal Git revision`6040075c6cb95be5881cc2e1b76ef7d71f4e5d29` (retained on 2026-09-23).+## [0.60.77.0] - 2026-10-06++**Saving a memory never waits on an AI model, forgetting a fact also finds the other ways you said it (and asks before removing them), agents can say exactly which fact a new one replaces, and quotes in answers are checked against your notes by default.**++When you save a page or a fact, gbrain now proves it makes no AI model call before the write lands: the page is searchable by keyword the moment the save returns, and fact extraction runs afterwards as background work you can see and switch off. When you tell gbrain to forget something, it still removes exactly that claim, and now also shows other facts that say nearly the same thing, so the agent can ask you about them instead of leaving them behind. With a TypeSafe key, an overnight review goes further and proposes rewordings of what you forgot; nothing is removed until you accept. Agents can now replace one specific fact with a new one, with no guessing by similarity. And when `think` or a dream phase quotes your notes, each quote is checked against the notes it came from: a quote that is not there loses its quotation marks and is marked `[unverified]`.++One thing we tested and did not ship as a default: showing agents a shorter tool list. In a held-out agent benchmark it made agents worse, so every tool stays listed.++### The numbers that matter++| What | Result |+| --- | --- |+| AI model calls before a save lands (`put_page`, `remember`, 1,000 pages, fact extraction on and off) | 0 |+| Cost of 1,000 note pages with background fact extraction on / off | about $9.94 / $0.32 (claude-sonnet-4-6 extraction, text-embedding-3-large) |+| Overnight forget review, held-out | 124 of 124 test families right, precision lower bound 0.970; finds 97.7% of rewordings; 0 proposals on corrected values |+| Supported quotes wrongly marked `[unverified]`, held-out | 5 of 321 (1.56%, 95% upper bound 3.59%) |+| Agent task success with the full tool list / `starter` list / 7 verbs, held-out | 93.2% / 84.7% / 83.3% |++### Things to watch++- **Quote checking is on by default, and it is not a fraud detector yet.** It is measured not to over-flag real quotes. How often it catches a made-up quote has not been measured: in the held-out run it flagged 2 of the 7 unsupported quotes it saw. Treat a quote it leaves alone as text it found in your notes, not as proof nothing was invented. Turn it off with `gbrain config set think.quote_verify false` and `gbrain config set dream.quote_verify false`. The dream synthesis quote check (`dream.synthesize.quote_verify`) is unchanged.+- **The overnight forget review only proposes.** It runs only where the contradiction slot is on with a TypeSafe key (the key turns that slot on by default), and every proposal waits for your accept. Accepting a withdrawal is permanent, so agents are told to confirm with you first. The text of a forgotten private fact is sent only when `decide.egress.private` is `allow`. Turn the review off with `gbrain config set decide.slots.conflict.review_withdraw false`.+- **Keep the full tool list.** `mcp.advertised_surface` can now list fewer tools while every tool stays callable, but the held-out benchmark rejected narrowing it: pooled success fell 8.5 points with `starter` and 9.9 with `verbs`, and tasks needing an unlisted tool fell hardest (one model went from 87.5% to 5% under `starter`). The shorter lists saved no tokens. Fresh installs keep listing everything. Use the setting only for a client that cannot hold the full catalog.++## To take advantage of v0.60.77.0++`gbrain upgrade` installs the binary and runs migration v212, which adds two empty tables for the review lane (`decide_review_queue`, `decide_review_proposals`). Upgraded brains show the one-time behavior-changes notice; `gbrain doctor --only behavior_changes` shows it again.++1. **Review forget proposals** (TypeSafe key only):+ ```bash+ gbrain decide proposals list+ gbrain decide proposals accept r12 --yes # permanent: confirm with the user first+ gbrain decide proposals reject r12+ ```+2. **Record every model call a process makes** when you want to check costs yourself: `GBRAIN_AI_CALL_LOG=/path/calls.jsonl gbrain ...` (one JSON line per call, never prompt text).+3. **Verify:**+ ```bash+ gbrain doctor+ gbrain decide status+ ```+4. **If any step fails,** file an issue at https://github.com/garrytan/gbrain/issues with the output of `gbrain doctor` and `~/.gbrain/upgrade-errors.jsonl` if it exists.++### Behavior changes++- **`think` answers and saved syntheses check their quotes.** A quote found in no evidence is unquoted and marked `[unverified]`; a near match is replaced with the evidence's words. Responses with quotes add `answer_raw` (what the model wrote), `quote_check` and `unverified_quotes`. A saved synthesis keeps an unverified claim out of its body, in frontmatter `unverified_claims`. Concept narratives and pattern pages get the same check (`dream.quote_verify`).+- **`forget` responses add `similar_active`:** close active paraphrases it did not withdraw, and whether an overnight review is scheduled. Pass `semantic_review: false` to skip the review for one call.+- **With a TypeSafe key, forgetting a fact queues an overnight review** that can propose withdrawing rewordings of it (see above).++### Itemized changes++- **Zero-model write path.** Every mutating operation declares its write-inference class (`src/core/ops/write-inference.ts`). `scripts/check-ai-sdk-importers.ts` (in `bun run verify`) refuses runtime imports of a provider SDK outside an allowlist that only shrinks, so every model call goes through `invokeAI`; `src/core/persistence/` may not import the AI gateway (`scripts/check-layering.ts`). `test/write-path-zero-llm.serial.test.ts` and `test/write-path-no-egress.serial.test.ts` pin zero generative calls before commit and zero network connections from keyless CLI writes. `GBRAIN_AI_CALL_LOG` (`src/core/ai/call-log.ts`) logs kind, operation, model, outcome, tokens and attribution (request id, effect, job, phase).+- **`remember.replaces`.** `remember` takes `replaces: <fact_id>` and supersedes exactly that fact under its row lock, with specific refusal codes (`target_superseded`, `target_expired`, `replaces_entity_mismatch`, `replaces_cross_page`, ...).+- **Forget review.** `forget` returns `similar_active` (`src/core/facts/similar-active.ts`); withdrawals queue `withdraw` review work in the same transaction (`src/core/facts/withdrawal.ts`). The review lane (`src/core/ai/decide/review-lane.ts`) runs at the end of the `extract_facts` tail, asks the contradiction slot's provider about pairs in the ambiguous similarity band, and writes `r`-id proposals (`decide_review_proposals`, migration v212). Accept is atomic (`pending` to `accepting`) and re-checks that the claim is still withdrawn and the fact unchanged. `decide.slots.conflict.review_withdraw` is on unless set false and ships a held-out reference calibration for TypeSafe `jev-1.13.0`; `review_duplicate_page` and `review_duplicate_entity` are off by default.+- **Quote grounding.** `think` (and the `synthesize` verb, `think --save`) grounds every quoted span against the evidence blocks the prompt carried and the user's question; concept narratives and pattern pages ground against their sources (`src/core/cycle/synthesize-verify.ts`, `groundSource(..., { tolerant: true })`). The tolerant matcher reads markdown links and other brackets as text (`[Name](target)`, `[Name]`, `[T]he`, `decide[s]`), folds inner `"` to `'`, and sets aside edge punctuation and ellipses. `think.quote_verify` and `dream.quote_verify` default on.+- **Advertised tool surface.** `mcp.advertised_surface` (`verbs` | `starter` | `full`, dual-plane) narrows only what `tools/list` shows; the callable set is unchanged and `request_tools` reaches unlisted tools. Unset lists everything.+## [0.60.76.0] - 2026-10-06**The behavior-change notice no longer repeats on every upgrade.**diff --git a/VERSION b/VERSIONindex cc6b70f88a..1f17cc8327 100644--- a/VERSION+++ b/VERSION@@ -1 +1 @@-0.60.76.0+0.60.77.0diff --git a/openclaw.plugin.json b/openclaw.plugin.jsonindex 589cd195b1..e1f10fa6a7 100644--- a/openclaw.plugin.json+++ b/openclaw.plugin.json@@ -1,7 +1,7 @@{"id": "gbrain-context-engine","name": "gbrain",- "version": "0.60.76.0",+ "version": "0.60.77.0","description": "Personal knowledge brain with Postgres + pgvector hybrid search","family": "bundle-plugin","kind": "context-engine",diff --git a/package.json b/package.jsonindex d0339844ca..be5c49a851 100644--- a/package.json+++ b/package.json@@ -222,7 +222,7 @@"bun": ">=1.4.0"},"license": "MIT",- "version": "0.60.76.0",+ "version": "0.60.77.0","overrides": {"@ai-sdk/provider-utils": "4.0.56","@hono/node-server": "^2.0.5",diff --git a/plugin-variants/gbrain-coding/.claude-plugin/plugin.json b/plugin-variants/gbrain-coding/.claude-plugin/plugin.jsonindex c385e327d5..449a598e51 100644--- a/plugin-variants/gbrain-coding/.claude-plugin/plugin.json+++ b/plugin-variants/gbrain-coding/.claude-plugin/plugin.json@@ -1,6 +1,6 @@{"name": "gbrain-coding",- "version": "0.60.76.0",+ "version": "0.60.77.0","description": "Brain-first coding agent working inside a repo: retrieval, routing, ingest discipline, correction hygiene. Default persona for the claude-code harness bridge; also published as the gbrain-coding marketplace variant. (persona variant of the gbrain plugin — 21 skills)","author": {"name": "Garry Tan",diff --git a/plugin-variants/gbrain-coding/.codex-plugin/plugin.json b/plugin-variants/gbrain-coding/.codex-plugin/plugin.jsonindex 6beb2c4bab..62da5c209e 100644--- a/plugin-variants/gbrain-coding/.codex-plugin/plugin.json+++ b/plugin-variants/gbrain-coding/.codex-plugin/plugin.json@@ -1,6 +1,6 @@{"name": "gbrain-coding",- "version": "0.60.76.0",+ "version": "0.60.77.0","description": "Brain-first coding agent working inside a repo: retrieval, routing, ingest discipline, correction hygiene. Default persona for the claude-code harness bridge; also published as the gbrain-coding marketplace variant. (persona variant of the gbrain plugin — 21 skills)","author": {"name": "Garry Tan",diff --git a/plugin-variants/gbrain-coding/README.md b/plugin-variants/gbrain-coding/README.mdindex aeec56eaad..e989fce430 100644--- a/plugin-variants/gbrain-coding/README.md+++ b/plugin-variants/gbrain-coding/README.md@@ -1,4 +1,4 @@-<!-- gbrain-plugin-tree-stamp: 0.60.76.0 -->+<!-- gbrain-plugin-tree-stamp: 0.60.77.0 --># gbrain-coding (generated persona variant — do not hand-edit)Brain-first coding agent working inside a repo: retrieval, routing, ingest discipline, correction hygiene. Default persona for the claude-code harness bridge; also published as the gbrain-coding marketplace variant.diff --git a/plugin-variants/gbrain-daily/.claude-plugin/plugin.json b/plugin-variants/gbrain-daily/.claude-plugin/plugin.jsonindex 23f7fb013d..8233940005 100644--- a/plugin-variants/gbrain-daily/.claude-plugin/plugin.json+++ b/plugin-variants/gbrain-daily/.claude-plugin/plugin.json@@ -1,6 +1,6 @@{"name": "gbrain-daily",- "version": "0.60.76.0",+ "version": "0.60.77.0","description": "Personal knowledge-brain daily use: meetings, tasks, briefings, reading, research. Published as the gbrain-daily marketplace variant. (persona variant of the gbrain plugin — 20 skills)","author": {"name": "Garry Tan",diff --git a/plugin-variants/gbrain-daily/.codex-plugin/plugin.json b/plugin-variants/gbrain-daily/.codex-plugin/plugin.jsonindex 07a799bb92..0e80ad231c 100644--- a/plugin-variants/gbrain-daily/.codex-plugin/plugin.json+++ b/plugin-variants/gbrain-daily/.codex-plugin/plugin.json@@ -1,6 +1,6 @@{"name": "gbrain-daily",- "version": "0.60.76.0",+ "version": "0.60.77.0","description": "Personal knowledge-brain daily use: meetings, tasks, briefings, reading, research. Published as the gbrain-daily marketplace variant. (persona variant of the gbrain plugin — 20 skills)","author": {"name": "Garry Tan",diff --git a/plugin-variants/gbrain-daily/README.md b/plugin-variants/gbrain-daily/README.mdindex 03aa68c23a..fc455eb9db 100644--- a/plugin-variants/gbrain-daily/README.md+++ b/plugin-variants/gbrain-daily/README.md@@ -1,4 +1,4 @@-<!-- gbrain-plugin-tree-stamp: 0.60.76.0 -->+<!-- gbrain-plugin-tree-stamp: 0.60.77.0 --># gbrain-daily (generated persona variant — do not hand-edit)Personal knowledge-brain daily use: meetings, tasks, briefings, reading, research. Published as the gbrain-daily marketplace variant.diff --git a/plugin/README.md b/plugin/README.mdindex 1d12ee9373..289ab6850e 100644--- a/plugin/README.md+++ b/plugin/README.md@@ -1,4 +1,4 @@-<!-- gbrain-plugin-tree-stamp: 0.60.76.0 -->+<!-- gbrain-plugin-tree-stamp: 0.60.77.0 --># gbrain plugin skill tree (generated — do not hand-edit)This tree is the curated skill set for the gbrain Codex and Claude Codediff --git a/skills/migrations/v0.60.77.0.md b/skills/migrations/v0.60.77.0.mdnew file mode 100644index 0000000000..8d7ca39da3--- /dev/null+++ b/skills/migrations/v0.60.77.0.md@@ -0,0 +1,28 @@+# Upgrade to v0.60.77.0: zero-model saves, forget review, fact replacement, quote checking++Saves never call an AI model before they land, `forget` reports close rewordings it did not remove, `remember` can replace one named fact, and quotes in `think` answers and dream pages are checked against their sources by default. One schema migration. Nothing here needs the user's consent, but relay the one-time `behavior_changes` notice when gbrain prints it.++1. **Finish the upgrade.** `gbrain upgrade` runs it. To be sure, on the brain host:+ ```bash+ gbrain apply-migrations --yes --no-autopilot-install+ ```+ v212 adds the empty `decide_review_queue` and `decide_review_proposals` tables.++2. **Relay the behavior changes.** The one-time notice names what the user may notice:+ - `think` answers, saved syntheses, concept narratives and pattern pages check their quotes: a quote found in no evidence loses its quotation marks and is marked `[unverified]`. Present `answer`, not `answer_raw`. The check is measured not to over-flag real quotes, but how often it catches a made-up quote is not measured yet, so do not tell the user a kept quote is proven. Opt out: `gbrain config set think.quote_verify false` and `gbrain config set dream.quote_verify false`.+ - `forget` responses carry `similar_active`: close active facts it did not withdraw. Ask the user before forgetting any of them.+ - On a brain with a TypeSafe key, forgetting a fact queues an overnight review that can propose withdrawing rewordings of it. It only proposes. Opt out: `gbrain config set decide.slots.conflict.review_withdraw false`.++ `gbrain doctor --only behavior_changes` shows it again.++3. **Use the new calls.**+ - To correct a fact, pass `replaces: <fact_id>` to `remember` instead of forgetting and re-remembering. Refusals name the reason (`target_superseded` names the fact that replaced it; `replaces_cross_page` means forget the old fact, then remember).+ - Review forget proposals with `gbrain decide proposals list`. Accepting a withdrawal is permanent: confirm with the user, then `gbrain decide proposals accept <r-id> --yes`; otherwise `gbrain decide proposals reject <r-id>`.++4. **Leave the tool list alone.** `mcp.advertised_surface` can list fewer tools while every tool stays callable, but a held-out agent benchmark found shorter lists lowered task success by 8 to 10 points and saved no tokens. Set it only for a client that cannot hold the full catalog.++5. **Verify.**+ ```bash+ gbrain doctor+ gbrain decide status+ ```diff --git a/skills/skills.lock.json b/skills/skills.lock.jsonindex b121453c66..3e0c461837 100644--- a/skills/skills.lock.json+++ b/skills/skills.lock.json@@ -172,6 +172,7 @@"migrations/v0.60.62.0.md": "e91c9b8caee58f6cfa519177ba2b0625b73cf26756a28a451003d78646a5eacf","migrations/v0.60.63.0.md": "cdc9f862a719bdb76140b5069fb659987978bc2d90498d808bc5d766dbf16891","migrations/v0.60.74.0.md": "cfd0e9fe6e7d506d60b3673cdb077b52ce292c12e74a81e8cb71c407cc926009",+ "migrations/v0.60.77.0.md": "3a588974cea1db36a9f063ed056fae155adc5cb54fb606d49f69625e94e15c9d","migrations/v0.7.0.md": "97c2740445a10b1c5c7123c17dbd625fa27a94095b85d27c2b278da756c4c59a","migrations/v0.8.0.md": "1919ff8b8f3680612ff888e7cfcc0d86ece5d5304ae19af4497bdf40b050561a","migrations/v0.8.1.md": "fad7341cfb5e02545fb8a23221d12ab395fc3d8db15d1d8ee8a18844aea6563a",diff --git a/src/core/behavior-change-notice.ts b/src/core/behavior-change-notice.tsindex 82675bb30c..8669d7c461 100644--- a/src/core/behavior-change-notice.ts+++ b/src/core/behavior-change-notice.ts@@ -16,6 +16,9 @@* access-token cap, the writer-status `local_process_ingress`* rename, `jobs work` exit codes, the longer retention of* unextracted corpus files.+ * 0.60.77.0 quote grounding on by default (think, syntheses, concepts,+ * patterns); forget's `similar_active` and the TypeSafe-gated+ * overnight withdrawal review.* A release that changes behavior appends its rows; a shipped row's release* never changes.*@@ -235,6 +238,8 @@ export const BEHAVIOR_CHANGES: ReadonlyArray<{ since: string; text: ChangeText }{ since: '0.60.74.0', text: '`gbrain sources writer status --json` renamed `ingress` to `local_process_ingress`; it describes only the process that answered.' },{ since: '0.60.74.0', text: '`gbrain jobs work` exits 0 after a SIGTERM drain (was 143) and 17 when running claims had to be handed back.' },{ since: '0.60.74.0', text: 'Captured session files nothing has extracted are kept up to 3x dream.synthesize.corpus_retention_days (90 days by default, was 30), so the corpus directory can use more disk; `gbrain sweep --once --budget-ms 600000` clears that backlog.' },+ { since: '0.60.77.0', text: 'think answers, saved syntheses, concept narratives and pattern pages check their quotes against their sources: a quote found nowhere loses its quotation marks and is marked [unverified]. It is not yet measured as a catch for made-up quotes. `gbrain config set think.quote_verify false` and `gbrain config set dream.quote_verify false` turn it off.' },+ { since: '0.60.77.0', text: 'forget responses list close active facts it did not withdraw (`similar_active`); with a TypeSafe key, forgetting also queues an overnight review that only proposes withdrawing rewordings (`gbrain decide proposals list`; `gbrain config set decide.slots.conflict.review_withdraw false` turns it off).' },];/** The newest disclosed change's release: the notice id moves only when a release adds rows. */diff --git a/templates/bootstrap/template-repo/README.md b/templates/bootstrap/template-repo/README.mdindex 2788a750ae..7548ad01c1 100644--- a/templates/bootstrap/template-repo/README.md+++ b/templates/bootstrap/template-repo/README.md@@ -1,6 +1,6 @@# gbrain agent workspace — template-<!-- gbrain-template-stamp: 0.60.76.0 -->+<!-- gbrain-template-stamp: 0.60.77.0 -->This repository is the **"Use this template"** distribution artifact for a[gbrain](https://github.com/garrytan/gbrain) personal-agent workspace — the samediff --git a/test/behavior-change-notice.test.ts b/test/behavior-change-notice.test.tsindex 8b315ad67d..7457756e23 100644--- a/test/behavior-change-notice.test.ts+++ b/test/behavior-change-notice.test.ts@@ -154,6 +154,8 @@ for (const backend of testBackends()) {expect(plain.why).toContain('local_process_ingress');expect(plain.why).toContain('exits 0 after a SIGTERM drain (was 143) and 17');expect(plain.why).toContain('gbrain sweep --once --budget-ms 600000');+ expect(plain.why).toContain('think.quote_verify false');+ expect(plain.why).toContain('decide.slots.conflict.review_withdraw false');expect(plain.why).toContain('not a request for consent');expect(plain.fix?.argv).toEqual(['gbrain', 'doctor', '--only', 'behavior_changes', '--json']);});@@ -229,7 +231,7 @@ for (const backend of testBackends()) {expect(await takeLocalBehaviorNotice(engine, 'cli', { cfg: null, brainKey: 'doctor' })).not.toBeNull();const again = await checkBehaviorChanges(engine, { cfg: null, brainKey: 'doctor' });expect(again.details).toMatchObject({ shown: { cli: true, stdio: false } });- expect(again.message).toContain('gbrain v0.60.68.0 and v0.60.74.0 changed 9 behaviors');+ expect(again.message).toContain('gbrain v0.60.68.0, v0.60.74.0 and v0.60.77.0 changed 11 behaviors');});});@@ -300,7 +302,7 @@ describe('per-release content', () => {expect(later.why).not.toContain('chat_fallback_chain is live');expect(later.fix?.argv).toEqual(['gbrain', 'doctor', '--only', 'behavior_changes', '--json']);const all = behaviorChangesNotice(chain)!;- expect(all.why).toContain('gbrain v0.60.68.0 and v0.60.74.0 changed 10 behaviors');+ expect(all.why).toContain('gbrain v0.60.68.0, v0.60.74.0 and v0.60.77.0 changed 12 behaviors');expect(all.fix?.argv).toEqual(['unset', 'GBRAIN_CHAT_FALLBACK_CHAIN']);});});@@ -369,31 +371,32 @@ describe('upgrades across releases (each step a new process pinned to a gbrain V}}, 60_000);- test('a brain at baseline 0.60.68 that saw the 0.60.68 notice sees only the 0.60.74 items, once', async () => {+ test('a brain at baseline 0.60.68 that saw the 0.60.68 notice sees only the later items, once', async () => {const home = freshHome();mkdirSync(noticeDir(home), { recursive: true });writeFileSync(join(noticeDir(home), 'b68.baseline'), '0.60.68.0\n');writeFileSync(join(noticeDir(home), 'behavior_changes_0.60.68.0.b68.cli.shown'), '2026-10-05T00:00:00.000Z\n');writeFileSync(join(home, 'brain-config.json'), JSON.stringify({ [HTTP_SHOWN_KEY]: JSON.stringify({ id: '[email protected]', clients: { 'client-a': '2026-10-05T00:00:00.000Z' } }) }));for (const channel of ['cli', 'http:client-a']) {- const why = await runAt(home, '0.60.74.0', 'b68', channel);- expect(why).toContain('gbrain v0.60.74.0 changed 6 behaviors');+ const why = await runAt(home, '0.60.77.0', 'b68', channel);+ expect(why).toContain('gbrain v0.60.74.0 and v0.60.77.0 changed 8 behaviors');expect(why).toContain(WAVE9);expect(why).not.toContain(V68);expect(why).not.toContain('v0.60.68.0');- expect(await runAt(home, '0.60.74.0', 'b68', channel)).toBeNull();- expect(await runAt(home, '0.60.75.0', 'b68', channel)).toBeNull();+ expect(await runAt(home, '0.60.77.0', 'b68', channel)).toBeNull();+ expect(await runAt(home, '0.60.78.0', 'b68', channel)).toBeNull();}}, 60_000);test('a brain older than 0.60.68 sees every item, labeled with its release, once', async () => {const home = freshHome();for (const channel of ['cli', 'stdio', 'http:client-a']) {- const why = await runAt(home, '0.60.74.0', 'old', channel);- expect(why).toContain('gbrain v0.60.68.0 and v0.60.74.0 changed 9 behaviors');+ const why = await runAt(home, '0.60.77.0', 'old', channel);+ expect(why).toContain('gbrain v0.60.68.0, v0.60.74.0 and v0.60.77.0 changed 11 behaviors');expect(why).toContain(`v0.60.68.0: (1) On a managed brain`);expect(why).toContain(`v0.60.74.0: (4) A shell job`);- expect(await runAt(home, '0.60.74.0', 'old', channel)).toBeNull();+ expect(why).toContain(`v0.60.77.0: (10) think answers`);+ expect(await runAt(home, '0.60.77.0', 'old', channel)).toBeNull();expect(await runAt(home, '0.60.99.0', 'old', channel)).toBeNull();}expect(readFileSync(join(noticeDir(home), 'old.baseline'), 'utf8').trim()).toBe('0');@@ -402,9 +405,9 @@ describe('upgrades across releases (each step a new process pinned to a gbrain Vtest('a fresh brain sees nothing, then or after later upgrades', async () => {const home = freshHome();for (const channel of ['cli', 'http:client-a']) {- expect(await runAt(home, '0.60.74.0', 'new', channel, { createdAgoMs: 0 })).toBeNull();+ expect(await runAt(home, '0.60.77.0', 'new', channel, { createdAgoMs: 0 })).toBeNull();expect(await runAt(home, '0.60.99.0', 'new', channel, { createdAgoMs: 2 * DAY })).toBeNull();}- expect(readFileSync(join(noticeDir(home), 'new.baseline'), 'utf8').trim()).toBe('0.60.74.0');+ expect(readFileSync(join(noticeDir(home), 'new.baseline'), 'utf8').trim()).toBe('0.60.77.0');}, 60_000);});