Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

feat(graph): engine graduation carries temporal relationship tables (link_transitions, link_relationships, link_edge_proposals)

garrytanaefa20109218
diff --git a/src/core/persistence/graduation-inventory.ts b/src/core/persistence/graduation-inventory.ts
index 7b25e6b470..7378e781ce 100644
--- a/src/core/persistence/graduation-inventory.ts
+++ b/src/core/persistence/graduation-inventory.ts
@@ -66,6 +66,9 @@ export const GRADUATION_INVENTORY: Inventory = {
carry('files', 'user_data', 'File metadata; object bytes stay in the storage backend.'),
carry('ingest_log', 'operational', 'Ingestion log.'),
carry('links', 'user_data', 'Page graph links.'),
+ carry('link_edge_proposals', 'user_data', 'Relationship contradiction proposals with the user\'s accept/reject/undo decisions and the paid judge results behind them.'),
+ carry('link_relationships', 'user_data', 'Temporal relationship state; recorded_at and retired_at keep when the brain first and last saw a relationship, which a rebuild cannot recover.'),
+ carry('link_transitions', 'user_data', 'Dated start/end evidence for relationships, including manual add_link dates that exist nowhere else.'),
carry('loop_suppressions', 'user_data', 'Open-loop mutes the user chose.'),
carry('mcp_request_log', 'operational', 'MCP request log.'),
carry('mcp_spend_log', 'operational', 'MCP spend log.'),
diff --git a/test/graduation-inventory.test.ts b/test/graduation-inventory.test.ts
index 36bbeb86a6..94fa794d15 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: 97, 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 });