Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
fix(graduation): classify the retrieval feedback tables in the engine graduation inventory
garrytanf755a3682a70
diff --git a/src/core/persistence/graduation-inventory.ts b/src/core/persistence/graduation-inventory.tsindex 7b25e6b470..98622cbe26 100644--- a/src/core/persistence/graduation-inventory.ts+++ b/src/core/persistence/graduation-inventory.ts@@ -115,6 +115,11 @@ export const GRADUATION_INVENTORY: Inventory = {}),carry('persistence_writer_protocols', 'operational', 'Writer protocol registrations per worktree owner.'),carry('raw_data', 'user_data', 'Raw source payloads per page.'),+ carry('retrieval_event_links', 'operational', 'Typed edges each recorded answer used; keeps recent answers rateable.'),+ carry('retrieval_event_pages', 'operational', 'Pages and revisions each recorded answer used; keeps recent answers rateable.'),+ carry('retrieval_events', 'operational', 'Recorded answers (answer_id, client, op) within the retention window.'),+ carry('retrieval_feedback', 'user_data', 'Ratings and citation signals with the weight change each applied.'),+ carry('retrieval_weights', 'user_data', 'Learned retrieval feedback weights per page and edge.'),carry('search_telemetry', 'operational', 'Search telemetry rollups.'),carry('session_context_state', 'operational', 'Ambient recall session state.'),carry('shared_skill_delivery_batches', 'operational', 'Shared-skill delivery batches and acknowledgments.'),diff --git a/test/graduation-inventory.test.ts b/test/graduation-inventory.test.tsindex 36bbeb86a6..383fbf51a2 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: 99, 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 });