Note 07 · Engineering practices
Living Specifications: Keeping Intent and Code in Sync
How teams adopt SpecPlane on existing repositories, surface drift via reconcile and list_gaps, and close the loop with human-gated promotion.
Software entropy happens between releases, when code evolves faster than documentation. Most teams do not abandon specs out of malice; they abandon them because onboarding an existing codebase feels insurmountable and keeping static documents current turns engineers into YAML clerks.
SpecPlane 0.1.0a6 (Schema v9.2.1) keeps specifications alive without AST-parsing your codebase or blocking daily work on giant upfront rewrites. It relies on four deterministic mechanisms shipped today.
1. Honest brownfield onboarding (specplane-infer + accept)
Greenfield specs are easy; existing repositories are messy. SpecPlane deliberately ships no built-in static code scanner (infer is neither a CLI subcommand nor an MCP tool). Instead, the specplane-infer agent skill directs your coding agent to inspect one named root—using the file reading tools it already has—and draft at most seven Phase 1 capability files tagged inferred, each citing repo-relative source files in refs.
Until a human reviews them, retrieve marks those nodes inferred (not live) and list_gaps keeps them in an advisory queue. Nothing becomes live specification law until an engineer explicitly chooses which IDs to trust:
specplane accept --ids capability.billing_checkout,capability.auth_session
accept strips the inferred tag only from the named IDs and appends a changelog row. Unreviewed guesses never silently promote themselves.
2. Optional code linking (realization.paths + reconcile)
Specs do not need to mirror every helper function, yet teams often want a deterministic link between component promises and code directories. Components can optionally declare repo-relative files or folder prefixes under implementation.realization.paths.
specplane reconcile compares those declared paths against the workspace and Git-changed files without ever reading source code bodies. It surfaces missing declared paths, reports mapped component coverage (such as 0/9 or 12/12), and flags unmapped changed application files. Passing --strict turns unmapped changes or an empty 0/N component mapping into a failing CI exit code.
3. Continuous drift and gap visibility (list_gaps + validate)
Between changes, specplane validate enforces structural integrity, bidirectional links (implements ↔ realized_by, uses ↔ used_by, dependencies.internal ↔ depended_on_by), and live changelog discipline.
Alongside it, specplane list_gaps gives teams and agents a single advisory queue across the repository: Phase 1 capabilities not yet wired to components, open changes missing success.yaml sensors, unpromoted inferred specs, pending human acceptances, and stale_evidence where evidence.json no longer matches the current commit SHA or spec revision.
4. Human-gated promotion (specplane promote)
Change packets live in specs/changes/<slug>/ while work is in flight, leaving live specs untouched. Closing the loop means merging verified intent back into the live graph via specplane promote.
promote is deliberately CLI-only—excluded from the MCP tool surface so an autonomous coding agent cannot silently rewrite live product promises. Running specplane promote <slug> --dry-run previews exact live YAML diffs, detects conflicts with other open changes, and warns on stale evidence without writing a byte. Once approved, specplane promote <slug> applies the delta, bumps meta.version, records a changelog entry, validates the resulting graph, and archives the packet under specs/changes/_archive/<slug>/.
Implemented today vs. planned: Promotion in
0.1.0a6is an explicit pre-merge step run with human approval, while automated post-merge reconciliation workflows and spec-coach prompts remain roadmap items.
See SpecPlane on a real workspace: inspect live capabilities, blast graphs, and staged changes without installing anything.