Dataset Viewer
Auto-converted to Parquet Duplicate
text
stringlengths
0
156
============================= 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 12 items
::test_frozen_instance_untampered PASSED [ 8%]
::test_results_present_and_complete PASSED [ 16%]
::test_solver_is_a_real_computation PASSED [ 25%]
::test_each_config_matches_independent_recompute FAILED [ 33%]
::test_wave_speed_matches_elastic_formula_and_material_ordering PASSED [ 41%]
::test_dynamics_kinematics_cross_invariants PASSED [ 50%]
::test_numerical_vs_physical_damping_audit FAILED [ 58%]
::test_friction_damping_ordering PASSED [ 66%]
::test_fast_vs_slow_surge_contrast PASSED [ 75%]
::test_cavitation_margin_contrast PASSED [ 83%]
::test_held_out_solver_generalizes FAILED [ 91%]
::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 cfg, rec in _iter_configs():
where = f"config {cfg['id']}"
ref = ref_observables(cfg)
> check_config_quantities(rec, ref, where)
/verifier/test_outputs.py:472:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rec = {'H_max_mid': 135.7544134343571, 'H_max_valve': 135.9827749984357, 'H_min_valve': 8.76534618717938, 'H_valve0': 71.08490223715617, ...}
ref = {'H_max_mid': 135.75210322569012, 'H_max_valve': 135.98046484715832, 'H_min_valve': 8.767695402953738, 'H_valve0': 71.08490223715617, ...}
where = 'config steel_fast_quasisteady'
def check_config_quantities(rec, ref, where):
"""Every reported quantity matches the independent recompute (or is null iff the
reference quantity is null)."""
for key in CORE_KEYS:
assert key in rec, f"{where}: missing key {key!r}"
rel, ab = TOL[key]
rv, ov = rec[key], ref[key]
if ov is None:
assert rv is None, f"{where}: {key} should be null (undefined for this regime), got {rv}"
continue
> assert rv is not None, f"{where}: {key} must not be null (reference={ov})"
E AssertionError: config steel_fast_quasisteady: phase_lag_mid must not be null (reference=0.7258979466981412)
E assert None is not None
/verifier/test_outputs.py:395: AssertionError
___________________ test_numerical_vs_physical_damping_audit ___________________
def test_numerical_vs_physical_damping_audit():
"""The central methodological stake: exact-Courant conserves energy while the Cr<1
interpolation trap dissipates it, even though BOTH lines are frictionless."""
by_id = load_results()
cons = by_id[ID_CONSERVATION]; trap = by_id[ID_TRAP]
assert float(cons["energy_drift"]) < 1.0e-6, "exact-Courant frictionless run must conserve energy"
assert float(trap["energy_drift"]) > 1.0e-2, "Cr<1 interpolation must dissipate energy"
assert float(trap["energy_drift"]) > 1.0e4 * float(cons["energy_drift"]) or float(cons["energy_drift"]) < 1e-9, (
"numerical energy dissipation must dwarf the exact-Courant baseline")
assert float(cons["decay_rate"]) < 1.0e-3, "frictionless exact-Courant line must not decay"
> assert float(trap["decay_rate"]) > 5.0e-3, "frictionless Cr<1 line must show artificial decay"
E AssertionError: frictionless Cr<1 line must show artificial decay
E assert 0.0 > 0.005
E + where 0.0 = float(0.0)
/verifier/test_outputs.py:530: 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 cfg in HIDDEN_CONFIGS:
with tempfile.NamedTemporaryFile("w", suffix=".json", delete=False) as fh:
json.dump(cfg, fh)
cfg_path = fh.name
try:
proc = subprocess.run(
[sys.executable, str(SOLVER), cfg_path],
capture_output=True, text=True, timeout=600,
)
finally:
os.unlink(cfg_path)
assert proc.returncode == 0, f"agent solver failed on hidden {cfg['id']}: {proc.stderr[-800:]}"
payload = None
for line in reversed(proc.stdout.strip().splitlines()):
line = line.strip()
if line.startswith("{"):
> payload = json.loads(line); break
^^^^^^^^^^^^^^^^
/verifier/test_outputs.py:581:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
End of preview. Expand in Data Studio

No dataset card yet

Downloads last month
56