Skip to content

Latest commit

 

History

History
584 lines (426 loc) · 21.5 KB

File metadata and controls

584 lines (426 loc) · 21.5 KB

Phase Implementation Template

Use this helper when you want to draft a readable, process-heavy phased implementation plan using the current RULES model:

  • one governed summary/index file at phase/SUMMARY.md
  • executable phase files under phase/ using canonical IDs:
    • major phases: phase/phase-NNN-<phase-name>.md
    • subphases: phase/phase-NNN-NN-<subphase-name>.md

This file is intentionally written as normal markdown. It is a helper, not a governed chain.


Purpose

This template helps you write a phase plan that is:

  • easy to read in normal markdown
  • explicit about the difference between global control and phase-local execution detail
  • traceable back to the design
  • able to synthesize relevant patch inputs when patch-derived work matters
  • clear about TODO and changelog companion work
  • structured enough for day-to-day execution tracking
  • detailed enough for review, handoff, and governance checkpoints

The semantic rule is phase-implementation.md. The governed structure for phased work is:

  • summary/index file: phase/SUMMARY.md
  • major phase files: phase/phase-NNN-<phase-name>.md
  • subphase files: phase/phase-NNN-NN-<subphase-name>.md

When to use this

Use this template when:

  • the work has multiple real stages
  • one stage produces outputs needed by a later stage
  • verification gates matter between stages
  • migration or rollout order matters
  • rollback or containment boundaries matter
  • you need to show how execution maps back to the design
  • TODO and changelog coordination should be visible while planning
  • multiple people, systems, or document chains are involved and need a clear operating view

Do not use this template when the task is so small that a normal implementation checklist is enough.


Operating model

Use the repository roles like this:

  • phase-implementation.md

    • semantic rule for phase behavior
    • defines what a valid /phase structure should contain
    • owns the active phase-identity model (NNN / NNN-NN)
  • phase/SUMMARY.md

    • the real governed summary/index file
    • the high-signal entry point for the whole phased rollout
  • phase/phase-NNN-<phase-name>.md

    • a governed major-phase file when a top-level phase needs its own execution detail
  • phase/phase-NNN-NN-<subphase-name>.md

    • a governed subphase file
    • the place where bounded phase-local execution detail should exist
  • design/*.design.md

    • the design source of truth for intended behavior
    • each executable phase should cite the exact design details it is implementing, validating, or synchronizing
  • patch/<context>.patch.md or root <context>.patch.md

    • separate governed patch/review artifacts
    • may act as optional source inputs for phase planning when patch-derived work matters
    • when patch is in scope, phase/SUMMARY.md and the relevant child phase files should name the applicable patch explicitly
    • not the live phase-plan namespace
    • do not need to point back to phase
  • TODO.md

    • execution tracking only
    • should reflect active work driven by the summary file and executable phases
  • changelog/*.changelog.md

    • history only
    • should capture synchronized or released outcomes, not replace the plan

A strong phase plan keeps all of these visible without mixing their roles.


Non-negotiable boundary for phased work

If phased planning is used:

  • create phase/SUMMARY.md
  • create executable phase files under phase/ using the canonical NNN / NNN-NN model
  • do not store live phase planning inside patch artifacts

SUMMARY.md exists to stay readable and govern the whole phase workspace. The executable phase files exist so each phase can evolve without bloating the summary.


Enterprise quick-start checklist

Before you draft the real plan, confirm this:

  • This work genuinely needs phases instead of a simple linear plan
  • I know the governing design file or files
  • I know the exact design sections or requirements that matter
  • I know whether any governed patch artifacts are also relevant source inputs
  • I know the exact patch before/after sections or change-surface blocks that matter, if patch-derived work exists
  • I know that phase/SUMMARY.md will be the summary/index file
  • I know whether the rollout needs majors only, majors plus subphases, or subphases grouped under summary-level major rollups
  • I know what active TODO work should move during execution
  • I know what changelog impact should be recorded later
  • I know the main verification gates and rollback boundaries
  • I know the high-risk transitions between phases
  • I know who owns the execution of each major phase
  • I know who or what must review or approve phase completion, if approvals matter

If most of these are unclear, discovery should happen before writing a full phase plan.


What belongs in phase/SUMMARY.md

SUMMARY.md should keep the global control picture.

Recommended summary sections:

  • execution control board
  • context
  • governing references
  • source-input extraction summary table
  • phase overview flow diagram
  • review summary table
  • phase map / phase index
  • cross-phase coordination
  • global TODO/changelog coordination
  • final verification
  • overall rollback / containment

SUMMARY.md should not become the place where every phase-local checklist is stored in full.


What belongs in executable phase files

Each executable phase file should keep the phase-local execution detail.

Recommended child sections:

  • control header (Summary File, Phase ID, Status, Session)
  • design references
  • patch references (optional)
  • design extraction
  • patch-to-phase extraction (optional)
  • flow diagram
  • reviewer checklist
  • objective
  • why this phase exists
  • entry conditions / prerequisites
  • action points
  • deliverables / outputs
  • ownership and approvals
  • decision gate
  • out of scope
  • affected artifacts
  • TODO coordination
  • changelog coordination
  • verification / evidence
  • exit criteria
  • sign-off record
  • risks / rollback notes
  • escalation path
  • next possible phases

Suggested status model

Use any simple status set you want, but keep it explicit and consistent.

Recommended phase statuses:

  • Pending
  • In Progress
  • Blocked
  • Completed
  • Deferred

Recommended action-point statuses inside a phase:

  • [ ] not started
  • [x] completed
  • [-] intentionally skipped or not applicable

Recommended sign-off status values:

  • Pending Review
  • Needs Revision
  • Approved
  • Approved With Follow-up
  • Not Required

Recommended reviewer severity values:

  • Blocking
  • Non-Blocking
  • Follow-Up
  • None

Recommended reviewer disposition values:

  • Must Fix Before Approval
  • May Proceed With Follow-Up
  • Approved As-Is
  • No Review Required

Recommended plan-level health labels if useful:

  • On Track
  • At Risk
  • Off Track

Recommended summary phase map columns

For an enterprise/process-heavy phase plan, this table is usually useful:

Major Phase Phase Status File Objective Design Reference Patch Reference Depends On Deliverables TODO Impact Changelog Impact Gate
001 001-01 Pending phase/phase-001-01-<name>.md <design section> <patch section or n/a> none
001 001-02 Pending phase/phase-001-02-<name>.md <design section> <patch section or n/a> 001-01
002 002-01 Pending phase/phase-002-01-<name>.md <design section> <patch section or n/a> 001-02

Use fewer columns only if readability improves. Do not remove file paths, design traceability, patch traceability when patch-derived work exists, TODO impact, or changelog impact unless they are truly not relevant.


SUMMARY.md template

Copy this block into the real summary file and replace the placeholders.

# <Phase Plan Title>

> **Status:** <Pending / In Progress / Blocked / Completed / Deferred>
> **Target Design:** <design file / section>
> **Session:** <session-id>

---

## Execution control board

- Overall status: <Pending / In Progress / Blocked / Completed / Deferred>
- Plan health: <On Track / At Risk / Off Track>
- Current active phase: <phase id>
- Active phase family / staged lane: <phase family or n/a>
- Current blocker: <none / blocker summary>
- Planned next phase(s): <phase id(s) or n/a>
- Activation boundary for next phase(s): <opened / selected / implied active path / still draft>
- Next checkpoint: <what should happen next>
- Summary path: `phase/SUMMARY.md`
- Phase directory: `phase/`
- Target design path: `<design file path>`
- Execution owner: <owner>
- Reviewer / approver: <reviewer or approver>
- Risk level: <Low / Medium / High>
- Last verification checkpoint: <latest verified checkpoint>
- Last approval checkpoint: <latest approval or not required>

## Context

Describe:
- current state
- target state
- why phased execution is useful here
- why a simple linear plan is not enough

## Governing references

- Target design: `<design file>`
- Source patch (optional): `<patch file or n/a>`
- Phase rule: `phase-implementation.md`
- TODO companion: `TODO.md`
- Changelog companion: `<relevant changelog file>`

## Source-input extraction summary table

| Major Phase | Phase | Phase File | Design Source | Patch Source | Derived Execution Work | Target Outcome |
|------------|-------|------------|---------------|--------------|------------------------|----------------|
| 001 | 001-01 | `phase/phase-001-01-<name>.md` | `<design section>` | `<patch section or n/a>` | <derived work> | <target outcome> |
| 001 | 001-02 | `phase/phase-001-02-<name>.md` | `<design section>` | `<patch section or n/a>` | <derived work> | <target outcome> |
| 002 | 002-01 | `phase/phase-002-01-<name>.md` | `<design section>` | `<patch section or n/a>` | <derived work> | <target outcome> |

## Phase overview flow diagram

```text
<design source / patch source / current-state baseline>
  → 001-01: <bounded transformation>
  → 001-02: <bounded transformation>
  → 002-01: <bounded transformation>
  → <final target state>

Review summary table

Major Phase Phase Phase File Sign-Off Status Reviewer Severity Reviewer Disposition Blocker / Follow-Up State
001 001-01 phase/phase-001-01-<name>.md
001 001-02 phase/phase-001-02-<name>.md
002 002-01 phase/phase-002-01-<name>.md

Phase map

Major Phase Phase Status File Objective Design Reference Patch Reference Depends On Deliverables TODO Impact Changelog Impact Gate
001 001-01 Pending phase/phase-001-01-<name>.md <design section> <patch section or n/a> none
001 001-02 Pending phase/phase-001-02-<name>.md <design section> <patch section or n/a> 001-01
002 002-01 Pending phase/phase-002-01-<name>.md <design section> <patch section or n/a> 001-02

Cross-phase coordination

Explain:

  • which outputs from one phase are required by another
  • which source inputs are design-derived, patch-derived, or synthesized from both when that affects sequencing
  • which phases can proceed in parallel
  • which verification gates block later work
  • which TODO/changelog changes happen only after specific phases finish
  • what escalation path exists if the plan becomes blocked

Global TODO coordination

Global changelog coordination

Final verification

  • Phase order matches project reality
  • SUMMARY.md points to every live executable phase file
  • SUMMARY.md shows design and patch inputs clearly when both matter
  • Executable phases own phase-local execution detail
  • Executable phases include patch references and patch-to-phase extraction when patch-derived work exists
  • TODO coordination is explicit
  • Changelog coordination is explicit
  • End-to-end verification is clear
  • Overall rollback or containment behavior is clear

Overall rollback / containment


---

## Executable phase-file template

Copy this block into each real executable phase file and replace the placeholders.

```markdown
# <Phase Title>

> **Summary File:** [SUMMARY.md](./SUMMARY.md)
> **Phase ID:** <001 or 001-01>
> **Status:** <Pending / In Progress / Blocked / Completed / Deferred>
> **Session:** <session-id>

---

## Design references

- `<design file>` → `<section / anchor / requirement summary>`

## Patch references (optional)

- `<patch file>` → `<section / anchor / change-surface locator>`

## Design extraction

- Source design input: `<exact design section / requirement>`
- Derived execution work: `<what this phase is pulling from design into implementation>`
- Phase intent: `<enhance / develop / migrate / validate / replace>`
- Source element: `<what existing part this phase starts from>`
- Target outcome: `<what resulting component / workflow / state this phase produces>`

## Patch-to-phase extraction (optional)

- Source patch input: `<exact patch section / change-surface locator>`
- Derived execution work: `<what this phase is pulling from patch into execution sequencing or rollout>`
- Phase intent: `<apply / validate / sequence / roll out / constrain>`
- Source element: `<what governed change surface this phase starts from>`
- Target outcome: `<what resulting execution artifact / workflow / state this patch input drives>`

## Flow diagram

```text
<source design element / source patch element / current-state part>
  → <phase action / enhancement / migration / validation / rollout>
  → <target component / workflow / operational state>

Reviewer checklist

  • Design source is correct for this phase when design input is used
  • Patch source is correct for this phase when patch input is used
  • Derived execution work is justified by the cited source inputs
  • Source → phase action → target outcome flow is clear
  • Phase boundary is correct and this work belongs here
  • Dependencies and handoffs are clear enough for safe progression
  • Verification evidence is sufficient for review or sign-off

Review outcome

  • Sign-off status: <Pending Review / Needs Revision / Approved / Approved With Follow-up / Not Required>
  • Reviewer severity: <Blocking / Non-Blocking / Follow-Up / None>
  • Reviewer disposition: <Must Fix Before Approval / May Proceed With Follow-Up / Approved As-Is / No Review Required>
  • Review notes: <short review outcome note>

Objective

Why this phase exists

Entry conditions / prerequisites

Action points

Deliverables / outputs

  • <file / artifact / result>
  • <file / artifact / result>

Ownership and approvals

  • Owner:
  • Reviewer:
  • Approver:
  • Approval condition:

Decision gate

Out of scope

Affected artifacts

  • <file / service / document>
  • <file / service / document>

TODO coordination

  • <what TODO items should be opened, updated, or closed during this phase>

Changelog coordination

Verification / evidence

Exit criteria

Sign-off record

  • Decision: <Pending Review / Needs Revision / Approved / Approved With Follow-up / Not Required>
  • Decided by: <name / role>
  • Decision date:
  • Decision notes:

Risks / rollback notes

  • Risk:
  • Rollback / containment:

Escalation path

Next possible phases

Note:

  • already-authored next possible phases are bounded planning input for continuity and sequencing
  • they do not become active execution automatically until that next phase is explicitly opened, selected, or otherwise made active by the governing phase context

---

## Minimal realistic example

Below is a small example showing the active model.

### Example file layout

```text
phase/
  SUMMARY.md
  phase-001-governance-baseline.md
  phase-001-01-create-rule.md
  phase-001-02-realign-docs.md
  phase-001-03-verify-rollout.md

Example summary source-input extraction table

| Major Phase | Phase | Phase File | Design Source | Patch Source | Derived Execution Work | Target Outcome |
|------------|-------|------------|---------------|--------------|------------------------|----------------|
| 001 | 001-01 | `phase/phase-001-01-create-rule.md` | `design/phase-implementation.design.md` → source-synthesis sections | `<relevant governed patch input or n/a>` | create first-class source-synthesis runtime/design/changelog phase chain | dedicated semantic rule for phased execution synthesis |
| 001 | 001-02 | `phase/phase-001-02-realign-docs.md` | `design/document-patch-control.design.md` + `design/project-documentation-standards.design.md` | `<relevant governed patch boundary input>` | rewrite repo governance and namespace rules | `/phase` becomes the active live phase workspace with one-way design+patch synthesis |
| 001 | 001-03 | `phase/phase-001-03-verify-rollout.md` | active governance requirements across updated docs | `<verification-oriented patch input or n/a>` | run verification and close synchronized rollout state | stable repo state with aligned source-synthesis phase model |

Example summary overview flow

Legacy phase model + relevant patch review inputs
  → 001-01: create first-class phase synthesis rule chain
  → 001-02: realign repo governance and namespace rules
  → 001-03: verify rollout and close synchronized state
  → target governance model with `/phase/SUMMARY.md` plus canonical `NNN` / `NNN-NN` phase identities

Example review summary table

| Major Phase | Phase | Phase File | Sign-Off Status | Reviewer Severity | Reviewer Disposition | Blocker / Follow-Up State |
|------------|-------|------------|-----------------|-------------------|----------------------|---------------------------|
| 001 | 001-01 | `phase/phase-001-01-create-rule.md` | `Approved` | `None` | `Approved As-Is` | none |
| 001 | 001-02 | `phase/phase-001-02-realign-docs.md` | `Needs Revision` | `Blocking` | `Must Fix Before Approval` | stale patch-artifact live-phase wording remains |
| 001 | 001-03 | `phase/phase-001-03-verify-rollout.md` | `Pending Review` | `None` | `No Review Required` | pending completion of `001-02` |

Example summary phase map

| Major Phase | Phase | Status | File | Objective | Design Reference | Patch Reference | Depends On |
|------------|-------|--------|------|-----------|------------------|-----------------|------------|
| 001 | 001-01 | Completed | `phase/phase-001-01-create-rule.md` | Create new rule chain | `design/phase-implementation.design.md` | n/a | none |
| 001 | 001-02 | In Progress | `phase/phase-001-02-realign-docs.md` | Realign governance docs | `design/document-patch-control.design.md` + `design/project-documentation-standards.design.md` | `<relevant governed patch boundary input>` | `001-01` |
| 001 | 001-03 | Pending | `phase/phase-001-03-verify-rollout.md` | Verify rollout and close | active governance requirements across updated docs | `<verification-oriented patch input or n/a>` | `001-02` |

Canonical executable phase example

# Phase 001-02 - Realign Governance Docs

> **Summary File:** [SUMMARY.md](./SUMMARY.md)
> **Phase ID:** 001-02
> **Status:** In Progress
> **Session:** <session-id>

## Design references
- `design/document-patch-control.design.md` → patch-versus-phase boundary section
- `design/project-documentation-standards.design.md` → repository role model section

## Patch references (optional)
- `<relevant governed patch boundary input>` → change-surface items that affect rollout sequencing

## Design extraction
- Source design input: patch layer must stay outside the live phase namespace while phase remains the execution layer
- Derived execution work: update repo governance docs so patch artifacts remain distinct from the live `/phase` workspace
- Phase intent: realign
- Source element: repository governance wording that still reflects the earlier boundary model
- Target outcome: master governance docs all reflect the same live `/phase` namespace contract