12af3b956c
feat(P6/P7): collaboration workspaces + streaming online discovery
...
Completing the next-phase specs (P6-P10 now all coded):
P6 Collaboration (specs/collaboration) — project roles owner/editor/viewer
enforced server-side at every mutation (viewer 403, owner-only membership +
approval); immutable world revision lineage (content hash + derivation
discovered/edited/composed/imported + monotonic number, retrievable);
annotations + review state machine (draft->in_review->approved|rejected, audit
events to the bus); deterministic index merge that returns conflicts rather than
overwriting. +15 API tests (168 pass native-absent).
P7 Streaming discovery (specs/streaming-discovery) — CLI lawsynth stream + SDK
Study.stream/stream_discover: explicit window policy (sliding/growing, time
units, bounded memory), sustained-drift-triggered re-discovery (distinguishes
outlier from regime change), change records with per-law term diffs, byte-for-
byte replay determinism. Honestly documented as batched re-discovery, not
incremental. Regime switch at t=8 detected with exact differing terms. +CLI/SDK
tests.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-08-18 01:50:26 +03:00
29fe90834c
feat(P8/P9/P10): plugin marketplace, model governance, hosted-platform tenancy
...
Implementing the next-phase boundary specs as real, tested code:
P8 Plugin marketplace (specs/plugin-marketplace) — .lsplugin packages (checksum
manifest + package hash), mirrorable TSV registry, honest keyed-HMAC signing
(documented as symmetric MAC, not public-key), capability grants enforced at a
single seam (declared AND granted), non-destructive install; CLI plugin
pack/install/list/verify/remove/registry. pack->sign->install->verify->tamper-
fails demonstrated.
P9 Governance (specs/model-governance) — model cards (Rust render_model_card +
SDK Study.model_card orchestrating explain/validate/backtest/ensemble, honest
'Not measured' omissions), content-addressed lineage with verify_reproducible(),
tamper-evident hash-chained audit log (content ordinals, no clock). Added
Study.validate() holdout.
P10 Hosted platform (specs/hosted-platform) — per-tenant isolation tests on every
resource + FIXED a real artifact cross-tenant download leak (owner check);
per-tenant quota -> 429 + append-only metering log + GET /v1/usage; honest HMAC
SSO seam at the gateway (tenant token exchange, rejects forged/cross-tenant).
Rust workspace green (60 plugin/report tests); API 153 pass native-absent (+22);
gateway 14 (+7); SDK governance 16.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-08-18 01:27:37 +03:00
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
8c4bee8e2f
feat(product): export/templates/validate CLI, HTTP product endpoints, web onboarding
...
Wave 2 product depth:
CLI — export (world -> runnable Python/NumPy module + LaTeX + JSON; the exported
Python reproduces the engine to ~11 digits), new/templates (onboarding catalog:
lorenz, lotka-volterra, pendulum, van-der-pol, sir with synthetic-data
generation), validate (holdout forecast-skill diagnostic: RMSE/MAE/R2/skill vs
persistence, honest STRONG/FAIR verdicts).
Services — /v1/worlds explain, forecast, report (HTML), compare over HTTP,
backed by the real domain + native engine, honest 503/404/422 boundaries;
reuses the SDK HTML report generator. 98 -> 120 API tests.
Web — docs-site getting-started flow + 5-system examples gallery + concepts;
playground interactive pick-world -> tune-params -> simulate via a local
Euler integrator over world-schema. Both apps typecheck clean.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-08-17 21:19:13 +03:00
bd58228c14
feat: complete manifest services layer — decomposed modules + Rust gateway
...
Build the manifest's full decomposed services architecture as real, tested code:
- scheduler: 16 modules (queue/pool/policy/quota/placement/recovery + metrics/
events/backoff/health/fairness/shutdown + honest nats seam) — 130 tests
- worker: 16 modules (execute/lease/resources/limits + heartbeat/events/telemetry/
sandbox/recovery/cleanup/upload/artifacts + honest plugins seam) — 52 tests
- api: 20 modules (auth/authz/middleware + per-resource handlers + telemetry/
facades), app.py now a thin composition root — 98 tests
- gateway: new std-only Rust reverse-proxy crate (proxy/routing/auth/cors/
rate_limit/retry/timeouts/health/metrics/events/tracing + honest tls seam) — 110 tests
Every one of the 3,161 manifest files now exists. Extractions are behavior-
preserving (all prior tests green); new modules add real capability; nats/tls/
plugins/sandbox are honest documented seams, not fakes.
Rust workspace 352->605 tests; API 35->98. clippy -D warnings + fmt clean.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-08-17 19:55:26 +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
ac66c5c8f1
batgod
2026-08-17 13:40:09 +03:00
9a25989a70
f life
2026-08-16 23:40:41 +03:00
6a9ce627e0
asdoruyu
2026-08-16 20:29:23 +03:00