Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
Merge remote-tracking branch 'origin/master' into capy/embedding-integrity-wave-v2
time-attack8e1bd7c3392e
diff --cc .claude-plugin/plugin.jsonindex 7443b8757a,b1ac806810..954b022210--- a/.claude-plugin/plugin.json+++ b/.claude-plugin/plugin.json@@@ -1,6 -1,6 +1,6 @@@{"name": "gbrain",- "version": "0.60.68.0",- "version": "0.60.69.0",++ "version": "0.60.70.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 --cc .codex-plugin/plugin.jsonindex d2cd883399,5ba1079bcf..cdd97f999f--- a/.codex-plugin/plugin.json+++ b/.codex-plugin/plugin.json@@@ -1,6 -1,6 +1,6 @@@{"name": "gbrain",- "version": "0.60.68.0",- "version": "0.60.69.0",++ "version": "0.60.70.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 --cc CHANGELOG.mdindex e9f7a43ac5,ced2b20c69..2f70f46720--- a/CHANGELOG.md+++ b/CHANGELOG.md@@@ -10,34 -10,30 +10,58 @@@ credits are retained; no result has beeidentifiers and attribution are available in the pre-removal Git revision`6040075c6cb95be5881cc2e1b76ef7d71f4e5d29` (retained on 2026-09-23).+## [0.60.70.0] - 2026-10-05++**Turning off contextual retrieval no longer serves vectors built from an old title.**++If a page switches from title or synopsis context to plain text, its previous+text vectors are cleared in the same database operation as the mode change.+This prevents an old title-aware result from being treated as a plain-text+match. Pages marked to skip embedding keep their retained vectors; switching+mode does not start a paid re-embed.++### How to use it++Run `gbrain upgrade` to get the fix. If you deliberately switch a source to+plain-text embeddings, run `gbrain embed --stale` after reviewing its expected+cost to replace any cleared vectors.++| Page state | After the change |+| --- | --- |+| Title or synopsis mode switches to `none` | Previous active text vectors are cleared immediately, before search can use them as plain text. |+| Legacy `none` page with an unverified vector | A later projection rebuild clears the vector; re-embedding is opt-in. |+| Pre-contextual page with no stored mode | Its legacy raw vectors remain grandfathered when the text and model still match. |++### Itemized changes++- The shared page-state writer clears active vectors and their completion stamps atomically on a contextual-to-`none` transition, in both PGLite and PostgreSQL.+- Projection rebuilds no longer accept an unstamped vector on an explicit `none` page as proof that it came from raw text; they still preserve verified current inputs and grandfather pre-contextual NULL-mode pages.+- Markdown re-import cannot reinstate an unstamped title vector after the mode switch and label it as raw. Repairing a pre-contextual NULL-mode page into `none` records raw provenance for retained vectors so a later rebuild does not discard them.++ ## [0.60.69.0] - 2026-10-05++ **Korean entity names stop linking from inside longer words: mention precision on Hangul goes from 7% to 86%, and 65 of 74 real name mentions still link.**++ The mention linker required a Hangul name to start a word but let anything follow it, because Korean particles attach directly to names (지원에게). On 7.3M characters of public Korean text, 39% of all Hangul matches were the name sitting inside another word: 지원 in 지원하는 ("supporting"), 우리 in 우리나라. A name now has to end at a non-Hangul character or at an attached title, particle or copula form (지원씨는, 지원 대표가, 지원이었다).++ Measured with the real matcher over 30 Korean name-like titles, every match labeled in context ([method](docs/designs/hangul-mention-boundaries.md)):++ | | Before | Now |+ | --- | --- | --- |+ | Word-internal matches (지원하는, 우리나라) | 1,041 | 11 |+ | Real name mentions linked | 74 | 65 |+ | Precision over name + word-internal matches | 7% | 86% |++ A name that is also an everyday word (우리, "we") still links where that word stands alone; `mentions.ignore` stops it.++ **Existing brains rescan their mentions once.** The mention extractor version moved to 2 (and the `extract links --by-mention` resume fingerprint to `hangul-boundaries-v2`), so the next mention pass rescans every page and removes plain mention links the old rule made. It is local work with no paid calls.++ Also: `docs/architecture/key-files/` gains a `src/core/by-mention.ts` entry and an up-to-date `src/core/enrichment-service.ts` entry, and the Chinese mention fixtures use placeholder names.++ ## To take advantage of v0.60.69.0++ `gbrain upgrade` does this automatically. The one-time mention rescan runs on the next autopilot cycle; to run it now: `gbrain extract --stale`.+## [0.60.68.0] - 2026-10-05**`delta` no longer skips changes after a failed read, and the 21 contributor fixes merged on 2026-10-05 are brought up to the house bar.**diff --cc openclaw.plugin.jsonindex d001254779,eb9eeb1a09..3c618b5d81--- a/openclaw.plugin.json+++ b/openclaw.plugin.json@@@ -1,7 -1,7 +1,7 @@@{"id": "gbrain-context-engine","name": "gbrain",- "version": "0.60.68.0",- "version": "0.60.69.0",++ "version": "0.60.70.0","description": "Personal knowledge brain with Postgres + pgvector hybrid search","family": "bundle-plugin","kind": "context-engine",diff --cc package.jsonindex ddc8f07983,5c77b8ef0d..452d079953--- a/package.json+++ b/package.json@@@ -219,7 -219,7 +219,7 @@@"bun": ">=1.4.0"},"license": "MIT",- "version": "0.60.70",- "version": "0.60.69.0",++ "version": "0.60.70.0","overrides": {"@ai-sdk/provider-utils": "4.0.56","@hono/node-server": "^2.0.5",