Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
v0.60.137.0 chore(release): restamp onto master v0.60.136.0
time-attackce5e44f3068a
diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.jsonindex d86a059f46..75b850777b 100644--- a/.claude-plugin/plugin.json+++ b/.claude-plugin/plugin.json@@ -1,6 +1,6 @@{"name": "gbrain",- "version": "0.60.136.0",+ "version": "0.60.137.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 e28cbd55ea..7eae3c5c9e 100644--- a/.codex-plugin/plugin.json+++ b/.codex-plugin/plugin.json@@ -1,6 +1,6 @@{"name": "gbrain",- "version": "0.60.136.0",+ "version": "0.60.137.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 888420618b..7efc0b1063 100644--- a/BOOTSTRAP_FOR_AGENTS.md+++ b/BOOTSTRAP_FOR_AGENTS.md@@ -1,4 +1,4 @@-<!-- gbrain-runbook-stamp: 0.60.136.0 -->+<!-- gbrain-runbook-stamp: 0.60.137.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 e9786c991f..381d75cef4 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -10,6 +10,31 @@ 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.137.0] - 2026-10-09++**A query that quotes a passage verbatim now returns a clean read. Pasted text with a long dash rule no longer breaks keyword search, an inferred image query on a text-only brain keeps its keyword arm and expansion, and the query confidence block always reports the reranker score.**++An eval readiness probe quotes the first 300 characters of a stored conversation turn and expects that conversation back. It counted 89 of 500 LongMemEval-S haystacks as misses. Rebuilt the same way, gbrain returned the target at rank 1 in all 89, but each read looked degraded to the probe for one of three reasons:+- A verbatim quote embeds almost identically to its chunk, so the confidence grade was `high_vector_match`. That grade returned before the reranker score was attached, so `retrieval.crag.top_rerank_score` was missing even though the reranker ran (84 of 89).+- A turn holding a markdown rule of 32 or more dashes overflowed `websearch_to_tsquery`'s operator stack (`tsquery stack too small`), failing the keyword and title arms (1 of 89).+- Text such as "a photo of Half Dome" was routed to image search on a text-only install. That skipped the keyword arm and expansion, then the multimodal embed failed and reported `vector_arm_failed` (4 of 89).++### What you'd see++The same 89 missed haystacks plus 20 controls, rebuilt with the eval shim's page format through `put_page` on PGLite with shipped defaults (voyage-4, rerank-2.5, expansion on). This build reads 109 of 109 clean, with the target at rank 1. 0.60.106.0 read 36 of 108 clean.++### What to watch for++- `retrieval.crag.top_rerank_score` is now present whenever the reranker ran, whatever the grade's reason.+- A query whose wording suggests images ("show me photos of ...") routes to the image arm only when `embedding_multimodal_model` (or `embedding_model`) can embed images. Otherwise it runs as a text query. An explicit `cross_modal: image` still routes as asked.+- A run of 32 or more dash negations in a keyword query collapses to its parity, which is the query a deeper parser stack would build. Every query that parsed before is unchanged.++### Itemized changes++- **Rerank score on every grade (`src/core/search/crag.ts`).** `gradeRetrievalConfidence` attaches the rank-1 cross-encoder score to identity-tier grades too (`exact_lookup`, `alias_hit`, `exact_title_match`, `high_vector_match`, `decide_evidence`).+- **Dash runs (`src/core/search/sql-ranking.ts`).** `collapseWebsearchDashRuns` runs before both engines' keyword statements and inside `boundWebsearchQuery`, which covers the title arm.+- **Image routing (`src/core/ai/gateway.ts`, `src/core/search/hybrid/request.ts`).** `multimodalEmbeddingModel()` returns the model `embedMultimodal` would use when it can embed images. An inferred image intent and the LLM modality tie-break need it.+## [0.60.136.0] - 2026-10-09**CI headroom: the PostgreSQL unit arms run as three balanced shards, the graduation custody suites run 30–42% faster, and the Tier 2 agent-journey file is split so no serial file sits near its 300-second cap.**diff --git a/VERSION b/VERSIONindex cf35880c8e..c4334e3ba4 100644--- a/VERSION+++ b/VERSION@@ -1 +1 @@-0.60.136.0+0.60.137.0diff --git a/openclaw.plugin.json b/openclaw.plugin.jsonindex bad724fa4f..9e8bf2e084 100644--- a/openclaw.plugin.json+++ b/openclaw.plugin.json@@ -1,7 +1,7 @@{"id": "gbrain-context-engine","name": "gbrain",- "version": "0.60.136.0",+ "version": "0.60.137.0","description": "Personal knowledge brain with Postgres + pgvector hybrid search","family": "bundle-plugin","kind": "context-engine",diff --git a/package.json b/package.jsonindex 09a79c3fea..b0383023fb 100644--- a/package.json+++ b/package.json@@ -228,7 +228,7 @@"bun": ">=1.4.0"},"license": "MIT",- "version": "0.60.136.0",+ "version": "0.60.137.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 e9e8c773e0..b2f2c501e7 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.136.0",+ "version": "0.60.137.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 1a9612c95d..716646f7d1 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.136.0",+ "version": "0.60.137.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 26ca062f3f..bc3f76d6cf 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.136.0 -->+<!-- gbrain-plugin-tree-stamp: 0.60.137.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 2b2d57e115..318f73e594 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.136.0",+ "version": "0.60.137.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 e2db6611f0..1995b8b060 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.136.0",+ "version": "0.60.137.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 2de75fccf2..5462cb2d08 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.136.0 -->+<!-- gbrain-plugin-tree-stamp: 0.60.137.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 ad19071145..f06051d69f 100644--- a/plugin/README.md+++ b/plugin/README.md@@ -1,4 +1,4 @@-<!-- gbrain-plugin-tree-stamp: 0.60.136.0 -->+<!-- gbrain-plugin-tree-stamp: 0.60.137.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/templates/bootstrap/template-repo/README.md b/templates/bootstrap/template-repo/README.mdindex 667c99774f..511e5c805d 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.136.0 -->+<!-- gbrain-template-stamp: 0.60.137.0 -->This repository is the **"Use this template"** distribution artifact for a[gbrain](https://github.com/garrytan/gbrain) personal-agent workspace — the same