Promotion Engine.Test
Path:
loom-sprint-scaffold/loom/tests/memory/promotion-engine.test.tsRelative: loom/tests/memory/promotion-engine.test.tsSubproject: loom-sprint-scaffoldCategory: testsLines: 212Bytes: 9,720Imports: 5Exports: 0has tests
Content Preview
- /**
- * PromotionEngine tests (H4.2).
- *
- * Proves:
- * - Promotion fires at EXACTLY m_promote distinct traces (not m-1; same trace repeated ≠ distinct)
- * - Provenance lists the exact trace ids that justified the promotion
- * - Procedural promotion (semantic→procedural) creates status='proposed' row only
- * - No promotion when m-1 distinct traces
- */
- import { describe, expect, test } from "bun:test";
- import { Database } from "bun:sqlite";
- import { PromotionEngine } from "../../src/memory