Solmara Lab is a standalone Registry Stack adopter demo for the fictional Republic of Solmara. It replaces the old monorepo lab with one coherent country story, generated synthetic data, purpose-limited Relay APIs, Notary evidence services, and a citizen portal wired to the real local stack.
The lab uses published Registry Stack images pinned by digest. A local
registry-stack checkout is useful for development, but it is not required for
normal generation, live smoke tests, portal e2e, or hosted deployment.
From this repository:
just setup
just generate
just up
just smoke
just portal-live-e2e
just downjust up, just down, and just reset use a checkout-specific Docker Compose
project name by default so two local clones do not share containers or volumes.
Use just down to stop services while keeping local data. Use just reset only
when you intend to delete this checkout's Compose volumes.
The first wave covers three journeys:
- Birth to child benefit.
- Death to pension stop plus survivor benefit.
- Farmer climate-smart voucher and livestock movement control.
docs/contains the Solmara world bible, purpose catalogue, naming record, and story docs.generator/owns deterministic truth tables, per-registry projections, and generated fixture checks.geo/contains the hand-authored Solmara geometry source used by the generator.ministries/contains authority-owned Relay configs, manifest fragments, crosswalks, and generated fixtures.notaries/contains purpose-oriented Notary configs.metadata/assembles the multi-authority metadata publication.portal/contains the citizen portal and BFF.scenarios/,requests/, andperf/carry guided scenarios, API examples, and k6 smoke coverage.scripts/contains root quality gates and orchestration helpers.
just lint # static repo checks, including fiction lint
just test # generator, portal, and script tests when their projects exist
just compose # docker compose config validation
just smoke # story previews plus live Relay, Notary, and Compose portal checks
just smoke-live # live Notary checks only
just portal-compose-smoke # HTTP smoke against the Compose portal and live BFF
just portal-live-e2e # browser e2e against the running local stack
just hosted-smoke # public hosted health, endpoint, scenario, and portal checks
just up-esignet # local stack with eSignet-backed portal login
just smoke-esignet # eSignet discovery plus NIA UserInfo release smoke
just down # stop the local Compose topology without deleting volumes
just reset # stop the local Compose topology and delete its volumes
just release-pins v0.8.4 # compare versions.env against published GHCR tags
just review # security and release-readiness checksjust generate rewrites generated fixtures. Review those diffs like any other
committed generated artifact.
versions.env is the root source for published image digests. The Compose
fallbacks mirror it so direct docker compose runs still use pinned Registry
Stack images. The current pins are the Registry Stack v0.8.4 release digest
assets. Because that release publishes amd64 images, Compose defaults
REGISTRY_STACK_PLATFORM to linux/amd64; override it only when the release
publishes an image for another platform.
The NIA population Relay is intentionally Postgres-backed. just gen-secrets
also creates local Postgres TLS material under config/postgres/ssl/, and the
generated NIA connection string includes sslmode=require, matching Registry
Stack v0.8.4 Relay requirements.
See docs/hosted-deployment.md for the full
runbook. Coolify uses one hosted compose file for the lab edge plus one compose
file per pseudo-government authority:
compose.coolify.yamlfor the Visitor Center, portal, scenario runner, and static metadata.compose.coolify.interior.yamlfor CRA, NIA, and the NIA Postgres store.compose.coolify.esignet.yamlfor eSignet, eSignet UI, and its backing Postgres/Redis/seed services.compose.coolify.social-development.yamlfor SRO, MoSD programme MIS, and the child benefit notary.compose.coolify.labour-pensions.yamlfor SIPF and the pension notary.compose.coolify.agriculture.yamlfor NAgDI and the agriculture notary.compose.coolify.citizen-services.yamlfor the citizen services notary.
The hosted compose files remove host port bindings and avoid repo bind mounts
because Coolify does not seed bind-mount sources from the Git checkout. They do
not define custom Docker networks; cross-authority calls use the public
*.solmara.registrystack.org TLS endpoints. Authority compose files preserve
Relay audit/cache volumes and Notary audit state volumes, with a small
volume-permissions sidecar that makes those volumes writable by the product
runtime users.
Run uv run scripts/render-hosted-configs.py after editing Relay or Notary
configs so the hosted config overlays stay current.
Run just hosted-smoke after each hosted deploy from a trusted shell with the
demo tokens available in .env or the process environment. It checks public
routes, Relay source endpoints, Notary scenario evaluations, published-token
refusals, the Visitor Center scenario proxy, and the portal live BFF. Add
SOLMARA_HOSTED_SMOKE_BROWSER=1 when you also want hosted Playwright coverage
for the Visitor Center and portal.
The release-candidate workflow builds digest-pinned Solmara-owned images for
the hosted wrappers and app services, then writes the digest refs to the
workflow summary for Coolify env vars:
SOLMARA_RELAY_IMAGE, SOLMARA_NOTARY_IMAGE, SOLMARA_POSTGRES_IMAGE,
SOLMARA_STATIC_METADATA_IMAGE, SOLMARA_HOME_IMAGE,
SOLMARA_PORTAL_IMAGE, SOLMARA_SCENARIO_RUNNER_IMAGE,
SOLMARA_ESIGNET_RELAY_IMAGE, SOLMARA_ESIGNET_POSTGRES_IMAGE,
SOLMARA_ESIGNET_UI_IMAGE, and SOLMARA_ESIGNET_SEED_IMAGE.
For local eSignet testing, run just up-esignet instead of just up, then
sign in through the portal with Elena's fixture legacy_nid and static OTP
111111. Run just smoke-esignet to verify eSignet discovery and the NIA
solmara-nia-userinfo attribute-release profile.
Set UMAMI_WEBSITE_ID in the hosted environment to enable analytics for the
Visitor Center through the Registry Stack Umami instance.
Solmara data is synthetic. Do not use real people, real email domains, real
addresses, or real administrative geography. Use @mail.solmara.example for
emails and keep all story domains under gov.solmara.example.