Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
0e9cd47
test(product-development): use shared-calendar examples in 0.1.0 fixture
prometheas Nov 30, 2026
c3aac9c
fix(product-development): hold delivery-plan steps on whole-plan ques…
prometheas Nov 30, 2026
64167d8
fix(product-development): permit indexes and split entry in promotion…
prometheas Nov 30, 2026
3fb636b
fix(product-development): rebase question links when archiving a change
prometheas Nov 30, 2026
2d3904b
fix(product-development): reconcile changed and rebased whole-file units
prometheas Nov 30, 2026
a8d4995
fix(product-development): restore app-local scenarios when dropping a…
prometheas Nov 30, 2026
1045550
docs(product-development): state the --pending contract the script runs
prometheas Nov 30, 2026
af5c864
docs(product-development): route workflow selection by approved inputs
prometheas Nov 30, 2026
af09d69
fix(product-development): run scripts from the installed skill path
prometheas Nov 30, 2026
d36d990
fix(product-development): generate OKF indexes during Project Setup
prometheas Nov 30, 2026
2b9188d
fix(product-development): reserve archive as a change name
prometheas Nov 30, 2026
d2f6b45
docs(product-development): name the action beside a walkthrough PR nu…
prometheas Nov 30, 2026
f238756
docs(product-development): list feature tags; say foundation documents
prometheas Nov 30, 2026
ce6c1b0
fix(product-development): use the installed script path in scaffolded…
prometheas Nov 30, 2026
264f420
fix(product-development): say what --pending keeps in open-questions …
prometheas Nov 30, 2026
2a126a9
fix(product-development): carry --pending through promotion and canon…
prometheas Nov 30, 2026
93bfff4
fix(product-development): treat a missing bundle root as unfinished s…
prometheas Nov 30, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 26 additions & 18 deletions plugins/product-development/skills/product-development/SKILL.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ set_spec_state shared-calendars/invite-expiry "In review"

### Promotion PR closed without merging

The maintainer closes #214 without merging: the expiry window needs more work. The change is still in `shaping/`, so the agent proposes Shaping, and on approval runs:
The maintainer closes the promotion PR, #214, without merging: the expiry window needs more work. The change is still in `shaping/`, so the agent proposes Shaping, and on approval runs:

```sh
set_spec_state shared-calendars/invite-expiry "Shaping"
Expand All @@ -367,7 +367,7 @@ The next commit to the default branch that touches `docs/product/` adds to `feat

### In review again

The maintainer reworks the change on #214's branch, adding a per-calendar expiry window, and reopens the original promotion PR:
The maintainer reworks the change on the promotion PR's branch, adding a per-calendar expiry window, and reopens the original promotion PR:

```sh
gh pr reopen 214
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,19 +50,19 @@ Base the accounting on the evidence the Shipped entry links and on what the impl
- **Changed:** it went live with a different meaning. A change in meaning needs the maintainer's approval of the text that shipped. An edit that keeps the meaning, such as clearer wording, is not a change.
- **Deferred:** it did not go live. Each deferred item becomes a shaping item: a shaping document in `shaping/{feature}--{change}/`, with `x-amends: {feature}`, that starts from copies of the deferred text and files and links the archived change. Name the new change for what it delivers. It is shaped, ratified and canonized like any other change; nothing in it is ratified yet. A deferred spec unit keeps its ID in the archive as provenance, and IDs are never reused ([feature-bundles.md](feature-bundles.md#spec-units)): when the follow-up change's delta is drafted, it assigns the next free ID to a deferred addition. A deferred modification or removal keeps targeting the existing unit's ID: a deferred revision to `FR-02` still modifies `FR-02`.

Then write the reconciled deltas, the deltas to be applied: deferred units are left out, and changed units carry the approved text. A partly shipped story or scenario file, an app-local file or a `DOCUMENT` entry is reconciled as [changes-and-deltas.md](changes-and-deltas.md#deferred-stories-and-scenarios) describes. The ratified deltas stay as they were, for the archive. The reconciled deltas are working copies: the canonization PR shows their effect on the feature spec, its body holds the accounting, and the Canonized log entry records the outcome.
Then write the reconciled deltas, the deltas to be applied: deferred units are left out, and changed units carry the approved text. A story or scenario file that is partly shipped, or a whole-file unit that changed in meaning or was rebased, carries its reconciled text in its entry, so canonization writes that text at the feature root instead of moving the ratified file; it, an app-local file and a `DOCUMENT` entry are reconciled as [changes-and-deltas.md](changes-and-deltas.md#deferred-stories-and-scenarios) describes. The ratified deltas stay as they were, for the archive. The reconciled deltas are working copies: the canonization PR shows their effect on the feature spec, its body holds the accounting, and the Canonized log entry records the outcome.

### 2. Base check

Run the base check ([changes-and-deltas.md](changes-and-deltas.md#base-check)) on the reconciled deltas against the current feature spec. Each modified or removed spec unit must still match the base text the delta recorded.

If the feature spec has drifted, usually because another change was canonized after this one was ratified, the delta is rebased first, and the maintainer confirms any change in meaning. Write the rebase into the reconciled deltas only: the rebased entry records the unit as it now stands as its base text, and the change's edit on top of it as its new text. An `ADDED` ID that is now taken is renumbered.
If the feature spec has drifted, usually because another change was canonized after this one was ratified, the delta is rebased first, and the maintainer confirms any change in meaning. Write the rebase into the reconciled deltas only: the rebased entry records the unit as it now stands as its base text, and the change's edit on top of it as its new text. A rebased story or scenario file does the same, with the whole file as both. An `ADDED` ID that is now taken is renumbered.

Run it again against the latest feature spec on the default branch just before the canonization PR merges. If a change was canonized in the meantime, rebase again.

### 3. Apply the reconciled deltas

Apply the reconciled deltas to the feature spec, and move the story and scenario files the reconciled deltas list to the feature root. A split file's reconciled text is written at the feature root; a deferred file stays with the change. App-local scenario files are restored or rewritten as the contract says; they don't move.
Apply the reconciled deltas to the feature spec, and move the story and scenario files the reconciled deltas list to the feature root. A whole-file unit whose reconciled entry carries text, because it was split, changed or rebased, is written from that text at the feature root, and the change's own file stays with the change; a deferred file stays with the change. App-local scenario files are restored or rewritten as the contract says; they don't move.

Check the result before going on:

Expand All @@ -75,9 +75,27 @@ A lineage change may empty another feature's bundle; [feature-bundles.md](featur

### 4. Archive the change

Move what is left of the change to `changes/archive/YYYY-MM-DD-{change}/`, dated the day of canonization, with the ratified deltas intact. Set every document's OKF `status` in the archived change from `stable` to `deprecated`; change nothing else. Deferred story and scenario files stay in the archive, where the shaping item's copies came from.
Move what is left of the change to `changes/archive/YYYY-MM-DD-{change}/`, dated the day of canonization. The ratified deltas keep their payloads: every `Text:`, `New text:` and base text stays as ratified, never the reconciled or rebased text, so the archive shows what the maintainer approved. Deferred story and scenario files stay in the archive, where the shaping item's copies came from. In the archived documents, set OKF `status` from `stable` to `deprecated`, and change no wording.

The change is now Canonized. Regenerate the indexes from the project root, `python3 "<skill-dir>/scripts/okf-profile.py" index docs/product`, and run the profile checks.
The move breaks relative links in both directions, so the same PR updates them; a rebased link changes its path, never its label or the text around it:

- **Links into the change** from the rest of the bundle, including the back-links in the target rows of approved deferrals, whose `Deferred from` link points at a question row in the change.
- **Links out of the archived change**, which gain one directory level, including the **Deferred to** links of its deferred rows, which must still reach their open target rows ([open-questions.md](open-questions.md#deferral)).

The open-questions worked example walks both links through this move ([open-questions.md](open-questions.md#worked-example), step 3).

The change is now Canonized. From the project root, regenerate the indexes, then check them, so a link the move broke or a stale index fails here instead of on the default branch:

```bash
python3 "<skill-dir>/scripts/open-questions.py" index --pending {unconverted} docs/product
python3 "<skill-dir>/scripts/okf-profile.py" index --pending {unconverted} docs/product
python3 "<skill-dir>/scripts/open-questions.py" check --pending {unconverted} docs/product
python3 "<skill-dir>/scripts/okf-profile.py" check --pending {unconverted} docs/product
```

`--pending {unconverted}` stands for one `--pending` for each feature folder written with 0.1.0 that awaits modernization, so no command fails on such a folder or writes an index into it ([While modernization is in progress](open-questions.md#while-modernization-is-in-progress)). With no such folder, drop it.

The open-questions index drops the archived change's rows, since the change archive is history, and keeps their open target rows. The generator refuses to run while any question link does not resolve.

### 5. Write the feature-log entry

Expand All @@ -93,7 +111,7 @@ Write "Nothing deferred." in the outcome when nothing was, and leave out a field

## The canonization PR

One PR canonizes one change. It holds the applied deltas, the moved files, the archived change, the shaping items for deferrals, the Canonized log entry and the regenerated indexes. Its body holds the coverage table, the base-check result with any rebased unit, and the list of shaping items.
One PR canonizes one change. It holds the applied deltas, the moved files, the archived change with its rebased links, the links into it, the shaping items for deferrals, the Canonized log entry and the regenerated OKF and open-questions indexes. Its body holds the coverage table, the base-check result with any rebased unit, and the list of shaping items.

Opening it waits for the maintainer's approval, like every write to GitHub (`SKILL.md`, GitHub Writes). The maintainer confirms any change in meaning, any deferred item and any rebased delta before it merges, and the base check runs again just before the merge. When the project tracks changes on a board, the merge moves the change's item to Canonized ([board-mapping.md](board-mapping.md)).

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ A Shipped change cannot be dropped. Its behavior is live, so withdrawing it is a
## Naming

- `{change}` is lowercase kebab-case and names what the change does: `invite-expiry`, `decline-with-note`. A feature's first version is a change like any other; name it for what it delivers.
- `archive` is reserved: `features/{feature}/changes/archive/` holds the change archive, so a change named `archive` would be promoted into it. No change takes that name; promotion refuses it ([ratification.md](ratification.md#1-prepare-the-promotion-pr)).
- A change name is unique within its feature, including the change archive. Two features may each have a change of the same name, so a change is identified by its feature and name, written `{feature}/{change}`, such as `calendar-links/link-expiry`. Checks, reports and logs that span more than one feature name changes this way.
- While shaped, a change lives in `shaping/{feature}--{change}/`, one directory per change. `{feature}` is the feature it creates or amends. A shaping directory never holds more than one change.
- A change to an existing feature names it in its shaping document's front matter, `x-amends: {feature}`. A change that creates a feature has no `x-amends`.
Expand Down Expand Up @@ -111,8 +112,8 @@ Fences follow CommonMark. The outer fence is a run of three or more tildes (or b

| Section | Entry holds |
|---------|-------------|
| `ADDED` | `Section:` the heading, or heading path, of the feature spec section the unit joins, then `Text:` and the unit. A whole-file unit holds nothing more: its content is the file in the change's `stories/` or `scenarios/`. A reconciled entry for a split file carries `Text:` with the shipped part (see [Deferred stories and scenarios](#deferred-stories-and-scenarios)). |
| `MODIFIED` | `Base text:` and the unit as it stood when the delta was written, then `New text:` and the unit as the change leaves it. A whole-file unit holds only the base text; the new version is the file in the change. A reconciled entry for a split file adds `New text:` with the shipped part. |
| `ADDED` | `Section:` the heading, or heading path, of the feature spec section the unit joins, then `Text:` and the unit. A whole-file unit holds nothing more: its content is the file in the change's `stories/` or `scenarios/`. A reconciled entry for a changed or split file carries `Text:` with the file as canonization writes it at the feature root (see [Deferred stories and scenarios](#deferred-stories-and-scenarios)). |
| `MODIFIED` | `Base text:` and the unit as it stood when the delta was written, then `New text:` and the unit as the change leaves it. A whole-file unit holds only the base text; the new version is the file in the change. A reconciled entry for a changed, rebased or split file adds `New text:` with the file as canonization writes it at the feature root, and a rebased one also records the feature-root file as it now stands as its `Base text:`. |
| `REMOVED` | `Base text:` and the unit as it stood when the delta was written. |
| `App-local scenario files` | One entry per app-local scenario file, headed by its path from the repository root: `Base text:` with the file before the change for a revised file, nothing for an added one (see [App-local scenario files](#app-local-scenario-files)). |
| `DOCUMENT` | No `###` entry. `Text:` and the front matter, title and summary of a document the delta writes; or `Base text:` and `New text:` with the whole document, before and after, for a rewrite. A rewrite holds no other entries. |
Expand Down Expand Up @@ -195,6 +196,8 @@ Canonization accounts for each app-local file as it does for the change's other

Before it restores or rewrites a file, canonization compares it with the file at the promotion PR's merge commit; if another change has edited it since, canonization refuses and the maintainer reconciles the file. Likewise, canonization refuses a deferral whose recorded base text differs from the file at the merge commit's first parent, or that deletes a file present there: putting back a stale base would undo another change's revision. The shaping item a deferral creates starts from the file at the promotion PR's merge commit.

Dropping a Ratified change undoes its app-local edits in the drop PR, since the promotion PR made them on the default branch. For each app-local scenario file the ratified deltas list, the drop PR restores each revised file from its recorded base text and deletes each file the change added, under the same guards as a deferral: the file must still read as the promotion PR's merge commit left it, and the recorded base text must equal the file at the merge commit's first parent. If another change has edited the file since, restoring the base would undo that edit, so the drop PR refuses that file and the maintainer reconciles it, removing only the dropped change's edits and keeping the later ones. A change dropped before its promotion PR merged made no app-local edits on the default branch.

## A change's stories and scenarios

A change carries its own stories and scenarios until it is canonized. The feature root keeps only stories and scenarios of shipped behavior, so an expectation that has not shipped never sits beside shipped ones, and anyone reading `scenarios/` at the feature root reads only what the product does.
Expand All @@ -219,9 +222,11 @@ features/shared-calendars/

Canonization's accounting decides each story and scenario file, as it decides each requirement:

- **Shipped or changed:** the reconciled delta keeps the file's entry, and canonization moves the file to the feature root.
- **Shipped:** the reconciled delta keeps the file's entry as listed, and canonization moves the change's file to the feature root.
- **Changed:** the reconciled entry carries the approved file as its text, `Text:` for an added file or `New text:` for a revised one, and canonization writes that text at the feature root. The change's own file, with the ratified expectation, stays in the archived change. Moving it would publish the expectation that did not ship.
- **Rebased:** a revised file whose feature-root version drifted since the delta was written, usually because another change canonized an edit to it, fails the base check. Its reconciled entry is rebased like a spec unit, with the maintainer confirming any change in meaning: `Base text:` holds the file as it now stands at the feature root, and `New text:` holds the change's revision applied on top of it, which canonization writes at the feature root. The change's own file stays in the archived change.
- **Deferred:** the reconciled delta drops the file's entry. The file stays in the archived change, and the shaping item the deferral creates starts from a copy of it. A deferred file never reaches the feature root.
- **Partly shipped:** a file that holds both shipped and deferred scenarios is split. The reconciled entry carries the shipped scenarios as its text, `Text:` for an added file or `New text:` for a revised one, and canonization writes that text at the feature root. The change's own file, with the deferred scenarios, stays in the archived change for the shaping item. A story whose acceptance criteria shipped only in part is split the same way.
- **Partly shipped:** a file that holds both shipped and deferred scenarios is split. The reconciled entry carries the shipped scenarios as its text, `Text:` for an added file or `New text:` for a revised one, and canonization writes that text at the feature root. The change's own file, with the deferred scenarios, stays in the archived change for the shaping item. A story whose acceptance criteria shipped only in part is split the same way. A split file that also changed or was rebased carries a single text with all of it.
- **App-local scenario files:** the promotion PR edited them in place, so a deferral restores the file from its recorded base text (see [App-local scenario files](#app-local-scenario-files)).
- **`DOCUMENT` entries:** their text is reconciled like a changed unit, with the maintainer's approval. A description, summary or Facets row that describes deferred behavior is rewritten to describe only what shipped, and links to deferred facet specs, stories or scenarios are removed. A facet spec whose units are all deferred is not written: its delta is left out of the reconciled deltas and stays in the archived change. Canonization resolves every relative link in `DOCUMENT` text, including `./` forms, against the bundle as it will be after canonization, and refuses a link that does not resolve. The rule covers reference-style links: each link reference definition's target resolves the same way. A link to an existing document the change leaves alone resolves; a link to a deferred facet spec, story or scenario, to a file the change removes, or to an app-local scenario file the deferral deletes, does not. The first-version fixture, `tests/fixtures/first-version/`, defers a whole facet this way.

Expand Down
Loading