Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
Merge commit '6944f2d61' into capy/gbra161-pr1b-prep2
garrytan3c6fffc0f2aa
diff --cc CHANGELOG.mdindex 39421805ad,09bf3aca54..215a0c261a--- a/CHANGELOG.md+++ b/CHANGELOG.md@@@ -36,29 -36,8 +36,29 @@@ identifiers and attribution are availab- Transcript keys are `transcript:<root>/<path>` with a rename map; identity hashing ignores `source_kind`, `ingested_via` and ephemeral frontmatter keys; the shrink floor is strictly below.- Migration v266 (`derived-generation-activations`); doctor `generation_pending`.- Tests on PGLite and Postgres: the managed #7013 shape, a kill between activation and members, a two-file retirement after resume, managed and unmanaged contention on one key, same-name transcripts and a rename, and a legacy atom without evidence.- - CI: the unit-lane PostgreSQL arms job runs 12 shards instead of 11 (`ARM_SHARDS`). With the three new arm files, each counted at the p75 fallback weight until it is measured, every Bun 1.4.0 shard went past the 570 s two-worker budget. With 12 shards the largest makespan is 526 s.+ - The three new Postgres-armed files (the load probe, the managed atom keys and the managed probes) run their Postgres arm through `test/e2e/` `registerPostgresTests` wrappers, not `test/postgres-unit-arms.txt`, whose shards are at their makespan budget. The load probe runs at 200 origins in every lane; `GBRAIN_TEST_GENERATION_LOAD=1` keeps the 10,000-origin measurement.+## [0.60.390.0] - 2026-10-23++**`gbrain doctor` can verify a source with 65,534 or more files for cross-source drift, and `gbrain extract` no longer ignores `--type` on its default file walk.** Before, `multi_source_drift` on such a source always reported "not verified" (`MAX_PARAMETERS_EXCEEDED`), and `extract timeline --type email` walked every file and reported the full-corpus count as if the pass had been filtered.++### What changed++| Situation | Before | Now |+|---|---|---|+| doctor `multi_source_drift` on a source with 65,534 or more files | not verified: the existence probe sent one bind parameter per file, over the Postgres cap (on PGLite the statement failed), and lowering `GBRAIN_DRIFT_LIMIT` only truncated the walk | verified: the probe sends the slugs as one array parameter |+| `gbrain extract links\|timeline\|all --type T` (or `--since`, `--infer-dates`) without `--source db` | the file walk ignored the filter and processed every file | exits 2 and prints the same command with `--source db`, which applies the filter |++### What to watch for after you upgrade++- A script that passed `--type`, `--since` or `--infer-dates` to `gbrain extract` without `--source db` now exits 2. Add `--source db` to get the filtered pass it meant to run.+- Nothing is rewritten on upgrade, and there is no schema migration.++### Itemized changes++- `src/core/multi-source-drift.ts`: the existence probe uses `unnest($1::text[])` (#7388; `test/multi-source-drift-param-cap-7388.test.ts`, PGLite and Postgres).+- `src/commands/extract.ts`: file-walk refusal and help (#7394; `test/extract-row-filters-fs-7394.test.ts`).+## [0.60.389.0] - 2026-10-23**Unmanaged atom extraction now replaces an origin's atoms only on a complete, non-empty result, versions what it drops first, and can undo it (GBRA-161 PR 1a).** A derived writer used to delete or keep atoms one statement at a time, so an empty model answer, a truncated read or a failed write could drop or orphan an origin's atoms with no way back. Atoms are the first writer on one generation-publish primitive with a ledger and a restore path. Managed atoms, facts and takes, chronicle and synthesis move onto it in later releases.