Files
codebase-memory-mcp/tests
Andrew Hundt 0db05d3fc9 fix(pipeline): avoid late exact fallback on mixed frontiers
Reject exact upsert before scratch/delta construction when an expanded cross-file frontier also contains file-owned inbound edges from unowned source nodes. The final planner cannot prove regeneration for that mixed shape until after parsing, so early containment avoids paying the large exact batch cost only to fall back later.

Keep ordinary expanded frontiers and single-file regenerated unowned-source edges eligible. Add a pipeline canary that injects the mixed ownership shape, verifies early inbound_edges_require_full fallback, and confirms the changed file is still fresh after containment.

Validation: test-runner rebuild rc=0; CBM_ONLY_SUITE=pipeline rc=0 (307/307); source-safety rc=0; escalated CBM_ONLY_SUITE=incremental CBM_ONLY_TEST=exact rc=0 (1/1); cap256 self-dogfood rc=0 improved from prior 1.39x late fallback to 3.36x early fallback with correctness/oracles/cleanup passing.
Signed-off-by: Andrew Hundt <ATHundt@gmail.com>
2026-07-02 14:47:36 -04:00
..
2026-06-03 02:13:30 +02:00