codex-genesis-harness 0.1.6 → 0.1.8
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/COMPRESSED_CONTEXT.md +80 -0
- package/.codebase/CURRENT_STATE.md +35 -8
- package/.codebase/DEPENDENCY_GRAPH.md +14 -1
- package/.codebase/IMPLEMENTATION_HANDOFF.md +34 -336
- package/.codebase/KNOWN_PROBLEMS.md +54 -3
- package/.codebase/MODULE_INDEX.md +8 -0
- package/.codebase/PIPELINE_FLOW.md +7 -5
- package/.codebase/RECOVERY_POINTS.md +15 -431
- package/.codebase/TECH_DEBT.md +6 -0
- package/.codebase/TEST_MATRIX.md +4 -3
- package/.codebase/VISUAL_GRAPH.md +127 -0
- package/.codebase/beads.json +16 -0
- package/.codebase/context-policy.json +68 -0
- package/.codebase/memories/lessons_learned.md +21 -0
- package/.codebase/memories/preferences.md +17 -0
- package/.codebase/state.json +45 -24
- 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 +1 -1
- package/.codex/skills/genesis-architecture/SKILL.md +6 -1
- package/.codex/skills/genesis-codebase-map/SKILL.md +1 -1
- package/.codex/skills/genesis-debug-guide/SKILL.md +11 -5
- package/.codex/skills/genesis-design-spec/SKILL.md +3 -3
- package/.codex/skills/genesis-docs-automation/SKILL.md +52 -973
- package/.codex/skills/genesis-executing-plans/SKILL.md +54 -0
- package/.codex/skills/genesis-executing-plans/agents/openai.yaml +6 -0
- package/.codex/skills/genesis-executing-plans/checklists/.gitkeep +0 -0
- package/.codex/skills/genesis-executing-plans/examples/.gitkeep +0 -0
- package/.codex/skills/genesis-executing-plans/templates/.gitkeep +0 -0
- package/.codex/skills/genesis-harness/SKILL.md +64 -1384
- package/.codex/skills/genesis-harness/scripts/check-docs-sync.sh +3 -3
- package/.codex/skills/genesis-harness/scripts/init-planning.sh +1 -1
- package/.codex/skills/genesis-harness-engineering/SKILL.md +1 -1
- package/.codex/skills/genesis-new-design/SKILL.md +6 -2
- package/.codex/skills/genesis-new-design/agents/openai.yaml +2 -0
- package/.codex/skills/genesis-observability-automation/SKILL.md +69 -303
- package/.codex/skills/genesis-observability-automation/references/common-mistakes-and-recovery.md +84 -0
- package/.codex/skills/genesis-observability-automation/references/workflow-phases.md +78 -0
- package/.codex/skills/genesis-performance-profiling/SKILL.md +1 -22
- package/.codex/skills/genesis-performance-profiling/agents/openai.yaml +1 -1
- package/.codex/skills/genesis-pipeline-orchestration/SKILL.md +1 -1
- package/.codex/skills/genesis-planning/SKILL.md +31 -1
- package/.codex/skills/genesis-release/SKILL.md +29 -1
- package/.codex/skills/genesis-research-first/SKILL.md +6 -0
- package/.codex/skills/genesis-spec-propagation/SKILL.md +52 -504
- package/.codex/skills/genesis-test-driven-development/SKILL.md +55 -0
- package/.codex/skills/genesis-test-driven-development/agents/openai.yaml +6 -0
- package/.codex/skills/genesis-test-driven-development/checklists/.gitkeep +0 -0
- package/.codex/skills/genesis-test-driven-development/examples/.gitkeep +0 -0
- package/.codex/skills/genesis-test-driven-development/templates/.gitkeep +0 -0
- package/.codex/skills/{ui-ux-test-skill → genesis-ui-ux-test}/SKILL.md +1 -1
- package/.codex/skills/genesis-upgrade-design/SKILL.md +4 -2
- package/.codex/skills/genesis-upgrade-design/agents/openai.yaml +2 -0
- package/.codex/skills/genesis-using-git-worktrees/SKILL.md +54 -0
- package/.codex/skills/genesis-using-git-worktrees/agents/openai.yaml +6 -0
- package/.codex/skills/genesis-using-git-worktrees/checklists/.gitkeep +0 -0
- package/.codex/skills/genesis-using-git-worktrees/examples/.gitkeep +0 -0
- package/.codex/skills/genesis-using-git-worktrees/templates/.gitkeep +0 -0
- package/.codex/skills/genesis-verification-before-completion/SKILL.md +53 -0
- package/.codex/skills/genesis-verification-before-completion/agents/openai.yaml +6 -0
- package/.codex/skills/genesis-verification-before-completion/checklists/.gitkeep +0 -0
- package/.codex/skills/genesis-verification-before-completion/examples/.gitkeep +0 -0
- package/.codex/skills/genesis-verification-before-completion/templates/.gitkeep +0 -0
- package/.codex/skills/spec-impact-engine/SKILL.md +77 -500
- package/.codex/skills/spec-impact-engine/checklists/checklist.md +10 -0
- package/.codex-plugin/plugin.json +3 -4
- package/CHANGELOG.md +17 -0
- package/README.EN.md +33 -22
- package/README.VI.md +36 -24
- package/README.md +46 -8
- package/VERSION +1 -1
- package/bin/genesis-harness.js +1337 -7
- package/contracts/features/registry-schema.json +15 -0
- package/contracts/observability/agent-run-schema.json +34 -0
- package/contracts/observability/failure-schema.json +35 -0
- package/contracts/ui/auth/login-screen-contract.json +43 -0
- package/features/REGISTRY.md +63 -0
- package/features/SCOPE-template.md +65 -0
- package/fixtures/planning/MOCKUP_PROMPT_TEMPLATE.md +16 -0
- package/observability/agent-runs/sample-run.json +13 -0
- package/observability/decision-logs/sample-decision.md +43 -0
- package/observability/failures/sample-failure.json +12 -0
- package/package.json +9 -3
- package/playwright/e2e/app-template.spec.js +37 -0
- package/playwright/e2e/auth/login-screen.spec.js +65 -0
- package/playwright/e2e/web-template.spec.js +28 -0
- package/scripts/check-scope.sh +100 -0
- package/scripts/cold-start-check.js +133 -0
- package/scripts/install.sh +6 -6
- package/scripts/prompt_sentinel.js +35 -4
- package/scripts/run-evals.sh +137 -26
- package/scripts/scratch_parser.js +49 -0
- package/scripts/spec_visual_sync.js +1 -1
- package/scripts/test_generator.js +2 -2
- package/scripts/uninstall.sh +6 -6
- package/scripts/verify.sh +21 -66
- package/tests/integration/cli-smoke.test.js +103 -0
- package/tests/unit/feature_registry.test.js +152 -0
- package/tests/unit/prompt_sentinel.test.js +1 -1
- package/tests/unit/spec_visual_sync.test.js +1 -1
- package/tests/unit/test_generator.test.js +1 -1
- package/.codex/skills/genesis-docs/SKILL.md +0 -46
- package/.codex/skills/genesis-docs/agents/openai.yaml +0 -7
- package/.codex/skills/genesis-mvp-planning/SKILL.md +0 -114
- package/.codex/skills/genesis-mvp-planning/agents/openai.yaml +0 -6
- 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/playwright/e2e/e2e-template.md +0 -4
- /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-mvp-planning → genesis-planning}/checklists/mvp-readiness.md +0 -0
- /package/.codex/skills/{genesis-mvp-planning → genesis-planning}/examples/5-phase-roadmap-example.md +0 -0
- /package/.codex/skills/{genesis-mvp-planning → genesis-planning}/templates/phase-1-core.md +0 -0
- /package/.codex/skills/{genesis-mvp-planning → genesis-planning}/templates/phase-2-auth.md +0 -0
- /package/.codex/skills/{genesis-mvp-planning → genesis-planning}/templates/phase-3-features.md +0 -0
- /package/.codex/skills/{genesis-mvp-planning → genesis-planning}/templates/phase-4-integrations.md +0 -0
- /package/.codex/skills/{genesis-mvp-planning → genesis-planning}/templates/phase-5-readiness.md +0 -0
- /package/.codex/skills/{genesis-release-orchestration → genesis-release}/checklists/post-deployment-verification.md +0 -0
- /package/.codex/skills/{genesis-release-orchestration → genesis-release}/checklists/pre-release-validation.md +0 -0
- /package/.codex/skills/{genesis-release-orchestration/examples/example.md → genesis-release/examples/orchestration-example.md} +0 -0
- /package/.codex/skills/{genesis-release-orchestration → genesis-release}/observability/release-tracking.md +0 -0
- /package/.codex/skills/{genesis-release-orchestration → genesis-release}/playbooks/canary-deployment-orchestration.md +0 -0
- /package/.codex/skills/{genesis-release-orchestration → genesis-release}/playbooks/semantic-versioning-automation.md +0 -0
- /package/.codex/skills/{genesis-release-orchestration → genesis-release}/templates/deployment-strategy-template.md +0 -0
- /package/.codex/skills/{genesis-release-orchestration → genesis-release}/templates/release-runbook-template.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,504 +1,81 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: spec-impact-engine
|
|
3
|
-
description: Automatically detect specification changes, calculate impact severity on downstream
|
|
3
|
+
description: Automatically detect specification changes, calculate impact severity on downstream phases, generate migration guidance, and prevent cascading rework.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Spec Impact Engine
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
-
|
|
19
|
-
-
|
|
20
|
-
-
|
|
21
|
-
|
|
22
|
-
##
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
-
|
|
30
|
-
-
|
|
31
|
-
-
|
|
32
|
-
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
-
|
|
46
|
-
-
|
|
47
|
-
- `.
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
},
|
|
83
|
-
phase3: {
|
|
84
|
-
requires: ["user_api_from_phase1", "product_catalog_from_phase2"],
|
|
85
|
-
depends_on: ["phase1", "phase2"],
|
|
86
|
-
provides: ["shopping_cart", "order_api"],
|
|
87
|
-
provides_to: ["phase4", "phase5"]
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
**Located in:** `.codebase/PHASE_DEPENDENCY_MAP.md` (created during `/init`)
|
|
93
|
-
|
|
94
|
-
### Phase 3: Impact Calculation
|
|
95
|
-
|
|
96
|
-
**For each change, identifies:**
|
|
97
|
-
|
|
98
|
-
```
|
|
99
|
-
Change: Phase 1 API endpoint signature changed
|
|
100
|
-
↓
|
|
101
|
-
Query: Which phases import Phase 1 API?
|
|
102
|
-
↓
|
|
103
|
-
Result: Phase 2, Phase 3, Phase 4 all depend on Phase 1 API
|
|
104
|
-
↓
|
|
105
|
-
Impact chain:
|
|
106
|
-
- Phase 2: MEDIUM impact (must update TEST_CONTRACT.md)
|
|
107
|
-
- Phase 3: HIGH impact (must update SPEC.md + TEST_CONTRACT.md)
|
|
108
|
-
- Phase 4: MEDIUM impact (may need migration code)
|
|
109
|
-
↓
|
|
110
|
-
Recommendation: Update in order: Phase 2 → Phase 3 → Phase 4
|
|
111
|
-
```
|
|
112
|
-
|
|
113
|
-
### Phase 4: Auto-Update Execution
|
|
114
|
-
|
|
115
|
-
**AUTO-UPDATE checklist for each affected phase:**
|
|
116
|
-
|
|
117
|
-
```markdown
|
|
118
|
-
## Affected Phases: Phase 2, Phase 3, Phase 4
|
|
119
|
-
|
|
120
|
-
### Phase 2 (.planning/features/002-product-catalog/)
|
|
121
|
-
- [ ] Update SPEC.md → Replace old API call signature
|
|
122
|
-
- [ ] Update TEST_CONTRACT.md → Update test expectations
|
|
123
|
-
- [ ] Update PLAN.md → Note breaking change requires update
|
|
124
|
-
- [ ] Create migration note: "Phase 1 API changed, updated tests"
|
|
125
|
-
- [ ] Validate: Run phase 2 tests locally
|
|
126
|
-
- [ ] Status: READY FOR RESUME
|
|
127
|
-
|
|
128
|
-
### Phase 3 (.planning/features/003-shopping-cart/)
|
|
129
|
-
- [ ] Update SPEC.md → Replace 2 places using Phase 1 API
|
|
130
|
-
- [ ] Update IMPACT.md → Document dependency on Phase 1
|
|
131
|
-
- [ ] Update TEST_CONTRACT.md → 5 tests need updating
|
|
132
|
-
- [ ] Update PLAN.md → New migration steps added
|
|
133
|
-
- [ ] Create migration guide for Phase 3 → Phase 4
|
|
134
|
-
- [ ] Validate: Run phase 3 tests locally
|
|
135
|
-
- [ ] Status: READY FOR RESUME
|
|
136
|
-
|
|
137
|
-
### Phase 4 (.planning/phases/04-payments/)
|
|
138
|
-
- [ ] Update PLAN.md → Note Phase 1 change may affect token validation
|
|
139
|
-
- [ ] Review security implications
|
|
140
|
-
- [ ] Check if migration code needed
|
|
141
|
-
- [ ] Status: REVIEW REQUIRED
|
|
142
|
-
```
|
|
143
|
-
|
|
144
|
-
### Phase 5: Verification & Notification
|
|
145
|
-
|
|
146
|
-
**Automatically:**
|
|
147
|
-
- ✅ Runs affected phase tests
|
|
148
|
-
- ✅ Checks for broken imports
|
|
149
|
-
- ✅ Validates schema compatibility
|
|
150
|
-
- ✅ Generates migration guides
|
|
151
|
-
- ✅ Creates notification with impact summary
|
|
152
|
-
|
|
153
|
-
---
|
|
154
|
-
|
|
155
|
-
## Impact Report Format
|
|
156
|
-
|
|
157
|
-
After detection, generates `.codebase/IMPACT_REPORT_<timestamp>.md`:
|
|
158
|
-
|
|
159
|
-
```markdown
|
|
160
|
-
# Spec Change Impact Report
|
|
161
|
-
|
|
162
|
-
**Date**: 2026-05-30
|
|
163
|
-
**Change**: API endpoint signature updated
|
|
164
|
-
**Severity**: HIGH (breaking change)
|
|
165
|
-
**Detection**: Phase 1 API_DOCS.md changed
|
|
166
|
-
|
|
167
|
-
## Summary
|
|
168
|
-
|
|
169
|
-
Phase 1 endpoint `/api/users/:id` response format changed:
|
|
170
|
-
- OLD: `{ name, email, role }`
|
|
171
|
-
- NEW: `{ id, name, email, roles[] }`
|
|
172
|
-
|
|
173
|
-
This is a **BREAKING CHANGE** affecting 3 downstream phases.
|
|
174
|
-
|
|
175
|
-
## Affected Phases
|
|
176
|
-
|
|
177
|
-
| Phase | Dependency | Impact | Action | Status |
|
|
178
|
-
|-------|-----------|--------|--------|--------|
|
|
179
|
-
| Phase 2 | Imports user_api | MEDIUM | Update 1 spec, 3 tests | ⚠️ NEEDS UPDATE |
|
|
180
|
-
| Phase 3 | Imports user_api | HIGH | Update 2 specs, 5 tests | ⚠️ NEEDS UPDATE |
|
|
181
|
-
| Phase 4 | Imports user_api | LOW | Review only | ⚠️ REVIEW |
|
|
182
|
-
| Phase 5 | Indirect via Phase 4 | LOW | N/A | ✅ OK |
|
|
183
|
-
|
|
184
|
-
## Migration Strategy
|
|
185
|
-
|
|
186
|
-
**Recommended execution order:**
|
|
187
|
-
|
|
188
|
-
1. ✅ Phase 1: Already updated (2026-05-30 14:00)
|
|
189
|
-
2. → Phase 2: Update required (est. 30 min)
|
|
190
|
-
3. → Phase 3: Update required (est. 1 hour)
|
|
191
|
-
4. → Phase 4: Review required (est. 15 min)
|
|
192
|
-
5. → Phase 5: No action needed
|
|
193
|
-
|
|
194
|
-
**Total update time**: ~2 hours
|
|
195
|
-
|
|
196
|
-
## Rollback Plan
|
|
197
|
-
|
|
198
|
-
If Phase 2 update fails:
|
|
199
|
-
```bash
|
|
200
|
-
git checkout HEAD -- .planning/features/002-product-catalog/
|
|
201
|
-
# Then revert Phase 1 change if possible
|
|
202
|
-
```
|
|
203
|
-
|
|
204
|
-
## Auto-Generated Updates
|
|
205
|
-
|
|
206
|
-
- [ ] Phase 2 SPEC.md updated
|
|
207
|
-
- [ ] Phase 2 TEST_CONTRACT.md updated
|
|
208
|
-
- [ ] Phase 3 SPEC.md updated
|
|
209
|
-
- [ ] Phase 3 TEST_CONTRACT.md updated
|
|
210
|
-
- [ ] Phase 4 PLAN.md reviewed
|
|
211
|
-
- [ ] All tests passing
|
|
212
|
-
- [ ] Migration guide created
|
|
213
|
-
- [ ] SPEC_CHANGELOG.md entry created
|
|
214
|
-
|
|
215
|
-
## Validation
|
|
216
|
-
|
|
217
|
-
All affected phase tests must pass before proceeding:
|
|
218
|
-
|
|
219
|
-
```bash
|
|
220
|
-
cd .planning/features/002-product-catalog && npm test
|
|
221
|
-
cd .planning/features/003-shopping-cart && npm test
|
|
222
|
-
# Both passing ✓
|
|
223
|
-
```
|
|
224
|
-
|
|
225
|
-
## Timeline Impact
|
|
226
|
-
|
|
227
|
-
- Phases delayed: Phase 2 (1 hour), Phase 3 (1 hour)
|
|
228
|
-
- ROADMAP.md timeline may need adjustment
|
|
229
|
-
- Critical path recalculation needed
|
|
230
|
-
|
|
231
|
-
## Sign-off
|
|
232
|
-
|
|
233
|
-
- [ ] Developer reviews impact report
|
|
234
|
-
- [ ] Auto-updates validated
|
|
235
|
-
- [ ] Tests passing
|
|
236
|
-
- [ ] Ready to proceed
|
|
237
|
-
```
|
|
238
|
-
|
|
239
|
-
---
|
|
240
|
-
|
|
241
|
-
## Integration with Genesis Harness
|
|
242
|
-
|
|
243
|
-
### New Workflows
|
|
244
|
-
|
|
245
|
-
#### `/spec-change` Command
|
|
246
|
-
|
|
247
|
-
```bash
|
|
248
|
-
/spec-change <changed_file>
|
|
249
|
-
|
|
250
|
-
# Example:
|
|
251
|
-
/spec-change .planning/API_DOCS.md
|
|
252
|
-
|
|
253
|
-
# Automatically:
|
|
254
|
-
1. Detect what changed
|
|
255
|
-
2. Calculate impact
|
|
256
|
-
3. Identify affected phases
|
|
257
|
-
4. Generate impact report
|
|
258
|
-
5. Offer to auto-update downstream phases
|
|
259
|
-
6. Run validation tests
|
|
260
|
-
```
|
|
261
|
-
|
|
262
|
-
#### `/propagate-spec` Command
|
|
263
|
-
|
|
264
|
-
```bash
|
|
265
|
-
/propagate-spec
|
|
266
|
-
|
|
267
|
-
# Automatically:
|
|
268
|
-
1. Check SPEC_CHANGELOG.md for unpropagated changes
|
|
269
|
-
2. Find all affected phases
|
|
270
|
-
3. Update all downstream phase specs
|
|
271
|
-
4. Run all affected phase tests
|
|
272
|
-
5. Generate migration guides
|
|
273
|
-
6. Update ROADMAP.md timelines
|
|
274
|
-
```
|
|
275
|
-
|
|
276
|
-
#### `/validate-specs` Command
|
|
277
|
-
|
|
278
|
-
```bash
|
|
279
|
-
/validate-specs
|
|
280
|
-
|
|
281
|
-
# Automatically:
|
|
282
|
-
1. Check all phases for spec misalignments
|
|
283
|
-
2. Find phases depending on changed specs
|
|
284
|
-
3. Report any spec drifts
|
|
285
|
-
4. Suggest updates needed
|
|
286
|
-
5. Create blockers if critical misalignment found
|
|
287
|
-
```
|
|
288
|
-
|
|
289
|
-
### Integration Points
|
|
290
|
-
|
|
291
|
-
**On `/new-feature` completion:**
|
|
292
|
-
```
|
|
293
|
-
1. Implementation passes tests
|
|
294
|
-
2. Docs sync (existing workflow)
|
|
295
|
-
3. NEW: Run spec-impact-engine
|
|
296
|
-
4. NEW: Detect downstream impact
|
|
297
|
-
5. NEW: Auto-update affected phases
|
|
298
|
-
6. NEW: Run validation on all phases
|
|
299
|
-
7. Completion
|
|
300
|
-
```
|
|
301
|
-
|
|
302
|
-
**On `/api-sync` completion:**
|
|
303
|
-
```
|
|
304
|
-
1. API contracts updated
|
|
305
|
-
2. Breaking changes identified
|
|
306
|
-
3. NEW: Run spec-impact-engine
|
|
307
|
-
4. NEW: Propagate to downstream phases
|
|
308
|
-
5. NEW: Generate migration guides
|
|
309
|
-
6. NEW: Update ROADMAP.md
|
|
310
|
-
```
|
|
311
|
-
|
|
312
|
-
---
|
|
313
|
-
|
|
314
|
-
## Files Created By Skill
|
|
315
|
-
|
|
316
|
-
### Core Detection Engine
|
|
317
|
-
|
|
318
|
-
**`.codex/skills/spec-impact-engine/engine.js`** (200+ lines)
|
|
319
|
-
- Detects file changes
|
|
320
|
-
- Compares old vs new content
|
|
321
|
-
- Identifies breaking changes
|
|
322
|
-
- Calculates severity
|
|
323
|
-
|
|
324
|
-
**`.codex/skills/spec-impact-engine/dependency-analyzer.js`** (150+ lines)
|
|
325
|
-
- Maps phase dependencies
|
|
326
|
-
- Calculates impact chain
|
|
327
|
-
- Identifies affected phases
|
|
328
|
-
- Suggests update order
|
|
329
|
-
|
|
330
|
-
**`.codex/skills/spec-impact-engine/auto-updater.js`** (180+ lines)
|
|
331
|
-
- Auto-updates dependent phase specs
|
|
332
|
-
- Runs validation tests
|
|
333
|
-
- Generates migration guides
|
|
334
|
-
- Creates notifications
|
|
335
|
-
|
|
336
|
-
### Templates
|
|
337
|
-
|
|
338
|
-
**`.codex/skills/spec-impact-engine/templates/impact-report.md`**
|
|
339
|
-
- Impact report template
|
|
340
|
-
- Affected phases table
|
|
341
|
-
- Migration strategy section
|
|
342
|
-
- Sign-off checklist
|
|
343
|
-
|
|
344
|
-
**`.codex/skills/spec-impact-engine/templates/migration-guide.md`**
|
|
345
|
-
- Before/after examples
|
|
346
|
-
- Step-by-step migration
|
|
347
|
-
- Rollback procedures
|
|
348
|
-
- Testing checklist
|
|
349
|
-
|
|
350
|
-
### Configuration
|
|
351
|
-
|
|
352
|
-
**`.codebase/PHASE_DEPENDENCY_MAP.md`**
|
|
353
|
-
- Created during `/init`
|
|
354
|
-
- Maps which phases depend on which
|
|
355
|
-
- Updated when phases change
|
|
356
|
-
- Used by impact engine for calculations
|
|
357
|
-
|
|
358
|
-
---
|
|
359
|
-
|
|
360
|
-
## Example: API Breaking Change
|
|
361
|
-
|
|
362
|
-
### Scenario
|
|
363
|
-
|
|
364
|
-
Phase 1 API endpoint changes:
|
|
365
|
-
|
|
366
|
-
```
|
|
367
|
-
Before: GET /api/users/:id
|
|
368
|
-
Response: { name, email, role }
|
|
369
|
-
|
|
370
|
-
After: GET /api/users/:id
|
|
371
|
-
Response: { id, name, email, roles[] }
|
|
372
|
-
```
|
|
373
|
-
|
|
374
|
-
### What Happens
|
|
375
|
-
|
|
376
|
-
**Step 1: Detect**
|
|
377
|
-
```
|
|
378
|
-
User runs: /spec-change .planning/API_DOCS.md
|
|
379
|
-
Engine detects: API_DOCS.md has breaking change
|
|
380
|
-
```
|
|
381
|
-
|
|
382
|
-
**Step 2: Analyze**
|
|
383
|
-
```
|
|
384
|
-
Engine finds: Phase 2 and Phase 3 depend on /api/users/:id
|
|
385
|
-
Impact: Both phases need updates
|
|
386
|
-
```
|
|
387
|
-
|
|
388
|
-
**Step 3: Auto-Update**
|
|
389
|
-
```
|
|
390
|
-
Phase 2 SPEC.md:
|
|
391
|
-
OLD: "Call /api/users/:id to get { name, email, role }"
|
|
392
|
-
NEW: "Call /api/users/:id to get { id, name, email, roles[] }"
|
|
393
|
-
|
|
394
|
-
Phase 2 TEST_CONTRACT.md:
|
|
395
|
-
OLD: expect(response.role).toExist()
|
|
396
|
-
NEW: expect(response.roles).toBeArray()
|
|
397
|
-
|
|
398
|
-
Phase 3 similar updates...
|
|
399
|
-
```
|
|
400
|
-
|
|
401
|
-
**Step 4: Validate**
|
|
402
|
-
```
|
|
403
|
-
Run: npm test in Phase 2
|
|
404
|
-
Result: ✓ All tests passing
|
|
405
|
-
Run: npm test in Phase 3
|
|
406
|
-
Result: ✓ All tests passing
|
|
407
|
-
```
|
|
408
|
-
|
|
409
|
-
**Step 5: Report**
|
|
410
|
-
```
|
|
411
|
-
Create: IMPACT_REPORT_2026-05-30_14-30-00.md
|
|
412
|
-
Shows: 2 phases updated, 2 hours timeline impact
|
|
413
|
-
```
|
|
414
|
-
|
|
415
|
-
---
|
|
416
|
-
|
|
417
|
-
## Configuration
|
|
418
|
-
|
|
419
|
-
### `.codebase/PHASE_DEPENDENCY_MAP.md`
|
|
420
|
-
|
|
421
|
-
```yaml
|
|
422
|
-
phases:
|
|
423
|
-
phase_1:
|
|
424
|
-
name: "Authentication & User API"
|
|
425
|
-
provides:
|
|
426
|
-
- auth_system
|
|
427
|
-
- user_api
|
|
428
|
-
- jwt_tokens
|
|
429
|
-
- user_model
|
|
430
|
-
provides_to:
|
|
431
|
-
- phase_2
|
|
432
|
-
- phase_3
|
|
433
|
-
- phase_4
|
|
434
|
-
- phase_5
|
|
435
|
-
|
|
436
|
-
phase_2:
|
|
437
|
-
name: "Product Catalog"
|
|
438
|
-
requires:
|
|
439
|
-
- user_api_from_phase_1
|
|
440
|
-
depends_on:
|
|
441
|
-
- phase_1
|
|
442
|
-
provides:
|
|
443
|
-
- product_catalog_api
|
|
444
|
-
- search_api
|
|
445
|
-
- product_model
|
|
446
|
-
provides_to:
|
|
447
|
-
- phase_3
|
|
448
|
-
- phase_4
|
|
449
|
-
|
|
450
|
-
phase_3:
|
|
451
|
-
name: "Shopping Cart & Orders"
|
|
452
|
-
requires:
|
|
453
|
-
- user_api_from_phase_1
|
|
454
|
-
- product_catalog_from_phase_2
|
|
455
|
-
depends_on:
|
|
456
|
-
- phase_1
|
|
457
|
-
- phase_2
|
|
458
|
-
provides:
|
|
459
|
-
- shopping_cart_api
|
|
460
|
-
- order_api
|
|
461
|
-
provides_to:
|
|
462
|
-
- phase_4
|
|
463
|
-
|
|
464
|
-
breaking_change_rules:
|
|
465
|
-
- if: "API endpoint signature changes"
|
|
466
|
-
then: "HIGH severity, affects all dependent phases"
|
|
467
|
-
|
|
468
|
-
- if: "Database schema changes"
|
|
469
|
-
then: "MEDIUM severity, affects phases using schema"
|
|
470
|
-
|
|
471
|
-
- if: "Authentication method changes"
|
|
472
|
-
then: "HIGH severity, affects all phases"
|
|
473
|
-
```
|
|
474
|
-
|
|
475
|
-
---
|
|
476
|
-
|
|
477
|
-
## Benefits
|
|
478
|
-
|
|
479
|
-
✅ **Prevents cascading rework** - Downstream phases auto-updated
|
|
480
|
-
✅ **Catches breaking changes** - Before they break dependent phases
|
|
481
|
-
✅ **Saves time** - 30-60 min manual work → automatic
|
|
482
|
-
✅ **Improves reliability** - No more discovering issues mid-phase
|
|
483
|
-
✅ **Enables safe refactoring** - Know exactly what breaks
|
|
484
|
-
✅ **Maintains timeline** - Can recalculate impact on schedule
|
|
485
|
-
|
|
486
|
-
---
|
|
487
|
-
|
|
488
|
-
## Next: Implementation Artifacts
|
|
489
|
-
|
|
490
|
-
This skill generates/updates:
|
|
491
|
-
1. `.codebase/IMPACT_REPORT_<timestamp>.md` - Detailed impact analysis
|
|
492
|
-
2. `.planning/SPEC_CHANGELOG.md` - Auto-entries for all changes
|
|
493
|
-
3. `.planning/features/*/SPEC.md` - Auto-updates for dependent phases
|
|
494
|
-
4. `.planning/ROADMAP.md` - Timeline recalculation if needed
|
|
495
|
-
5. `.planning/STATE.md` - Updated with spec change status
|
|
496
|
-
6. Migration guides for each affected phase
|
|
497
|
-
7. Test updates for all dependent phases
|
|
498
|
-
|
|
499
|
-
---
|
|
500
|
-
|
|
501
|
-
**Status**: Ready for integration
|
|
502
|
-
**Integration Point**: `/new-feature`, `/api-sync`, `/spec-change` commands
|
|
503
|
-
**Automation Level**: 90% - Detects, analyzes, and auto-updates
|
|
504
|
-
**Manual Required**: Final review and sign-off by developer
|
|
6
|
+
# Spec Impact Engine
|
|
7
|
+
|
|
8
|
+
## Purpose
|
|
9
|
+
Classify spec changes, calculate downstream impact, and produce an actionable propagation report before dependent implementation continues.
|
|
10
|
+
|
|
11
|
+
## When to use
|
|
12
|
+
- A requirement, API, database, UI, auth, config, or integration spec changes.
|
|
13
|
+
- A phase begins and upstream specs may have changed.
|
|
14
|
+
- A breaking change needs migration planning.
|
|
15
|
+
- `/spec-change`, `/propagate-spec`, or `/validate-specs` is requested.
|
|
16
|
+
|
|
17
|
+
## When NOT to use
|
|
18
|
+
- Pure formatting or typo changes.
|
|
19
|
+
- Implementation-only changes with no public or phase contract effect.
|
|
20
|
+
- Review-only tasks where no spec changed.
|
|
21
|
+
|
|
22
|
+
## Inputs required
|
|
23
|
+
- Changed spec files or git diff.
|
|
24
|
+
- `.codebase/PHASE_DEPENDENCY_MAP.md` when present.
|
|
25
|
+
- Relevant contracts, fixtures, and phase docs.
|
|
26
|
+
- Current roadmap and test matrix.
|
|
27
|
+
|
|
28
|
+
## Outputs required
|
|
29
|
+
- Impact report with severity, affected phases, and required actions.
|
|
30
|
+
- Migration guide for breaking changes.
|
|
31
|
+
- Recommended verification subset.
|
|
32
|
+
- Follow-up handoff notes for `genesis-spec-propagation`.
|
|
33
|
+
|
|
34
|
+
## Required tests
|
|
35
|
+
- Add or update expected-output fixtures when impact report shape changes.
|
|
36
|
+
- Run affected contract/fixture checks.
|
|
37
|
+
- Run `scripts/run-evals.sh` after changing this skill or detection script.
|
|
38
|
+
|
|
39
|
+
## Required fixtures
|
|
40
|
+
- Use `templates/impact-report.md` for report shape.
|
|
41
|
+
- Use `templates/migration-guide.md` for breaking changes.
|
|
42
|
+
- Keep example outputs in `examples/` aligned with template changes.
|
|
43
|
+
|
|
44
|
+
## Required contract updates
|
|
45
|
+
- Update `contracts/` if public input/output shape changes.
|
|
46
|
+
- Mark breaking contract changes before implementation.
|
|
47
|
+
- Keep `.codebase/API_CONTRACTS.md` synchronized.
|
|
48
|
+
|
|
49
|
+
## Required codebase map updates
|
|
50
|
+
- Update `.codebase/CURRENT_STATE.md` when impact analysis changes current work.
|
|
51
|
+
- Update `.codebase/TEST_MATRIX.md` if required verification changes.
|
|
52
|
+
- Record unresolved risks in `.codebase/RECOVERY_POINTS.md`.
|
|
53
|
+
|
|
54
|
+
## Token saving rules
|
|
55
|
+
- Inspect changed spec snippets first, not full phase folders.
|
|
56
|
+
- Use the phase dependency map before broad searches.
|
|
57
|
+
- Summarize unaffected phases instead of expanding them.
|
|
58
|
+
|
|
59
|
+
## Acceptance criteria
|
|
60
|
+
- Each changed spec is classified as breaking, feature, or internal.
|
|
61
|
+
- All affected phases are listed with severity and action.
|
|
62
|
+
- Breaking changes include migration guidance.
|
|
63
|
+
- Recommended verification is explicit.
|
|
64
|
+
|
|
65
|
+
## Common mistakes
|
|
66
|
+
- Treating optional field additions as no-impact without checking E2E/UI.
|
|
67
|
+
- Ignoring transitive downstream dependencies.
|
|
68
|
+
- Producing a report without required next actions.
|
|
69
|
+
- Updating downstream files directly before impact classification.
|
|
70
|
+
|
|
71
|
+
## Recovery workflow
|
|
72
|
+
1. Re-run detection on the smallest changed-file set.
|
|
73
|
+
2. If severity is unclear, mark it medium and require manual review.
|
|
74
|
+
3. Hand off affected phases to `genesis-spec-propagation`.
|
|
75
|
+
4. Record unresolved uncertainty in `.codebase/RECOVERY_POINTS.md`.
|
|
76
|
+
|
|
77
|
+
## Workflow references
|
|
78
|
+
- `checklists/checklist.md`: required impact checklist.
|
|
79
|
+
- `templates/impact-report.md`: report template.
|
|
80
|
+
- `templates/migration-guide.md`: migration template.
|
|
81
|
+
- `detect-spec-changes.sh`: local detection helper.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Spec Impact Engine Checklist
|
|
2
|
+
|
|
3
|
+
Use this checklist whenever a specification change may affect downstream phases.
|
|
4
|
+
|
|
5
|
+
- [ ] Identify the changed spec files and classify each change as breaking, feature, or internal.
|
|
6
|
+
- [ ] Map affected downstream phases through `.codebase/PHASE_DEPENDENCY_MAP.md` when present.
|
|
7
|
+
- [ ] Update affected tests, contracts, fixtures, SDK/client expectations, and E2E scenarios.
|
|
8
|
+
- [ ] Generate or update a migration guide for breaking changes.
|
|
9
|
+
- [ ] Record the impact report and verification result in `.codebase/` memory.
|
|
10
|
+
- [ ] Run the relevant verification subset before declaring propagation complete.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "genesis-skill-set",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "Genesis harness skill system for Codex test-first, contract-first, memory-aware autonomous workflows.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Genesis Skill Set"
|
|
@@ -28,10 +28,9 @@
|
|
|
28
28
|
],
|
|
29
29
|
"defaultPrompt": [
|
|
30
30
|
"Use $genesis-harness and run /genesis-init.",
|
|
31
|
-
"Use $pipeline-orchestration
|
|
32
|
-
"Use $api-contract
|
|
31
|
+
"Use $genesis-pipeline-orchestration to run the full test-first harness workflow.",
|
|
32
|
+
"Use $genesis-api-contract to create endpoint contracts and tests before implementation."
|
|
33
33
|
],
|
|
34
34
|
"brandColor": "#2563EB"
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
|
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,23 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
9
|
+
## [0.1.8] - 2026-06-01
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
- **4 New Genesis Skills for TDD and Workflows**: Added `genesis-executing-plans`, `genesis-test-driven-development`, `genesis-verification-before-completion`, and `genesis-using-git-worktrees` to enforce strict TDD, verification, and isolation principles.
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
- **Skill Consolidation**: Merged overlapping skills to resolve duplicated slash commands and clean up the architecture.
|
|
16
|
+
- `genesis-docs` consolidated into `genesis-docs-automation`.
|
|
17
|
+
- `genesis-mvp-planning` consolidated into `genesis-planning`.
|
|
18
|
+
- `genesis-release-orchestration` consolidated into `genesis-release`.
|
|
19
|
+
- `genesis-research` consolidated into `genesis-research-first`.
|
|
20
|
+
- `genesis-state-machine` consolidated into `genesis-harness`.
|
|
21
|
+
- **Harness & Verification Improvements**: Updated tests and scripts (`verify.sh`, `run-evals.sh`, `install.sh`, `uninstall.sh`, `genesis-harness.js`) to reflect the consolidated folder structure.
|
|
22
|
+
- **Documentation**: Updated `README.md`, `README.EN.md`, `README.VI.md`, and `AGENTS.md` to reflect the new standardized skill set.
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
9
26
|
## [0.1.6] - 2026-06-01
|
|
10
27
|
|
|
11
28
|
### Added
|