git-subtree-dir: fiscal git-subtree-mainline:d95165fc8fgit-subtree-split:102ba84500
16 lines
705 B
Python
16 lines
705 B
Python
import json
|
|
|
|
|
|
def test_offline_simulation_runs_full_plumbing_without_accepting_fake_answers(tmp_path):
|
|
from central.scripts.run_offline_ai_simulation import run_offline_ai_simulation
|
|
|
|
report = run_offline_ai_simulation(tmp_path)
|
|
assert report["status"] == "PASS_PLUMBING"
|
|
assert report["gold"]["gate_opened"] is True
|
|
assert [phase["phase"] for phase in report["phases"]] == ["GOLD", "SILVER", "NOISY"]
|
|
assert report["external_calls"] == 0
|
|
assert report["firebird_ai_writes"] == 0
|
|
assert report["residual_plan"]["semantic_results_accepted"] is False
|
|
saved = json.loads((tmp_path / "OFFLINE_AI_SIMULATION_V1.json").read_text(encoding="utf-8"))
|
|
assert saved == report
|