Njordr/state/map.yaml
Meta Vens a5bf35e261 Scaffold Njordr: engine and shell, the state document, the fixture
The engine crate carries the spec's nouns as typed state (dimensions,
materials, sources, lots, recipes, facilities, discovery, knowledge,
shipments, markets, carrier and producer policies), validate_catalog as the
generation plan's first gate, and the pipeline fixture as a test-only
constructor proven to be a well-formed state document. The shell is a
binary that refuses to run until there is something to drive. Spec, map,
and doctrine included.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-11 18:29:05 +02:00

52 lines
2.8 KiB
YAML

mission: >
One economy organ for Aetheria and Delvehold. Every item is the product of
a supply chain; materials fill roles at different trade-offs; prices are a
pure function of committed state; the economy produces from player
choices and reacts to them. The specification is
docs/architecture/njordr.md and is the authority.
live_architecture:
engine: >
crates/njordr-engine. The state document (dimensions, materials,
sources, lots, recipes, facilities, discovery edges, per-holder recipe
knowledge, shipments, markets, carrier and producer policies) as typed,
serde-round-tripping data, and validate_catalog, the first gate of the
generation plan: every authored reference resolves and every curve and
envelope runs over a condition. No step function yet.
shell: >
crates/njordr. A binary that refuses to run because there is no store
and no step function to drive. It exists so the engine/shell split is a
workspace fact.
fixture: >
The spec's pipeline fixture is a test-only constructor in the engine
crate: copper, aluminium, gold conductors; a vapour-chamber part with a
capacity curve over temperature; thruster recipes with a spreader role
in cool and hot variants; a strict market and a permissive one on one
route; one carrier. Later cuts run it; this cut proves it is a
well-formed state document.
hard_boundaries:
- Prices, product properties, rarity, and quality are derived, never stored.
- Lots are conserved; provenance is permanent and acyclic.
- The engine performs no I/O and cannot attribute an event to its origin.
- The engine owns no trader and no maker; it executes authored policy.
- A recipe names roles, never materials.
- Fixtures before engine; a catalog is validated by replay.
current_status:
scaffolded: 2026-09-11
next_action: >
The first engine capability with its fixture, in this order: (1) property
evaluation and role filling: PropertyValue evaluated at a condition,
Requirement checked over an envelope, so the fixture's cool thruster
accepts the vapour chamber and the hot one refuses it; (2) the lot
ledger: extract, run recipe, transfer, consume, with conservation and
provenance pinned, and the produced lot's properties derived by the
recipe's derivations; (3) the quote function: a logarithmic market
scoring rule per market and class over reserves and demand rows, pure
and deterministic, with stale quotes refused; (4) shipments and seizure
against a revision, with admission over provenance; (5) carrier and
producer policies as the step function, with derived intermediate demand;
(6) replay equality on two machines. Then the C ABI for the Unity
embedding, then the shell's store and ports, then the Ghostlight consumer
binding when Ghostlight's outbound batch exists.