Skip to content

product-development: add feature-evolution pathway with rationale provenance #23

In review

Description

@prometheas

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:

  1. amend the existing PRD and then TRD, with changelog rationale;
  2. supersede existing specifications when they would no longer be recognizable; or
  3. 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.md and the lifecycle map.
  • Extend docs/METHODOLOGY.md with 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

Activity

  1. prometheas commented on Nov 29, 2026

    @prometheas
    ContributorAuthor

    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 the docs/product/ OKF v0.3 bundle. The feature directory separates what the feature does now from the changes that got it there:

    features/<feature-id>/
      index.md                     OKF listing, generated
      log.md                       the feature log: dated history and reasons
      <feature-id>-spec.md         feature spec overview
      <facet>.md                   facet specs: one user type, workflow or contract each
      changes/<change>/            a ratified change waiting to ship
        PRD.md  TRD.md
        deltas/<facet>.delta.md
        stories/                   stories the change adds or revises
        scenarios/*.feature        scenarios the change adds or revises
      changes/archive/YYYY-MM-DD-<change>/
      stories/                     stories for shipped behavior
      scenarios/*.feature          scenarios for shipped behavior
    

    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.

    • The feature spec (overview plus facet specs) describes shipped behavior only, written to stay true.
    • A change is one bounded addition or revision, including the feature's first version. Its PRD and TRD say why and how. Its deltas list the spec units it adds, modifies or removes.
    • A spec unit is an independently changeable section of the feature spec with a stable ID: FR-12 invitation expiry, MEM-02 membership status transitions, or a whole scenario file.

    How the four classifications in this issue map

    Classification Path
    Independent new feature A change in shaping/ that creates a new bundle when ratified
    Incremental amendment A small change, with deltas against the existing feature spec
    Evolution or migration A change in shaping/ that names its target feature (x-amends: <feature-id>). The ratified spec stays in force while it is worked out.
    Fundamental change A change whose deltas replace most spec units, or a lineage event (split, merge or drop) recorded in features/log.md

    Lifecycle

    1. Shaping. The change is drafted in shaping/<feature>--<change>/. The shaping document and the PRD hold the evidence and rejected alternatives that this issue's provenance table asks for.
    2. Ratification. The maintainer merges the promotion PR. The change moves to features/<feature>/changes/<change>/. The merge is the approval record.
    3. Shipped. Each project names its ship signal, the event that makes a change live. When it fires, a feature-log entry records the evidence, such as a release or a flag rollout. The change stays in changes/<change>/ until canonization.
    4. Canonization. The agent accounts for each requirement and scenario as shipped, changed or deferred. It then applies the deltas as reconciled with that accounting: deferred units are left out, and changed units carry the maintainer-approved text. Stories and scenarios move to the feature root, the change moves to 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.md record 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:

    • Overlap check, when the promotion PR is prepared and again just before it merges: other in-flight changes that touch the same spec units or add a unit with the same ID. The maintainer orders or combines them.
    • Base check, at canonization and again just before the canonization PR merges, against the latest feature spec: each modified or removed unit records its base text. If the feature spec has drifted, the delta is rebased first, and the maintainer confirms any change in meaning.

    History without stubs

    • Each bundle's log.md replaces 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 (in changes/), Shipped (still in changes/, with a feature-log entry recording the ship signal), Canonized (in changes/archive/) or Dropped (deleted, with a lineage-log entry). OKF status follows from the path: draft in ideas/ and shaping/, stable for ratified changes and feature specs, deprecated for archived changes. The closed type list and the OKF checks belong to #25 (the OKF spike, concluded as the skill's OKF profile).

    Added to this issue's acceptance criteria

    • The methodology defines feature bundles, the feature spec, changes, deltas, spec units, canonization and both logs.
    • The overlap check and the base check are documented with a worked example of two parallel changes, including two changes that add a unit with the same ID.
    • A fixture runs two canonizations against one feature and shows that the second preserves the first one's edits.
    • A change's stories and scenarios live in the change until canonization, with a worked example.
    • A lineage event (split, merge or drop) is recorded without leaving stub bundles.
    • Two ADRs: deltas with base text, canonized at ship; and product documents as one OKF bundle rooted at docs/product/.
    • The plugin version moves to 0.2.0, because the layout changes for existing users. product-development: modernization guide for specs written with 0.1.0 #46 (modernization guide) covers the move.

    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.

  2. prometheas commented on Nov 29, 2026

    @prometheas
    ContributorAuthor

    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:

    1. Revising a ratified change before it ships. Today the docs say promotion stops and the maintainer decides. Open: does a revision replace the ratified change in place (through a fresh promotion PR), or always become a follow-up change?
    2. When a behavior-neutral split or merge counts as Shipped. A split or merge that changes no shipped behavior is shaped, ratified and canonized like any change, but nothing ships. Open: is ratification itself its ship signal, or does it wait for the project's normal ship signal?

    Neither blocks the 0.2.0 work; the release ships with the interim behavior unless decided otherwise.

  3. 34 remaining items

  4. prometheas commented on Nov 30, 2026

    @prometheas
    ContributorAuthor

    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 .feature files in place, under apps/{surface}/docs/features/{feature}/scenarios/. Step definitions arrive with the implementation, after the handoff is sent. A runner that discovers every app-local .feature file can therefore fail on the promotion PR, or on the default branch while the handoff is still blocked.

    Options to weigh:

    • keep promoted scenarios out of runner discovery until the handoff (for example with a tag or a separate path);
    • leave active expectations untouched at promotion and apply the revision with the implementation;
    • accept the failing run as the signal that implementation is due.

    Interim in 0.2.0: the behavior is unchanged and documented as it stands. Not blocking the release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions