Skip to content

product-development: canonize shipped changes into the feature spec #21

In review

Description

@prometheas

Summary

Add an Implementation Delivery phase to the product-development plugin. This phase should extend the lifecycle after finalized specs and implementation planning, covering how agents turn approved product-development artifacts into implementation issues, execute work incrementally, preserve durable delivery context, and prepare PRs for review and merge.

This should remain configurable. The skill should define strong defaults without forcing every project into one rigid engineering workflow.

Related: #18 covers lifecycle review and implementation handoff generation. This issue focuses on the follow-on delivery workflow once finalized specs and an implementation issue are in play.

Problem

The current product-development workflow ends at Implementation Planning. In actual feature delivery, there is still a recurring gap between finalized spec markdown files and disciplined implementation:

  • creating an implementation issue from a finalized spec directory
  • identifying the durable scope from PRD/TRD/story/scenario artifacts
  • deciding whether implementation plans belong in version control or issue comments
  • implementing in incremental commits
  • recording scope refinements and review-triage decisions where future agents can find them
  • validating work before PR readiness and merge

Without first-class guidance, implementation chats accumulate important delivery context that is easy to lose after the chat ends.

Desired Workflow

Add a post-planning phase that defaults to the following behavior:

  1. Create or consume an implementation issue based on a finalized spec directory.
  2. Treat finalized spec markdown files as the canonical source of scope.
  3. Capture implementation plan details as issue comments by default, not committed plan documents, unless project configuration explicitly opts into versioned plan docs.
  4. Implement in incremental, reviewable commits.
  5. Keep durable scope refinements, review decisions, validation outcomes, and process learnings attached to the implementation issue.
  6. Preserve traceability from specs -> implementation issue -> PR -> merged work.

Implementation Issue Creation

The phase should document how to create an implementation issue from a finalized spec directory, such as:

  • docs/product/features/{feature}/PRD.md
  • docs/product/features/{feature}/TRD.md
  • docs/product/features/{feature}/stories/*.md
  • docs/product/features/{feature}/scenarios/*.feature

The implementation issue should summarize durable scope, cite relevant spec files, identify upstream and downstream dependencies, and make implementation boundaries explicit. It should avoid copying full specs or embedding code-heavy implementation plans.

Plan Document Policy

The default guidance should prefer issue comments for implementation plans and plan amendments. Version-controlled plan documents should be opt-in, not assumed.

When plan details are captured in comments, agents should preserve the durable kernel:

  • delivery milestones
  • user-approved scope changes
  • meaningful tradeoffs
  • review-driven plan amendments
  • validation expectations
  • unresolved questions or deferred work

Agents should avoid committing duplicated code snippets, oversized task transcripts, or transient execution notes as plan artifacts.

Implementation Execution Guidance

When implementing from the issue, the skill should guide agents to:

  • start from a clean branch or worktree
  • read the implementation issue and linked spec files first
  • build platform context from dependent or cross-referenced issues when relevant
  • use incremental commits for coherent units of value
  • fold related plan amendments into a single issue comment or changelog-style comment where practical
  • use review feedback skeptically but rigorously: verify, triage, patch, validate, and record decisions
  • run project-appropriate validation before PR readiness and merge

Configuration

Projects should be able to configure:

  • whether implementation plans are issue comments only or committed docs
  • required implementation issue sections
  • required retrospective issue-comment prompts
  • commit granularity expectations
  • required validation commands
  • review gates before PR readiness
  • whether subagents should be used for spec intake, adversarial review, downstream dependency review, or implementation retrospectives

Context-Gathering and Issue Contribution Instructions

If you are an AI agent hosting, or able to inspect, an existing chat where the user already drove a feature implementation using product-development-generated specs, review that session and contribute comments to this issue with durable observations that should inform this enhancement.

This is not a request to summarize the whole chat. Focus on details that help us identify the strongest requirements for an Implementation Delivery phase in the product-development skill.

Look for:

  • moments where finalized specs were enough to guide implementation cleanly
  • moments where the specs were ambiguous, incomplete, or needed interpretation
  • scope refinements the user made during implementation
  • decisions about whether implementation plans should live in version control or issue comments
  • how incremental commits helped or failed to help reviewability
  • review-triage patterns that worked well
  • review feedback that exposed missing process guidance
  • validation steps that should have been planned earlier
  • places where issue comments would have preserved useful context better than chat history
  • details the user approved, rejected, or corrected that future agents would otherwise miss
  • workflow wrinkles, repo constraints, or "next time we should..." lessons

Validate assumptions with the user before presenting them as conclusions. Ask for additional thoughts, corrections, and remembered context, especially when inferring rationale from the chat history rather than from an explicit user statement.

Post concise comments that capture the durable kernel of what happened and why it matters. Avoid raw logs, copied code, full transcript summaries, or transient execution chatter.

Acceptance Criteria

  • The product-development lifecycle includes an Implementation Delivery phase after Implementation Planning or implementation handoff.
  • The canonical skill docs explain how to create or consume an implementation issue from finalized spec markdown files.
  • The docs distinguish durable implementation issue comments from raw logs, copied code, and transient execution notes.
  • The default plan-doc policy prefers issue comments over version-controlled implementation plan documents unless configured otherwise.
  • The implementation workflow includes incremental commits, review triage, validation, and PR readiness guidance.
  • The workflow remains configurable and does not force every project into one fixed delivery process.
  • README and methodology references are updated to include the new phase.
  • Existing tests or repository checks are updated to cover new lifecycle references where appropriate.

Non-Goals

  • Do not replace PRD, TRD, story, or scenario artifacts.
  • Do not require committing implementation plan docs by default.
  • Do not prescribe a universal commit count or PR size.
  • Do not automate merging or cleanup behavior in the product-development skill itself.
  • Do not make issue comments a substitute for maintaining finalized product specs.

Activity

  1. coderabbitai commented on Jul 10, 2026

    @coderabbitai
    🔗 Related PRs

    #11 - refactor: promote repository to Prometheas Labs plugin marketplace [merged]


    📝 Issue Planner

    Check the box below or use the @coderabbitai plan command to generate an implementation plan and prompts that you can use with your favorite coding assistant.

    • Create Plan

    🧪 Issue enrichment is currently in open beta.

    To disable automatic issue enrichment, add the following to your .coderabbit.yaml:

    issue_enrichment:
      auto_enrich:
        enabled: false

    💬 Have feedback or questions? Drop into our discord!

  2. prometheas commented on Jul 10, 2026

    @prometheas
    ContributorAuthor

    First-Pass Implementation Session Observations

    This comment extracts durable process observations from a feature implementation session that used product-development-generated specs to guide delivery.

    What Worked Well

    The implementation issue plus finalized spec files were enough to orient the work. The useful starting pattern was: inspect the implementation issue, read the finalized spec markdown files, inspect cross-referenced dependency issues when present, then summarize the intended delivery before coding.

    Adversarial subagent review was valuable at several points. It helped validate the implementation plan against the specs, evaluate automated review findings that might have represented spec gaps, and confirm whether unusual test or guardrail recommendations were sane. The most valuable subagent reviews were scoped to a concrete question and asked to check downstream feature/spec cohesion.

    One-by-one review triage worked well. Automated feedback was not treated as automatically correct. Each item was verified against the codebase and spec, then either patched, narrowed, or treated as stale/obsolete. Human approval before each material fix kept the implementation aligned with intent.

    Incremental commits helped reviewability, especially when related small fixes were collapsed into coherent commits. For repeated classes of review feedback, broad user approval for "similar issues" reduced unnecessary ceremony while preserving control.

    Local validation before merge was important. The final readiness check used project-level validation, not only the visible remote checks.

    Wrinkles And Process Lessons

    The version-controlled implementation plan lost durable value once implementation began. It duplicated code-level details, attracted stale review comments, and eventually became noise. The better outcome was deleting the plan artifact and posting a concise implementation summary on the implementation issue.

    Plan amendments should be consolidated. During review triage, small changes to the plan/changelog could easily produce noisy history. Folding related amendments into one issue comment or one coherent changelog-style note was better than recording every small fix separately.

    Automated review comments can become stale after follow-up commits or deleted files. The workflow needs explicit guidance to distinguish fresh actionable feedback from older inline comments still returned by review APIs.

    Some automated review feedback can expose real delivery gaps. One finding that initially looked like ordinary review feedback turned out, after adversarial review, to reveal a real spec-alignment issue. Implementation Delivery guidance should tell agents to treat some review comments as possible spec/process gaps, not only code patch requests.

    Other automated feedback may be useful only after narrowing. A reviewer recommendation could have pushed behavior away from the spec if applied literally. The better fix was a test/comment clarification, not a behavior change. The workflow should require agents to preserve spec intent when applying review feedback.

    Unusual repository-standard tests benefited from explicit validation. When a guardrail test seemed unconventional, a focused review confirmed whether it provided durable value. Implementation guidance should encourage agents to validate unusual guardrail tests rather than assume they are either overkill or automatically warranted.

    Issue Comment Guidance Learned From The Session

    Implementation comments should preserve the durable kernel of delivery, not the full plan or transcript. Useful issue comments from this session captured:

    • what scope was delivered
    • what evidence/specs drove the implementation
    • which review findings changed behavior
    • which findings were narrowed to tests/comments
    • why a plan doc was deleted instead of versioned
    • what validation passed before merge

    The issue comment is the right place for implementation memory that future agents need but future code readers do not.

    Potential Requirements For Issue #21

    Consider making these explicit in the Implementation Delivery phase:

    • Agents should treat version-controlled implementation plans as opt-in; default to issue comments for durable planning and amendments.
    • Agents should post a concise implementation summary comment when deleting or superseding a plan artifact.
    • Agents should triage review feedback one item at a time unless the user approves a class of similar fixes.
    • Agents should use adversarial subagents for feedback that may affect spec alignment, downstream cohesion, or architecture.
    • Agents should distinguish stale automated-review artifacts from fresh actionable feedback before continuing triage.
    • Agents should validate unusual repository-standard tests or guardrails when their long-term value is not obvious.
    • Agents should run project-level validation immediately before merge readiness, even if narrower checks passed earlier.
    • Agents should prepare squash merge messages that summarize durable project value and include the appropriate issue reference.

    Assumptions To Validate

    I am inferring that the plan-doc deletion was not just a one-off cleanup, but evidence for a broader default: implementation plans should usually live as issue comments unless a project explicitly wants versioned plan docs.

    I am also inferring that the review-triage rhythm from this session is desirable as default guidance: verify external feedback, ask the user for approval on material changes, patch in coherent increments, validate, then continue.

  3. prometheas commented on Jul 10, 2026

    @prometheas
    ContributorAuthor

    Candidate Recommendations For Triage / Grooming

    Follow-up from an implementation-session retro. These are candidate refinements for the Implementation Delivery phase, not committed requirements. They are phrased as scope/AC/non-goal considerations so maintainers can triage whether each belongs in #21, a follow-up issue, or project-specific configuration.

    1. Readiness Evidence Map

    Candidate scope addition: Implementation Delivery could require a lightweight mapping before agents claim an implementation issue is complete or PR-ready.

    Candidate ACs:

    • Documentation defines a readiness evidence map with: source requirement, implementation files, test evidence, validation command, status, and defer owner.
    • Workflow guidance says agents complete or update this map before claiming implementation complete or PR-ready.
    • The map may live as an implementation issue comment by default, unless project config opts into a versioned artifact.

    Candidate non-goal:

    • Do not require automated traceability extraction.

    2. Implementation Shape Scan

    Candidate scope addition: agents could inspect PR/file shape early to distinguish real implementation from generated scaffolding or facade-only changes.

    Candidate ACs:

    • Documentation requires identifying owned implementation files, generated files, facade/re-export files, tests, migrations, and docs.
    • Documentation warns that generated facades, export-only files, and large scaffolding diffs are not evidence of behavioral completeness.

    Open question:

    • Should implementation issue templates include a "key implementation files" section?

    3. Validation Matrix With Hidden/Gated Checks

    Candidate scope addition: validation planning could explicitly account for hidden, gated, contract, integration, storage, or environment-dependent checks.

    Candidate ACs:

    • Documentation requires agents to identify default checks and gated contract/integration/environment-dependent checks before readiness.
    • Validation reporting states passed, skipped, and not-run checks with rationale.
    • Project config may declare required validation commands.

    Candidate non-goal:

    • Do not prescribe universal validation commands across repos.

    4. PR Readiness Signal Checklist

    Candidate scope addition: PR readiness guidance could require separate verification of live PR state signals instead of treating any single automated-review signal as sufficient.

    Candidate ACs:

    • Documentation requires checking current head SHA, branch sync, merge state, visible checks, unresolved review threads, stale comments, draft/ready state, and push status.
    • Documentation states that an automated-review pass alone is insufficient proof of PR readiness.

    Candidate non-goal:

    • Do not automate merge behavior.

    5. Defer With Owner

    Candidate scope addition: deferred findings could require explicit owner discovery.

    Candidate ACs:

    • Documentation requires each material defer item to identify an existing downstream owner issue where one exists, or propose/create a new issue when none exists.
    • Documentation distinguishes "defer with owner" from "note for later."

    Open question:

    • Should downstream-owner lookup be mandatory before every defer comment, or only for material/product-impacting deferrals?

    Why These May Belong In #21

    The current issue already covers implementation issues, durable issue comments, review triage, validation, incremental commits, and PR readiness. These candidates sharpen that scope into concrete delivery checkpoints without forcing one fixed engineering workflow across all projects.

  4. prometheas commented on Nov 29, 2026

    @prometheas
    ContributorAuthor

    Narrowed for 0.2.0: canonization

    This issue is now part of the 0.2.0 release (#35), with a narrower scope, and is retitled to match. The product-development skill should not prescribe how implementation runs. It owns what comes before implementation (the handoff, under #18) and what comes after (keeping the feature spec true). Most of the delivery workflow above already lives in the delivery-engineering plugin's review-gated implementation loop. The implementation-session observations above stay here as the record behind that split.

    Where each part goes

    Topic Home
    Creating the implementation issue The handoff, #18
    Plan policy Execution plans stay out of Git. The skill's Implementation Planning output to docs/plans/ is removed. delivery-engineering uses the PR body as the plan. Change-scoped design stays in the TRD, and ship order stays in the product's delivery plan.
    Incremental commits, review triage, project-level validation, PR readiness (head SHA, threads, checks), merge mechanics delivery-engineering, already covered
    Defer with owner Implementation findings stay with delivery-engineering, which tracks each deferral with an owner. Product questions go to the open-questions register.
    Readiness evidence map Split. Accounting for each requirement becomes canonization's coverage check (below). File and test evidence stay with delivery-engineering.
    Stale review comments, plan-amendment consolidation, the implementation shape scan, the gated validation matrix, validating unusual guardrail tests, squash messages that record durable value A delivery-engineering follow-up, shaped by #42 (comparison with tstack's full-send and full-stop)

    Ownership

    #23 owns the change and delta contract: the format, spec-unit IDs and base text. This issue owns the canonization workflow that consumes it.

    What stays here: canonization

    A change reaches Shipped when the project's ship signal fires, for example a merge to main, a release, or a flag rolled out to everyone. A feature-log entry records that evidence, so the state survives a restart. The change stays in changes/<change>/ until canonization, which then runs:

    1. Coverage check. Each requirement and scenario in the change is shipped, changed or deferred. A change in meaning needs maintainer approval. Deferred items become shaping items. The deltas to be applied are reconciled with this accounting: deferred units are left out, and changed units carry the approved text. The ratified deltas stay as they were, for the archive.
    2. Base check. Each modified or removed spec unit still matches the base text the delta recorded. If the feature spec has drifted, the delta is rebased first, and the maintainer confirms any change in meaning. The check runs again against the latest feature spec just before the canonization PR merges.
    3. Apply the reconciled deltas to the feature spec, and move the change's stories and scenarios to the feature root.
    4. Archive the change to changes/archive/YYYY-MM-DD-<change>/. Its state is now Canonized.
    5. Write a feature-log entry.

    This is a workflow, not a new phase. "Phase" is leaving the skill's vocabulary in 0.2.0.

    Replacement acceptance criteria

    • A canonization reference documents the five steps.
    • A worked example traces one ratified requirement and one scenario through to shipping evidence, an approved change in meaning, a deferred shaping item, the archived change and the log entry, and includes one rebased delta.
    • A fixture test shows that after canonization, the feature spec and the feature-root scenarios contain no deferred behavior, and the archive holds the ratified deltas unchanged.
    • The skill points to delivery-engineering, or the project's own workflow, for implementation, and duplicates none of it.
    • The skill no longer writes implementation plans to docs/plans/, and SKILL.md and the methodology say that execution plans stay out of Git.
    • The README and methodology describe canonization and the Shipped and Canonized states.
  5. changed the title [-]Add Implementation Delivery phase to product-development workflow[/-] [+]product-development: canonize shipped changes into the feature spec[/+] on Nov 29, 2026
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