Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
A new test suite now checks that the PGLite and Postgres engines give the same answers, method by method, on every CI run.
Tests
test/engine-parity/runs one scenario on every engine arm and fails when the arms disagree. PGLite runs in every unit lane, with no skip. Postgres runs whereverDATABASE_URLis set, including theunit-postgres-armslane, which now lists each parity file. A future engine joins throughtest/engine-parity/harness.tswith no change to the cases.test/engine-parity/coverage.tsvis a generated list of every BrainEngine method, whether a parity case calls it, and what each engine arm (PGLite, Postgres and the planned Rust engine) must do for it. It covers all 198 methods. Regenerate it withbun test/engine-parity/coverage.ts --write;test/engine-parity/coverage.test.tsfails when the list is stale.- Each case must call every method it declares, so the coverage number cannot claim a method that no case actually calls.
rewriteLinksleft the shrink-only uncalled list intest/engine-surface-coverage.test.ts, because a parity case now calls it. Its smoke stays as a shape pin.