feat: add BLIF Flow v2 shadow compare cutover layer

This commit is contained in:
plx
2026-08-16 00:12:20 +00:00
parent 3b60c3fb70
commit 32e7773957
7 changed files with 417 additions and 24 deletions

View File

@@ -80,7 +80,14 @@ def test_off_mode_is_a_noop_without_deriving_or_connecting():
}
@pytest.mark.parametrize("mode", ["compare", "authoritative", "invalid"])
@pytest.mark.parametrize("mode", ["authoritative", "invalid"])
def test_unimplemented_modes_fail_closed(mode):
with pytest.raises(RuntimeError, match="not implemented"):
with pytest.raises(RuntimeError, match="disabled"):
rebuild_blif_flow_v2_projection(mode=mode, derived_rows=[])
def test_compare_mode_uses_the_same_additive_projection_path():
from inspect import getsource
source = getsource(rebuild_blif_flow_v2_projection)
assert 'selected_mode not in {"shadow", "compare"}' in source
assert '"mode": selected_mode' in source