Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

Merge remote-tracking branch 'origin/master' into capy/pglite-analyze-replan

garrytan3f229cf13720
diff --cc CHANGELOG.md
index 0c02ed95e6,347a856df2..a0e8c7af77
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@@ -10,14 -10,15 +10,23 @@@ credits are retained; no result has bee
identifiers and attribution are available in the pre-removal Git revision
`6040075c6cb95be5881cc2e1b76ef7d71f4e5d29` (retained on 2026-09-23).
+## [Unreleased]
+
+**A long-running PGLite process picks up fresh planner statistics instead of keeping the plans it made before them.** PGLite has no autovacuum, so a freshly imported brain has no statistics until planner-stats' first-read refresh runs `ANALYZE`. But gbrain's PGLite statement cache keeps named prepared statements, and PostgreSQL keeps a prepared statement's plan across `ANALYZE`, so every statement prepared before the refresh kept its no-statistics plan for the life of the process (a `gbrain serve`, an agent session, a script). On a 55,838-page brain imported without statistics, `entity names` with 50 names stayed at 3.4 to 3.7 s for every call after the refresh. With this fix the calls after the first take 1.2 to 1.5 s, the same as a freshly started process.
+
+### Itemized changes
+
+- **`ANALYZE` and `VACUUM` clear the PGLite statement cache** (`src/core/pglite-statements.ts`), like DDL already did, so the next call re-prepares and plans with the new statistics. This covers planner-stats' refreshes, `gbrain repair planner-stats`, projection statistics and the persistence journal's `VACUUM (ANALYZE)`. Postgres is unchanged. `test/pglite-statements.test.ts` checks that a statement prepared before `ANALYZE` is re-prepared after it; the check fails without the fix.
+
+ ## [0.60.193.0] - 2026-10-13
+
+ **`gbrain backup check` no longer reports a repository with a failed push as "unknown" when a local git call is slow.** On a busy machine, a 2-second local git probe (`git status`, `rev-parse`) that timed out threw away verdicts the check had already established. A recorded failed push (`last_push_failed`) and a completed probe's unpushed or dirty finding both came back as `unknown` / `probe_failed`, so the failing count dropped to zero.
+
+ ### Itemized changes
+
+ - `assessBackupRepository` (`src/core/backup/repository.ts`) keeps an established bad verdict when a later local probe fails. A recorded failed push stays `failing` / `last_push_failed`, and an `unpushed` or `dirty` state stays as found, both with verification `unavailable`. A failed probe still never certifies `ok`. The 2-second timeout is unchanged. Test: a forced `ETIMEDOUT` on `git status` in `test/backup-verification.serial.test.ts` (before: `failing` 0; after: 1).
+ - Test infrastructure: a PGLite brain restored from the test snapshot (`GBRAIN_PGLITE_SNAPSHOT`) now stamps the seeded sources' `created_at` with the restore time, beside the existing TimeZone re-pin. Before, it kept the snapshot's build time. A CI-cached snapshot more than an hour old therefore made every fresh test brain show the `behavior_changes` disclosure, and `test/search-c5-identical.test.ts` failed on any PR that left `src/core/*.ts` alone. Pin: `test/pglite-snapshot-timezone.serial.test.ts`.
+
## [0.60.192.0] - 2026-10-13
**CI test shards are packed from fresh timings after wave 16.** CI splits each test lane across several machines using the recorded run time of every test file. Wave 16 moved the #6210 durability probes out of the 5530 coalescing tests into their own files and added several new test files, so the recorded times no longer matched the tests. This release re-measures every lane from green master runs at wave 16's merge. No product behaviour changes.