Skip to content

Commit 033e10d

Browse files
committed
test(runtime): align fail-closed reference contract
1 parent c63744b commit 033e10d

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

tests/test_claude_runtime_contract.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,11 @@ def test_architecture_summaries_do_not_call_auto_a_transparent_fallback() -> Non
142142
assert "transparent reference/fallback paths" not in trd
143143
assert "governed reference/parity paths" in trd
144144
assert "transparent governed reference/fallback paths" not in summary
145-
assert "fails closed otherwise; it never silently selects NumPy" in adr
145+
assert "public production backend architecture exposes only `auto` and `rust`" in adr
146+
assert "`fit_reference` API" in adr
147+
assert "`fit --reference` CLI mode" in adr
148+
assert "not a `FitConfig` production choice" in adr
146149
assert "controlled fallback" not in adr
147-
assert "reference/fallback calculations" not in adr
148150

149151

150152
def test_buyer_facing_surfaces_do_not_advertise_auto_numpy_fallback() -> None:
@@ -188,7 +190,7 @@ def test_fit_cli_help_names_fail_closed_auto_backend(capsys) -> None:
188190
help_text = " ".join(capsys.readouterr().out.split())
189191
assert _STALE_CLI_HELP_FALLBACK not in help_text
190192
assert "fails closed otherwise" in help_text
191-
assert "pass numpy only for the explicit reference/parity path" in help_text
193+
assert "use --reference for the explicit NumPy parity path" in help_text
192194

193195

194196
def test_buyer_demo_storyboard_names_fail_closed_rust_owner() -> None:

0 commit comments

Comments
 (0)