Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
ci: provider secrets are set (D-1): drop the Hermes known-skipped row and the secrets TODO; Tier 2's baseline skip row explains the pre-secret baseline
garrytan107906e8472a
diff --git a/.github/nightly-known-red.tsv b/.github/nightly-known-red.tsvindex 8f266bdc99..64ad07af02 100644--- a/.github/nightly-known-red.tsv+++ b/.github/nightly-known-red.tsv@@ -10,4 +10,3 @@# kind known-red | known-skipped# todo the TODOS.md entry title that owns the fix (must appear in TODOS.md)# review_by YYYY-MM-DD; after it the incident asks for a fix or a re-justified date-Heavy Tests Hermes door e2e (credentialed, real binary, loud-fail) Run hermes door tests known-skipped Set the ANTHROPIC_API_KEY and OPENAI_API_KEY repo secrets 2026-10-18diff --git a/TODOS.md b/TODOS.mdindex 90e1df9686..6b81b2c84a 100644--- a/TODOS.md+++ b/TODOS.md@@ -6,8 +6,6 @@ Context: `.github/nightly-known-red.tsv` rows point here; nightly-watch keeps th- [ ] **P2 — PGLite bulk-embedding cost at 20k+ chunks.****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 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).**diff --git a/docs/test-audit/2026-10-04/expected-deltas.tsv b/docs/test-audit/2026-10-04/expected-deltas.tsvindex 8288d3a44b..4882a5f04d 100644--- a/docs/test-audit/2026-10-04/expected-deltas.tsv+++ b/docs/test-audit/2026-10-04/expected-deltas.tsv@@ -23,7 +23,7 @@# A move passes only when the target identity executes in head; a skip row# (planned pass-to-skip) passes only when head reports the test skipped.kind lane file test arm new_lane new_file new_test reason evidence-skip tier2 test/e2e/skills.test.ts * D-1: OPENAI_API_KEY and ANTHROPIC_API_KEY repo secrets are unset, so every Tier 2 skill test skips; delete this row once the owner sets them (TODOS P1)+skip tier2 test/e2e/skills.test.ts * D-1: the baseline runs predate the OPENAI_API_KEY and ANTHROPIC_API_KEY repo secrets (set 2026-10-05), so Tier 2 skipped every skill test there; head runs execute themmove serial test/admin-embed-spawn.serial.test.ts * unit test/admin-embed-spawn.test.ts D6: lint-clean, no process-wide state, 615/615 in one bun process forward and reverse; rejoins the parallel unit lanemove serial test/agent-install-shared-skills.serial.test.ts * unit test/agent-install-shared-skills.test.ts D6: lint-clean, no process-wide state, 615/615 in one bun process forward and reverse; rejoins the parallel unit lanemove serial test/agent-register-guards.serial.test.ts * unit test/agent-register-guards.test.ts D6: lint-clean, no process-wide state, 615/615 in one bun process forward and reverse; rejoins the parallel unit lanediff --git a/test/scripts/nightly-issue.test.ts b/test/scripts/nightly-issue.test.tsindex ba421ab73d..16ab37cdb1 100644--- a/test/scripts/nightly-issue.test.ts+++ b/test/scripts/nightly-issue.test.ts@@ -49,6 +49,7 @@ const heavy = () => ({annotations: Object.fromEntries([111415376248, 111415376292, 111415376359].map(id => [id, load<unknown[]>(`annotations-${id}.json`)])),});const realRows = parseKnownRed(readFileSync(join(ROOT, '.github/nightly-known-red.tsv'), 'utf8')).rows;+const hermesRow: KnownRow = { workflow: 'Heavy Tests', job: 'Hermes door e2e (credentialed, real binary, loud-fail)', signature: 'Run hermes door tests', kind: 'known-skipped', todo: 'PR time to green', review_by: '2026-10-25' };const scaleRow: KnownRow = { workflow: 'Scale tier', job: 'scale pglite 20000', signature: 'phase watchdog: vectors', kind: 'known-red', todo: 'PGLite bulk-embedding cost at 20k+ chunks', review_by: '2026-10-25' };const scaleRows = [...realRows, scaleRow];const recordOf = (body: unknown) => readJsonBlock<IncidentRecord>(String(body), JSON_MARKER)!;@@ -163,12 +164,12 @@ describe('nightly-watch incidents', () => {expect(quiet.calls.some(c => c.path.endsWith('/comments'))).toBe(false);});- test('the keyless Hermes leg is known-skipped: the run is not green and the issue stays open with an owner action', async () => {+ test('a known-skipped row (the keyless Hermes leg) keeps the run from reading green: the run is not green and the issue stays open with an owner action', async () => {const h = heavy();const jobs = h.jobs.jobs.map(j => j.name.startsWith('Hermes') ? { ...j, conclusion: 'success', steps: j.steps!.map(s => ({ ...s, conclusion: s.name === 'Run hermes door tests' ? 'skipped' : 'success' })) }: { ...j, conclusion: j.conclusion === 'failure' ? 'success' : j.conclusion });const { client } = fakeClient({ ...h, jobs: { ...h.jobs, jobs } });- const { assessment, plan } = await watchRun({ client, repo: REPO, runId: 1, rows: realRows, today: TODAY, dryRun: true });+ const { assessment, plan } = await watchRun({ client, repo: REPO, runId: 1, rows: [...realRows, hermesRow], today: TODAY, dryRun: true });expect(assessment.state).toBe('known-skipped');expect(plan.action).toBe('create');expect(plan.record!.next_step).toBe('owner_action');