[Feature]: Blueprint β a waterfall harness for autonomous, agent-driven builds (collapsing blueprint + deterministic oracle + driver)
Problem Statement
Projects that adopt Spec Kit often start from a comprehensive "master" design doc and slice it into per-feature specs. This creates two sources of truth: the master doc and the specs both hold the detail for any already-specced slice, so every spec refinement drags a cumbersome back-sync behind it. The master doc plays two roles β (A) a holding pen for designed-but-unspecced decisions (high value, low churn) and (B) a detailed mirror of slices that already have a spec (pure overhead). Role B is recurring waste; Role A has no home in Spec Kit today.
This matters more now that agents run long, autonomous sessions. To drive a multi-hour build unattended, an agent needs one authoritative artifact that says what to build next, how it fits, and where the truth lives β and a way to stay grounded that doesn't depend on the model remembering its own progress.
Proposed Solution
A blueprint waterfall harness β three layers:
-
Blueprint (state) β a decreasing-detail doc that is simultaneously the backlog of unspecced subsystems, the architecture map, and the spec index. Unspecced sections hold full design (the holding pen); once a feature spec owns a slice, that section distills to an at-a-glance digest + a pointer. Detail flows out into specs, once, forward β never back-synced. Prose-first: it works on organically-grown overview docs, not just generated ones.
-
Deterministic oracle (
scripts/bash/blueprint-state.sh) β readsspecs/(ground truth) + the blueprint and computes the single next waterfall action (specify | clarify | plan | tasks | implement | distill | done). No LLM judgment in the part that must be reliable; the filesystem is the source of truth, so a long run can't drift. -
Autonomous driver (
/speckit.blueprint.drive+ ablueprint-waterfallworkflow) β loops the backlog through specify β clarify β plan β tasks β implement, distilling each slice as it goes, re-running the oracle every step. Bounded bymax_steps/stop_before/slug/dry_run, and it parks any slice it can't finish autonomously and keeps going.
Working, tested branch (bundled extension, same tier as git/bug):
https://github.com/ogil109/spec-kit/tree/feat/2989-blueprint-progressive-distillation/extensions/blueprint
Commands (provider-agnostic, one source rendering natively per integration): init, next, status, distill, drive, plus the blueprint-waterfall workflow with persisted, resumable run-state.
Open question for maintainers
Fit for bundled core (where I've built it β the cross-cutting coherence + autonomy layer that per-feature specs and the constitution don't provide), or would you prefer a community-catalog extension? Works identically either way.
Honest status
- [x] Deterministic Bash oracle with unit and behavioral tests (full suite green)
- [x] Provider-agnostic commands; manifest validates against
ExtensionManifest; bundled incatalog.json+ wheel - [x] Prose-first blueprint convention; oracle works on hand-written overview docs
- [ ] PowerShell oracle port is written for parity but needs execution-verification on Windows/pwsh before merge
- [ ] Maintainer decision: bundle into core vs. community catalog
- [ ] Docs (
README/spec-driven.md) introducing the blueprint concept
Additional Context
- Pairs naturally with a "Spec Authority" constitution principle: the feature spec is the source of truth for its slice; the blueprint is a map that defers to specs.
- AI disclosure: this proposal and the linked implementation were developed with AI assistance (Claude Code), per the Contributing guidelines.
Yes, please deliver it as a community extension
Thanks β delivered as a community extension.
Repo: https://github.com/ogil109/spec-kit-blueprint
Release: v0.1.3
specify extension add blueprint \
--from https://github.com/ogil109/spec-kit-blueprint/releases/download/v0.1.3/blueprint.zip
The scope narrowed a lot from the original proposal in this issue. What I described here
was a waterfall driver; what shipped is the piece underneath it that turned out to be
the actually-useful part β a living architecture map plus a deterministic coherence
gate. The autonomous-harness idea survives as a documented loop over that gate
(docs/autonomous-harness.md), not as a command, because the gate is the part that earns
its keep on its own.
What it does. The map is a decreasing-detail architecture document: a section holds full design only while design work is pending, then collapses to a digest + pointer once an owner (a feature spec, or existing code) holds the truth. Detail flows outward into specs once, forward β never back-synced.
blueprint-state.sh check is a deterministic gate (no LLM) that keeps that map honest,
tiered so it can live in CI without crying wolf:
- HARD β blocks the merge: a built spec the map doesn't index; a section pointing at deleted code.
- SOFT β advisory, exits 0: code changed under a mapped area, new unmapped code, an
unprocessed section, a missing baseline.
--strictpromotes these to blocking.
check (and next, which drives the harness) is machine-first on the git/--porcelain
convention β JSON when piped, human on a TTY β and every issue carries a self-describing remedy.run + remedy.kind
(deterministic | authored), so a CI agent can apply the safe fixes and open a PR for
the authored ones.
Honest state. It's 0.1.3 and labelled experimental on purpose. The Bash oracle and
the gate are deterministic and covered by 33 tests against real git repos, and it's been
dogfooded on a brownfield project β but the core bet, that making stale advisory rather
than blocking is the right friction balance, is validated on exactly one codebase. That's
the feedback I'm after.
The limits are written up in the README: the gate does detection, not specβcode
conformance; map content is agent-authored and reviewed; and the PowerShell port is
parity-verified on pwsh/Linux but not on Windows. Two narrow edges are documented too
(a line-wrapped [NEEDS CLARIFICATION] isn't detected; the unmapped scan skips a
top-level directory with a space in its name).
Happy for this to be closed. I'll file the catalog submission separately.
One small thing found while verifying the release installs, in case it's useful.
Checked against specify 0.13.3.dev0 built from main (d7699c3):
specify extension add <id> --from <zip-url> leaves shipped .sh scripts
non-executable β zipfile.extractall drops the mode bit β while
specify extension add <path> --dev preserves it. ensure_executable_scripts()
already exists and its docstring already covers .specify/extensions, but it's only
called from init, integration install, and migrate β not from extension_add. So it
self-heals for anyone who later runs specify init, and persists for anyone adding an
extension to an existing project. I've documented bash <path> on my side, which works
either way. Happy to open a separate issue with a patch if that's wanted.
Cool! Please file any other issues you found as issues so either we or the community can pick those up :)
Closing as the extension submission is there!