caelum0x 7087e7925e feat(product): symbolic simplify (egraph), model compose/edit, hosted-deploy
Wave 11 — the three candidates:
CLI — lawsynth simplify (egraph equality saturation extracts the lowest-cost
EQUIVALENT law; proves equivalence by simulating both worlds, deviation ~0;
honest 'already minimal' on sparse discovered worlds); lawsynth compose (union
two worlds into a coupled system, namespacing collisions) and lawsynth edit
(immutable rename/set-param/drop-law/scale-law, re-validated).

SDK — lawsynth.simplify / World.simplify (stdlib expand/fold/combine +
equivalence verify), lawsynth.compose, World.rename/set_parameter/drop_law/
scale_law. Two runnable examples.

Deploy — a verifiable hosted-deploy story: deploy/quickstart (config-validated
minimal api+gateway) + docs/self-hosting/quickstart.md (real curl/Client run
loop), after fixing genuine drift in the compose files (SQLite URL the API
actually accepts, correct token env, object root, health endpoints, native
build step) — verified end-to-end from source.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-08-18 01:08:14 +03:00

40 lines
1.5 KiB
YAML

# LawSynth — local single-node development stack.
#
# Brings up two planes on one machine:
#
# Product loop (runnable today):
# client ─▶ gateway :8081 ─▶ api :8080 ─┬─▶ SQLite (metadata, api volume)
# └─▶ files (object store, api volume)
# The API runs discovery on the compiled `lawsynth` engine IN-PROCESS; it
# does NOT use Postgres/MinIO/NATS. For a minimal, self-contained version of
# just this loop see ../../quickstart.
#
# Rust execution plane (infrastructure present; NOT yet wired to the API):
# scheduler ─▶ postgres :5432, nats :4222
# worker ─▶ postgres, nats, artifact :8082
# postgres / minio :9000 / nats :4222 back THIS plane, not the API.
#
# This is the "Single-node server" deployment mode from the architecture. It is
# for local development and evaluation only — it ships local-only default
# credentials and no TLS. For a hardened deployment use ../production.
#
# Usage:
# cp .env.example .env # then edit as needed
# docker compose up --build -d
# ./healthcheck.sh
# docker compose logs -f api worker
# docker compose down # add --volumes to also delete data
#
# Each service is defined in its own file and merged here via `include:` so the
# individual definitions stay small and independently reviewable.
name: lawsynth-local
include:
- volumes.yaml
- postgres.yaml
- minio.yaml
- nats.yaml
- api.yaml
- worker.yaml