Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
chore(release): restamp fix wave 8 as v0.60.36.0 above master's v0.60.35.0
garrytan96c037ad3f7a
diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.jsonindex 7f86d9d216..5072f38ad3 100644--- a/.claude-plugin/plugin.json+++ b/.claude-plugin/plugin.json@@ -1,6 +1,6 @@{"name": "gbrain",- "version": "0.60.35.0",+ "version": "0.60.36.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 f6e8de6e5d..0188e83059 100644--- a/.codex-plugin/plugin.json+++ b/.codex-plugin/plugin.json@@ -1,6 +1,6 @@{"name": "gbrain",- "version": "0.60.35.0",+ "version": "0.60.36.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 0948624ffa..4e5bde29d8 100644--- a/BOOTSTRAP_FOR_AGENTS.md+++ b/BOOTSTRAP_FOR_AGENTS.md@@ -1,4 +1,4 @@-<!-- gbrain-runbook-stamp: 0.60.35.0 -->+<!-- gbrain-runbook-stamp: 0.60.36.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 da8f592aa4..748089313b 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.34.0] - 2026-10-03+## [0.60.36.0] - 2026-10-03**Fix wave 8: Postgres stops poisoning its connection pool after one failed statement, managed brains keep ingesting remote sources, Windows can publish skills and run the write queue, scripts can tell a pending write from a failed one, agents can edit one line of a page without resending it, and legacy tokens can be granted (or denied) exactly the sources they should see.**@@ -38,7 +38,7 @@ Version 0.60.28.0 said skill bundles publish on Windows. They did not: the bundlThe release also folds in community PR #5587 (idea-ingest stops creating stub author pages), contributed by @screamingaikitty-ship-it, and GBRA-35's change that turns connector atom extraction back on by default. Thank you.-## To take advantage of v0.60.34.0+## To take advantage of v0.60.36.0`gbrain upgrade` installs the binary and runs three schema migrations (v190 upstream-observation columns on `sources`, v191 alias rows that cascade with their source, v192 take-vector identity). Restart every `gbrain serve`, autopilot and worker afterwards.diff --git a/TODOS.md b/TODOS.mdindex 62d64dbd53..12fe4990cc 100644--- a/TODOS.md+++ b/TODOS.md@@ -1,6 +1,6 @@# TODOS-## Fix wave 8 follow-ups (filed 2026-10-02, follow-up from v0.60.34.0)+## Fix wave 8 follow-ups (filed 2026-10-02, follow-up from v0.60.36.0)- [ ] **P1 — Verified engine graduation (PGLite to Postgres) that keeps persistence history.****What:** `gbrain migrate --to` refuses any brain with rows in `persistence_requests`, `fact_withdrawals` or `persistence_worktrees`, which in practice is every brain that saved memory through the write coordinator. **Fix:** a migration that carries request ids, withdrawals, attribution, grants and ownership, verified by a round-trip test. The refusal stays until then (docs/ENGINES.md says so). **Effort:** L. **Priority:** P1 (Foundations 2).@@ -11,7 +11,7 @@- [ ] **P2 — Cycle-side fence for `row_num IS NULL` facts (#5299).****What:** facts without a fence row number are invisible to the fence reconciler. **Fix:** the cycle fences them after GBRA-35's facts writeback (now on master). **Effort:** M. **Priority:** P2 (Foundations 1).- [ ] **P2 — One-shot repair for supersession chains broken on managed brains (#5886).**- **What:** v0.60.34.0 writes the supersession pointer on the old take row; chains written before it keep `superseded_by` NULL on managed brains. **Fix:** a `gbrain repair` kind that rebuilds the pointers from the fence. **Effort:** S. **Priority:** P2.+ **What:** v0.60.36.0 writes the supersession pointer on the old take row; chains written before it keep `superseded_by` NULL on managed brains. **Fix:** a `gbrain repair` kind that rebuilds the pointers from the fence. **Effort:** S. **Priority:** P2.- [ ] **P2 — Doctor check for pages still waiting on their revision backfill (#5216).****What:** the backfill is resumable and reports progress on upgrade, but a brain whose backfill keeps stopping on a failing row has no standing doctor signal. **Effort:** S. **Priority:** P2.- [ ] **P2 — Scale harness gaps (`bun run test:scale`).**@@ -170,11 +170,11 @@**What:** a reporter saw `readAdjacencyBoosts` take about 72 s with nested-loop plans; a full `ANALYZE` on pages, links, sources, timeline_entries and content_chunks dropped it to 21 ms. PGLite has no autovacuum and runs queries on the main thread, so a slow plan looks like a wedge. Cause likely, unverified for `get_links`. **Fix:** run `ANALYZE` on the hot tables after migrations, bulk import or sync and periodically from the owner, plus a doctor check for stale `last_analyze`. **Effort:** S-M. **Priority:** P2.- [ ] **P3 — #5190: pin `search_path` for the two fact functions.****What:** `gbrain_fact_fingerprint` and `gbrain_preserve_fact_withdrawal` (`src/core/facts/withdrawal-schema.ts`) have no pinned `search_path` (Supabase linter warning). `gbrain_fact_fingerprint` backs an index expression and must stay inlinable, so qualify its calls (`pg_catalog.`) instead of `SET search_path`; pin only the trigger function. **Effort:** S. **Priority:** P3.-- [x] **P2 — #5205: resident `serve` pool-size guidance.** **Completed: v0.60.34.0** — remediation recommends the resident floor of 6 and the boot-deadline line names the stuck phase and pool pressure.+- [x] **P2 — #5205: resident `serve` pool-size guidance.** **Completed: v0.60.36.0** — remediation recommends the resident floor of 6 and the boot-deadline line names the stuck phase and pool pressure.**What:** a `serve` boot never completed at `GBRAIN_POOL_SIZE=2`, which our remediation text still recommends (`src/core/pg-access-classify.ts`, `src/commands/db-repair.ts`). The deadlock mechanism is unverified. **Fix:** measure the connection need of a resident `serve` first, then change the guidance (the reporter measured 6 as the minimum at which the projection worker drains) and fail fast with a pool-size message. **Effort:** S once measured. **Priority:** P2.- [ ] **P3 — #5250: signal when `GBRAIN_SOURCE` narrows an unqualified stdio read.****What:** a stdio connection bound with `GBRAIN_SOURCE` (or `__all__`) can return nothing for an unqualified read with no hint why, so agents conclude the brain is empty. **Fix:** a response note naming the binding when it narrowed the read. **Effort:** S. **Priority:** P3.-- [x] **P3 — #5216: orphan-repair command for PGLite.** **Completed: v0.60.34.0** — `gbrain repair orphan-children` (preview, then `--apply`) with the torn-TOAST probe; migration 150 adds the revision column nullable and backfills in batches.+- [x] **P3 — #5216: orphan-repair command for PGLite.** **Completed: v0.60.36.0** — `gbrain repair orphan-children` (preview, then `--apply`) with the torn-TOAST probe; migration 150 adds the revision column nullable and backfills in batches.**What:** migration 150's volatile default rewrites `pages` and hits a torn TOAST chunk on a corrupt PGLite brain; doctor's `child_table_orphans` prints raw `DELETE` SQL that PGLite users cannot run. **Fix:** `gbrain repair orphans` running doctor's own cleanup, plus a re-import-from-canonical-file repair for a torn body. Changing migration 150 itself is high risk for a corruption edge case and stays out. **Effort:** M. **Priority:** P3.- [ ] **P3 — #5279: abandon an unactivated writer claim.****What:** a claim that was never activated leaves ownership markers that fence legacy sync, and there is no undo before activation. **Fix:** `gbrain sources writer claim <source> --abandon`, refused once the brain is enabled, that removes only markers stamped with this brain and claim. **Effort:** M. **Priority:** P3.diff --git a/VERSION b/VERSIONindex 08aa623ca0..e649f84877 100644--- a/VERSION+++ b/VERSION@@ -1 +1 @@-0.60.35.0+0.60.36.0diff --git a/docs/fix-wave-notes/capy-fix-wave-8.md b/docs/fix-wave-notes/capy-fix-wave-8.mdindex 679820103e..744bbd78e3 100644--- a/docs/fix-wave-notes/capy-fix-wave-8.md+++ b/docs/fix-wave-notes/capy-fix-wave-8.md@@ -1,4 +1,4 @@-# Fix wave 8 notes (`capy/fix-wave-8`, v0.60.34.0)+# Fix wave 8 notes (`capy/fix-wave-8`, v0.60.36.0)One integrated PR. Eight lanes (A-G, with D split into D1 and D2) were built inparallel on master v0.60.31.0, merged here, then merged with master v0.60.32.0diff --git a/openclaw.plugin.json b/openclaw.plugin.jsonindex ababbfc6a1..811258a1bc 100644--- a/openclaw.plugin.json+++ b/openclaw.plugin.json@@ -1,7 +1,7 @@{"id": "gbrain-context-engine","name": "gbrain",- "version": "0.60.35.0",+ "version": "0.60.36.0","description": "Personal knowledge brain with Postgres + pgvector hybrid search","family": "bundle-plugin","kind": "context-engine",diff --git a/package.json b/package.jsonindex 6e70e70530..640f7f003f 100644--- a/package.json+++ b/package.json@@ -207,7 +207,7 @@"bun": ">=1.4.0"},"license": "MIT",- "version": "0.60.35.0",+ "version": "0.60.36.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 6eedc8326f..01c115dd7b 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.35.0",+ "version": "0.60.36.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 35d1d3e246..1ca4e534e0 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.35.0",+ "version": "0.60.36.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 46d6fe2209..fbb467c663 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.35.0 -->+<!-- gbrain-plugin-tree-stamp: 0.60.36.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 7b8b469783..69b7349893 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.35.0",+ "version": "0.60.36.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 f3d37b1b84..8f78d76716 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.35.0",+ "version": "0.60.36.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 f4c32e9011..eed2ea79b1 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.35.0 -->+<!-- gbrain-plugin-tree-stamp: 0.60.36.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 d7245f963d..77d1b49ce4 100644--- a/plugin/README.md+++ b/plugin/README.md@@ -1,4 +1,4 @@-<!-- gbrain-plugin-tree-stamp: 0.60.35.0 -->+<!-- gbrain-plugin-tree-stamp: 0.60.36.0 --># gbrain plugin skill tree (generated — do not hand-edit)This tree is the curated skill set for the gbrain Codex and Claude Code@@ -9,7 +9,7 @@ addition/exclusion).## MCP surface note (read once)The plugin's MCP server runs `gbrain serve --surface starter` — the-38-op daily-driver surface (the seven memory verbs + daily+39-op daily-driver surface (the seven memory verbs + dailybrain ops + capture). 22bundled skills reference gbrain operations beyond that surface; every one ofthem has a first-class `gbrain` CLI path, which is the primary way skillsdiff --git a/skills/migrations/v0.60.34.0.md b/skills/migrations/v0.60.36.0.mdsimilarity index 99%rename from skills/migrations/v0.60.34.0.mdrename to skills/migrations/v0.60.36.0.mdindex 6ef091bf12..b7100f5c98 100644--- a/skills/migrations/v0.60.34.0.md+++ b/skills/migrations/v0.60.36.0.md@@ -1,4 +1,4 @@-# Upgrade to v0.60.34.0: fix wave 8+# Upgrade to v0.60.36.0: fix wave 8This release changes how writes report back, how legacy tokens are granted,and several defaults. Most of it needs nothing from you. The steps below arediff --git a/skills/skills.lock.json b/skills/skills.lock.jsonindex 68d971f8f3..0e13d4eebc 100644--- a/skills/skills.lock.json+++ b/skills/skills.lock.json@@ -158,7 +158,7 @@"migrations/v0.60.28.0.md": "f7fa936066fb188f6f3f54bb6c720f57743792e4371d0b98dd3cb5a57d1bd9c9","migrations/v0.60.30.0.md": "2dd24bb319cad80ae15c52fb163c704fc3adfc1182d44ab563f636f07434a9e0","migrations/v0.60.31.0.md": "fb8c0a98451a6f7826413ee7463421612511986252f6b803d91a26da94d378bf",- "migrations/v0.60.34.0.md": "1d45e41dea447c6fdfd4a942ecb02df802548668f3d43d1de30352d39565f58d",+ "migrations/v0.60.36.0.md": "8ce9aba221d24dec7f354b41c04d59fcbe947e9302a038e87e0ba807086c7ed7","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 ce3984d313..5d4e9bf291 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.35.0 -->+<!-- gbrain-template-stamp: 0.60.36.0 -->This repository is the **"Use this template"** distribution artifact for a[gbrain](https://github.com/garrytan/gbrain) personal-agent workspace — the same