diff --git a/docs/README.md b/docs/README.md index 6b952f9b6d..f595536caa 100644 --- a/docs/README.md +++ b/docs/README.md @@ -54,8 +54,8 @@ the site homepage. Process command references and authentication remain under - `how-to/contract-driven-development.md` - Defining and evolving component contracts - `how-to/complex-features.md` - Implementing complex features in bounded runs - `how-to/spec-of-specs.md` - Breaking large features into smaller specifications -- `how-to/spec-persistence.md` - Choosing a specification persistence model -- `how-to/evolving-specs.md` - Maintaining specifications after delivery +- `how-to/persisting-specs.md` - Persisting specifications after delivery +- `how-to/evolving-specs.md` - Evolving specifications for subsequent changes - `how-to/customization.md` - Adapting Spec Kit to your process - `overview/catalogs.md` - Catalog discovery, trust, private sources, and precedence - `extensions/overview.md` - Extension user guide diff --git a/docs/extensions/overview.md b/docs/extensions/overview.md index 0d48f7635e..d6d1b5b238 100644 --- a/docs/extensions/overview.md +++ b/docs/extensions/overview.md @@ -755,4 +755,4 @@ artifact resolution priority. - [Developing extensions](developing.md) - [Extension API reference](api.md) - [Publishing extensions](publishing.md) -- [Spec persistence models](../how-to/spec-persistence.md) +- [Persisting specifications](../how-to/persisting-specs.md) diff --git a/docs/how-to/evolving-specs.md b/docs/how-to/evolving-specs.md index 1f13b97e6c..93f9e40784 100644 --- a/docs/how-to/evolving-specs.md +++ b/docs/how-to/evolving-specs.md @@ -1,136 +1,77 @@ -# How to maintain specifications after delivery +# How to evolve specifications in an existing project -If the repository has not been initialized with Spec Kit yet, start with -[Adopting Spec Kit in an Existing Project](existing-projects.md). This page -covers how to maintain feature artifacts after delivery and deliver subsequent -changes. - -Existing projects need two separate maintenance loops: +Use this guide when requirements change or implementation discoveries call for +a revision to an existing feature. It covers making the next intended contract +explicit and delivering against it, not choosing which artifacts to retain +afterward. -- **Spec Kit project-file updates** refresh managed commands, scripts, - templates, and shared memory files. -- **Feature artifact evolution** maintains repository-specific `specs/` - artifacts according to the team's post-delivery persistence convention. +If the repository has not been initialized with Spec Kit yet, start with +[Adopting Spec Kit in an Existing Project](existing-projects.md). -Use the [upgrade workflow](../upgrade.md) when you need newer Spec Kit project -files. Use one of the artifact persistence models below to decide how completed -feature artifacts are maintained when requirements or implementation insights -change an existing project. None is required or the default. +## Assess the Change -For the conceptual model definitions, see -[Spec Persistence Models](spec-persistence.md). +Identify the affected behavior and review the available feature artifacts, +implementation, tests, and maintained design or product documentation. +Distinguish a defect against agreed intent from a proposed change to that intent. +The implementation is evidence for the discussion, not a replacement source of +requirements. -## Shared Feature Delivery Loop +Decide whether the discovery changes intended behavior, implementation strategy, +task breakdown, or only code. A discovery may originate in a spec, plan, task +list, or the implementation, including during delivery. Its origin does not +determine which artifact is authoritative. -All three persistence models use the same delivery/completeness process: -specify -> plan -> tasks -> implement -> converge. Repeat implementation and -convergence until the agreed feature is complete. +## Make the Revised Intent Explicit -For a new feature or a later change requiring implementation: +Start from a clean working tree or a dedicated branch so every artifact change +is reviewable. Follow the team's chosen persistence convention when deciding +whether to create a new feature directory or revise retained artifacts. +If previous feature artifacts were retired, use the maintained requirements and +decision records to establish context rather than assuming the constitution +alone specifies the feature. -1. Make the intended contract explicit in `spec.md`. Use `/speckit.specify` to - create a new feature directory under `specs/`, or revise an existing spec - according to your team's persistence convention. +1. Write the intended contract in `spec.md`. Use `/speckit.specify` to create a + new feature directory under `specs/`, or revise an existing spec. 2. Run `/speckit.plan` or revise `plan.md` to define the implementation approach. 3. Run `/speckit.tasks` or revise `tasks.md` to derive the work breakdown. - Run `/speckit.analyze` before implementation to catch cross-artifact gaps. -4. Run `/speckit.implement` and review the resulting code and artifact diffs. -5. Run `/speckit.converge` to assess implementation against the spec, plan, and - tasks, governed by the constitution. If it appends tasks for remaining gaps, - repeat `/speckit.implement` and `/speckit.converge` until the agreed feature - is complete. - -Converge is append-only: its only possible write is adding tasks to `tasks.md`. -It does not choose a persistence strategy or rewrite the artifacts to accept -code as a replacement for documented intent. +4. Run `/speckit.analyze` to report cross-artifact inconsistencies before + implementation. Core has no dedicated command that automatically reconciles differences among -`spec.md`, `plan.md`, and `tasks.md`. `/speckit.analyze` reports inconsistencies -without changing the artifacts. A team can reconcile them directly, or an -extension can provide commands or hooks that do so during or after delivery -according to that extension's documented behavior. Those actions do not change -the responsibilities of the core commands. - -Discoveries may arise during delivery under any model. If they lead to an -agreed change of intent, make the revised contract explicit in the artifacts -and deliver against it. Reconciliation may occur during delivery, but the -maintenance choices below describe what the team persists after delivery; they -do not replace this loop. - -## Flow-Forward Spec - -Use flow-forward when each completed feature directory should remain a -historical record. - -After delivery, retain the completed artifacts without changing them. For -another feature or a follow-up change requiring implementation, create a new -feature directory and use the shared delivery loop above. - -The previous feature directory remains intact for audit, comparison, or -explaining how the project reached its current state. Use clear feature names or -cross-links when a new directory supersedes or extends earlier work. - -## Living Spec - -Use living spec when `spec.md` is the contract and `plan.md` and `tasks.md` are -derived from it. - -After delivery, maintain `spec.md` as the contract. When intended behavior -changes, revise the existing `spec.md` first. Then reconcile downstream -artifacts so they match the updated spec: - -1. Start from a clean working tree or a dedicated branch so every artifact - change is reviewable. -2. Update `spec.md` with the intended contract. -3. Reconcile `plan.md` and `tasks.md` directly or through an extension according - to the team's documented convention. -4. Run `/speckit.analyze` to report any remaining gaps between the spec, plan, - and tasks. - -These steps maintain the artifact set; they do not deliver changed behavior. -If the revised contract requires implementation, use the shared delivery loop -above against those explicit intended artifacts. - -Preserve important implementation rationale before replacing derived artifacts. -If a plan or task list contains decisions that still matter, carry them forward -explicitly. - -## Flow-Back Spec - -Use flow-back when accepted discoveries inform maintenance across the artifact -set after delivery. - -A discovery may have originated in `spec.md`, `plan.md`, `tasks.md`, or the -implementation, including during delivery. For post-delivery maintenance, -the team decides which discoveries to accept and brings the artifacts into -alignment with that agreed direction: - -1. Capture the discovery in the artifact closest to the work. -2. Decide whether it changes intended behavior, implementation strategy, task - breakdown, or only code. -3. Update any other artifacts that now disagree with the accepted direction. -4. Run `/speckit.analyze` to check for gaps across `spec.md`, `plan.md`, and - `tasks.md`. - -The implementation provides evidence for the team's decision; accepting code -does not automatically make it the intended contract. Reconcile the artifacts -directly or through an extension. Analyze and converge do not provide automatic -all-artifact reconciliation, and no core amendment command is required. If the -agreed direction requires implementation, use the shared delivery loop above -against explicit intended artifacts. - -Flow-back is flexible, but it requires discipline. Do not leave a lower-level -change in `tasks.md` or code if `spec.md` still says something different and the -spec is meant to remain trustworthy. - -## Before Updating Spec Kit Project Files - -Before refreshing Spec Kit project files with the terminal command -`specify init --here --force --integration `, protect any -project-specific material that lives outside `specs/`, especially -`.specify/memory/constitution.md` and customized files under -`.specify/templates/` or `.specify/scripts/`. Use `` for the AI -coding agent integration used by the target project. - -Your `specs/` directory is not part of the template package, but shared project -files can be overwritten by a forced refresh. +`spec.md`, `plan.md`, and `tasks.md`. Analyze reports inconsistencies without +editing artifacts. Reconcile them directly, or use an extension according to +its documented behavior. Preserve important implementation rationale before +replacing derived artifacts. + +If the team accepts a discovery that changes intent, reflect that agreement in +the affected artifacts. Do not leave a lower-level change in tasks or code +contradicting a spec that is meant to remain trustworthy. + +## Deliver and Assess the Change + +All persistence models use the same delivery/completeness process: +specify -> plan -> tasks -> implement -> converge. + +1. Run `/speckit.implement` against the explicit intended artifacts. +2. Review the resulting implementation and artifact diffs. +3. Run `/speckit.converge` to assess implementation against the spec, plan, and + tasks, governed by the constitution. +4. If converge appends tasks for remaining gaps, repeat implementation and + convergence until the agreed feature is complete. + +Converge is append-only: its only possible write is adding remaining work to +`tasks.md`. It does not rewrite artifacts to accept code as a replacement for +documented intent. Neither analyze nor converge selects a persistence strategy, +and extension-provided reconciliation does not change these core command +responsibilities. + +Revising artifacts does not by itself deliver changed behavior. When a revision +requires implementation, complete this delivery loop. After delivery, apply the +team's retention and maintenance policy separately. + +## See also + +- [Persisting specifications](persisting-specs.md) - Choose what survives + delivery and how retained artifacts are maintained. +- [Upgrade Spec Kit](../upgrade.md) - Refresh managed project files rather than + changing feature requirements. diff --git a/docs/how-to/existing-projects.md b/docs/how-to/existing-projects.md index 2c86a7a10e..d1d656d156 100644 --- a/docs/how-to/existing-projects.md +++ b/docs/how-to/existing-projects.md @@ -92,17 +92,11 @@ For command details and optional quality gates, see the ## 5. Decide How Specs Will Age -After the first change, agree on how the team will maintain completed feature -artifacts: - -- Keep each feature directory as an immutable historical record. -- Maintain `spec.md` as a living contract and regenerate downstream artifacts. -- Allow discoveries to flow back from code, tasks, or plans, then reconcile the - full artifact set. - -The [Spec Persistence Models](spec-persistence.md) page compares -these choices. The [Evolving Specs guide](evolving-specs.md) provides the -maintenance loop for each model. +After the first change, agree on what feature artifacts the team will retain +and how retained artifacts will be maintained. The +[Persisting Specifications](persisting-specs.md) page compares those choices, including +retiring completed feature artifacts under the constitution-only model. Use the +[Evolving Specs guide](evolving-specs.md) when delivering a subsequent change. ## Existing-Project Examples diff --git a/docs/how-to/index.md b/docs/how-to/index.md index 807f37df0e..6303701b39 100644 --- a/docs/how-to/index.md +++ b/docs/how-to/index.md @@ -12,8 +12,8 @@ and specification maintenance, plus authentication and developing Spec Kit itsel | Agree on interfaces between components | [Define and evolve contracts](contract-driven-development.md) | | Keep implementation within manageable context limits | [Implement complex features](complex-features.md) | | Decompose work into independently specified slices | [Break down large features](spec-of-specs.md) | -| Decide how completed specifications should live | [Choose a persistence model](spec-persistence.md) | -| Keep feature artifacts aligned after delivery | [Maintain specifications after delivery](evolving-specs.md) | +| Decide how completed specifications should live | [Persist specifications](persisting-specs.md) | +| Deliver a change to an existing feature | [Evolve specifications](evolving-specs.md) | | Adapt practices to your team's needs | [Adapt Spec Kit to your process](customization.md) | | Access private catalogs, downloads, and release checks | [Configure authentication](../reference/authentication.md) | | Contribute changes to Spec Kit itself | [Develop Spec Kit locally](local-development.md) | diff --git a/docs/how-to/persisting-specs.md b/docs/how-to/persisting-specs.md new file mode 100644 index 0000000000..95bb364586 --- /dev/null +++ b/docs/how-to/persisting-specs.md @@ -0,0 +1,183 @@ +# How to persist specifications after delivery + +Spec Kit intentionally leaves teams in control of what happens to `spec.md`, +`plan.md`, and `tasks.md` after a feature is delivered. The toolkit gives you a +repeatable workflow, but it does not force one artifact maintenance strategy. + +This page describes four models so teams can make that choice explicit. +None is the default, and none is required by Spec Kit. + +All four retain the constitution as the project's overarching specification: +the principles, constraints, and quality expectations that govern every feature. +Feature specifications describe the behavior being delivered. The models differ +in what feature artifacts persist alongside that shared foundation, not in +whether the constitution continues to govern the project. + +## Shared Delivery, Separate Persistence + +Persistence is the team's choice of what to retain and maintain **after +delivery**, not an alternative way to deliver or determine completeness. All +four models use the same delivery process. Discoveries and artifact +reconciliation can occur during delivery under any model; their timing does not +define the persistence strategy. + +## Two Separate Questions + +Spec-driven development has a temporal question: how long should the +specification matter? One +[overview of SDD tooling](https://martinfowler.com/articles/exploring-gen-ai/sdd-3-tools.html) +frames that lifecycle in three levels: + +- **Spec-first**: write a spec before coding, then allow it to be discarded. +- **Spec-anchored**: keep the spec after implementation and use it for future + changes. +- **Spec-as-source**: treat the spec as the only human-edited source and + regenerate implementation artifacts from it. + +Spec Kit also exposes a second question: which feature artifacts should persist +after delivery, and how should retained artifacts evolve when requirements +change? The models below describe that retention and maintenance strategy. + +## Flow-Back Spec + +Use flow-back when `spec.md`, `plan.md`, `tasks.md`, and the implementation are +all allowed to inform each other. + +After delivery, accepted discoveries can inform maintenance edits to any +artifact. The team decides what those discoveries mean for intended behavior, +technical approach, or task breakdown. The team can reconcile `spec.md`, +`plan.md`, and `tasks.md` itself or use an extension whose documented behavior +does so. The implementation is evidence for that discussion, not a replacement +source of intent. + +Flow-back works well when: + +- the team is small enough to notice and reconcile drift quickly +- implementation discoveries are expected to reshape the original plan +- speed matters more than preserving each intermediate decision as immutable + history + +The main risk is silent divergence. If the team changes lower-level artifacts +without reflecting the decision back into `spec.md`, future contributors may +not know which artifact to trust. + +## Flow-Forward Spec + +Use flow-forward when each feature directory should remain a historical record. + +In this model, completed artifacts are treated as immutable. When requirements +change, the team creates a new feature directory instead of mutating the +existing `spec.md`, `plan.md`, or `tasks.md`. The older directory remains useful +for audit, comparison, or explaining how the project reached its current state. + +Flow-forward works well when: + +- auditability and traceability matter +- features are well-scoped and rarely revisited in place +- the team wants a clear sequence of requirement changes over time + +The main tradeoff is duplication. Related decisions can be spread across +multiple feature directories, so teams need naming, linking, or review habits +that make the lineage easy to follow. Use clear feature names or cross-links +when a new directory supersedes or extends earlier work. + +## Living Spec + +Use living spec when `spec.md` is the contract and the other artifacts are +derived from it. + +After delivery, teams maintain `spec.md` as the contract, updating it first when +intended behavior changes, then regenerating or revising `plan.md` and +`tasks.md` from that source. The plan and task list are still valuable, but they +are treated as disposable derivations rather than permanent sources of truth. + +Living spec works well when: + +- the product contract is stable enough to own the workflow +- the team is comfortable regenerating derived artifacts after spec changes +- consistency between requirements and implementation matters more than keeping + every intermediate plan intact + +The main risk is losing useful implementation rationale if derived artifacts are +discarded without preserving important decisions elsewhere. + +## Constitution-Only + +Use constitution-only when the constitution should be the only long-lived +document from the Spec Kit delivery artifact set in version control. + +Feature artifacts still support specification, planning, implementation, and +review through the shared delivery process. After delivery, the team retires +them from the repository's maintained content. They may be archived externally, +such as with a pull request or in time-limited artifact storage, or discarded +under the team's retention policy. This is a spec-first lifecycle choice, not +a way to skip feature specifications during delivery. + +The constitution remains the overarching project specification, but it does not +replace feature requirements, acceptance criteria, or implementation rationale. +Preserve any enduring knowledge in an agreed home, such as maintained product +documentation, design records, or an issue tracker, before retiring artifacts. +Constitution-only does not mean that the constitution is the project's only +lasting documentation. + +Constitution-only works well when: + +- the team wants feature artifacts for delivery without maintaining them afterward +- enduring requirements and decisions already have another maintained home +- keeping generated feature artifacts out of repository history reduces noise + +Spec Kit's own repository illustrates this choice: it tracks +`.specify/memory/constitution.md`, while `specs/` is gitignored and feature +artifacts are not tracked. Enduring knowledge also lives in design documents, +documentation, tests, and contributor guidance. Excluding feature artifacts +from version control does not establish whether they are deleted or archived. + +The main risk is losing intent and rationale that cannot be reliably recovered +by regenerating artifacts. External archival and deletion are team-owned +policies, not automatic Spec Kit behavior. + +### Retiring Feature Artifacts + +After delivery and review are complete: + +1. Preserve enduring requirements, acceptance criteria, and decisions in their + agreed home. Amend the constitution only when governing principles or + constraints change; do not turn it into a collection of feature specifications. +2. Archive feature artifacts externally or discard them according to the team's + retention policy. If reviewers still need them, provide an agreed review + location before removing local copies. +3. Exclude future delivery artifacts from version control, or remove completed + tracked artifacts through a reviewed change. Adding `specs/` to `.gitignore` + does not untrack files already committed or erase repository history. + +## Choosing a Model + +The model is a team convention, not a CLI setting. A project can even use +different models in different areas, as long as contributors know which one +applies. + +| Model | Post-delivery maintenance rule | Best fit | Watch out for | +|---|---|---|---| +| Flow-back spec | Reflect accepted discoveries in any artifact, then reconcile | Fast iteration and close collaboration | Silent drift between artifacts | +| Flow-forward spec | Create a new feature directory for new requirements | Audit trails and historical clarity | Duplicate or fragmented context | +| Living spec | Edit `spec.md`; regenerate derived artifacts | Spec as contract | Lost rationale in regenerated files | +| Constitution-only | Retain the constitution; retire completed feature artifacts from the repository | Delivery artifacts with enduring knowledge maintained elsewhere | Lost requirements or rationale without a lasting home | + +If your team has not chosen a model yet, start by answering three questions: + +1. Should completed feature artifacts remain in the repository? If not, where + will enduring requirements and decisions live, and will artifacts be archived + or discarded? +2. If retained, should completed feature directories be historical records or + editable work areas? +3. Is a retained `spec.md` the single source of truth, or are `plan.md` and + `tasks.md` allowed to become co-equal sources? + +Once those answers are clear, document the convention in your project +constitution or team onboarding notes so future contributors know how to handle +changes. + +## See also + +- [Evolving specifications](evolving-specs.md) - Make intent explicit and deliver + subsequent changes under the chosen persistence convention. diff --git a/docs/how-to/sdd.md b/docs/how-to/sdd.md index b45495ec30..277b7b2c6d 100644 --- a/docs/how-to/sdd.md +++ b/docs/how-to/sdd.md @@ -13,7 +13,7 @@ Spec-Driven Development is a structured process that emphasizes: Spec Kit does not prescribe how teams preserve or mutate `spec.md`, `plan.md`, and `tasks.md` after requirements change. See -[Spec Persistence Models](spec-persistence.md) for the concepts and +[Persisting Specifications](persisting-specs.md) for the concepts and [Evolving Specs in Existing Projects](evolving-specs.md) for the existing-project evolution workflows. diff --git a/docs/how-to/spec-persistence.md b/docs/how-to/spec-persistence.md deleted file mode 100644 index 74c1549cee..0000000000 --- a/docs/how-to/spec-persistence.md +++ /dev/null @@ -1,151 +0,0 @@ -# How to choose a specification persistence model - -Spec Kit intentionally leaves teams in control of what happens to `spec.md`, -`plan.md`, and `tasks.md` after a feature is delivered. The toolkit gives you a -repeatable workflow, but it does not force one artifact maintenance strategy. - -This page names three common models so teams can make that choice explicit. -None is the default, and none is required by Spec Kit. - -## Shared Delivery, Separate Persistence - -All three models use the same feature delivery process: -specify -> plan -> tasks -> implement -> converge. Repeat implement and -converge until the agreed feature is complete. - -Converge assesses the implementation against the feature's spec, plan, and -tasks, governed by the constitution. It is append-only: its only possible write -is adding remaining work to `tasks.md`. It does not select a persistence model, -rewrite intent to match code, or treat approval of code as agreement with -documented intent. - -The core workflow has no dedicated command that automatically reconciles -differences among `spec.md`, `plan.md`, and `tasks.md`. Analyze reports -inconsistencies without editing artifacts, and converge only appends remaining -work to `tasks.md`. Teams can reconcile artifacts directly, and extensions can -provide their own commands or hooks to coordinate reconciliation during or -after delivery. Extension behavior does not change the responsibilities of the -core commands. - -Persistence is the team's choice of how to maintain artifacts **after -delivery**, not an alternative way to deliver or determine completeness. -Discoveries can occur during implementation, but their timing does not define -the persistence model. Reconciliation can also occur during delivery without -becoming part of the core workflow or the persistence strategy. If the team -agrees to change the intended contract, make that intent explicit in the -artifacts and deliver against it. - -A later change requiring implementation still goes through the shared delivery -process and convergence against its explicit intended artifacts, whether those -artifacts are new or revised. See -[Evolving Specs in Existing Projects](evolving-specs.md) for practical -guidance. - -## Two Separate Questions - -Spec-driven development has a temporal question: how long should the -specification matter? One -[overview of SDD tooling](https://martinfowler.com/articles/exploring-gen-ai/sdd-3-tools.html) -frames that lifecycle in three levels: - -- **Spec-first**: write a spec before coding, then allow it to be discarded. -- **Spec-anchored**: keep the spec after implementation and use it for future - changes. -- **Spec-as-source**: treat the spec as the only human-edited source and - regenerate implementation artifacts from it. - -Spec Kit also exposes a second question: what happens to the artifact set when -requirements change after delivery? The models below describe that maintenance -strategy. - -## Flow-Back Spec - -Use flow-back when `spec.md`, `plan.md`, `tasks.md`, and the implementation are -all allowed to inform each other. - -After delivery, accepted discoveries can inform maintenance edits to any -artifact. The team decides what those discoveries mean for intended behavior, -technical approach, or task breakdown. The team can reconcile `spec.md`, -`plan.md`, and `tasks.md` itself or use an extension whose documented behavior -does so. The implementation is evidence for that discussion, not a replacement -source of intent. - -This is a team-owned maintenance convention, not a requirement for a new core -amendment command or an artifact-rewriting role for analyze or converge. -Extension-provided reconciliation remains extension behavior, whether it runs -during or after delivery. If reconciliation identifies implementation work, -deliver that change through the shared process against the explicit intended -artifacts. - -Flow-back works well when: - -- the team is small enough to notice and reconcile drift quickly -- implementation discoveries are expected to reshape the original plan -- speed matters more than preserving each intermediate decision as immutable - history - -The main risk is silent divergence. If the team changes lower-level artifacts -without reflecting the decision back into `spec.md`, future contributors may -not know which artifact to trust. - -## Flow-Forward Spec - -Use flow-forward when each feature directory should remain a historical record. - -In this model, completed artifacts are treated as immutable. When requirements -change, the team creates a new feature directory instead of mutating the -existing `spec.md`, `plan.md`, or `tasks.md`. The older directory remains useful -for audit, comparison, or explaining how the project reached its current state. - -Flow-forward works well when: - -- auditability and traceability matter -- features are well-scoped and rarely revisited in place -- the team wants a clear sequence of requirement changes over time - -The main tradeoff is duplication. Related decisions can be spread across -multiple feature directories, so teams need naming, linking, or review habits -that make the lineage easy to follow. - -## Living Spec - -Use living spec when `spec.md` is the contract and the other artifacts are -derived from it. - -After delivery, teams maintain `spec.md` as the contract, updating it first when -intended behavior changes, then regenerating or revising `plan.md` and -`tasks.md` from that source. The plan and task list are still valuable, but they -are treated as disposable derivations rather than permanent sources of truth. - -Living spec works well when: - -- the product contract is stable enough to own the workflow -- the team is comfortable regenerating derived artifacts after spec changes -- consistency between requirements and implementation matters more than keeping - every intermediate plan intact - -The main risk is losing useful implementation rationale if derived artifacts are -discarded without preserving important decisions elsewhere. - -## Choosing a Model - -The model is a team convention, not a CLI setting. A project can even use -different models in different areas, as long as contributors know which one -applies. - -| Model | Post-delivery maintenance rule | Best fit | Watch out for | -|---|---|---|---| -| Flow-back spec | Reflect accepted discoveries in any artifact, then reconcile | Fast iteration and close collaboration | Silent drift between artifacts | -| Flow-forward spec | Create a new feature directory for new requirements | Audit trails and historical clarity | Duplicate or fragmented context | -| Living spec | Edit `spec.md`; regenerate derived artifacts | Spec as contract | Lost rationale in regenerated files | - -If your team has not chosen a model yet, start by answering two questions: - -1. Should completed feature directories be historical records or editable work - areas? -2. Is `spec.md` the single source of truth, or are `plan.md` and `tasks.md` - allowed to become co-equal sources? - -Once those answers are clear, document the convention in your project -constitution or team onboarding notes so future contributors know how to handle -changes. diff --git a/docs/toc.yml b/docs/toc.yml index 6a17830b73..21b5f2a39a 100644 --- a/docs/toc.yml +++ b/docs/toc.yml @@ -63,9 +63,9 @@ href: how-to/complex-features.md - name: Break down large features href: how-to/spec-of-specs.md - - name: Choose a persistence model - href: how-to/spec-persistence.md - - name: Maintain specifications after delivery + - name: Persist specifications + href: how-to/persisting-specs.md + - name: Evolve specifications href: how-to/evolving-specs.md - name: Adapt Spec Kit to your process href: how-to/customization.md