Point canonical campaign/body-map state to Weksa's Huginn mind (weksa-body / weksa-lowering, EUREKA_INSTANCE=weksa), replace stale state_spine/undecided-language claims in state/map.yaml with a concise pointer, and mark crates/weksa as live on main in docs/architecture.md.
2.5 KiB
Architecture
Weksa is a language-intent engine implemented in Rust under crates/weksa
(live on main), with CultCache-backed stores, packet validation, lowering
prompt construction, pronunciation planning, and golf-loop scoring/evaluation.
No long-running daemon runs yet.
See Verse Service Contract for the CultCache/CultMesh authority map.
Objective
Build a procedural alien-language engine whose outputs are grounded in worldview, semantics, grammar, phonology, morphology, and history. Once a service is earned (planned), Weksa also turns writing plus agent state into typed conversational intent, then lowers that intent into written realizations, pronunciation plans, speech-provider requests, and utterance handoff documents.
Current Mechanism
crates/weksa owns the live CLI and library (CultCache stores, packet
validation, split derivation, scoring, pronunciation planning, and the
golf-loop runner). No long-running daemon loop runs yet; the docs under
docs/ and Huginn (weksa-body, weksa-lowering) record the ownership
boundaries and campaign state.
The first shared contract is the Interlingua Standard: clients submit interlingua packets before any language project projects them through its ontology.
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.
- Weksa owns conversational intent and utterance lowering.
- External speech providers own rendered audio, not meaning or delivery truth.
- AquaSynth owns learned utterance embeddings, synth controls, Faust compilation, and audio output.
Intended Change
Future implementation should turn the pipeline mapped in weksa-body and
crates/weksa into a small, inspectable daemon once earned. The current
executable slice validates interlingua packets, lowers admitted views into
target-language realizations, plans English pronunciation, and traces stage
decisions.
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.
Cut Line
Do not add a database, queue, plugin system, prompt framework, or adapter until the pipeline stage needing it is known.
Do not hard-code Rust to Dust, its aliens, or its aesthetic-honor ontology into the generic engine.