SynaWeave-ce

๐Ÿ“œ Templates

๐Ÿงฉ Purpose

This document defines the repository template system used to keep recurring documentation DRY, technically precise, and reviewable.

This file is the source of truth for:

This file does not redefine the technical rules owned by other docs. Templates must point back to those owner docs instead of copying policy prose.

Owner docs remain:


๐Ÿงญ Template thesis

Templates exist to standardize recurring document mechanics without creating a second governance surface.

Each template must do three jobs only:

  1. keep required sections visible
  2. keep build-agent handoff targets explicit
  3. keep readers pointed at the owning doc for durable rules

Templates must not:


๐Ÿ“ฆ Template system contract

The template system lives under:

docs/templates/

Required family folders:

docs/templates/
โ”œโ”€ planning/
โ”œโ”€ adrs/
โ”œโ”€ specs/
โ””โ”€ tests/

Required template files in Sprint 1:

docs/templates/code-tldr.md
docs/templates/planning/sprint-overview.md
docs/templates/planning/deliverable.md
docs/templates/adrs/sprint-adr.md
docs/templates/specs/contract-spec.md
docs/templates/tests/verification-plan.md

No nested README.md files should exist under docs/ or elsewhere in the repo. Directory-level explanation for templates stays here in the root docs spine so the repository keeps a single top-level README and a DRY canonical documentation surface.

These files are protected because they shape recurring repo artifacts and build-agent handoff expectations.


๐Ÿ“ Template design rules


๐Ÿ—‚๏ธ Active template families

๐Ÿ›ฃ๏ธ Planning templates

Purpose:

Required files:

Planning templates must preserve:

๐Ÿ“œ ADR templates

Purpose:

Required files:

ADR templates must preserve:

๐Ÿงฑ Code-header templates

Purpose:

Required files:

Code-header templates must preserve:

๐Ÿงพ Spec templates

Purpose:

Required files:

Spec templates must preserve:

โœ… Verification templates

Purpose:

Required files:

Verification templates must preserve:


๐ŸŽฏ When template reuse is mandatory

Reuse a template when creating or materially reshaping:

Do not create a new shape first and promise to template it later. If the artifact is clearly recurring, start from the template.

One-off scratch notes, temporary debugging notes, and throwaway local analysis are not template-governed artifacts.


๐Ÿ”„ Template maintenance rules

Update the owning template when:

If a template change alters durable planning, ADR, or verification expectations, update the owner doc in the same change.


๐Ÿ“š Relationship to verification

tools/verify/docs.py enforces the existence of the required template families and required template files.

That enforcement is intentionally structural, not semantic. Human review and owner docs still decide whether a specific filled-in artifact is technically sound.