text stringlengths 0 953 |
|---|
::test_results_present_and_complete PASSED [ 20%] |
::test_solver_is_a_real_computation PASSED [ 30%] |
::test_each_config_matches_independent_recompute FAILED [ 40%] |
::test_j0_spectrum_matches_analytic_morse PASSED [ 50%] |
::test_kratzer_and_pekeris_relations PASSED [ 60%] |
::test_isotopologue_mass_scaling PASSED [ 70%] |
::test_width_falls_with_barrier_action PASSED [ 80%] |
::test_held_out_solver_generalizes FAILED [ 90%] |
::test_no_leaked_reference_artifacts PASSED [100%] |
=================================== FAILURES =================================== |
________________ test_each_config_matches_independent_recompute ________________ |
def test_each_config_matches_independent_recompute(): |
LOGS.mkdir(parents=True, exist_ok=True) |
summary = [] |
for entry, rec, ref in _per_config(): |
where = f"config {entry['id']}" |
# any echoed identity field must match the instance (echo itself is optional) |
for f in ("De", "a", "re", "mu", "v_star", "J_star"): |
if f in rec and rec[f] is not None: |
assert abs(float(rec[f]) - float(entry[f])) <= 1e-9 + 1e-9 * abs(float(entry[f])), ( |
f"{where}: echoed {f} does not match instance" |
) |
_check_scalars(rec, ref, where) |
role = entry.get("role", "main") |
if role == "control": |
assert bool(rec.get("resonance_found")) is False, f"{where}: control config must report NO quasibound resonance" |
for key in ("E_res", "Gamma_BW", "Gamma_WKB", "barrier_action"): |
assert rec.get(key) is None, f"{where}: control {key} must be null" |
assert ref["resonance_found"] is False, "internal: reference expected no resonance" |
else: |
assert ref["resonance_found"] is True, "internal: reference expected a resonance" |
> _check_resonance(rec, ref, where) |
/verifier/test_outputs.py:584: |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
rec = {'Be': 1.9213597743989352, 'Dcd_v0': 4.015859619036365e-05, 'Dcd_v1': 4.057354840412959e-05, 'Dcd_v2': 4.103153445842958e-05, ...} |
ref = {'Be': 1.920935341308903, 'Be_rigid': 1.92099739087331, 'Dcd_v0': 4.015866034673057e-05, 'Dcd_v1': 4.057363989305222e-05, ...} |
where = 'config cfgA' |
def _check_resonance(rec, ref, where): |
assert bool(rec.get("resonance_found")) is True, f"{where}: expected a quasibound resonance" |
for key in ("E_res", "Gamma_BW", "Gamma_WKB", "barrier_action"): |
rel, ab = TOL[key] |
> assert approx(_num(rec, key), ref[key], rel, ab), f"{where}: {key} {rec[key]} vs reference {ref[key]}" |
E AssertionError: config cfgA: Gamma_WKB 0.09979907489623303 vs reference 0.04551410756006511 |
E assert False |
E + where False = approx(0.09979907489623303, 0.04551410756006511, 0.2, 0.001) |
E + where 0.09979907489623303 = _num({'Be': 1.9213597743989352, 'Dcd_v0': 4.015859619036365e-05, 'Dcd_v1': 4.057354840412959e-05, 'Dcd_v2': 4.103153445842958e-05, ...}, 'Gamma_WKB') |
/verifier/test_outputs.py:557: 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. Hardcoded / instance-specific solvers fail here.""" |
assert SOLVER.is_file(), "Missing solver" |
LOGS.mkdir(parents=True, exist_ok=True) |
records = [] |
for De, a, re_eq, mu, v, J in HIDDEN_CONFIGS: |
proc = subprocess.run( |
[sys.executable, str(SOLVER), str(De), str(a), str(re_eq), str(mu), str(v), str(J)], |
capture_output=True, |
text=True, |
timeout=600, |
) |
assert proc.returncode == 0, f"agent solver failed on hidden ({De},{a},{re_eq},{mu},{v},{J}): {proc.stderr[-800:]}" |
payload = parse_json_object_from_stdout(proc.stdout) |
assert payload is not None, f"agent solver produced no JSON for hidden ({De},{a},{re_eq},{mu})" |
ref = ref_solve(De, a, re_eq, mu, v, J) |
where = f"HELD-OUT (De={De},mu={mu},v={v},J={J})" |
_check_scalars(payload, ref, where) |
assert ref["resonance_found"] is True, "internal: hidden config expected a resonance" |
> _check_resonance(payload, ref, where) |
/verifier/test_outputs.py:670: |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
rec = {'Be': 2.4064451590999867, 'Dcd_v0': 7.749353317711185e-05, 'Dcd_v1': 7.836638521279244e-05, 'Dcd_v2': 7.935130847501947e-05, ...} |
ref = {'Be': 2.4056715710016134, 'Be_rigid': 2.4058001714652932, 'Dcd_v0': 7.749390591844314e-05, 'Dcd_v1': 7.836696524400705e-05, ...} |
where = 'HELD-OUT (De=0.0447,mu=7120.5,v=18,J=26)' |
def _check_resonance(rec, ref, where): |
assert bool(rec.get("resonance_found")) is True, f"{where}: expected a quasibound resonance" |
for key in ("E_res", "Gamma_BW", "Gamma_WKB", "barrier_action"): |
rel, ab = TOL[key] |
> assert approx(_num(rec, key), ref[key], rel, ab), f"{where}: {key} {rec[key]} vs reference {ref[key]}" |
E AssertionError: HELD-OUT (De=0.0447,mu=7120.5,v=18,J=26): Gamma_WKB 0.202254041873728 vs reference 0.08063129843721052 |
E assert False |
E + where False = approx(0.202254041873728, 0.08063129843721052, 0.2, 0.001) |
E + where 0.202254041873728 = _num({'Be': 2.4064451590999867, 'Dcd_v0': 7.749353317711185e-05, 'Dcd_v1': 7.836638521279244e-05, 'Dcd_v2': 7.935130847501947e-05, ...}, 'Gamma_WKB') |
/verifier/test_outputs.py:557: AssertionError |
==================================== PASSES ==================================== |
=========================== short test summary info ============================ |
PASSED ::test_frozen_instance_untampered |
PASSED ::test_results_present_and_complete |
PASSED ::test_solver_is_a_real_computation |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.