Discovery: opt-in joint parameter refinement (refine.rs, via lawsynth-opt
coordinate_minimize, guaranteed non-worsening trajectory MSE) and dependency/
causal hypothesis discovery (causal.rs, via lawsynth-causal Granger/independence/
time-order, framed as a hypothesis with its assumption set). CLI --refine/--causal.
Verification: wire tests/{conformance,end-to-end,cross-language} to execute against
the real compiled CLI — valid worlds round-trip, every bad-* asserted-rejected,
unbuilt native/TS legs honestly skipped. 26 pytest cases.
Rust workspace 342->352 tests; +26 system-verification cases. clippy/fmt clean.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
32 lines
1.0 KiB
Python
32 lines
1.0 KiB
Python
"""Conformance suite: valid worlds must round-trip, ``bad-*`` must be rejected.
|
|
|
|
Each case under ``tests/conformance`` is executed against the real compiled
|
|
engine. Valid worlds are inspected and simulated; the negative fixtures
|
|
(``bad-expression``, ``bad-hash``, ``bad-schema``, ``bad-units``,
|
|
``unsafe-archive``) must be rejected with a non-zero exit and the documented
|
|
diagnostic. Cases documenting an unimplemented capability assert the honest
|
|
boundary rather than forcing a pass.
|
|
"""
|
|
|
|
from __future__ import annotations
|
|
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
import pytest
|
|
|
|
from conftest import discover_cases
|
|
|
|
_CONFORMANCE = Path(__file__).resolve().parent / "conformance"
|
|
if str(_CONFORMANCE) not in sys.path:
|
|
sys.path.insert(0, str(_CONFORMANCE))
|
|
|
|
import _conformance # noqa: E402
|
|
|
|
_CASES = discover_cases("conformance")
|
|
|
|
|
|
@pytest.mark.parametrize("case_dir", _CASES, ids=[case.name for case in _CASES])
|
|
def test_conformance_case(case_dir: Path, engine_binary: Path) -> None:
|
|
_conformance.run_case(case_dir)
|