Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

docs: acceptance runs 1-3 (PR green 696-874s, 739-755 vCPU-min, identities PASS) in baseline, CHANGELOG and the P1 TODO

garrytan51e647494062
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 07a47b7c71..2c66072149 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -30,14 +30,14 @@ The three runtime fixes are folded from GBRA-40 Foundations 2 Lane F, along with
| Pull-request CI (`test.yml` + `e2e.yml`) | Before | Now |
| --- | --- | --- |
-| Time to green | 1010-1067 s | 933 s (required checks green at 905 s) |
-| Ubicloud vCPU-minutes per run | 899-940 | 754 |
+| Time to green | 1010-1067 s | 696-874 s (median 743 s) |
+| Ubicloud vCPU-minutes per run | 899-940 | 739-755 |
| Critical path | Selected E2E | a unit shard (Test) |
-| Selected E2E shard max / mean | 904 / 721 s (4 workers) | 452 / 382 s (8 workers) |
-| Unit shard max / mean | 762 / 542 s | 767 / 535 s (before the weight re-mine below) |
+| Selected E2E shard max / mean | 904 / 721 s (4 workers) | 365-451 / 323-345 s (8 workers) |
+| Unit shard max / mean | 762 / 542 s | 614-732 / 544-567 s |
| Tests that ran in no lane | 55 PostgreSQL arms and 12 dead opt-in gates (the compile smoke among them) | 0 (one allowlisted arm with a TODO) |
-Before: the three baseline runs of the master tree on 2026-10-04 (`docs/test-audit/2026-10-04/baseline.md`). Now: run Test 37235275086 + E2E 37235274833 of this branch.
+Before: the three baseline runs of the master tree on 2026-10-04. Now: the three acceptance runs of this branch on the re-mined weights. Both sets of run ids are in `docs/test-audit/2026-10-04/baseline.md`, and every run executes the baseline's test identities or declares the change in `expected-deltas.tsv`.
### Things to watch
diff --git a/TODOS.md b/TODOS.md
index 8367123cf4..90e1df9686 100644
--- a/TODOS.md
+++ b/TODOS.md
@@ -8,8 +8,8 @@ Context: `.github/nightly-known-red.tsv` rows point here; nightly-watch keeps th
**What:** the 36-minute PGLite `vectors` stall at 20k pages (nightly run 37196223708) no longer reproduces with the WAL checkpoint guard on autocommit writes: branch dispatch 37221090928 finished PGLite 20k `vectors` in 173 s (40 batches of 500 pages, dimension 1024, RSS ~2.5 GiB), against 56 s on Postgres. Per-batch time still grows from 2.1 s to 6.3 s across the phase. **Why:** a default PGLite brain that embeds 50k+ chunks at once may hit the superlinear part. **Fix:** read the per-batch `vectors` lines on the 50k promotion runs; if the batch time keeps climbing, measure through the shipped `gbrain embed` path and decide the engine fix (HNSW maintenance around bulk updates, PGLite memory settings). **Effort:** M. **Priority:** P2.
- [ ] **P1 — Set the ANTHROPIC_API_KEY and OPENAI_API_KEY repo secrets.**
**What:** the Hermes door's paid leg and the real-agent Claude/Codex doors skip visibly every night because both secrets are empty (approved, decision D-1). **Why:** only the repo owner can set secrets. **Fix:** `gh secret set ANTHROPIC_API_KEY` and `gh secret set OPENAI_API_KEY`, then delete the Heavy Tests row from `.github/nightly-known-red.tsv`. **Effort:** S. **Priority:** P1.
-- [ ] **P1 — PR time to green is 933 s against the ~650 s target.**
- **What:** the wave cut PR CI from 1010-1067 s to 933 s (required checks green at 905 s) and from 899-940 to 754 Ubicloud vCPU-minutes (runs 37235275086 + 37235274833 against `docs/test-audit/2026-10-04/baseline.md`). Selected E2E fell to 452 s, so the unit shards are the critical path: max 767 s against a 535 s mean before the weight re-mine. **Fix:** measure the next runs on the re-mined weights (target shard max/mean under 1.15); if Test still sets the critical path, add unit shards or move the heaviest unit files before revisiting runner sizes; recompute the 30-PR median two weeks after merge. **Effort:** M. **Priority:** P1.
+- [ ] **P1 — PR time to green is 696-874 s against the ~650 s target.**
+ **What:** the wave cut PR CI from 1010-1067 s to 696-874 s (median 743 s over three acceptance runs) and from 899-940 to 739-755 Ubicloud vCPU-minutes (`docs/test-audit/2026-10-04/baseline.md`). The unit shards are the critical path: max 614-732 s against a 544-567 s mean on the re-mined weights; the spread comes from single files (`claw-test.slow`, `persistence-large-manifest`) running slower than their one-run weights. **Fix:** mine weights from several runs (median per file) instead of one, then add unit shards or split the heaviest unit files before revisiting runner sizes; recompute the 30-PR median two weeks after merge. **Effort:** M. **Priority:** P1.
- [ ] **P2 — Clone initialized homes for CLI-spawn and agent-journey fixtures (D5 adoption).**
**What:** `test/helpers/brain-template.ts` clones initialized disk brains for in-process fixtures, but the CLI-spawn and agent-journey helpers still run `gbrain init` per test. An initialized `GBRAIN_HOME` holds identity tied to its own paths (managed-roots files named by a hash of the data-dir path, the owner record, `content/<brain_id>`), so a copied home cannot be rebased. **Fix:** a production re-identity path for a copied home, then adopt the template in `cli-spawn` and the journey helpers. **Effort:** M. **Priority:** P2.
- [ ] **P2 — Executed-test receipts for the remaining lanes.**
diff --git a/docs/test-audit/2026-10-04/baseline.md b/docs/test-audit/2026-10-04/baseline.md
index 0e6f8407ad..a5adcfd848 100644
--- a/docs/test-audit/2026-10-04/baseline.md
+++ b/docs/test-audit/2026-10-04/baseline.md
@@ -38,3 +38,15 @@ secrets are unset; expected-deltas.tsv declares that lane's skip until they are
Acceptance compares the wave head against run C with the same command, after the
baseline is re-taken on a new merge-base whenever the collector is rebased.
+
+## Acceptance
+
+Three full pull-request runs of the finished wave (weights re-mined, backend
+matrix in two shards), same measurement. The identity comparison against run C
+passes for each: every dropped identity is declared in expected-deltas.tsv.
+
+| Run | Commit | Test run | E2E run | PR time to green | Ubicloud vCPU-min | Unit shard max / mean | Selected E2E shard max / mean |
+|---|---|---|---|---:|---:|---:|---:|
+| 1 | ce1921e21 | 37237153118 | 37237152915 | 874 s | 739 | 732 / 567 s | 365 / 323 s |
+| 2 | b332a88aa | 37238586428 | 37238586232 | 696 s | 740 | 614 / 544 s | 373 / 345 s |
+| 3 | 0bfbac34d | 37239440492 | 37239440211 | 743 s | 755 | 680 / 558 s | 451 / 331 s |