Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
chore: renumber fix wave 5 to v0.60.28.0 (#5838 takes v0.60.27.0)
garrytan1999ee535e7e
diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.jsonindex 2a5465bd7d..23c73bd5fc 100644--- a/.claude-plugin/plugin.json+++ b/.claude-plugin/plugin.json@@ -1,6 +1,6 @@{"name": "gbrain",- "version": "0.60.27.0",+ "version": "0.60.28.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 9c461310b5..ef91e40c71 100644--- a/.codex-plugin/plugin.json+++ b/.codex-plugin/plugin.json@@ -1,6 +1,6 @@{"name": "gbrain",- "version": "0.60.27.0",+ "version": "0.60.28.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 d0501b7c1a..7197791eed 100644--- a/BOOTSTRAP_FOR_AGENTS.md+++ b/BOOTSTRAP_FOR_AGENTS.md@@ -1,4 +1,4 @@-<!-- gbrain-runbook-stamp: 0.60.27.0 -->+<!-- gbrain-runbook-stamp: 0.60.28.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 48089916e4..ee6bcbf5fb 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -10,7 +10,7 @@ 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.27.0] - 2026-10-01+## [0.60.28.0] - 2026-10-01**Fix wave 5: session start stops showing another session's text, big brain repos onboard again, old queued jobs stop wedging synthesize, and the cleanups promised last wave ship.**@@ -31,7 +31,7 @@ And the leftovers. `gbrain repair stale-atoms` cleans up search atoms that quote| Resident projection rebuild | 2 pages per tick | up to 100 pages per pass || An exported key that differs from your config key | silently wins | still wins, with one warning naming both |-## To take advantage of v0.60.27.0+## To take advantage of v0.60.28.0`gbrain upgrade` installs the binary. There is no schema migration. Most fixes take effect only in a process that runs the new binary, so restart everything that runs gbrain.@@ -60,7 +60,7 @@ And the leftovers. `gbrain repair stale-atoms` cleans up search atoms that quotegbrain doctor```4. **Several brains on one host:** re-run `gbrain autopilot --install` for each non-default brain (`GBRAIN_HOME=<brain parent>`), then for the default brain.-5. **Your agent reads `skills/migrations/v0.60.27.0.md`** the next time you talk to it. The full symptom table is in [Recover after upgrading](docs/guides/repair.md#fix-wave-5).+5. **Your agent reads `skills/migrations/v0.60.28.0.md`** the next time you talk to it. The full symptom table is in [Recover after upgrading](docs/guides/repair.md#fix-wave-5).6. **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.**Say to your agent:** *"We upgraded gbrain. Restart what runs it, then walk me through what doctor finds, in order, before changing anything."* or *"Preview the stale atoms in my brain and tell me what you'd retire."*diff --git a/TODOS.md b/TODOS.mdindex 54bd7d8d7c..0f06decab9 100644--- a/TODOS.md+++ b/TODOS.md@@ -17,7 +17,7 @@- [ ] **P3 — Time the System One quickstart on a fresh machine (`/devex-review`).****What:** measure the documented key-in-hand to first-decision clock against the under-5-minute target. **Effort:** S. **Priority:** P3.-## Fix wave 5 follow-ups (filed 2026-10-01, follow-up from v0.60.27.0)+## Fix wave 5 follow-ups (filed 2026-10-01, follow-up from v0.60.28.0)- [ ] **P2 — Codex managed block is a singleton shared by `connect --harness codex` and `bootstrap harness` (#5775 follow-up).****What:** `src/core/bootstrap/codex-toml.ts` keeps exactly one `# gbrain:bootstrap-harness-v1 begin/end` pair per file; `writeCodexHttpServerBlock` strips any existing managed block regardless of its server name and writes its own, and `removeCodexHttpServerBlock(path, name)` removes the block whatever name it holds. Writing `[mcp_servers.gbrain]` (connect) then `[mcp_servers.gbrain-framework]` (bootstrap) leaves only the second; removing `gbrain-framework` while the block holds `gbrain` deletes it. `connect --install` refuses over a bootstrap-written block, but `bootstrap harness` and `bootstrap harness --remove` silently replace or remove a connect-installed block. **Fix:** per-name markers, or an ownership check in the bootstrap lane. **Effort:** S-M. **Priority:** P2.@@ -99,7 +99,7 @@### Connectors- [ ] **P1 — Move the cycle stamps out of `sources.config`.**- **What:** `runCycle` writes `last_source_cycle_at` / `last_full_cycle_at` into `sources.config` after every source cycle; that rotating blob was the root cause behind #5686. v0.60.11.0 keys connector identity on parsed settings instead, but nine files still read the stamps from the blob. **Fix:** dedicated columns or a cycle-state row, with a migration; community PR #5695 sketched one. `reconcilePolicyDigest` now excludes `last_source_cycle_at`/`last_full_cycle_at` (v0.60.27.0), so an autopilot cycle no longer stales a `gbrain sources reconcile` preview; moving the stamps out of `sources.config` stays open.+ **What:** `runCycle` writes `last_source_cycle_at` / `last_full_cycle_at` into `sources.config` after every source cycle; that rotating blob was the root cause behind #5686. v0.60.11.0 keys connector identity on parsed settings instead, but nine files still read the stamps from the blob. **Fix:** dedicated columns or a cycle-state row, with a migration; community PR #5695 sketched one. `reconcilePolicyDigest` now excludes `last_source_cycle_at`/`last_full_cycle_at` (v0.60.28.0), so an autopilot cycle no longer stales a `gbrain sources reconcile` preview; moving the stamps out of `sources.config` stays open.- [ ] **P2 — Per-source "admit even if unchanged" bypass for the #5470 no-op skip.****What:** there is no way to force one connector, import or sync source to republish unchanged pages (for example after a renderer fix that keeps content hashes). **Fix:** a source-scoped, one-run flag that disables the kernel skip; `--reset-checkpoint` only re-walks.- [ ] **P3 — Configurable connector pending-wait budget, clamped to the run's deadline.**@@ -120,7 +120,7 @@### Maintenance writers- [ ] **P3 — Release the reservation of other permanent embedding rejections, per provider.**- **What:** v0.60.27.0 settles a request-shaped embedding rejection (HTTP 400, 413 or 422) at zero usage only for Google, whose billing FAQ says rejected requests are not charged. OpenAI, Voyage and the other embedding recipes publish no such statement, so their rejections keep the maximum debit against a `gbrain migrate embeddings --max-cost-usd` authorization and a migration can still stop early at the cap. **Fix:** add each provider to the unbilled-rejection list only after its documentation (or a billing-console check) confirms rejected requests are free, with a test at exactly the printed cap. **Effort:** S per provider. **Priority:** P3.+ **What:** v0.60.28.0 settles a request-shaped embedding rejection (HTTP 400, 413 or 422) at zero usage only for Google, whose billing FAQ says rejected requests are not charged. OpenAI, Voyage and the other embedding recipes publish no such statement, so their rejections keep the maximum debit against a `gbrain migrate embeddings --max-cost-usd` authorization and a migration can still stop early at the cap. **Fix:** add each provider to the unbilled-rejection list only after its documentation (or a billing-console check) confirms rejected requests are free, with a test at exactly the printed cap. **Effort:** S per provider. **Priority:** P3.## Test-audit follow-ups (filed 2026-09-29)diff --git a/VERSION b/VERSIONindex ffc4da6137..a3343a8bc4 100644--- a/VERSION+++ b/VERSION@@ -1 +1 @@-0.60.27.0+0.60.28.0diff --git a/docs/guides/bootstrap.md b/docs/guides/bootstrap.mdindex 08c422f2f5..f61d4186f4 100644--- a/docs/guides/bootstrap.md+++ b/docs/guides/bootstrap.md@@ -42,7 +42,7 @@ follows is `BOOTSTRAP_FOR_AGENTS.md` at the repo root, fetched at the**What session start shows:** the SessionStart hook prints yourallowlisted MEMORY.md sections, push status and hook health, plus a warmcontext pack. It never shows another session's activity. Releases before-v0.60.27.0 printed a `Last session activity` line from the newest session+v0.60.28.0 printed a `Last session activity` line from the newest sessionbuffer on the machine, whichever agent or session wrote it (#5558). That lineand the stop-hook buffer behind it are gone, and there is deliberately noopt-in to bring them back. Buffers an older release left indiff --git a/docs/guides/repair.md b/docs/guides/repair.mdindex 3ee5adb9c8..f0ae7f4f7d 100644--- a/docs/guides/repair.md+++ b/docs/guides/repair.md@@ -578,9 +578,9 @@ A line that says `Unknown:` means the check could not run; it is not a cleanresult. Ask the brain host's operator to run the steps above.<a id="fix-wave-5"></a>-### Upgrading to v0.60.27.0 (fix wave 5)+### Upgrading to v0.60.28.0 (fix wave 5)-**Say to your agent:** *"We upgraded gbrain to v0.60.27.0. Restart everything+**Say to your agent:** *"We upgraded gbrain to v0.60.28.0. Restart everythingthat runs it, then walk me through what doctor finds, in order, beforechanging anything."*@@ -597,7 +597,7 @@ older `gbrain serve` never shows up there. Restart in this order:3. Upgrade each host: `gbrain upgrade`.4. Run `gbrain --version` through each launcher's own binary path (the path inthe service definition, the harness MCP command, the hook commands) and- confirm it prints `0.60.27.0`.+ confirm it prints `0.60.28.0`.5. Restart services, harnesses, workers and autopilot.6. Make one write from each host, then confirm a fresh `last_seen` for thathost in `gbrain sources writer status --json` (`writer_versions[]`).diff --git a/docs/mcp/CLAUDE_CODE.md b/docs/mcp/CLAUDE_CODE.mdindex 6372466ff0..1517391394 100644--- a/docs/mcp/CLAUDE_CODE.md+++ b/docs/mcp/CLAUDE_CODE.md@@ -183,7 +183,7 @@ sub-second, world-visibility by default, and available on `--surface verbs`.`.claude/settings.local.json`. Nothing to call; `GBRAIN_HOOKS=0` disablesevery hook event, including capture. Session start never shows anothersession's activity: the `Last session activity` line older releases printed- was removed in v0.60.27.0 (#5558), with deliberately no opt-in to restore it.+ was removed in v0.60.28.0 (#5558), with deliberately no opt-in to restore it.- **Manual (any brain, incl. remote/Postgres):** call the verbs yourself atboundaries — `context_pack(entities, budget_tokens)` at session start /after compaction, `delta(session_id, budget_tokens)` on wakes. Seediff --git a/llms-full.txt b/llms-full.txtindex b2bcca42f4..5f3e259ad9 100644--- a/llms-full.txt+++ b/llms-full.txt@@ -9189,9 +9189,9 @@ A line that says `Unknown:` means the check could not run; it is not a cleanresult. Ask the brain host's operator to run the steps above.<a id="fix-wave-5"></a>-### Upgrading to v0.60.27.0 (fix wave 5)+### Upgrading to v0.60.28.0 (fix wave 5)-**Say to your agent:** *"We upgraded gbrain to v0.60.27.0. Restart everything+**Say to your agent:** *"We upgraded gbrain to v0.60.28.0. Restart everythingthat runs it, then walk me through what doctor finds, in order, beforechanging anything."*@@ -9208,7 +9208,7 @@ older `gbrain serve` never shows up there. Restart in this order:3. Upgrade each host: `gbrain upgrade`.4. Run `gbrain --version` through each launcher's own binary path (the path inthe service definition, the harness MCP command, the hook commands) and- confirm it prints `0.60.27.0`.+ confirm it prints `0.60.28.0`.5. Restart services, harnesses, workers and autopilot.6. Make one write from each host, then confirm a fresh `last_seen` for thathost in `gbrain sources writer status --json` (`writer_versions[]`).diff --git a/openclaw.plugin.json b/openclaw.plugin.jsonindex 654531841d..b290781cf0 100644--- a/openclaw.plugin.json+++ b/openclaw.plugin.json@@ -1,7 +1,7 @@{"id": "gbrain-context-engine","name": "gbrain",- "version": "0.60.27.0",+ "version": "0.60.28.0","description": "Personal knowledge brain with Postgres + pgvector hybrid search","family": "bundle-plugin","kind": "context-engine",diff --git a/package.json b/package.jsonindex bbbef142b1..df1544854c 100644--- a/package.json+++ b/package.json@@ -204,7 +204,7 @@"bun": ">=1.3.11"},"license": "MIT",- "version": "0.60.27.0",+ "version": "0.60.28.0","overrides": {"@ai-sdk/provider-utils": "4.0.33","@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 5c3bb914cc..79bf4ec563 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.27.0",+ "version": "0.60.28.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 123ba5239b..05ee40de00 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.27.0",+ "version": "0.60.28.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 1b0f815ce8..5844df0f79 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.27.0 -->+<!-- gbrain-plugin-tree-stamp: 0.60.28.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 4566b7eccc..00f123b45a 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.27.0",+ "version": "0.60.28.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 01f5f304fa..ec52d80904 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.27.0",+ "version": "0.60.28.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 46e4aefd15..696a707bc8 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.27.0 -->+<!-- gbrain-plugin-tree-stamp: 0.60.28.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 b9d60822e6..5f38a69fc5 100644--- a/plugin/README.md+++ b/plugin/README.md@@ -1,4 +1,4 @@-<!-- gbrain-plugin-tree-stamp: 0.60.27.0 -->+<!-- gbrain-plugin-tree-stamp: 0.60.28.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.27.0.md b/skills/migrations/v0.60.28.0.mdsimilarity index 98%rename from skills/migrations/v0.60.27.0.mdrename to skills/migrations/v0.60.28.0.mdindex c2ba496834..2d64dc68c1 100644--- a/skills/migrations/v0.60.27.0.md+++ b/skills/migrations/v0.60.28.0.md@@ -1,4 +1,4 @@-# Upgrade to v0.60.27.0: fix wave 5+# Upgrade to v0.60.28.0: fix wave 5Fix wave 5 removes the session-start line that could show another session'stext, lets repos over ~10,000 files onboard, unblocks jobs queued before@@ -35,7 +35,7 @@ then, with their agreement and in this order:3. Run `gbrain upgrade` on each host.4. Run `gbrain --version` through each launcher's own binary path (servicedefinition, harness MCP command, hook commands); each must print- `0.60.27.0`.+ `0.60.28.0`.5. Restart services, harnesses, workers and autopilot.6. Make one write from each host and check that host's `last_seen` in`gbrain sources writer status --json` (`writer_versions[]`). That list isdiff --git a/skills/skills.lock.json b/skills/skills.lock.jsonindex 3922ad83d6..d8b6ebcb83 100644--- a/skills/skills.lock.json+++ b/skills/skills.lock.json@@ -154,7 +154,7 @@"migrations/v0.60.11.0.md": "ad3086df4eceff272f08bf16d674be404b97963292729b280f44268c583f77c5","migrations/v0.60.20.0.md": "9266863a9f76164c64a72b1be17b8ddb3bb97e1c3c5db9f666b69ebc7a228fdd","migrations/v0.60.26.0.md": "30d761ef5a2361bad66053f97b7b659304a591274be33e281f4f6df0d7d5566e",- "migrations/v0.60.27.0.md": "84f4c7a8d0ffe53b6e93ab3f9ae4d7d92b5218b17f535e30a8788a73854d5adc",+ "migrations/v0.60.28.0.md": "5fb5491d60067f69dd3d49496b0ac08ac4013f473b10e7cf38b3e5c794d7c60e","migrations/v0.60.5.0.md": "0d3ee19359a2740de08ac9ec388ddc15e7c72d663afe33832e1e54170528acab","migrations/v0.60.6.0.md": "1cbfca2c899e1348acbd61f0baa4c8e723b5283ff868c710c74e116c0cb6726e","migrations/v0.7.0.md": "97c2740445a10b1c5c7123c17dbd625fa27a94095b85d27c2b278da756c4c59a",diff --git a/templates/bootstrap/template-repo/README.md b/templates/bootstrap/template-repo/README.mdindex 12045ca232..c9461bc94c 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.27.0 -->+<!-- gbrain-template-stamp: 0.60.28.0 -->This repository is the **"Use this template"** distribution artifact for a[gbrain](https://github.com/garrytan/gbrain) personal-agent workspace — the same