Document Rust to Dust proving ground

This commit is contained in:
Meta Vens 2026-05-16 11:56:55 +01:00
commit 53574eb487
12 changed files with 493 additions and 2 deletions

View file

@ -30,7 +30,14 @@ 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.
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).
## 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.
Do not hard-code Rust to Dust, its aliens, or its aesthetic-honor ontology into
the generic engine.

70
docs/project-model.md Normal file
View file

@ -0,0 +1,70 @@
# Project Model
Weksa is the conlang engine, not the setting and not any one alien language.
The engine must stay language-neutral. It should support many language projects
with different ontologies, grammars, phonologies, morphologies, histories, and
rendering needs.
## Layers
```text
Weksa engine
-> language project
-> setting surface
```
## Weksa Engine
The engine owns generic pipeline contracts:
- structured meaning input
- ontology projection
- grammar planning
- morphology
- phonology
- diachrony
- deterministic rendering
- trace and gloss output
The engine must not assume that every language has aesthetic honor, empire
politics, reptilian speakers, battle broadcasts, or any other setting-specific
truth.
## Language Project
A language project owns one constructed language's live state:
- ontology
- phonetics and phonology
- grammar
- morphology
- lexicon
- diachrony
- registers
- renderer configuration
- accepted examples and tests
Names, exonyms, endonyms, and surface forms should fall out of this layer when
possible. Early naming is allowed only as a scratch convenience, not as durable
truth.
## Setting Surface
A setting owns story, species, politics, scenes, cultural pressure, and the
contexts where a language is used.
Setting material can motivate a language project, but it does not become engine
doctrine. The engine should learn from the pressure without inheriting the
setting's bones.
## Rust to Dust
Rust to Dust is Weksa's first proving ground. It needs a language project whose
speakers treat aesthetic devotion as moral honor and whose empire absorbs human
culture through commerce, prestige, and media rather than ordinary military
conquest.
That pressure is useful because it forces Weksa to handle ontology before words.
It is not a license to hard-code Rust to Dust into Weksa.

View file

@ -5,6 +5,8 @@
- 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.
- Use Rust to Dust as the first proving ground while keeping Weksa
setting-neutral.
## First Prototype
@ -12,6 +14,7 @@
- Accept a structured meaning packet.
- Render glossed output through grammar, morphology, phonology, and diachrony.
- Emit a trace explaining which stage made each decision.
- Keep runtime LLM-free; model use belongs in authoring and critique.
## Later

View file

@ -0,0 +1,61 @@
# Runtime and Authoring Split
Weksa must be able to run in time-sensitive contexts such as games. The hot path
should be fast, deterministic, local, and free of required LLM calls.
## Runtime
Runtime consumes structured meaning and compiled language-project data.
```text
structured intent
-> ontology projection
-> grammar plan
-> morphology
-> phonology
-> diachrony
-> surface render
```
Runtime invariants:
- no network dependency
- no required LLM call
- no arbitrary English interpretation in the hot path
- compiled data is immutable during a render pass
- renderer does not invent meaning
- traces can explain which stage made each decision
The game, tool, or host application should send structured intent, not prose
that Weksa must guess at under pressure.
## Authoring
Authoring tools may use neural models for slow, inspectable work:
- semantic decomposition from example English
- candidate ontology entries
- typological inspiration
- register and lexicon proposals
- consistency critique
- test case generation
Model output becomes durable only when normalized into explicit project state.
The model is a workshop tool, not a runtime authority.
## Parallel Renderers
One structured intent may render into multiple surfaces:
```text
structured intent
-> projected meaning
-> alien-language renderer
-> subtitle or gloss renderer
-> debug/plain renderer
```
For flavor-first settings, subtitles may render from projected meaning instead
of neutral facts. The neutral facts still exist underneath for correctness and
debugging.