Wave 4 — compare what-ifs to decide:
CLI — lawsynth scenarios: define N named what-if scenarios (scheduled
interventions), compare final-state divergence from baseline in a table + a
self-contained multi-series HTML report (overlaid trajectories + legend).
lawsynth doctor: environment/health check with a real world round-trip self-test.
SDK — Study.add_scenario/compare_scenarios -> ScenarioComparison (table +
overlaid-SVG _repr_html_); a cohesive StudyDashboard in lawsynth-notebook that
composes equations/trajectory/frontier/regimes/uncertainty/scenarios into one
themed Jupyter view; Study._repr_html_ now renders the full dashboard when the
notebook package is present, degrading gracefully otherwise.
Studio — Scenario Board (9th screen): define scenarios, overlay trajectories
(multi-series chart + legend), baseline-divergence table, store-driven selection.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Product depth across all three surfaces (PRODUCT.md captures the vision):
CLI — new lawsynth-report crate (self-contained HTML reports with inline SVG
trajectory + phase-portrait charts) and five product commands: report, explain
(plain-language laws), compare (world diff), forecast (what-if interventions),
library (local world index). Demonstrated end-to-end on a damped oscillator.
SDK — high-level Study workflow (from_csv -> discover -> explain -> simulate/
forecast -> report -> save/load), stdlib HTML report generator, and notebook
rich _repr_html_ display. Quickstart example recovers the oscillator exactly
(R2=1.0) and writes a 30KB report.
Studio — 5 interactive screens (discovery canvas, equation explorer, regime
timeline, uncertainty lens, world lab) composing the shared TS packages through
a reactive state-store; typecheck-clean.
Also: benchmark execution deepened 9 -> 18 real cases (causal + regime families
now scored against ground truth); cross-service integration tests (gateway->
artifact proxy, scheduler<->worker lifecycle over real sockets).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
test_http_csv_is_streamed_coerced_and_numeric_validated asserted three behaviors
the connectors layer deliberately does NOT provide: numeric coercion of CSV
(contradicts the documented no-coercion contract and test_s3's string assertion),
loopback reads without the SSRF opt-in, and an ETag on read batches (only inspect()
surfaces it; the fixture has no HEAD). Rewritten to assert the real contract:
faithful string records + private-network opt-in + numeric=True rejecting textual
CSV. Repo now has zero failing tests.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Adds python/lawsynth/scripts/build-native.sh which builds the lawsynth-python
cdylib via cargo and installs it as the package's _native module under the
interpreter's ABI suffix — the same artifact maturin produces, but usable on
toolchains without maturin (air-gapped CI). Unblocks the Python native surface
(python/lawsynth: 22 tests) and the native conformance/e2e legs. The built .so
stays gitignored. Also stages Cargo.lock for the discovery opt/causal deps.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>