Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

docs(fix-wave-8): re-measure the MCP search headline against v0.60.35.0 (138.3 ms master, 141.2 ms merged branch)

garrytan7c405c467e2b
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 748089313b..73a4c16d6b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -14,13 +14,13 @@ identifiers and attribution are available in the pre-removal Git revision
**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.**
-This wave fixes the bugs that hurt the most people first. On Postgres, one statement that failed inside a transaction could hand its half-finished connection back to the pool, and every later query on that connection failed until you restarted. On a managed brain, any cycle asked to `git pull` (autopilot always asks) failed its sync, so remote-tracking sources quietly stopped ingesting. On Windows, the managed write queue wedged and every skill-bundle publication failed, including the pack `gbrain init` installs. All three are fixed, and each has a test that fails on the previous release. Searching did not get slower: agent (MCP) search on a 10,000-page brain, as shipped with no manual tuning, answers in about 105 ms, where the previous release took 105 to 130 ms on the same machine.
+This wave fixes the bugs that hurt the most people first. On Postgres, one statement that failed inside a transaction could hand its half-finished connection back to the pool, and every later query on that connection failed until you restarted. On a managed brain, any cycle asked to `git pull` (autopilot always asks) failed its sync, so remote-tracking sources quietly stopped ingesting. On Windows, the managed write queue wedged and every skill-bundle publication failed, including the pack `gbrain init` installs. All three are fixed, and each has a test that fails on the previous release. Searching did not get slower: agent (MCP) search on a 10,000-page brain, as shipped with no manual tuning, answers in about 141 ms, where the previous release took 138 ms on the same machine (runs of one build vary by several milliseconds).
Writes got an honest exit code. A CLI write that was accepted but had not committed when the wait ended used to exit 1, the same as a failure, even though it landed a moment later. It now exits 10 with a receipt you can poll, the CLI waits 30 seconds instead of 5, and `--accept-pending` maps pending to 0 for hooks and cron. Agents get `edit_page`: ordered exact-text replacements against a revision, so a one-line fix no longer means sending the whole page back.
| After upgrading | Before | After |
| --- | --- | --- |
-| MCP search p50, 10k pages, as shipped (PGLite, same fixture, same machine) | 105-130 ms (v0.60.32.0, five runs) | 105 ms |
+| MCP search p50, 10k pages, as shipped (PGLite, same fixture, same machine) | 138 ms (v0.60.35.0) | 141 ms |
| Postgres query after one statement failed inside a pooled transaction | every later query on that connection fails (25P02) until restart | the connection is discarded; the next query succeeds |
| Managed cycle asked to pull (autopilot) | sync fails, remote sources stop ingesting | syncs the checkout as it is and warns with the refresh steps |
| Windows: managed write queue, skill-bundle publication, `gbrain init` pack | EPERM, wedged or failed | work |
diff --git a/docs/fix-wave-notes/capy-fix-wave-8.md b/docs/fix-wave-notes/capy-fix-wave-8.md
index 744bbd78e3..4b5737f000 100644
--- a/docs/fix-wave-notes/capy-fix-wave-8.md
+++ b/docs/fix-wave-notes/capy-fix-wave-8.md
@@ -20,10 +20,13 @@ warmup, same machine and fixture for both arms):
| This branch before the alias-read fix, three runs | 134.9 / 126.3 / 147.8 ms | 1,269-1,439 ms | 7.0-9.7 |
| This branch after the alias-read fix | 104.9 ms | 1,290 ms | 8.1 |
| This branch as shipped (also with the adjacency-read fix), paired with v0.60.32.0 at 106.0 ms | 105.3 ms | 1,275 ms | 6.9 |
+| v0.60.35.0 (master after #5932, which adds saved-fact and declared-name work to each MCP search) | 138.3 ms | 1,286 ms | 8.8 |
+| This branch merged with v0.60.35.0, as shipped | 141.2 ms | 1,253 ms | 8.3 |
Each row is a separate run of the full harness on the same 4-core machine
(seed 1, five timed runs after a warmup). Runs of the same build vary by up to
-25 ms, so "as shipped" means no regression, not a speed-up. The three
+25 ms, so "as shipped" means no regression, not a speed-up. The jump from about 106 ms to about 140 ms between v0.60.32.0
+and v0.60.35.0 comes from #5932, and wave 8 adds no measurable time on top of it. The three
mid-wave runs showed a real 20-30 ms regression: the #5094 foreign key from
`page_aliases` to `sources` flipped PGLite's statistics-free plan for the alias
read, so every MCP search walked all readable pages (10 ms at 3k pages, 24 ms