Specifications
Purpose: Normative contracts for Manifesto implementations Audience: Implementers, reviewers, auditors Status: Normative (binding)
What Are Specifications?
Specifications are normative documents that define how Manifesto components MUST behave.
These are NOT:
- Tutorials
- Guides
- Examples
- Explanations
These ARE:
- Authoritative contracts
- Requirements (MUST/SHOULD/MAY)
- Invariants (guarantees)
- Test criteria (conformance)
Who should read specs:
- Implementers building Manifesto libraries
- Reviewers validating implementations
- Tool builders (linters, analyzers, compilers)
- Advanced users needing precise semantics
Who should NOT start here:
- Beginners learning Manifesto
- Users building applications
- People evaluating whether to use Manifesto
If you're new, read Core Concepts first.
How to Read Specifications
RFC 2119 Keywords
Specifications use RFC 2119 keywords:
| Keyword | Meaning |
|---|---|
| MUST | Absolute requirement. Violation = non-conformance. |
| MUST NOT | Absolute prohibition. Violation = non-conformance. |
| SHOULD | Strong recommendation. May deviate for valid reasons. |
| SHOULD NOT | Strong discouragement. May deviate for valid reasons. |
| MAY | Optional. Implementers decide. |
Package Specifications
High-Level Packages
App Spec
Status: Normative | Version: 0.4.7
High-level facade for building Manifesto applications.
What it covers:
createApp()API and lifecycle- Action dispatching and service handlers
- Subscription system and state access
- Branch management for parallel states
Core Layer
Core Spec
Status: Draft | Version: 1.0
Defines the pure computation engine and DomainSchema.
What it covers:
- DomainSchema structure (StateSpec, ComputedSpec, ActionSpec)
- Expression language (Expr) and evaluation
- Flow language (FlowNode) and execution
- Snapshot structure and validation
- Trace and Requirements output
Compiler Spec
Status: Normative | Version: 0.4.0
Defines MEL compilation to DomainSchema.
What it covers:
- MEL parsing and semantic analysis
- DomainSchema generation
- Error diagnostics and recovery
- Canonical form guarantees
Runtime Layer
Host Spec
Status: Normative | Version: 1.1.0
Defines Host's responsibilities and guarantees.
What it covers:
- Effect handler contract
- Compute-effect loop requirements
- Patch application semantics
- FIFO serialization guarantees
- Failure handling requirements
World Spec
Status: Normative | Version: 1.0
Defines governance layer semantics.
What it covers:
- Proposal submission requirements
- Authority evaluation contract
- Decision recording semantics
- Lineage DAG requirements
- Actor registry contract
Bridge Spec
Status: Normative | Version: 1.1.0
Defines event bridging and intent projection.
What it covers:
- SourceEvent to IntentBody projection
- Intent issuance and routing
- Snapshot view delivery
- Event subscription patterns
Builder & DSL
Builder Spec
Status: Normative | Version: 1.0
Defines the type-safe domain definition DSL.
What it covers:
defineDomain()API contract- Zod-first state schema
- Zero-string-path guarantees
- Re-entry safety helpers
UI Integration
React Spec
Status: Normative | Version: 1.0
Defines React bindings for Manifesto.
What it covers:
- Provider pattern and context
useValue,useActions,useComputedhooks- Selective re-render optimization
- Bridge integration
AI & Memory
Translator Spec
Status: Normative | Version: 1.1.1
Defines natural language to semantic change translation.
What it covers:
- 6-stage translation pipeline
- Schema-guided interpretation
- Verification and validation
- LLM integration contract
Memory Spec
Status: Normative | Version: 1.2
Defines context retrieval and verification.
What it covers:
- Memory store interface
- Retrieval algorithms
- Verification contract
- Translator integration
Utilities
Effect Utils Spec
Status: Normative | Version: 1.0
Defines effect handler utilities.
What it covers:
- Common effect patterns
- Handler composition
- Error handling helpers
- Testing utilities
Lab Spec
Status: Normative | Version: 1.0
Defines LLM governance and HITL tooling.
What it covers:
- LLM necessity governance
- Trace recording and replay
- Human-in-the-loop support
- Report generation
Reading Order
For Implementers
Goal: Build conformant implementations
- Core Spec — Understand core data model
- Host Spec — Understand execution requirements
- World Spec — Understand governance requirements
Total time: ~1.5 hours
For App Developers
Goal: Understand high-level APIs
- App Spec — High-level facade
- Compiler Spec — MEL compilation
Total time: ~45 minutes
Specification Hierarchy
When specs conflict (rare), prefer this order:
1. Constitution (CLAUDE.md) ← Highest authority
2. Specifications (this section) ← Normative contracts
3. FDR (Design Rationale) ← Explanations
4. Code ← Implementation
5. Guides/README ← DocumentationRelated Sections
- Architecture — Understand how specs fit together
- Rationale — Understand why specs are written this way
- Core Concepts — Understand what specs formalize
Start with Core Spec to understand the foundation.