Fixed section-templates for Epics and design docs so plans are complete.

Epic & design-doc templates

Intent — Fixed section-templates for the two core planning artifacts, Epics (multi-dispatch efforts) and design docs, so every effort is framed with the same required sections (scope, phase decomposition, second-order dynamics, definition-of-done, observability), and the planning artifact drives the work instead of being written after the fact.

SummaryFixed section-templates for Epics and design docs so plans are complete.
TargetAgent · Governance-doc mechanisms
Formagent-output
EnforcementSoft·Hard — the template is soft guidance on the doc's shape, held by a hard counterpart: a stub scaffold materializes the sections and lints/gates assert the required ones (registration, DoD criteria, an observability block for topic-emitting designs).

Motivation — the failure it kills

A planning artifact written free-form omits exactly the sections that matter. The design doc that skips second-order dynamics ships a substrate that deadlocks at tick T+100; the Epic with no explicit Definition-of-Done is "done" by assertion; the design that introduces an event-bus topic with no observability section leaves the substrate unmonitorable. Without a template, each author frames differently and the sections that prevent production incidents are the first to be dropped under time pressure. The failure is incomplete plans whose gaps resurface as incidents.

Why it's not just "write a good design doc"

"Write a good doc" leaves which sections matter to the author's memory, and the ones that matter (scope conditions, phase decomposition, second-order dynamics, a DoD with functional invariants, an observability/event-bus block) are precisely the ones a hurried author drops. A template makes the required sections structural: the doc is not complete without them, a scaffold pre-places them, and a lint can check for them. "Be thorough" is a norm nothing enforces; it fails the moment the author is rushed. A section-contract holds regardless. It is the planning-artifact analogue of a typed schema, the shape declared rather than remembered.

Mechanism

An Epic template declares the mandatory sections (an N-section shape plus a multi-criterion §Definition-of-Done covering functional invariants, docs, lints, tests, and a final trust-nothing review). Design docs carry required blocks. For instance, any design that introduces an event-bus topic must include an Observability/event-bus section, and any substrate with repetition or concurrency must include a second-order-dynamics section. New Epics are materialized from a stub tool that atomically places the sections + registers the effort in the ledger; registration and section-presence are then asserted by lints/gates so the template is enforced, not merely documented.

Adopt these — portable starters, distilled from the real system: the Epic template starter (the section shape + the multi-criterion Definition-of-Done) and the design-doc template starter (the invariants-driven pattern: a section per real part, invariants with stable IDs, a second-order-dynamics block, an observability block, and an invariants→tests enforcement map). Drop them into your repo and adapt.

Prerequisites

Consequences & costs

Known uses

Related mechanisms