Self-contained stable reference spec crystallizing the SLP-Workshop firmware: the MEMLCelium-based mode, the two adaptive-learning gestures ported from upstream InterfaceRL (Jolt held weight-morph, OU output walk) with exact constants, the runtime-not-compile-time + inert-by- default design, the ModeBase integration incl. the GCC -Wstringop- overflow workaround, control mappings, schema/codegen, and the browser-parity caveat. Adds the spec to docs/specs/README.md and a ## Specs section to MAP.md per the specs-skill config format. Refs commits4e60d01,57c9ede(merged at527b8fc).
56 lines
2.7 KiB
Markdown
56 lines
2.7 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 |
|
|
| ref | `slp-workshop-firmware.md` | **stable reference** — SLP-Workshop firmware mode + Jolt / OU-explore gestures (built + merged) |
|
|
|
|
## 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`.
|