Scaffold persistent state spine

This commit is contained in:
Meta Vens 2026-05-16 03:43:43 +01:00
commit d9ac23b014
14 changed files with 461 additions and 0 deletions

36
docs/architecture.md Normal file
View file

@ -0,0 +1,36 @@
# 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.
## 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,
inspectable machine. The first executable slice should probably read a tiny
language project definition, render a handful of structured meaning packets, and
produce traceable glossed output.
## 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.

27
docs/language-model.md Normal file
View file

@ -0,0 +1,27 @@
# Language Model
Weksa's linguistic model is concept-first.
## Translation Path
1. Preserve the source utterance.
2. Decompose it into structured meaning.
3. Apply an alien ontology that may split, collapse, or reweight concepts.
4. Select grammatical commitments required by the target language.
5. Build morpheme plans from roots, derivation, inflection, and compounds.
6. Apply phonological constraints.
7. Apply diachronic history.
8. Render surface text, glosses, and explanation.
## Model Use
LLMs and embedding models are useful for:
- semantic decomposition
- concept clustering
- typological inspiration
- consistency critique
- example generation
They are not the canonical state store. A completion becomes durable only after
it is normalized into explicit language-project state.

21
docs/roadmap.md Normal file
View file

@ -0,0 +1,21 @@
# Roadmap
## Now
- Keep the persistent state spine small and readable.
- Decide the first language-project state format.
- Build a hand-authored toy language project before automating generation.
## First Prototype
- Parse or load one language project definition.
- Accept a structured meaning packet.
- Render glossed output through grammar, morphology, phonology, and diachrony.
- Emit a trace explaining which stage made each decision.
## Later
- Add model-assisted semantic decomposition from English.
- Add embeddings for concept clustering.
- Add model critique against the explicit language state.
- Add corpus generation and consistency checks.