14 Commits

Author SHA1 Message Date
035cebdcf1 feat(product): discovery-as-a-service — run workflow + Python service Client
Wave 7 — the backend ties together into one working loop:
API — POST /v1/runs executes a real discovery run state machine (queued ->
running -> succeeded|failed) via the native engine on a worker thread, stores the
discovered world, computes a real result summary (mse/complexity/#laws), and
emits RunQueued/Started/Succeeded/Failed to the event bus (streamed by
/v1/events). GET /v1/runs/{id} (status+summary) and /v1/runs/{id}/world flow
straight into the existing explain/report endpoints. Honest 503 when native
absent; bearer-auth + tenant-scoped + idempotent.

SDK — lawsynth.Client (stdlib urllib) drives the loop: submit_discovery -> wait
-> world -> explain/forecast/report, with a real HTTP transport and an in-process
WSGI transport so it runs fully offline. Demonstrated end to end.

API 98 -> 134 tests (native absent); client 18 tests.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-08-17 22:30:54 +03:00
8e6d7f1cb0 feat(product): experiment tracking, data profiling, brand-themed reports
Wave 6 — workflow & polish:
CLI — lawsynth runs (experiment tracking; content-derived ids, no clock, so
runs are deterministic and machine-stable): discover --track records data hash/
columns + config + result summary; runs list/show/compare (config + result
deltas). lawsynth profile <csv>: per-column stats, time monotonicity/regularity,
and quality warnings (outliers, gaps, constant columns) before you discover.

SDK — lawsynth.profile / Study.profile -> DataProfile (stats + time profile +
warnings, brand-themed _repr_html_).

Reports — a real brand Theme (palette + serif/sans/mono stacks from
typography.md) applied across report/comparison/scenarios HTML + SVG (terracotta
primary series on warm paper). Backward-compatible: *_with_theme fns added,
ReportOptions.theme defaults to brand; CLI + 30 report tests green.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-08-17 22:15:22 +03:00
edaf16b08b feat(product): domain presets/recipes, provenance workspace, product README
Wave 5 — approachability & front door:
CLI — discover --preset (physics/ecology/epidemiology/finance/general) + presets
catalog; explicit flags override presets. library becomes a provenance-aware
workspace: world/data content hashes, columns, config, tags captured on add;
library search + compare over the workspace (backward-compatible index).

SDK — lawsynth.recipes (parity with CLI presets) + Study.discover(recipe=...,
**overrides); three runnable domain demos. Van der Pol shows the payoff: general
recipe misses the cubic term, mechanics recipe recovers -x+v-x^2*v (R2 0.99995).

Docs — a real product README (hero + Lorenz GIF, CLI+Python quickstart, feature
matrix by product loop, surfaces + HTTP endpoints, honest tone); refreshed
getting-started pages and a CHANGELOG Unreleased section. All flags verified
against the shipped CLI usage.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-08-17 21:53:47 +03:00
3c257cc9ef feat(product): scenarios & decisions across CLI, SDK, notebook, Studio
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>
2026-08-17 21:45:50 +03:00
aff4eea206 feat(product): reproducible pipeline, richer reports, data import, Studio 8 screens
Wave 3 product depth:
CLI — lawsynth pipeline <config.toml>: declarative ingest->discover->validate->
report/export chain, byte-reproducible, --example scaffold. Reports gain fit-vs-
observed + residual strips (report --data), regime timelines, uncertainty bands,
and compare --html side-by-side diffs (all self-contained, no external assets).

SDK — data import: lawsynth.load_source / Study.from_source bridge the connectors
library (filesystem, http verified; optional drivers degrade cleanly) into the
discovery loop, coercing numerics at the SDK boundary.

Studio — 3 more screens (data lens, structure map, export) for 8 total, a
screen-switcher home + registry-driven nav, cross-screen selection through the
shared state-store; fixed a pre-existing inverted-y chart-scale bug.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-08-17 21:36:24 +03:00
13d696183d feat(product): ship report/explain/compare/forecast, Study SDK, Studio screens
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>
2026-08-17 21:05:39 +03:00
bad0bc8d76 fix(connectors): correct aspirational HTTP CSV ingestion test to real contract
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>
2026-08-17 20:31:13 +03:00
b011dce423 test+config: connector test suite + service config/docs (manifest files)
Connectors: 22 real pytest modules (186 pass / 7 optional-dep skips) exercising
every connector's dependency-free surface + missing-driver degradation; SSRF
guard verified; errors_connector.py as a thin re-export (no forked taxonomy).
Services: config/{dev,staging,prod,test,limits,logging}.yaml + docs/*.md for
api/gateway/scheduler/worker, mapped to the real config structs; gateway/scheduler
Dockerfiles + scheduler .env/README. All YAML validated.

Closes 66 manifest files (gap 175->109). No source behavior changed.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-08-17 19:23:14 +03:00
345faa9de1 build: add maturin-free native extension build helper
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>
2026-08-17 19:07:30 +03:00
ac66c5c8f1 batgod 2026-08-17 13:40:09 +03:00
9a25989a70 f life 2026-08-16 23:40:41 +03:00
5828d99939 dragon warrior 2026-08-16 22:04:11 +03:00
6997f22be0 dr doom 2026-08-16 21:04:23 +03:00
6a9ce627e0 asdoruyu 2026-08-16 20:29:23 +03:00