Weksa/docs/architecture.md

47 lines
1.7 KiB
Markdown
Raw Normal View History

2026-05-16 03:43:43 +01:00
# Architecture
Weksa is currently a state spine and a pipeline map, not an implementation.
## Objective
Build a procedural alien-language engine whose outputs are grounded in
worldview, semantics, grammar, phonology, morphology, and history.
## Current Mechanism
There is no runtime mechanism yet. The repo contains persistent state surfaces
that define the intended data flow and the ownership boundaries future code must
respect.
2026-05-19 14:57:37 +01:00
The first shared contract is the [Interlingua Standard](./interlingua-standard.md):
clients submit interlingua packets before any language project projects them
through its ontology.
2026-05-16 03:43:43 +01:00
## Invariants
- Meaning precedes words.
- Ontology owns concept distinctions.
- Grammar owns obligatory expression.
- Morphology owns form families.
- Phonology owns sound legality.
- Diachrony owns plausible irregularity.
- Renderer owns output, not interpretation.
## Intended Change
Future implementation should turn the pipeline in `state/map.yaml` into a small,
2026-05-19 14:57:37 +01:00
inspectable machine. The first executable slice should probably validate a tiny
interlingua packet, read a tiny language project definition, render glossed
output, and produce a trace explaining which stage made each decision.
2026-05-16 03:43:43 +01:00
2026-05-16 11:56:55 +01:00
Runtime should be fast and deterministic. Model-assisted English decomposition
belongs in authoring tools or offline import flows, not in the required hot path.
See [Runtime and Authoring Split](./runtime-authoring-split.md).
2026-05-16 03:43:43 +01:00
## Cut Line
Do not add a runtime language, service, database, queue, plugin system, prompt
framework, or adapter until the pipeline stage needing it is known.
2026-05-16 11:56:55 +01:00
Do not hard-code Rust to Dust, its aliens, or its aesthetic-honor ontology into
the generic engine.