Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
fix(graduation): wanted_links carries across an engine graduation
garrytan8450f31904fb
diff --git a/src/core/persistence/graduation-inventory.ts b/src/core/persistence/graduation-inventory.tsindex 7b25e6b470..d9ffef63f4 100644--- a/src/core/persistence/graduation-inventory.ts+++ b/src/core/persistence/graduation-inventory.ts@@ -140,6 +140,7 @@ export const GRADUATION_INVENTORY: Inventory = {carry('takes', 'user_data', 'Takes with attribution and supersession.'),carry('think_ab_results', 'operational', 'Think A/B eval results.'),carry('timeline_entries', 'user_data', 'Timeline entries with attribution.'),+ carry('wanted_links', 'user_data', 'Unresolved authored links (wanted pages); the edge appears when the target page is written, so they are not re-derived without a full re-extraction.'),entry('persistence_brain', 'rebind', 'user_data', 'Brain identity and flags carry (brain_id keeps every identity file valid); enabled is set on the target only at cutover.', {transforms: [{ column: 'enabled', rule: 'false until cutover', expression: 'false' }],diff --git a/test/graduation-inventory.test.ts b/test/graduation-inventory.test.tsindex 36bbeb86a6..c862572fe0 100644--- a/test/graduation-inventory.test.ts+++ b/test/graduation-inventory.test.ts@@ -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: 94, rebind: 2, rebuild: 2, discard: 6, schema_owned: 3 });+ expect(counts).toEqual({ carry: 95, rebind: 2, rebuild: 2, discard: 6, schema_owned: 3 });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 });