Story Statement
As a pair maintainer
I want pair itself migrated to the new structure (canonical states mapping, context-map, .pair/working/) by executing the published migration prompt
So that the migration recipe is validated end-to-end by dogfooding before being distributed
Where: pair repo (.pair/ adoption + WoW) + validation feedback into the docs migration page
Epic Context
Parent Epic: Versioning & migrazione adoption/KB #214
Status: Refined
Priority: P1 (Should-Have)
Status Workflow
- Refined: Story is detailed, estimated, and ready for development
- In Progress: Story is actively being developed
- Done: Story delivered and accepted
Acceptance Criteria
Functional Requirements
Given-When-Then Format:
-
Given the published migration page for the structural release
When its copy-paste prompt is executed on the pair repo itself
Then the migration completes using ONLY the prompt (no undocumented manual steps) — any gap found is fixed in the page first, then re-run
-
Given the migrated repo
When inspecting adoption
Then WoW carries the state-mapping section (legacy Refined ⇒ Ready), adoption/product/context-map.md exists with pair's canonical terms (Macrostato, State mapping, DoR/DoS, Risk Tier, Risk Matrix, DDR, Context Map, Checkpoint/Handoff, Macro-fase, Supervisore, Working area, Report consolidato, Marketplace, Quickstart, Process profile), and .pair/working/ exists and is excluded from KB registries
-
Given the migrated repo
When the KB version check runs and a skill session starts
Then the check reports clean and skills resolve states via the mapping (no regression on the current flow)
Business Rules
- The published prompt is the single migration path — divergence = bug in the page, not a local workaround (D20)
- Migration touches adoption/config only; no skill or KB logic changes in this story
Edge Cases and Error Handling
Definition of Done Checklist
Development Completion
Quality Assurance
Story Sizing and Sprint Readiness
Refined Story Points
Final Story Points: 5 (L)
Confidence Level: Medium
Sizing Justification: execution is cheap but validation is broad (states, context, working/, registries, skill smoke) and feeds page fixes — confirmed L(5)
Sprint Capacity Validation
Sprint Fit Assessment: yes, once prerequisites land
Total Effort Assessment: fits — Yes
Dependencies and Coordination
Story Dependencies
Prerequisite Stories: migration page (sibling, executes its prompt); version check (sibling, used to verify); structural artifacts from #202 (states/mapping), #203 (context-map), #206 (.pair/working/ + registry exclusion)
Dependent Stories: none — closes the epic loop (recipe distributed after this)
Validation and Testing Strategy
Acceptance Testing Approach
Testing Methods: scripted agent run of the published prompt; adoption-file inspection checklist; skill smoke session; re-run for idempotency
Test Data Requirements: pair repo pre-migration snapshot (branch) for comparison/rollback
Notes and Additional Context
Refinement Session Insights: D20 — "pair itself = first structured migration test; dogfooding, then the recipe ships"; canonical-terms list from the domain-model annotation (Spec G4)
Documentation Links: D20 · Spec G4 (canonical terms) · epic AC1–AC3
Technical Analysis
Implementation Approach
Technical Strategy: branch → execute published prompt with a clean agent session → inspect against checklist → fix page where the prompt fell short → re-run from snapshot → merge migrated adoption
Key Components: migration branch, adoption checklist, page feedback loop
Integration Points: docs migration page, kb-info version check, WoW state-mapping consumers
Technical Risks and Mitigation
| Risk |
Impact |
Probability |
Mitigation Strategy |
| Prerequisites slip (#202/#203/#206) |
Medium |
Medium |
story scheduled last in epic; HALT rule on missing artifacts |
| Prompt works on pair but not on consumer layouts |
Medium |
Low |
fixture consumer run already covered by the pages story; divergences noted on the page |
Task Breakdown
Checklist
Dependency Graph
T1 → T2 → T3 → T4
AC Coverage
| Task |
AC1 |
AC2 |
AC3 |
| T1 |
|
✓ |
|
| T2 |
✓ |
✓ |
|
| T3 |
✓ |
|
|
| T4 |
|
✓ |
✓ |
Story Statement
As a pair maintainer
I want pair itself migrated to the new structure (canonical states mapping, context-map,
.pair/working/) by executing the published migration promptSo that the migration recipe is validated end-to-end by dogfooding before being distributed
Where: pair repo (
.pair/adoption + WoW) + validation feedback into the docs migration pageEpic Context
Parent Epic: Versioning & migrazione adoption/KB #214
Status: Refined
Priority: P1 (Should-Have)
Status Workflow
Acceptance Criteria
Functional Requirements
Given-When-Then Format:
Given the published migration page for the structural release
When its copy-paste prompt is executed on the pair repo itself
Then the migration completes using ONLY the prompt (no undocumented manual steps) — any gap found is fixed in the page first, then re-run
Given the migrated repo
When inspecting adoption
Then WoW carries the state-mapping section (legacy
Refined ⇒ Ready),adoption/product/context-map.mdexists with pair's canonical terms (Macrostato, State mapping, DoR/DoS, Risk Tier, Risk Matrix, DDR, Context Map, Checkpoint/Handoff, Macro-fase, Supervisore, Working area, Report consolidato, Marketplace, Quickstart, Process profile), and.pair/working/exists and is excluded from KB registriesGiven the migrated repo
When the KB version check runs and a skill session starts
Then the check reports clean and skills resolve states via the mapping (no regression on the current flow)
Business Rules
Edge Cases and Error Handling
Definition of Done Checklist
Development Completion
apps/website): migration page corrected with dogfood findingsapps/pair-cli): version check passes on the migrated repo (no CLI changes expected)Quality Assurance
Story Sizing and Sprint Readiness
Refined Story Points
Final Story Points: 5 (L)
Confidence Level: Medium
Sizing Justification: execution is cheap but validation is broad (states, context, working/, registries, skill smoke) and feeds page fixes — confirmed L(5)
Sprint Capacity Validation
Sprint Fit Assessment: yes, once prerequisites land
Total Effort Assessment: fits — Yes
Dependencies and Coordination
Story Dependencies
Prerequisite Stories: migration page (sibling, executes its prompt); version check (sibling, used to verify); structural artifacts from #202 (states/mapping), #203 (context-map), #206 (
.pair/working/+ registry exclusion)Dependent Stories: none — closes the epic loop (recipe distributed after this)
Validation and Testing Strategy
Acceptance Testing Approach
Testing Methods: scripted agent run of the published prompt; adoption-file inspection checklist; skill smoke session; re-run for idempotency
Test Data Requirements: pair repo pre-migration snapshot (branch) for comparison/rollback
Notes and Additional Context
Refinement Session Insights: D20 — "pair itself = first structured migration test; dogfooding, then the recipe ships"; canonical-terms list from the domain-model annotation (Spec G4)
Documentation Links: D20 · Spec G4 (canonical terms) · epic AC1–AC3
Technical Analysis
Implementation Approach
Technical Strategy: branch → execute published prompt with a clean agent session → inspect against checklist → fix page where the prompt fell short → re-run from snapshot → merge migrated adoption
Key Components: migration branch, adoption checklist, page feedback loop
Integration Points: docs migration page,
kb-infoversion check, WoW state-mapping consumersTechnical Risks and Mitigation
Task Breakdown
Checklist
Dependency Graph
T1 → T2 → T3 → T4
AC Coverage