Lean SDD

Lean Spec-Driven Development (LSSD): SDD with one AGENTS.md.

View on GitHub

Changelog

Spec versions are declared at the top of AGENTS.md (Spec version: N). A project records the version it was last migrated to in .ai/00_CONSTRAINTS.md. Agents flag a mismatch on OPEN and propose the migration; they never apply it silently.

Spec version 2

What changed

Migrating a version 1 project

  1. In .ai/00_CONSTRAINTS.md, add a ## Settings block with Setup: done YYYY-MM-DD and Spec version: 2 (see the template in AGENTS.md). Optionally add Map threshold: and Cap overrides:.
  2. Stamp every live file (status, constraints, roadmap, philosophy, decision index): _Last updated: YYYY-MM-DD @ <short-hash>_, using the current git rev-parse --short HEAD.
  3. In decisions/index.md, add a Scope column (after Status). Use * where unsure. Add a Scope: field to each ADR.
  4. For each Active ADR, add runnable checks under ## Verification. If you cannot, set the ADR back to Proposed until you can.
  5. Optional: copy scripts/leansdd-check.py from the upstream repo to .ai/scripts/leansdd-check.py and run it. Fix ERRORs; WARNs are advisory.

Spec version 1

Original release: AGENTS.md, .ai/ knowledge files with tiers and caps, ADRs as specs, and the OPEN → DO → REPORT → CLOSE contract.