text stringclasses 197
values |
|---|
============================= test session starts ============================== |
platform linux -- Python 3.12.13, pytest-8.4.1, pluggy-1.6.0 -- /usr/local/bin/python3 |
rootdir: /app |
configfile: ../dev/null |
plugins: json-ctrf-0.3.5 |
collecting ... collected 9 items |
::test_frozen_instance_untampered PASSED [ 11%] |
::test_results_present_and_complete PASSED [ 22%] |
::test_solver_is_a_real_computation PASSED [ 33%] |
::test_each_instance_config_matches_independent_recompute FAILED [ 44%] |
::test_leading_edge_dispersion_relation PASSED [ 55%] |
::test_selection_dichotomy PASSED [ 66%] |
::test_traveling_wave_ode_pushed PASSED [ 77%] |
::test_held_out_solver_generalizes FAILED [ 88%] |
::test_no_leaked_reference_artifacts PASSED [100%] |
=================================== FAILURES =================================== |
___________ test_each_instance_config_matches_independent_recompute ____________ |
def test_each_instance_config_matches_independent_recompute(): |
LOGS.mkdir(parents=True, exist_ok=True) |
summary = [] |
for entry, rec, ref in _iter_configs(): |
role = entry.get("role", "pulled") |
where = f"config {entry['id']} ({entry['reaction']}, role={role})" |
# reported identity must match the frozen config |
assert entry["reaction"] == rec.get("reaction"), f"{where}: reaction identity mismatch" |
assert approx(rec.get("D"), entry["D"], 0.0, 1e-9), f"{where}: D identity mismatch" |
> ROLE_CHECK[role](rec, ref, where) |
/verifier/test_outputs.py:520: |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
/verifier/test_outputs.py:416: in check_pushed |
por = _num(rec, "pushed_over_linear", where) |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
rec = {'D': 0.82, 'a': 8.0, 'bramson_coeff': None, 'front_width': 2.7682098710496095, ...} |
key = 'pushed_over_linear' |
where = 'config amplified_pushed (amplified, role=pushed)' |
def _num(rec, key, where): |
> assert key in rec and rec[key] is not None, f"{where}: missing required numeric key '{key}'" |
E AssertionError: config amplified_pushed (amplified, role=pushed): missing required numeric key 'pushed_over_linear' |
E assert ('pushed_over_linear' in {'D': 0.82, 'a': 8.0, 'bramson_coeff': None, 'front_width': 2.7682098710496095, ...} and None is not None) |
/verifier/test_outputs.py:300: AssertionError |
_______________________ test_held_out_solver_generalizes _______________________ |
def test_held_out_solver_generalizes(): |
"""Run the agent's own solver on hidden configurations and grade against the |
independent recompute + analytic theory. Hardcoded solvers fail here.""" |
assert SOLVER.is_file(), "Missing solver" |
LOGS.mkdir(parents=True, exist_ok=True) |
records = [] |
for cfg in HIDDEN_CONFIGS: |
proc = subprocess.run( |
[sys.executable, str(SOLVER), json.dumps(cfg)], |
capture_output=True, text=True, timeout=600, |
) |
assert proc.returncode == 0, ( |
f"agent solver failed on hidden {cfg}: {proc.stderr[-800:]}") |
payload = None |
for line in reversed(proc.stdout.strip().splitlines()): |
line = line.strip() |
if line.startswith("{"): |
payload = json.loads(line) |
break |
assert payload is not None, f"agent solver produced no JSON for hidden {cfg}" |
payload.setdefault("D", cfg["D"]) |
payload.setdefault("r", cfg["r"]) |
payload.setdefault("a", cfg["a"]) |
payload.setdefault("reaction", cfg["reaction"]) |
ref = ref_solve(cfg["reaction"], cfg["D"], cfg["r"], cfg["a"], cfg["ic"], cfg["gamma"]) |
where = f"HELD-OUT {cfg['reaction']} D={cfg['D']} r={cfg['r']}" |
if cfg["reaction"] in ("cubic", "amplified"): |
> check_pushed(payload, ref, where) |
/verifier/test_outputs.py:605: |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
/verifier/test_outputs.py:416: in check_pushed |
por = _num(rec, "pushed_over_linear", where) |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
rec = {'D': 0.9, 'a': 7.0, 'bramson_coeff': None, 'front_width': 3.1435208092783746, ...} |
key = 'pushed_over_linear', where = 'HELD-OUT amplified D=0.9 r=1.05' |
def _num(rec, key, where): |
> assert key in rec and rec[key] is not None, f"{where}: missing required numeric key '{key}'" |
E AssertionError: HELD-OUT amplified D=0.9 r=1.05: missing required numeric key 'pushed_over_linear' |
E assert ('pushed_over_linear' in {'D': 0.9, 'a': 7.0, 'bramson_coeff': None, 'front_width': 3.1435208092783746, ...} and None is not None) |
/verifier/test_outputs.py:300: AssertionError |
==================================== PASSES ==================================== |
=========================== short test summary info ============================ |
PASSED ::test_frozen_instance_untampered |
PASSED ::test_results_present_and_complete |
PASSED ::test_solver_is_a_real_computation |
End of preview. Expand in Data Studio
No dataset card yet
- Downloads last month
- 59