memlnaut-nisps/docs/specs/README.md
w1n5t0n 2b939bb812 chore(beads): switch to embedded Dolt mode, ignore runtime files; add specs README; bump memllib
- .beads/metadata.json: dolt_mode server -> embedded
- .beads/.gitignore: ignore interactions.jsonl, push-state, locks, .env, credential key, corrupt backups
- untrack now-ignored .beads/interactions.jsonl (runtime)
- docs/specs/README.md: tiered specs corpus overview
- src/memllib: bump submodule pointer
2026-06-14 10:06:47 -10:00

55 lines
2.6 KiB
Markdown

# Tiered Specs — MEMLNaut-NISPS
This corpus is the **prescriptive plan** for the project: what we are building and why, organised from
high-level intent down to implementation specifics. It is distinct from the two orienting docs at the repo
root:
- **`MAP.md`** — "what *is*" (neutral inventory of the code as it stands). Voice: stenographer.
- **`ALIGNMENT.md`** — "how good is what is, vs. what we need" (dated, opinionated gap diagnosis). Voice: critic.
- **`docs/specs/` (this corpus)** — "what we are *going to build*" (prescriptive, tiered). Voice: architect.
## The five tiers
```
T0 Mission [SHARED across all products]
T1 Capabilities & Principles [SHARED]
T2 Architecture & Contracts
├ contracts spine (schema/codegen, ML-core API, ControlEvent/outputs, crystallization) [SHARED]
├ core engine architecture
├ firmware architecture
├ playground architecture
└ backends architecture
T3 Component Design → core | playground | firmware | backends (branches per product)
T4 Implementation specifics → (same branches) → spawn bd issues/epics
```
Files:
| Tier | File(s) | Status |
|------|---------|--------|
| T0 | `T0-mission.md` | **draft — awaiting audit** |
| T1 | `T1-capabilities-and-principles.md` | **draft — awaiting audit** |
| T2 | `T2-architecture-and-contracts.md` (+ per-product sections) | not started |
| T3 | `T3-component-design/{core,playground,firmware,backends}.md` | not started |
| T4 | `T4-implementation/{core,playground,firmware,backends}.md` → beads | not started |
| — | `00-decisions-log.md` | the interview outcomes that seed these tiers |
## Audit protocol (why tiers exist)
The point of tiering: **each tier is audited and agreed before the tier below it is authored.** A change is
only made *downstream* of a tier when that tier itself got something wrong. So:
1. T0 + T1 are reviewed and approved first (they constrain everything).
2. Only then is T2 authored; reviewed; approved.
3. Only then T3; then T4 → beads → execution.
If review of a lower tier reveals that an upper tier is wrong, **fix the upper tier first**, then propagate.
Every tier file ends with a "Traces up to" line citing the tier(s) above it that justify its content.
## Keeping it honest
Per the project's doc-sync rule: when code changes invalidate a spec, update the spec in the same commit.
When a T4 item is implemented and verified, it migrates from "spec" to MAP.md ("what is"); the spec entry
is pruned. Stale prescription is worse than none.
Recon that seeded this corpus: `.local/recon/dossier/00-GROUND-TRUTH.md` + `00-DECISIONS.md`.