codex-genesis-harness 0.1.5 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.codebase/ARCHITECTURE_REVIEW_COMPLETE.md +216 -216
- package/.codebase/CURRENT_STATE.md +8 -2
- package/.codebase/FILE_NAMING_CLARIFICATION.md +161 -161
- package/.codebase/HARNESS_COMPLETENESS_AUDIT.md +613 -613
- package/.codebase/IMPLEMENTATION_COMPLETE.md +429 -429
- package/.codebase/IMPLEMENTATION_HANDOFF.md +351 -351
- package/.codebase/IMPROVEMENTS_SUMMARY.md +419 -419
- package/.codebase/PHASE3_SKILLS_NAMING_COMPLETE.md +292 -292
- package/.codebase/PHASE_DEPENDENCY_MAP.md +486 -486
- package/.codebase/QUICK_START_SPEC_IMPACT.md +456 -456
- package/.codebase/README.md +139 -139
- package/.codebase/RECOVERY_POINTS.md +83 -438
- package/.codebase/beads.json +16 -0
- package/.codex/skills/genesis-ai-provider/SKILL.md +1 -1
- package/.codex/skills/genesis-api-contract/SKILL.md +1 -1
- package/.codex/skills/genesis-api-sync/SKILL.md +354 -354
- package/.codex/skills/genesis-api-sync/checklists/api-sync-checklist.md +101 -101
- package/.codex/skills/genesis-api-sync/templates/api-change-template.md +257 -257
- package/.codex/skills/genesis-architecture/SKILL.md +1 -1
- package/.codex/skills/genesis-codebase-map/SKILL.md +1 -1
- package/.codex/skills/genesis-debug-guide/SKILL.md +479 -479
- package/.codex/skills/genesis-debug-guide/checklists/flaky-test-investigation.md +339 -339
- package/.codex/skills/genesis-debug-guide/checklists/production-bug-debug.md +210 -210
- package/.codex/skills/genesis-debug-guide/checklists/test-failure-debug.md +158 -158
- package/.codex/skills/genesis-debug-guide/observability/debug-commands.md +365 -365
- package/.codex/skills/genesis-debug-guide/playbooks/unit-test-failures.md +289 -289
- package/.codex/skills/genesis-debug-guide/templates/debug-investigation-log.md +288 -288
- package/.codex/skills/genesis-design-spec/SKILL.md +3 -3
- package/.codex/skills/genesis-docs-automation/SKILL.md +1003 -1003
- package/.codex/skills/genesis-docs-automation/checklists/docs-validation.md +359 -359
- package/.codex/skills/genesis-docs-automation/checklists/spec-alignment.md +312 -312
- package/.codex/skills/genesis-docs-automation/observability/docs-tracking.md +382 -382
- package/.codex/skills/genesis-docs-automation/playbooks/auto-update-flow.md +851 -851
- package/.codex/skills/genesis-docs-automation/playbooks/changelog-generation.md +491 -491
- package/.codex/skills/genesis-docs-automation/templates/changelog-entry-template.md +187 -187
- package/.codex/skills/genesis-docs-automation/templates/handoff-template.md +297 -297
- package/.codex/skills/genesis-harness/SKILL.md +1428 -1427
- package/.codex/skills/genesis-harness/agents/openai.yaml +7 -7
- package/.codex/skills/genesis-harness/checklists/bug-fix-qa.md +169 -169
- package/.codex/skills/genesis-harness/checklists/new-feature-qa.md +157 -157
- package/.codex/skills/genesis-harness/checklists/refactor-qa.md +216 -216
- package/.codex/skills/genesis-harness/checklists/requirements-validation.md +211 -211
- package/.codex/skills/genesis-harness/references/planning-schema.md +35 -35
- package/.codex/skills/genesis-harness/references/quality-rubric.md +21 -21
- package/.codex/skills/genesis-harness/references/research-rubric.md +41 -41
- package/.codex/skills/genesis-harness/references/workflows.md +33 -33
- package/.codex/skills/genesis-harness/resources/agents-template.md +27 -27
- package/.codex/skills/genesis-harness/resources/api-docs-template.md +32 -32
- package/.codex/skills/genesis-harness/resources/architecture-template.md +30 -30
- package/.codex/skills/genesis-harness/resources/audit-template.md +26 -26
- package/.codex/skills/genesis-harness/resources/bug-template.md +34 -34
- package/.codex/skills/genesis-harness/resources/change-impact-matrix-template.md +204 -204
- package/.codex/skills/genesis-harness/resources/check-template.md +21 -21
- package/.codex/skills/genesis-harness/resources/conventions-template.md +42 -42
- package/.codex/skills/genesis-harness/resources/decision-template.md +33 -33
- package/.codex/skills/genesis-harness/resources/design-template.md +26 -26
- package/.codex/skills/genesis-harness/resources/escalation-template.md +21 -21
- package/.codex/skills/genesis-harness/resources/feature-template.md +49 -49
- package/.codex/skills/genesis-harness/resources/foundation-phase-template.md +131 -131
- package/.codex/skills/genesis-harness/resources/integrations-template.md +32 -32
- package/.codex/skills/genesis-harness/resources/journeys-template.md +13 -13
- package/.codex/skills/genesis-harness/resources/lessons-learned-template.md +12 -12
- package/.codex/skills/genesis-harness/resources/observability-template.md +34 -34
- package/.codex/skills/genesis-harness/resources/phase-00-foundation-template.md +76 -76
- package/.codex/skills/genesis-harness/resources/phase-template.md +34 -34
- package/.codex/skills/genesis-harness/resources/pitfalls-template.md +22 -22
- package/.codex/skills/genesis-harness/resources/planning-tree-template.md +39 -39
- package/.codex/skills/genesis-harness/resources/post-implementation-guide.md +347 -347
- package/.codex/skills/genesis-harness/resources/project-template.md +38 -38
- package/.codex/skills/genesis-harness/resources/quality-score-template.md +11 -11
- package/.codex/skills/genesis-harness/resources/requirements-template.md +26 -26
- package/.codex/skills/genesis-harness/resources/research-template.md +26 -26
- package/.codex/skills/genesis-harness/resources/review-template.md +22 -22
- package/.codex/skills/genesis-harness/resources/spec-changelog-template.md +6 -6
- package/.codex/skills/genesis-harness/resources/stack-template.md +33 -33
- package/.codex/skills/genesis-harness/resources/verification-template.md +26 -26
- package/.codex/skills/genesis-harness/scripts/check-architecture-boundaries.sh +0 -0
- package/.codex/skills/genesis-harness/scripts/check-docs-sync.sh +0 -0
- package/.codex/skills/genesis-harness/scripts/check-no-debug-logs.sh +0 -0
- package/.codex/skills/genesis-harness/scripts/check-required-planning-files.sh +0 -0
- package/.codex/skills/genesis-harness/scripts/check-spec-changelog.sh +0 -0
- package/.codex/skills/genesis-harness/scripts/check-task-tracking.sh +0 -0
- package/.codex/skills/genesis-harness/scripts/compact-context.sh +0 -0
- package/.codex/skills/genesis-harness/scripts/create-adr.sh +0 -0
- package/.codex/skills/genesis-harness/scripts/create-bug.sh +0 -0
- package/.codex/skills/genesis-harness/scripts/create-feature.sh +0 -0
- package/.codex/skills/genesis-harness/scripts/detect-stack.sh +0 -0
- package/.codex/skills/genesis-harness/scripts/init-planning.sh +0 -0
- package/.codex/skills/genesis-harness/scripts/list-changed-files.sh +0 -0
- package/.codex/skills/genesis-harness/scripts/offload-log.sh +0 -0
- package/.codex/skills/genesis-harness/scripts/run-verification.sh +0 -0
- package/.codex/skills/genesis-harness/scripts/run-verify-loop.sh +0 -0
- package/.codex/skills/genesis-harness/scripts/update-state.sh +0 -0
- package/.codex/skills/genesis-harness-engineering/SKILL.md +1 -1
- package/.codex/skills/genesis-new-design/SKILL.md +2 -1
- package/.codex/skills/genesis-new-design/agents/openai.yaml +3 -3
- package/.codex/skills/genesis-observability-automation/checklists/.gitkeep +0 -0
- package/.codex/skills/genesis-observability-automation/observability/.gitkeep +0 -0
- package/.codex/skills/genesis-observability-automation/playbooks/.gitkeep +0 -0
- package/.codex/skills/genesis-observability-automation/templates/.gitkeep +0 -0
- package/.codex/skills/genesis-pipeline-orchestration/SKILL.md +1 -1
- package/.codex/skills/genesis-planning/SKILL.md +26 -1
- package/.codex/skills/genesis-planning/checklists/mvp-readiness.md +18 -0
- package/.codex/skills/genesis-planning/examples/5-phase-roadmap-example.md +43 -0
- package/.codex/skills/genesis-planning/templates/phase-1-core.md +17 -0
- package/.codex/skills/genesis-planning/templates/phase-2-auth.md +17 -0
- package/.codex/skills/genesis-planning/templates/phase-3-features.md +17 -0
- package/.codex/skills/genesis-planning/templates/phase-4-integrations.md +17 -0
- package/.codex/skills/genesis-planning/templates/phase-5-readiness.md +17 -0
- package/.codex/skills/genesis-release/SKILL.md +24 -1
- package/.codex/skills/{genesis-release-orchestration → genesis-release}/checklists/post-deployment-verification.md +274 -274
- package/.codex/skills/{genesis-release-orchestration → genesis-release}/checklists/pre-release-validation.md +220 -220
- package/.codex/skills/{genesis-release-orchestration → genesis-release}/observability/release-tracking.md +253 -253
- package/.codex/skills/{genesis-release-orchestration → genesis-release}/playbooks/canary-deployment-orchestration.md +472 -472
- package/.codex/skills/{genesis-release-orchestration → genesis-release}/playbooks/semantic-versioning-automation.md +494 -494
- package/.codex/skills/{genesis-release-orchestration → genesis-release}/templates/deployment-strategy-template.md +303 -303
- package/.codex/skills/{genesis-release-orchestration → genesis-release}/templates/release-runbook-template.md +420 -420
- package/.codex/skills/genesis-research-first/SKILL.md +237 -237
- package/.codex/skills/genesis-research-first/templates/.gitkeep +0 -0
- package/.codex/skills/genesis-spec-propagation/SKILL.md +534 -534
- package/.codex/skills/genesis-spec-propagation/checklists/phase-update-verification.md +384 -384
- package/.codex/skills/genesis-spec-propagation/checklists/spec-change-detection.md +257 -257
- package/.codex/skills/genesis-spec-propagation/observability/propagation-tracking.md +373 -373
- package/.codex/skills/genesis-spec-propagation/playbooks/breaking-change-propagation.md +692 -692
- package/.codex/skills/genesis-spec-propagation/playbooks/feature-change-propagation.md +434 -434
- package/.codex/skills/genesis-spec-propagation/templates/migration-guide-template.md +407 -407
- package/.codex/skills/{ui-ux-test-skill → genesis-ui-ux-test}/SKILL.md +1 -1
- package/.codex/skills/genesis-upgrade-design/agents/openai.yaml +3 -3
- package/.codex/skills/spec-impact-engine/SKILL.md +504 -504
- package/.codex/skills/spec-impact-engine/detect-spec-changes.sh +0 -0
- package/.codex-plugin/plugin.json +19 -19
- package/CHANGELOG.md +56 -0
- package/LICENSE +22 -22
- package/README.EN.md +780 -730
- package/README.VI.md +772 -723
- package/README.md +102 -247
- package/VERSION +2 -2
- package/bin/genesis-harness.js +695 -92
- package/package.json +9 -3
- package/scripts/README.md +342 -342
- package/scripts/compact-context.sh +0 -0
- package/scripts/contract_integrity_gate.js +83 -0
- package/scripts/detect-changes.sh +0 -0
- package/scripts/healing_telemetry.js +118 -0
- package/scripts/install.sh +5 -6
- package/scripts/offload-log.sh +0 -0
- package/scripts/prompt_sentinel.js +84 -0
- package/scripts/run-evals.sh +20 -24
- package/scripts/run-verify-loop.sh +11 -0
- package/scripts/spec_visual_sync.js +157 -0
- package/scripts/test_generator.js +142 -0
- package/scripts/transition_state.sh +0 -0
- package/scripts/uninstall.sh +2 -5
- package/scripts/validation_gates.sh +40 -1
- package/scripts/verify.sh +6 -61
- package/tests/unit/contract_integrity_gate.test.js +74 -0
- package/tests/unit/healing_telemetry.test.js +58 -0
- package/tests/unit/prompt_sentinel.test.js +50 -0
- package/tests/unit/spec_visual_sync.test.js +77 -0
- package/tests/unit/test_generator.test.js +62 -0
- package/.codex/skills/genesis-docs/SKILL.md +0 -46
- package/.codex/skills/genesis-docs/agents/openai.yaml +0 -7
- package/.codex/skills/genesis-release-orchestration/SKILL.md +0 -653
- package/.codex/skills/genesis-release-orchestration/agents/openai.yaml +0 -7
- package/.codex/skills/genesis-research/SKILL.md +0 -46
- package/.codex/skills/genesis-research/agents/openai.yaml +0 -7
- /package/.codex/skills/{genesis-docs/checklists/checklist.md → genesis-docs-automation/checklists/manual-docs-checklist.md} +0 -0
- /package/.codex/skills/{genesis-docs/examples/example.md → genesis-docs-automation/examples/manual-docs-example.md} +0 -0
- /package/.codex/skills/{genesis-docs → genesis-docs-automation}/templates/docs-update-template.md +0 -0
- /package/.codex/skills/{genesis-state-machine/SKILL.md → genesis-harness/references/state-machine.md} +0 -0
- /package/.codex/skills/{genesis-release-orchestration/examples/example.md → genesis-release/examples/orchestration-example.md} +0 -0
- /package/.codex/skills/{genesis-research → genesis-research-first}/checklists/checklist.md +0 -0
- /package/.codex/skills/{genesis-research/examples/example.md → genesis-research-first/examples/manual-research-example.md} +0 -0
- /package/.codex/skills/{genesis-research → genesis-research-first}/templates/research-note-template.md +0 -0
- /package/.codex/skills/{ui-ux-test-skill → genesis-ui-ux-test}/agents/openai.yaml +0 -0
- /package/.codex/skills/{ui-ux-test-skill → genesis-ui-ux-test}/checklists/checklist.md +0 -0
- /package/.codex/skills/{ui-ux-test-skill → genesis-ui-ux-test}/examples/example.md +0 -0
- /package/.codex/skills/{ui-ux-test-skill → genesis-ui-ux-test}/templates/playwright-test-template.md +0 -0
|
@@ -1,456 +1,456 @@
|
|
|
1
|
-
# Quick Start: Using the New Spec Impact System
|
|
2
|
-
|
|
3
|
-
**Goal**: Understand how to use the new automatic spec propagation features
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## Scenario 1: API Change During Development
|
|
8
|
-
|
|
9
|
-
### What Happens
|
|
10
|
-
|
|
11
|
-
You're in Phase 1 (Auth system). You modify an API endpoint:
|
|
12
|
-
|
|
13
|
-
```
|
|
14
|
-
Before: GET /api/users/:id → { name, email, role }
|
|
15
|
-
After: GET /api/users/:id → { id, name, email, roles[] }
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
### What You Do
|
|
19
|
-
|
|
20
|
-
```bash
|
|
21
|
-
# 1. Commit your changes
|
|
22
|
-
git add .planning/API_DOCS.md
|
|
23
|
-
git commit -m "feat: add roles array to user API endpoint"
|
|
24
|
-
git push
|
|
25
|
-
|
|
26
|
-
# OR manually trigger impact analysis
|
|
27
|
-
/spec-change .planning/API_DOCS.md
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
### What Happens Automatically
|
|
31
|
-
|
|
32
|
-
```
|
|
33
|
-
GitHub Actions triggers:
|
|
34
|
-
✓ Tests run (verify your change works)
|
|
35
|
-
✓ spec-impact-engine detects breaking change
|
|
36
|
-
✓ Finds Phase 2, 3, 4 depend on this API
|
|
37
|
-
✓ Auto-updates Phase 2 SPEC.md (your API call examples)
|
|
38
|
-
✓ Auto-updates Phase 2 TEST_CONTRACT.md (5 tests updated)
|
|
39
|
-
✓ Auto-updates Phase 3 SPEC.md (2 API calls updated)
|
|
40
|
-
✓ Auto-updates Phase 3 TEST_CONTRACT.md (8 tests updated)
|
|
41
|
-
✓ Runs tests in Phase 2 and 3 (both pass)
|
|
42
|
-
✓ Creates .codebase/IMPACT_REPORT_2026-05-30_14-30.md
|
|
43
|
-
✓ Auto-commits: "docs: auto-sync Phase 2,3 specs after API change [CI]"
|
|
44
|
-
✓ Auto-updates CURRENT_STATE.md: "Propagated to 2 phases"
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
### What You See
|
|
48
|
-
|
|
49
|
-
Email/notification:
|
|
50
|
-
```
|
|
51
|
-
✓ API Change Impact Report
|
|
52
|
-
Breaking change detected: GET /api/users/:id response format
|
|
53
|
-
|
|
54
|
-
Affected phases:
|
|
55
|
-
- Phase 2: Updated 1 spec, 5 tests ✓
|
|
56
|
-
- Phase 3: Updated 2 specs, 8 tests ✓
|
|
57
|
-
- Phase 4: 1 related API call reviewed (manual)
|
|
58
|
-
|
|
59
|
-
Timeline impact: +0 hours
|
|
60
|
-
Status: Ready to proceed
|
|
61
|
-
|
|
62
|
-
Developers: Phase 2 and 3 specs already updated!
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
---
|
|
66
|
-
|
|
67
|
-
## Scenario 2: Database Schema Change
|
|
68
|
-
|
|
69
|
-
### What Happens
|
|
70
|
-
|
|
71
|
-
You're in Phase 2 (Product Catalog). You add a field to products:
|
|
72
|
-
|
|
73
|
-
```sql
|
|
74
|
-
ALTER TABLE products ADD COLUMN category_id UUID;
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
### What You Do
|
|
78
|
-
|
|
79
|
-
```bash
|
|
80
|
-
# Update your implementation files
|
|
81
|
-
git add src/models/Product.ts
|
|
82
|
-
git add .planning/ARCHITECTURE.md
|
|
83
|
-
git commit -m "feat: add product categorization"
|
|
84
|
-
git push
|
|
85
|
-
|
|
86
|
-
# GitHub Actions triggers automatically
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
### What Happens Automatically
|
|
90
|
-
|
|
91
|
-
```
|
|
92
|
-
Spec-impact-engine:
|
|
93
|
-
✓ Detects ARCHITECTURE.md changed
|
|
94
|
-
✓ Detects database schema modified
|
|
95
|
-
✓ Severity: MEDIUM (potential downstream impact)
|
|
96
|
-
✓ Finds Phase 3 queries need category_id
|
|
97
|
-
✓ Finds Phase 4 admin dashboard needs category column
|
|
98
|
-
|
|
99
|
-
Auto-update Phase 3:
|
|
100
|
-
✓ SPEC.md: updated product queries
|
|
101
|
-
✓ TEST_CONTRACT.md: added category assertions
|
|
102
|
-
|
|
103
|
-
Flag for review Phase 4:
|
|
104
|
-
⚠️ Admin dashboard may need category column
|
|
105
|
-
⚠️ Manual review recommended
|
|
106
|
-
|
|
107
|
-
Impact report:
|
|
108
|
-
- Auto-updated: 1 phase
|
|
109
|
-
- Manual review needed: 1 phase
|
|
110
|
-
- Timeline impact: +30 min (Phase 4 review)
|
|
111
|
-
```
|
|
112
|
-
|
|
113
|
-
### What Phase 3 Developer Sees
|
|
114
|
-
|
|
115
|
-
```
|
|
116
|
-
Morning update: Phase 3 spec automatically updated!
|
|
117
|
-
|
|
118
|
-
What changed:
|
|
119
|
-
- Added: Product queries now include category_id
|
|
120
|
-
- Added: 3 new test cases for category filtering
|
|
121
|
-
- Status: Tests already passing ✓
|
|
122
|
-
|
|
123
|
-
Your action:
|
|
124
|
-
- Read updated SPEC.md (5 min)
|
|
125
|
-
- Confirm changes make sense
|
|
126
|
-
- Continue implementation
|
|
127
|
-
|
|
128
|
-
Time saved: 1 hour (you would have discovered this later)
|
|
129
|
-
```
|
|
130
|
-
|
|
131
|
-
---
|
|
132
|
-
|
|
133
|
-
## Scenario 3: Manually Trigger Impact Analysis
|
|
134
|
-
|
|
135
|
-
### When to Use
|
|
136
|
-
|
|
137
|
-
Sometimes you want to manually check impact before committing:
|
|
138
|
-
|
|
139
|
-
```bash
|
|
140
|
-
# Analyze impact of a spec change WITHOUT committing
|
|
141
|
-
/spec-change .planning/REQUIREMENTS.md
|
|
142
|
-
```
|
|
143
|
-
|
|
144
|
-
### What You Get
|
|
145
|
-
|
|
146
|
-
```
|
|
147
|
-
Spec Change Analysis
|
|
148
|
-
|
|
149
|
-
File: .planning/REQUIREMENTS.md
|
|
150
|
-
Changed section: Shopping Cart Behavior
|
|
151
|
-
|
|
152
|
-
Old spec: "Cart should persist 1 hour"
|
|
153
|
-
New spec: "Cart should persist 7 days"
|
|
154
|
-
|
|
155
|
-
Severity: LOW (not breaking, backward compatible)
|
|
156
|
-
|
|
157
|
-
Affected phases:
|
|
158
|
-
- Phase 3: Cart logic exists
|
|
159
|
-
Impact: MEDIUM (needs new cleanup job)
|
|
160
|
-
Action: Update PLAN.md, add background job task
|
|
161
|
-
|
|
162
|
-
- Phase 4: Payments uses cart
|
|
163
|
-
Impact: LOW (no change needed)
|
|
164
|
-
Action: None
|
|
165
|
-
|
|
166
|
-
- Phase 5: Admin views cart data
|
|
167
|
-
Impact: LOW (no change needed)
|
|
168
|
-
Action: None
|
|
169
|
-
|
|
170
|
-
Recommendation:
|
|
171
|
-
This change requires Phase 3 update.
|
|
172
|
-
Timeline impact: +2 hours (add cleanup job)
|
|
173
|
-
|
|
174
|
-
Ready to proceed? Run:
|
|
175
|
-
/propagate-spec
|
|
176
|
-
```
|
|
177
|
-
|
|
178
|
-
---
|
|
179
|
-
|
|
180
|
-
## Scenario 4: Resume Work After Interruption
|
|
181
|
-
|
|
182
|
-
### You Paused Phase 3 Last Week
|
|
183
|
-
|
|
184
|
-
```
|
|
185
|
-
Last week: Phase 3 implementation paused mid-way
|
|
186
|
-
|
|
187
|
-
Questions:
|
|
188
|
-
- Did Phase 1 or 2 specs change while I was gone?
|
|
189
|
-
- Are Phase 3 requirements still current?
|
|
190
|
-
- What should I work on now?
|
|
191
|
-
```
|
|
192
|
-
|
|
193
|
-
### What You Do
|
|
194
|
-
|
|
195
|
-
```bash
|
|
196
|
-
/validate-specs
|
|
197
|
-
|
|
198
|
-
# Checks all phases for alignment
|
|
199
|
-
```
|
|
200
|
-
|
|
201
|
-
### What You Get
|
|
202
|
-
|
|
203
|
-
```
|
|
204
|
-
✓ Spec Alignment Check
|
|
205
|
-
|
|
206
|
-
Phase 1 Status: ✓ Current (last updated 2 days ago)
|
|
207
|
-
Phase 2 Status: ⚠️ Stale (last updated 5 days ago)
|
|
208
|
-
- API changes: 2 endpoints modified
|
|
209
|
-
- Phase 2 specs reflect changes ✓
|
|
210
|
-
|
|
211
|
-
Phase 3 Status: ❌ MISALIGNED
|
|
212
|
-
- Depends on Phase 2 API
|
|
213
|
-
- Phase 3 spec: 5 days old
|
|
214
|
-
- Phase 2 changed: 2 days ago
|
|
215
|
-
- SPEC DRIFT DETECTED
|
|
216
|
-
|
|
217
|
-
Missing updates:
|
|
218
|
-
- Product API response format changed
|
|
219
|
-
- Phase 3 still expects old format
|
|
220
|
-
|
|
221
|
-
Action needed:
|
|
222
|
-
Run: /propagate-spec
|
|
223
|
-
Then run: Phase 3 tests
|
|
224
|
-
|
|
225
|
-
Time: 30 min to sync, 1 hour testing
|
|
226
|
-
|
|
227
|
-
Phase 4 & 5: ✓ OK (no upstream changes)
|
|
228
|
-
|
|
229
|
-
Recommendation:
|
|
230
|
-
1. Run /propagate-spec (auto-sync)
|
|
231
|
-
2. Run Phase 3 tests
|
|
232
|
-
3. Continue from RECOVERY_POINTS.md
|
|
233
|
-
```
|
|
234
|
-
|
|
235
|
-
---
|
|
236
|
-
|
|
237
|
-
## Scenario 5: Check Project Health
|
|
238
|
-
|
|
239
|
-
### What You Want to Know
|
|
240
|
-
|
|
241
|
-
```
|
|
242
|
-
- Are all phases still aligned?
|
|
243
|
-
- Any cascading failures waiting?
|
|
244
|
-
- What's the current project status?
|
|
245
|
-
- Timeline risks?
|
|
246
|
-
```
|
|
247
|
-
|
|
248
|
-
### What You Do
|
|
249
|
-
|
|
250
|
-
```bash
|
|
251
|
-
/validate-specs
|
|
252
|
-
```
|
|
253
|
-
|
|
254
|
-
### What You Get
|
|
255
|
-
|
|
256
|
-
```
|
|
257
|
-
Comprehensive Spec Validation Report
|
|
258
|
-
|
|
259
|
-
Project Health: ⚠️ MEDIUM RISK
|
|
260
|
-
2 phases need attention
|
|
261
|
-
|
|
262
|
-
Phase 1 (Auth): ✓ Current
|
|
263
|
-
Phase 2 (Products): ⚠️ Stale (5 days)
|
|
264
|
-
- Spec age: 5 days
|
|
265
|
-
- Last upstream change: 3 days ago
|
|
266
|
-
- Updates applied: NO
|
|
267
|
-
- Action: Run /propagate-spec
|
|
268
|
-
|
|
269
|
-
Phase 3 (Cart): ⚠️ BLOCKED
|
|
270
|
-
- Cannot start until Phase 2 aligned
|
|
271
|
-
- Phase 2 has 2 pending spec changes
|
|
272
|
-
- Estimated unblock time: 30 min
|
|
273
|
-
|
|
274
|
-
Phase 4 (Payments): ✓ Ready (Phase 3 not started yet)
|
|
275
|
-
Phase 5 (Admin): ✓ Waiting (Phase 4 dependency)
|
|
276
|
-
|
|
277
|
-
Critical Path: Phase 1 → Phase 2 → Phase 3 → Phase 4 → Phase 5
|
|
278
|
-
|
|
279
|
-
Timeline Impact:
|
|
280
|
-
Phase 2 misalignment: +30 min
|
|
281
|
-
Phase 3 blocked: +1.5 hours
|
|
282
|
-
|
|
283
|
-
Current delay: +2 hours from ideal timeline
|
|
284
|
-
|
|
285
|
-
Recommendations:
|
|
286
|
-
1. URGENT: Run /propagate-spec (30 min)
|
|
287
|
-
2. Validate Phase 3 tests pass (1 hour)
|
|
288
|
-
3. Unblock Phase 3 work
|
|
289
|
-
4. Project back on track
|
|
290
|
-
|
|
291
|
-
Next steps:
|
|
292
|
-
/propagate-spec
|
|
293
|
-
Then: Run Phase 2 and 3 tests
|
|
294
|
-
Then: Resume Phase 3 development
|
|
295
|
-
```
|
|
296
|
-
|
|
297
|
-
---
|
|
298
|
-
|
|
299
|
-
## Command Reference
|
|
300
|
-
|
|
301
|
-
### `/spec-change <file>`
|
|
302
|
-
|
|
303
|
-
**Purpose**: Detect impact of a single spec change
|
|
304
|
-
|
|
305
|
-
```bash
|
|
306
|
-
/spec-change .planning/API_DOCS.md
|
|
307
|
-
/spec-change .planning/ARCHITECTURE.md
|
|
308
|
-
/spec-change .planning/REQUIREMENTS.md
|
|
309
|
-
```
|
|
310
|
-
|
|
311
|
-
**Output**: Impact report with affected phases, severity, recommendations
|
|
312
|
-
|
|
313
|
-
**Time**: 1-2 minutes
|
|
314
|
-
|
|
315
|
-
---
|
|
316
|
-
|
|
317
|
-
### `/propagate-spec`
|
|
318
|
-
|
|
319
|
-
**Purpose**: Auto-update ALL downstream phases for pending spec changes
|
|
320
|
-
|
|
321
|
-
```bash
|
|
322
|
-
/propagate-spec
|
|
323
|
-
```
|
|
324
|
-
|
|
325
|
-
**What it does**:
|
|
326
|
-
1. Scans SPEC_CHANGELOG.md for unpropagated changes
|
|
327
|
-
2. Auto-updates all affected phase specs
|
|
328
|
-
3. Auto-updates all affected test contracts
|
|
329
|
-
4. Runs validation tests
|
|
330
|
-
5. Generates migration guides
|
|
331
|
-
6. Commits changes
|
|
332
|
-
7. Creates comprehensive report
|
|
333
|
-
|
|
334
|
-
**Output**: Updated phase specs, passed tests, impact report
|
|
335
|
-
|
|
336
|
-
**Time**: 5-15 minutes depending on number of phases
|
|
337
|
-
|
|
338
|
-
---
|
|
339
|
-
|
|
340
|
-
### `/validate-specs`
|
|
341
|
-
|
|
342
|
-
**Purpose**: Check all phases are aligned with dependencies
|
|
343
|
-
|
|
344
|
-
```bash
|
|
345
|
-
/validate-specs
|
|
346
|
-
```
|
|
347
|
-
|
|
348
|
-
**What it checks**:
|
|
349
|
-
1. Each phase spec matches upstream outputs
|
|
350
|
-
2. No stale specs detected
|
|
351
|
-
3. No blocking misalignments
|
|
352
|
-
4. All dependencies satisfied
|
|
353
|
-
5. Timeline cascading calculated
|
|
354
|
-
|
|
355
|
-
**Output**: Alignment report, recommendations, blockers
|
|
356
|
-
|
|
357
|
-
**Time**: 2-3 minutes
|
|
358
|
-
|
|
359
|
-
---
|
|
360
|
-
|
|
361
|
-
## Best Practices
|
|
362
|
-
|
|
363
|
-
### ✅ DO
|
|
364
|
-
|
|
365
|
-
- ✅ Commit your changes immediately after implementation
|
|
366
|
-
- ✅ Let GitHub Actions auto-sync docs
|
|
367
|
-
- ✅ Run `/validate-specs` before starting new phase
|
|
368
|
-
- ✅ Review IMPACT_REPORT.md for breaking changes
|
|
369
|
-
- ✅ Run phase tests after auto-updates
|
|
370
|
-
|
|
371
|
-
### ❌ DON'T
|
|
372
|
-
|
|
373
|
-
- ❌ Manually update downstream phase specs (auto-engine does it)
|
|
374
|
-
- ❌ Skip `/validate-specs` before phase start
|
|
375
|
-
- ❌ Commit without running tests first
|
|
376
|
-
- ❌ Ignore impact reports
|
|
377
|
-
- ❌ Work on multiple phases without validation
|
|
378
|
-
|
|
379
|
-
---
|
|
380
|
-
|
|
381
|
-
## Troubleshooting
|
|
382
|
-
|
|
383
|
-
### Specs Not Updating?
|
|
384
|
-
|
|
385
|
-
```bash
|
|
386
|
-
# Check if changes detected
|
|
387
|
-
git status
|
|
388
|
-
# Should show auto-synced files
|
|
389
|
-
|
|
390
|
-
# Check impact report
|
|
391
|
-
ls -la .codebase/IMPACT_REPORT*.md
|
|
392
|
-
|
|
393
|
-
# Manually trigger if needed
|
|
394
|
-
/propagate-spec
|
|
395
|
-
```
|
|
396
|
-
|
|
397
|
-
### Tests Failing After Auto-Update?
|
|
398
|
-
|
|
399
|
-
```bash
|
|
400
|
-
# Review what changed
|
|
401
|
-
cat .codebase/IMPACT_REPORT_*.md
|
|
402
|
-
|
|
403
|
-
# Read updated test contract
|
|
404
|
-
cat .planning/features/NNN/TEST_CONTRACT.md
|
|
405
|
-
|
|
406
|
-
# Run specific test
|
|
407
|
-
npm test -- Phase3
|
|
408
|
-
|
|
409
|
-
# If still broken, revert and review manually
|
|
410
|
-
git revert HEAD
|
|
411
|
-
/spec-change .planning/API_DOCS.md
|
|
412
|
-
```
|
|
413
|
-
|
|
414
|
-
### Need to Understand What Changed?
|
|
415
|
-
|
|
416
|
-
```bash
|
|
417
|
-
# View detailed impact report
|
|
418
|
-
cat .codebase/IMPACT_REPORT_latest.md
|
|
419
|
-
|
|
420
|
-
# Check SPEC_CHANGELOG for context
|
|
421
|
-
grep -A 5 "$(date +%Y-%m-%d)" .planning/SPEC_CHANGELOG.md
|
|
422
|
-
|
|
423
|
-
# Review git diffs
|
|
424
|
-
git diff HEAD~1 .planning/
|
|
425
|
-
```
|
|
426
|
-
|
|
427
|
-
---
|
|
428
|
-
|
|
429
|
-
## Time Tracking
|
|
430
|
-
|
|
431
|
-
**Before Automation**:
|
|
432
|
-
- Detect change: 5 min
|
|
433
|
-
- Manual update Phase 2: 1 hour
|
|
434
|
-
- Manual update Phase 3: 1.5 hours
|
|
435
|
-
- Manual update Phase 4: 45 min
|
|
436
|
-
- Test all phases: 1 hour
|
|
437
|
-
- **Total**: ~4.5 hours
|
|
438
|
-
|
|
439
|
-
**After Automation**:
|
|
440
|
-
- Commit change: 2 min
|
|
441
|
-
- Auto-detect + update: 2 min
|
|
442
|
-
- Tests run: 5 min
|
|
443
|
-
- Review impact report: 5 min
|
|
444
|
-
- **Total**: ~15 minutes
|
|
445
|
-
|
|
446
|
-
**Time Saved**: ~4 hours per spec change ✅
|
|
447
|
-
|
|
448
|
-
---
|
|
449
|
-
|
|
450
|
-
## Next: Full Harness Documentation
|
|
451
|
-
|
|
452
|
-
See:
|
|
453
|
-
- `.codex/skills/spec-impact-engine/SKILL.md` - Full technical details
|
|
454
|
-
- `.codebase/PHASE_DEPENDENCY_MAP.md` - Phase structure
|
|
455
|
-
- `.codebase/IMPLEMENTATION_COMPLETE.md` - What was built
|
|
456
|
-
- `.codex/skills/genesis-harness/SKILL.md` - Full Genesis Harness reference
|
|
1
|
+
# Quick Start: Using the New Spec Impact System
|
|
2
|
+
|
|
3
|
+
**Goal**: Understand how to use the new automatic spec propagation features
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Scenario 1: API Change During Development
|
|
8
|
+
|
|
9
|
+
### What Happens
|
|
10
|
+
|
|
11
|
+
You're in Phase 1 (Auth system). You modify an API endpoint:
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
Before: GET /api/users/:id → { name, email, role }
|
|
15
|
+
After: GET /api/users/:id → { id, name, email, roles[] }
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
### What You Do
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
# 1. Commit your changes
|
|
22
|
+
git add .planning/API_DOCS.md
|
|
23
|
+
git commit -m "feat: add roles array to user API endpoint"
|
|
24
|
+
git push
|
|
25
|
+
|
|
26
|
+
# OR manually trigger impact analysis
|
|
27
|
+
/spec-change .planning/API_DOCS.md
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### What Happens Automatically
|
|
31
|
+
|
|
32
|
+
```
|
|
33
|
+
GitHub Actions triggers:
|
|
34
|
+
✓ Tests run (verify your change works)
|
|
35
|
+
✓ spec-impact-engine detects breaking change
|
|
36
|
+
✓ Finds Phase 2, 3, 4 depend on this API
|
|
37
|
+
✓ Auto-updates Phase 2 SPEC.md (your API call examples)
|
|
38
|
+
✓ Auto-updates Phase 2 TEST_CONTRACT.md (5 tests updated)
|
|
39
|
+
✓ Auto-updates Phase 3 SPEC.md (2 API calls updated)
|
|
40
|
+
✓ Auto-updates Phase 3 TEST_CONTRACT.md (8 tests updated)
|
|
41
|
+
✓ Runs tests in Phase 2 and 3 (both pass)
|
|
42
|
+
✓ Creates .codebase/IMPACT_REPORT_2026-05-30_14-30.md
|
|
43
|
+
✓ Auto-commits: "docs: auto-sync Phase 2,3 specs after API change [CI]"
|
|
44
|
+
✓ Auto-updates CURRENT_STATE.md: "Propagated to 2 phases"
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### What You See
|
|
48
|
+
|
|
49
|
+
Email/notification:
|
|
50
|
+
```
|
|
51
|
+
✓ API Change Impact Report
|
|
52
|
+
Breaking change detected: GET /api/users/:id response format
|
|
53
|
+
|
|
54
|
+
Affected phases:
|
|
55
|
+
- Phase 2: Updated 1 spec, 5 tests ✓
|
|
56
|
+
- Phase 3: Updated 2 specs, 8 tests ✓
|
|
57
|
+
- Phase 4: 1 related API call reviewed (manual)
|
|
58
|
+
|
|
59
|
+
Timeline impact: +0 hours
|
|
60
|
+
Status: Ready to proceed
|
|
61
|
+
|
|
62
|
+
Developers: Phase 2 and 3 specs already updated!
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
---
|
|
66
|
+
|
|
67
|
+
## Scenario 2: Database Schema Change
|
|
68
|
+
|
|
69
|
+
### What Happens
|
|
70
|
+
|
|
71
|
+
You're in Phase 2 (Product Catalog). You add a field to products:
|
|
72
|
+
|
|
73
|
+
```sql
|
|
74
|
+
ALTER TABLE products ADD COLUMN category_id UUID;
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
### What You Do
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
# Update your implementation files
|
|
81
|
+
git add src/models/Product.ts
|
|
82
|
+
git add .planning/ARCHITECTURE.md
|
|
83
|
+
git commit -m "feat: add product categorization"
|
|
84
|
+
git push
|
|
85
|
+
|
|
86
|
+
# GitHub Actions triggers automatically
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
### What Happens Automatically
|
|
90
|
+
|
|
91
|
+
```
|
|
92
|
+
Spec-impact-engine:
|
|
93
|
+
✓ Detects ARCHITECTURE.md changed
|
|
94
|
+
✓ Detects database schema modified
|
|
95
|
+
✓ Severity: MEDIUM (potential downstream impact)
|
|
96
|
+
✓ Finds Phase 3 queries need category_id
|
|
97
|
+
✓ Finds Phase 4 admin dashboard needs category column
|
|
98
|
+
|
|
99
|
+
Auto-update Phase 3:
|
|
100
|
+
✓ SPEC.md: updated product queries
|
|
101
|
+
✓ TEST_CONTRACT.md: added category assertions
|
|
102
|
+
|
|
103
|
+
Flag for review Phase 4:
|
|
104
|
+
⚠️ Admin dashboard may need category column
|
|
105
|
+
⚠️ Manual review recommended
|
|
106
|
+
|
|
107
|
+
Impact report:
|
|
108
|
+
- Auto-updated: 1 phase
|
|
109
|
+
- Manual review needed: 1 phase
|
|
110
|
+
- Timeline impact: +30 min (Phase 4 review)
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
### What Phase 3 Developer Sees
|
|
114
|
+
|
|
115
|
+
```
|
|
116
|
+
Morning update: Phase 3 spec automatically updated!
|
|
117
|
+
|
|
118
|
+
What changed:
|
|
119
|
+
- Added: Product queries now include category_id
|
|
120
|
+
- Added: 3 new test cases for category filtering
|
|
121
|
+
- Status: Tests already passing ✓
|
|
122
|
+
|
|
123
|
+
Your action:
|
|
124
|
+
- Read updated SPEC.md (5 min)
|
|
125
|
+
- Confirm changes make sense
|
|
126
|
+
- Continue implementation
|
|
127
|
+
|
|
128
|
+
Time saved: 1 hour (you would have discovered this later)
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
---
|
|
132
|
+
|
|
133
|
+
## Scenario 3: Manually Trigger Impact Analysis
|
|
134
|
+
|
|
135
|
+
### When to Use
|
|
136
|
+
|
|
137
|
+
Sometimes you want to manually check impact before committing:
|
|
138
|
+
|
|
139
|
+
```bash
|
|
140
|
+
# Analyze impact of a spec change WITHOUT committing
|
|
141
|
+
/spec-change .planning/REQUIREMENTS.md
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
### What You Get
|
|
145
|
+
|
|
146
|
+
```
|
|
147
|
+
Spec Change Analysis
|
|
148
|
+
|
|
149
|
+
File: .planning/REQUIREMENTS.md
|
|
150
|
+
Changed section: Shopping Cart Behavior
|
|
151
|
+
|
|
152
|
+
Old spec: "Cart should persist 1 hour"
|
|
153
|
+
New spec: "Cart should persist 7 days"
|
|
154
|
+
|
|
155
|
+
Severity: LOW (not breaking, backward compatible)
|
|
156
|
+
|
|
157
|
+
Affected phases:
|
|
158
|
+
- Phase 3: Cart logic exists
|
|
159
|
+
Impact: MEDIUM (needs new cleanup job)
|
|
160
|
+
Action: Update PLAN.md, add background job task
|
|
161
|
+
|
|
162
|
+
- Phase 4: Payments uses cart
|
|
163
|
+
Impact: LOW (no change needed)
|
|
164
|
+
Action: None
|
|
165
|
+
|
|
166
|
+
- Phase 5: Admin views cart data
|
|
167
|
+
Impact: LOW (no change needed)
|
|
168
|
+
Action: None
|
|
169
|
+
|
|
170
|
+
Recommendation:
|
|
171
|
+
This change requires Phase 3 update.
|
|
172
|
+
Timeline impact: +2 hours (add cleanup job)
|
|
173
|
+
|
|
174
|
+
Ready to proceed? Run:
|
|
175
|
+
/propagate-spec
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
---
|
|
179
|
+
|
|
180
|
+
## Scenario 4: Resume Work After Interruption
|
|
181
|
+
|
|
182
|
+
### You Paused Phase 3 Last Week
|
|
183
|
+
|
|
184
|
+
```
|
|
185
|
+
Last week: Phase 3 implementation paused mid-way
|
|
186
|
+
|
|
187
|
+
Questions:
|
|
188
|
+
- Did Phase 1 or 2 specs change while I was gone?
|
|
189
|
+
- Are Phase 3 requirements still current?
|
|
190
|
+
- What should I work on now?
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
### What You Do
|
|
194
|
+
|
|
195
|
+
```bash
|
|
196
|
+
/validate-specs
|
|
197
|
+
|
|
198
|
+
# Checks all phases for alignment
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
### What You Get
|
|
202
|
+
|
|
203
|
+
```
|
|
204
|
+
✓ Spec Alignment Check
|
|
205
|
+
|
|
206
|
+
Phase 1 Status: ✓ Current (last updated 2 days ago)
|
|
207
|
+
Phase 2 Status: ⚠️ Stale (last updated 5 days ago)
|
|
208
|
+
- API changes: 2 endpoints modified
|
|
209
|
+
- Phase 2 specs reflect changes ✓
|
|
210
|
+
|
|
211
|
+
Phase 3 Status: ❌ MISALIGNED
|
|
212
|
+
- Depends on Phase 2 API
|
|
213
|
+
- Phase 3 spec: 5 days old
|
|
214
|
+
- Phase 2 changed: 2 days ago
|
|
215
|
+
- SPEC DRIFT DETECTED
|
|
216
|
+
|
|
217
|
+
Missing updates:
|
|
218
|
+
- Product API response format changed
|
|
219
|
+
- Phase 3 still expects old format
|
|
220
|
+
|
|
221
|
+
Action needed:
|
|
222
|
+
Run: /propagate-spec
|
|
223
|
+
Then run: Phase 3 tests
|
|
224
|
+
|
|
225
|
+
Time: 30 min to sync, 1 hour testing
|
|
226
|
+
|
|
227
|
+
Phase 4 & 5: ✓ OK (no upstream changes)
|
|
228
|
+
|
|
229
|
+
Recommendation:
|
|
230
|
+
1. Run /propagate-spec (auto-sync)
|
|
231
|
+
2. Run Phase 3 tests
|
|
232
|
+
3. Continue from RECOVERY_POINTS.md
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
---
|
|
236
|
+
|
|
237
|
+
## Scenario 5: Check Project Health
|
|
238
|
+
|
|
239
|
+
### What You Want to Know
|
|
240
|
+
|
|
241
|
+
```
|
|
242
|
+
- Are all phases still aligned?
|
|
243
|
+
- Any cascading failures waiting?
|
|
244
|
+
- What's the current project status?
|
|
245
|
+
- Timeline risks?
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
### What You Do
|
|
249
|
+
|
|
250
|
+
```bash
|
|
251
|
+
/validate-specs
|
|
252
|
+
```
|
|
253
|
+
|
|
254
|
+
### What You Get
|
|
255
|
+
|
|
256
|
+
```
|
|
257
|
+
Comprehensive Spec Validation Report
|
|
258
|
+
|
|
259
|
+
Project Health: ⚠️ MEDIUM RISK
|
|
260
|
+
2 phases need attention
|
|
261
|
+
|
|
262
|
+
Phase 1 (Auth): ✓ Current
|
|
263
|
+
Phase 2 (Products): ⚠️ Stale (5 days)
|
|
264
|
+
- Spec age: 5 days
|
|
265
|
+
- Last upstream change: 3 days ago
|
|
266
|
+
- Updates applied: NO
|
|
267
|
+
- Action: Run /propagate-spec
|
|
268
|
+
|
|
269
|
+
Phase 3 (Cart): ⚠️ BLOCKED
|
|
270
|
+
- Cannot start until Phase 2 aligned
|
|
271
|
+
- Phase 2 has 2 pending spec changes
|
|
272
|
+
- Estimated unblock time: 30 min
|
|
273
|
+
|
|
274
|
+
Phase 4 (Payments): ✓ Ready (Phase 3 not started yet)
|
|
275
|
+
Phase 5 (Admin): ✓ Waiting (Phase 4 dependency)
|
|
276
|
+
|
|
277
|
+
Critical Path: Phase 1 → Phase 2 → Phase 3 → Phase 4 → Phase 5
|
|
278
|
+
|
|
279
|
+
Timeline Impact:
|
|
280
|
+
Phase 2 misalignment: +30 min
|
|
281
|
+
Phase 3 blocked: +1.5 hours
|
|
282
|
+
|
|
283
|
+
Current delay: +2 hours from ideal timeline
|
|
284
|
+
|
|
285
|
+
Recommendations:
|
|
286
|
+
1. URGENT: Run /propagate-spec (30 min)
|
|
287
|
+
2. Validate Phase 3 tests pass (1 hour)
|
|
288
|
+
3. Unblock Phase 3 work
|
|
289
|
+
4. Project back on track
|
|
290
|
+
|
|
291
|
+
Next steps:
|
|
292
|
+
/propagate-spec
|
|
293
|
+
Then: Run Phase 2 and 3 tests
|
|
294
|
+
Then: Resume Phase 3 development
|
|
295
|
+
```
|
|
296
|
+
|
|
297
|
+
---
|
|
298
|
+
|
|
299
|
+
## Command Reference
|
|
300
|
+
|
|
301
|
+
### `/spec-change <file>`
|
|
302
|
+
|
|
303
|
+
**Purpose**: Detect impact of a single spec change
|
|
304
|
+
|
|
305
|
+
```bash
|
|
306
|
+
/spec-change .planning/API_DOCS.md
|
|
307
|
+
/spec-change .planning/ARCHITECTURE.md
|
|
308
|
+
/spec-change .planning/REQUIREMENTS.md
|
|
309
|
+
```
|
|
310
|
+
|
|
311
|
+
**Output**: Impact report with affected phases, severity, recommendations
|
|
312
|
+
|
|
313
|
+
**Time**: 1-2 minutes
|
|
314
|
+
|
|
315
|
+
---
|
|
316
|
+
|
|
317
|
+
### `/propagate-spec`
|
|
318
|
+
|
|
319
|
+
**Purpose**: Auto-update ALL downstream phases for pending spec changes
|
|
320
|
+
|
|
321
|
+
```bash
|
|
322
|
+
/propagate-spec
|
|
323
|
+
```
|
|
324
|
+
|
|
325
|
+
**What it does**:
|
|
326
|
+
1. Scans SPEC_CHANGELOG.md for unpropagated changes
|
|
327
|
+
2. Auto-updates all affected phase specs
|
|
328
|
+
3. Auto-updates all affected test contracts
|
|
329
|
+
4. Runs validation tests
|
|
330
|
+
5. Generates migration guides
|
|
331
|
+
6. Commits changes
|
|
332
|
+
7. Creates comprehensive report
|
|
333
|
+
|
|
334
|
+
**Output**: Updated phase specs, passed tests, impact report
|
|
335
|
+
|
|
336
|
+
**Time**: 5-15 minutes depending on number of phases
|
|
337
|
+
|
|
338
|
+
---
|
|
339
|
+
|
|
340
|
+
### `/validate-specs`
|
|
341
|
+
|
|
342
|
+
**Purpose**: Check all phases are aligned with dependencies
|
|
343
|
+
|
|
344
|
+
```bash
|
|
345
|
+
/validate-specs
|
|
346
|
+
```
|
|
347
|
+
|
|
348
|
+
**What it checks**:
|
|
349
|
+
1. Each phase spec matches upstream outputs
|
|
350
|
+
2. No stale specs detected
|
|
351
|
+
3. No blocking misalignments
|
|
352
|
+
4. All dependencies satisfied
|
|
353
|
+
5. Timeline cascading calculated
|
|
354
|
+
|
|
355
|
+
**Output**: Alignment report, recommendations, blockers
|
|
356
|
+
|
|
357
|
+
**Time**: 2-3 minutes
|
|
358
|
+
|
|
359
|
+
---
|
|
360
|
+
|
|
361
|
+
## Best Practices
|
|
362
|
+
|
|
363
|
+
### ✅ DO
|
|
364
|
+
|
|
365
|
+
- ✅ Commit your changes immediately after implementation
|
|
366
|
+
- ✅ Let GitHub Actions auto-sync docs
|
|
367
|
+
- ✅ Run `/validate-specs` before starting new phase
|
|
368
|
+
- ✅ Review IMPACT_REPORT.md for breaking changes
|
|
369
|
+
- ✅ Run phase tests after auto-updates
|
|
370
|
+
|
|
371
|
+
### ❌ DON'T
|
|
372
|
+
|
|
373
|
+
- ❌ Manually update downstream phase specs (auto-engine does it)
|
|
374
|
+
- ❌ Skip `/validate-specs` before phase start
|
|
375
|
+
- ❌ Commit without running tests first
|
|
376
|
+
- ❌ Ignore impact reports
|
|
377
|
+
- ❌ Work on multiple phases without validation
|
|
378
|
+
|
|
379
|
+
---
|
|
380
|
+
|
|
381
|
+
## Troubleshooting
|
|
382
|
+
|
|
383
|
+
### Specs Not Updating?
|
|
384
|
+
|
|
385
|
+
```bash
|
|
386
|
+
# Check if changes detected
|
|
387
|
+
git status
|
|
388
|
+
# Should show auto-synced files
|
|
389
|
+
|
|
390
|
+
# Check impact report
|
|
391
|
+
ls -la .codebase/IMPACT_REPORT*.md
|
|
392
|
+
|
|
393
|
+
# Manually trigger if needed
|
|
394
|
+
/propagate-spec
|
|
395
|
+
```
|
|
396
|
+
|
|
397
|
+
### Tests Failing After Auto-Update?
|
|
398
|
+
|
|
399
|
+
```bash
|
|
400
|
+
# Review what changed
|
|
401
|
+
cat .codebase/IMPACT_REPORT_*.md
|
|
402
|
+
|
|
403
|
+
# Read updated test contract
|
|
404
|
+
cat .planning/features/NNN/TEST_CONTRACT.md
|
|
405
|
+
|
|
406
|
+
# Run specific test
|
|
407
|
+
npm test -- Phase3
|
|
408
|
+
|
|
409
|
+
# If still broken, revert and review manually
|
|
410
|
+
git revert HEAD
|
|
411
|
+
/spec-change .planning/API_DOCS.md
|
|
412
|
+
```
|
|
413
|
+
|
|
414
|
+
### Need to Understand What Changed?
|
|
415
|
+
|
|
416
|
+
```bash
|
|
417
|
+
# View detailed impact report
|
|
418
|
+
cat .codebase/IMPACT_REPORT_latest.md
|
|
419
|
+
|
|
420
|
+
# Check SPEC_CHANGELOG for context
|
|
421
|
+
grep -A 5 "$(date +%Y-%m-%d)" .planning/SPEC_CHANGELOG.md
|
|
422
|
+
|
|
423
|
+
# Review git diffs
|
|
424
|
+
git diff HEAD~1 .planning/
|
|
425
|
+
```
|
|
426
|
+
|
|
427
|
+
---
|
|
428
|
+
|
|
429
|
+
## Time Tracking
|
|
430
|
+
|
|
431
|
+
**Before Automation**:
|
|
432
|
+
- Detect change: 5 min
|
|
433
|
+
- Manual update Phase 2: 1 hour
|
|
434
|
+
- Manual update Phase 3: 1.5 hours
|
|
435
|
+
- Manual update Phase 4: 45 min
|
|
436
|
+
- Test all phases: 1 hour
|
|
437
|
+
- **Total**: ~4.5 hours
|
|
438
|
+
|
|
439
|
+
**After Automation**:
|
|
440
|
+
- Commit change: 2 min
|
|
441
|
+
- Auto-detect + update: 2 min
|
|
442
|
+
- Tests run: 5 min
|
|
443
|
+
- Review impact report: 5 min
|
|
444
|
+
- **Total**: ~15 minutes
|
|
445
|
+
|
|
446
|
+
**Time Saved**: ~4 hours per spec change ✅
|
|
447
|
+
|
|
448
|
+
---
|
|
449
|
+
|
|
450
|
+
## Next: Full Harness Documentation
|
|
451
|
+
|
|
452
|
+
See:
|
|
453
|
+
- `.codex/skills/spec-impact-engine/SKILL.md` - Full technical details
|
|
454
|
+
- `.codebase/PHASE_DEPENDENCY_MAP.md` - Phase structure
|
|
455
|
+
- `.codebase/IMPLEMENTATION_COMPLETE.md` - What was built
|
|
456
|
+
- `.codex/skills/genesis-harness/SKILL.md` - Full Genesis Harness reference
|