Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
Merge capy/memory-trust-reads-cache (L1b-S1: trust generation counter, hot-memory and core cache identity)
garrytanc0cd34e43aa7
diff --cc src/core/schema-migrations/registry.generated.tsindex 8b22b399d0,d2255a2fb4..2aad413601--- a/src/core/schema-migrations/registry.generated.ts+++ b/src/core/schema-migrations/registry.generated.ts@@@ -221,8 -221,8 +221,9 @@@ import { v217 } from './v217-persistencimport { v218 } from './v218-purge-legacy-worktree-manifest-files.ts';import { v219 } from './v219-pages-reconcile-name-indexes.ts';import { v230 } from './v230-trust-tiers.ts';+import { v231 } from './v231-write-gate.ts';import { v232 } from './v232-memory-purge.ts';+ import { v234 } from './v234-trust-generation.ts';// Array order is historical (see HISTORICAL_ARRAY_ORDER in the generator); the// runner sorts by version before applying.@@@ -442,6 -442,6 +443,7 @@@ export const MIGRATIONS: Migration[] =v218,v219,v230,+ v231,v232,+ v234,];diff --cc test/fixtures/goldens/migrations/records.jsonindex 29f74a7683,23a1598f64..9c025ebfd1--- a/test/fixtures/goldens/migrations/records.json+++ b/test/fixtures/goldens/migrations/records.json@@@ -1,6 -1,6 +1,6 @@@{"golden": {-- "count": 217,++ "count": 218,"gaps": [17,18,@@@ -15,7 -15,9 +15,8 @@@226,227,228,- 229+ 229,- 231,+ 233],"helpers": {"ALIAS_TABLES": "cddd37c636af42d862c08ca7754a57dfe9d12576b769fa8f74a5f02c803f67a0",@@@ -3521,8 -3523,8 +3535,9 @@@218,219,230,+ 231,- 232+ 232,+ 234]},"normalizer": "migrations-record-v1"diff --cc test/graduation-inventory.test.tsindex ea0824e615,5a678d3656..3af20cd821--- a/test/graduation-inventory.test.ts+++ b/test/graduation-inventory.test.ts@@@ -60,7 -60,7 +60,7 @@@ describe('graduation inventory', () =>expect(new Set(names).size).toBe(names.length);const counts: Record<string, number> = {};for (const e of GRADUATION_INVENTORY.entries) counts[e.class] = (counts[e.class] ?? 0) + 1;- expect(counts).toEqual({ carry: 118, rebind: 2, rebuild: 2, discard: 6, schema_owned: 3 });- expect(counts).toEqual({ carry: 110, rebind: 2, rebuild: 2, discard: 6, schema_owned: 4 });++ expect(counts).toEqual({ carry: 118, rebind: 2, rebuild: 2, discard: 6, schema_owned: 4 });for (const e of GRADUATION_INVENTORY.entries) {expect({ relation: e.relation, reason: e.reason.length > 5, present: e.engines.pglite || e.engines.postgres }).toEqual({ relation: e.relation, reason: true, present: true });