Files
gti d21a9d1140 Add 'fiscal/' from commit '102ba84500dbd9655a0471288c3e278652593ca9'
git-subtree-dir: fiscal
git-subtree-mainline: d95165fc8f
git-subtree-split: 102ba84500
2026-09-29 14:43:23 -03:00

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