Promotion Engine
Path:
loom-sprint-scaffold/loom/src/memory/core/promotion-engine.tsRelative: loom/src/memory/core/promotion-engine.tsSubproject: loom-sprint-scaffoldCategory: otherLines: 198Bytes: 6,260Imports: 4Exports: 2
Content Preview
- /**
- * H4.2 — Promotion Engine.
- *
- * episodic → semantic: when a pattern recurs across ≥ m_promote distinct traces.
- * Writes a new semantic MemoryRecord with provenance listing the exact
- * trace_event ids that justified it, status='auto'.
- *
- * semantic → procedural: NEVER auto. Creates a skills row with status='proposed'
- * ONLY. The skills table (from src/db/schema.ts) is the procedural knowledge
- * store; human approval is required before promotion status='approved'.
- *
- * All tuna