Repository navigation
Description
Summary
Add a first-class Feature Evolution pathway to the product-development skill for cases where discovery reveals that proposed work is actually an evolution, migration, or refactor of an already canonical feature, package, and specification lineage.
The pathway must help agents preserve one accountable capability roadmap, avoid accidentally creating a competing feature folder, and retain the evidence and human decisions that justified the evolution.
Problem
The current skill documents living PRD/TRD artifacts and generic supersession criteria, but it does not give agents an actionable workflow for a common discovery result:
- an existing foundation or feature is already canonical;
- a new consumer or requirement exposes a material boundary limitation;
- the correct outcome may be an amendment, migration, or supersession of that existing capability rather than a new adjacent feature; and
- the current implementation may be active, so discovery must not silently broaden delivery scope.
Without a dedicated pathway, agents can create a second source of truth, bury rationale in chat, or conflate discovery with approval to refactor.
Desired workflow
Trigger and classification
When discovery identifies a proposed feature that may instead evolve an existing capability, require a brief classification:
- independent new feature;
- incremental amendment of an existing feature;
- evolution/migration of an existing feature; or
- fundamental change requiring supersession.
The classification identifies canonical artifacts, public/package compatibility constraints, active implementation work, and affected upstream/downstream owners.
Evolution tracking issue
For an evolution/migration, create or update a dedicated tracking issue that:
- names the existing capability being evolved;
- states the problem, desired outcome, non-goals, urgency, and implementation-scope protections;
- links canonical artifacts and consumer inputs;
- makes clear that discovery is not approval to refactor; and
- defines the next human decision gate.
The tracking issue is not a license to create a competing canonical feature directory.
Discovery and rationale-provenance record
Before a PRD/TRD change, create a short decision/research record under the existing canonical feature directory, for example research/{topic}-evolution.md.
Require this structured provenance:
| Evidence type | Required content |
|---|---|
| Current artifacts | Canonical documents, package/API contracts, and implementation constraints |
| Stakeholder decision | Date, decision, rationale, and unresolved assumptions |
| Internal delivery evidence | Relevant issues, reviews, tests, incidents, or consumer requirements |
| External evidence | Direct source links plus the claim each source supports |
| Decision impact | Chosen path, rejected alternatives, compatibility/migration effect, and downstream follow-up |
Human decision and specification update
After discovery review, require human approval to:
- amend the existing PRD and then TRD, with changelog rationale;
- supersede existing specifications when they would no longer be recognizable; or
- retain the current boundary and create a genuinely independent feature.
Require downstream-impact review. Do not imply implementation, migrations, code, tests, stories, or scenarios before applicable gates.
Guidance and templates to add
- Add the pathway to
SKILL.mdand the lifecycle map. - Extend
docs/METHODOLOGY.mdwith classification, provenance, amendment, migration, and supersession guidance. - Add a reusable checklist/template for tracking issues and research records.
- Add a review prompt that challenges duplicate lineage, hidden scope expansion, unowned migration work, and weak rationale provenance.
- Keep the pathway configurable for project-specific issue, approval, or documentation conventions.
Acceptance criteria
- An agent can follow the pathway without reconstructing it from chat history.
- The workflow preserves one canonical specification lineage unless a human approves supersession.
- Tracking issues and decision records capture compatibility constraints, non-goals, consumer impact, and evidence provenance.
- The methodology explains amendment versus supersession.
- Active implementation work is protected from accidental scope creep.
- No project-specific product or organization details are encoded.
- Existing lifecycle gates remain intact.
Non-goals
- Do not prescribe a universal architecture.
- Do not automatically refactor code, alter dependency graphs, or update implementation scope.
- Do not replace normal PRD/TRD, story, scenario, or implementation-delivery workflows.
Related guidance and supporting references
- Plugin methodology: https://github.com/Prometheas-Labs/agent-plugins/blob/main/plugins/product-development/skills/product-development/docs/METHODOLOGY.md
- Existing lifecycle-review and handoff work: Improve product-development plugin with lifecycle review and handoff workflows #18
- Existing implementation-delivery work: product-development: canonize shipped changes into the feature spec #21
- https://martinfowler.com/bliki/BoundedContext.html
- https://martinfowler.com/bliki/ArchitectureDecisionRecord.html
- https://docs.aws.amazon.com/prescriptive-guidance/latest/hexagonal-architectures/overview.html
- https://www.thoughtworks.com/en-us/insights/articles/fitness-function-driven-development
Activity
prometheas commentedon Nov 29, 2026
Design for 0.2.0
This issue is now part of the 0.2.0 release (tracking issue: #35, the product-development 0.2.0 release). Below is the design agreed with the maintainer. It keeps this issue's goals, one canonical lineage per capability, with human-approved evolution and the rationale preserved, but it changes the mechanism.
Every PRD describes a change
A feature lives in its own directory,
features/<feature-id>/, inside thedocs/product/OKF v0.3 bundle. The feature directory separates what the feature does now from the changes that got it there:A change carries its own stories and scenarios until it is canonized, so an expectation that hasn't shipped never sits beside shipped ones. A scenario file the change revises is a spec unit: the change holds the new version, and its delta records the base. Surface-specific scenarios that live with an app stay there, and the change lists the ones it touches.
FR-12invitation expiry,MEM-02membership status transitions, or a whole scenario file.How the four classifications in this issue map
shaping/that creates a new bundle when ratifiedshaping/that names its target feature (x-amends: <feature-id>). The ratified spec stays in force while it is worked out.features/log.mdLifecycle
shaping/<feature>--<change>/. The shaping document and the PRD hold the evidence and rejected alternatives that this issue's provenance table asks for.features/<feature>/changes/<change>/. The merge is the approval record.changes/<change>/until canonization.changes/archive/with its ratified deltas intact, and a feature-log entry records the outcome. Deferred requirements become shaping items. The change is now Canonized.This replaces the tracking issue and the
research/{topic}-evolution.mdrecord proposed above. The shaping document is the discovery record, and the promotion PR is the human decision gate. The project's board still tracks the change; #39 (board mapping) covers that.Parallel changes
Two changes to one feature can be in flight together. OpenSpec, which uses a similar delta model, documents the failure this invites: when two changes modify the same requirement, the second archive silently drops the first change's edits (remediation plan). Two checks prevent it here:
History without stubs
log.mdreplaces the changelog tables in PRDs and TRDs. Entries give the date, the change, the reason and links. Consequential decisions also get an ADR.features/log.md, the lineage log, records feature splits, merges and drops, dropped changes, and promotion PRs closed without merging, with reasons. A dropped bundle is deleted rather than left as a stub; its log entry links the last commit that had it.State and metadata
A change's state comes from its path, plus two signals: Idea (in
ideas/), Shaping, In review (its promotion PR is open), Ratified (inchanges/), Shipped (still inchanges/, with a feature-log entry recording the ship signal), Canonized (inchanges/archive/) or Dropped (deleted, with a lineage-log entry). OKFstatusfollows from the path:draftinideas/andshaping/,stablefor ratified changes and feature specs,deprecatedfor archived changes. The closedtypelist and the OKF checks belong to #25 (the OKF spike, concluded as the skill's OKF profile).Added to this issue's acceptance criteria
docs/product/.Depends on #36 (idea and shaping stages). This issue's pull request also delivers #24 (durable PRD and TRD sections): planning tense is fine in a change record, because a change record is dated history, while the feature spec keeps durable tense.
fix(product-development): tighten workflow hand-offs around shaping a…
docs(product-development): route ratified spec changes through promotion
docs(adr): record deltas with base text and the product OKF bundle
feat(product-development): define feature bundles, changes and deltas
test(product-development): run two canonizations against one feature
feat(product-development): move the lifecycle onto feature bundles an…
docs(product-development): realign the layout trees in the change ref…
prometheas commentedon Nov 29, 2026
Open decisions for the maintainer
Recorded during the 0.2.0 implementation (PR #50, feature directories, changes and deltas). The PR documents the interim behavior and leaves these open:
Neither blocks the 0.2.0 work; the release ships with the interim behavior unless decided otherwise.
34 remaining items
fix(product-development): keep blank lines inside untouched units
feat(product-development): add feature directories, changes and deltas (
fix(product-development): write the OKF fixture deltas to the delta c…
feat(product-development): map change states to project boards (#52)
fix(product-development): write the OKF fixture deltas to the delta c…
fix(product-development): permit indexes and split entry in promotion…
fix(product-development): reconcile changed and rebased whole-file units
fix(product-development): restore app-local scenarios when dropping a…
docs(product-development): route workflow selection by approved inputs
fix(product-development): reserve archive as a change name
fix(product-development): carry --pending through promotion and canon…
fix(product-development): resolve release review findings (#61)
prometheas commentedon Nov 30, 2026
Open decision for the maintainer, from the whole-diff review of PR #60 (the 0.2.0 release PR)
When should a project's BDD runner start executing app-local scenarios that a promotion PR revised?
Promotion edits app-local
.featurefiles in place, underapps/{surface}/docs/features/{feature}/scenarios/. Step definitions arrive with the implementation, after the handoff is sent. A runner that discovers every app-local.featurefile can therefore fail on the promotion PR, or on the default branch while the handoff is still blocked.Options to weigh:
Interim in 0.2.0: the behavior is unchanged and documented as it stands. Not blocking the release.
docs(product-development): land shaping on the default branch before …
fix(product-development): resolve second release review findings (#63)