approvedin-progressApache-2.0
The versioned template contract (template.toml)
009-template-contract
The explicit, versioned interface between this template and the Statecraft factory. The factory learns how to stamp, verify, and package an app from this chassis by reading template.toml and nothing else. This replaces the implicit coupling that plagued the factory-encore / template-encore pair, where the shared assumption (the encore CLI, plus folklore about repo layout) lived in two codebases at once and drift surfaced only at stamp time. v0 shipped the contract file with verify and package verbs live; scaffold landed with the repoInit absorption (spec 014, contract 0.4.0) and deploy is permanently fleet-owned.
- Establishes
- template.toml
- Sections
- 009: The versioned template contract
- 1. Purpose
- 2. Territory
- 3. Behavior
- 3.1 Contract shape (v0.1)
- 3.2 Verb semantics
- 3.3 Provenance hooks
- 4. Out of scope
- Source
- specs/009-template-contract/spec.md @ dc4c9237e12aas of 2026-07-21 ยท shard 9e4ab5450dd6