Batch 13 of expansion-v2. Makes the global-dynamics/control engine reachable
from the CLI and the hosted API, and adds a verified end-to-end scenario.
crates/lawsynth-cli: new `lyapunov` (spectrum + KY dimension + chaos flag),
`basins` (attractors + basin fractions + escaped/undetermined), `network`
(directed coupling edge list), and `mpc` (regulate to a setpoint) commands —
all with --json and honest caveats (lyapunov time-averaged; basins fixed-point
attractors only; network correlational-not-causal; mpc successive-linearization
LQR). 135 lib + 9 new integration tests.
python/lawsynth-server: POST /v1/worlds/{id}/analysis/stability mirroring the
simulations resource (auth scope, idempotency key, events). Reaches the engine
the same way the SDK does (native build_world -> save -> CLI-backed stability),
not re-implemented. Honest cases: inconclusive kept, empty box is 200, bad
request 422, engine-absent 503, engine-failure 5xx. 36 passed / 5 skipped
(engine absent), 39 passed with the engine.
examples/20-stability-and-forecast: verified scenario — a conservative oscillator
discovered, then stability finds a center (inconclusive) that invariants explains
via H = 0.25·imbalance² + mid², then forecast. Real captured output; matches the
gallery format; pytest examples 21/21. Honest that bifurcation/sensitivity need
declared parameters.
15 lines
815 B
Markdown
15 lines
815 B
Markdown
# Dataset card: Frictionless order book
|
|
|
|
- **Source:** deterministic numerical integration of the equations in `config.toml`.
|
|
- **Rows:** 1001, sampled from `0` through `20` at a `0.02` interval.
|
|
- **Time column:** `time`, strictly increasing floating-point simulation time.
|
|
- **State columns:** `mid`, `imbalance`.
|
|
- **Known parameters:** `impact`, `resilience` (`0`), `liquidity`.
|
|
- **Structure:** an undamped linear oscillator (conservative center at the
|
|
origin) whose energy `liquidity·mid² + impact·imbalance²` is conserved to RK4
|
|
truncation.
|
|
- **Use:** integration, finite-difference discovery, and — via `analyze.py` —
|
|
fixed-point stability, invariant detection, and forecasting.
|
|
- **Limitations:** this is synthetic data with no measurement process, missingness,
|
|
or external validity claim.
|