codex-genesis-harness 0.1.7 → 0.1.9

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.
Files changed (115) hide show
  1. package/.codebase/COMPRESSED_CONTEXT.md +80 -0
  2. package/.codebase/CURRENT_STATE.md +10 -10
  3. package/.codebase/DEPENDENCY_GRAPH.md +14 -1
  4. package/.codebase/IMPLEMENTATION_HANDOFF.md +34 -336
  5. package/.codebase/KNOWN_PROBLEMS.md +73 -3
  6. package/.codebase/MODULE_INDEX.md +23 -2
  7. package/.codebase/PIPELINE_FLOW.md +16 -6
  8. package/.codebase/RECOVERY_POINTS.md +80 -78
  9. package/.codebase/TECH_DEBT.md +6 -0
  10. package/.codebase/TEST_MATRIX.md +8 -3
  11. package/.codebase/VISUAL_GRAPH.md +127 -0
  12. package/.codebase/context-policy.json +68 -0
  13. package/.codebase/memories/lessons_learned.md +63 -0
  14. package/.codebase/memories/preferences.md +17 -0
  15. package/.codebase/state.json +156 -17
  16. package/.codex/skills/genesis-architecture/SKILL.md +5 -0
  17. package/.codex/skills/genesis-debug-guide/SKILL.md +10 -4
  18. package/.codex/skills/genesis-docs-automation/SKILL.md +52 -973
  19. package/.codex/skills/genesis-executing-plans/SKILL.md +54 -0
  20. package/.codex/skills/genesis-executing-plans/agents/openai.yaml +6 -0
  21. package/.codex/skills/genesis-executing-plans/checklists/.gitkeep +0 -0
  22. package/.codex/skills/genesis-executing-plans/examples/.gitkeep +0 -0
  23. package/.codex/skills/genesis-executing-plans/templates/.gitkeep +0 -0
  24. package/.codex/skills/genesis-harness/SKILL.md +73 -1385
  25. package/.codex/skills/genesis-harness/agents/openai.yaml +1 -2
  26. package/.codex/skills/genesis-harness/references/state-machine.md +4 -1
  27. package/.codex/skills/genesis-harness/references/workflows.md +7 -1
  28. package/.codex/skills/genesis-harness/scripts/check-docs-sync.sh +3 -3
  29. package/.codex/skills/genesis-harness/scripts/init-planning.sh +246 -14
  30. package/.codex/skills/genesis-new-design/SKILL.md +4 -1
  31. package/.codex/skills/genesis-new-design/agents/openai.yaml +2 -0
  32. package/.codex/skills/genesis-observability-automation/SKILL.md +69 -303
  33. package/.codex/skills/genesis-observability-automation/references/common-mistakes-and-recovery.md +84 -0
  34. package/.codex/skills/genesis-observability-automation/references/workflow-phases.md +78 -0
  35. package/.codex/skills/genesis-performance-profiling/SKILL.md +1 -22
  36. package/.codex/skills/genesis-performance-profiling/agents/openai.yaml +1 -1
  37. package/.codex/skills/genesis-pipeline-orchestration/SKILL.md +15 -3
  38. package/.codex/skills/genesis-planning/SKILL.md +6 -1
  39. package/.codex/skills/genesis-release/SKILL.md +5 -0
  40. package/.codex/skills/genesis-research-first/SKILL.md +6 -0
  41. package/.codex/skills/genesis-spec-propagation/SKILL.md +52 -504
  42. package/.codex/skills/genesis-test-driven-development/SKILL.md +55 -0
  43. package/.codex/skills/genesis-test-driven-development/agents/openai.yaml +6 -0
  44. package/.codex/skills/genesis-test-driven-development/checklists/.gitkeep +0 -0
  45. package/.codex/skills/genesis-test-driven-development/examples/.gitkeep +0 -0
  46. package/.codex/skills/genesis-test-driven-development/templates/.gitkeep +0 -0
  47. package/.codex/skills/genesis-upgrade-design/SKILL.md +4 -2
  48. package/.codex/skills/genesis-upgrade-design/agents/openai.yaml +2 -0
  49. package/.codex/skills/genesis-using-git-worktrees/SKILL.md +54 -0
  50. package/.codex/skills/genesis-using-git-worktrees/agents/openai.yaml +6 -0
  51. package/.codex/skills/genesis-using-git-worktrees/checklists/.gitkeep +0 -0
  52. package/.codex/skills/genesis-using-git-worktrees/examples/.gitkeep +0 -0
  53. package/.codex/skills/genesis-using-git-worktrees/templates/.gitkeep +0 -0
  54. package/.codex/skills/genesis-verification-before-completion/SKILL.md +53 -0
  55. package/.codex/skills/genesis-verification-before-completion/agents/openai.yaml +6 -0
  56. package/.codex/skills/genesis-verification-before-completion/checklists/.gitkeep +0 -0
  57. package/.codex/skills/genesis-verification-before-completion/examples/.gitkeep +0 -0
  58. package/.codex/skills/genesis-verification-before-completion/templates/.gitkeep +0 -0
  59. package/.codex/skills/spec-impact-engine/SKILL.md +77 -500
  60. package/.codex/skills/spec-impact-engine/checklists/checklist.md +10 -0
  61. package/.codex-plugin/plugin.json +6 -5
  62. package/CHANGELOG.md +25 -1
  63. package/README.EN.md +74 -17
  64. package/README.VI.md +77 -19
  65. package/README.md +126 -10
  66. package/VERSION +1 -2
  67. package/bin/genesis-harness.js +2979 -149
  68. package/contracts/features/project-registry-schema.json +37 -0
  69. package/contracts/features/registry-schema.json +15 -0
  70. package/contracts/observability/agent-run-schema.json +39 -0
  71. package/contracts/observability/failure-schema.json +35 -0
  72. package/contracts/ui/auth/login-screen-contract.json +43 -0
  73. package/features/REGISTRY.md +65 -0
  74. package/features/SCOPE-template.md +65 -0
  75. package/fixtures/pipeline/end-to-end-project-lifecycle-fixture.md +39 -0
  76. package/fixtures/pipeline/feature-completion-fixture.md +26 -0
  77. package/fixtures/pipeline/run-to-feature-execution-fixture.md +20 -0
  78. package/fixtures/planning/MOCKUP_PROMPT_TEMPLATE.md +16 -0
  79. package/observability/agent-runs/sample-run.json +13 -0
  80. package/observability/decision-logs/sample-decision.md +43 -0
  81. package/observability/failures/sample-failure.json +12 -0
  82. package/package.json +15 -4
  83. package/playwright/e2e/app-template.spec.js +37 -0
  84. package/playwright/e2e/auth/login-screen.spec.js +65 -0
  85. package/playwright/e2e/web-template.spec.js +28 -0
  86. package/scripts/check-repository-hygiene.js +48 -0
  87. package/scripts/check-scope.sh +100 -0
  88. package/scripts/cold-start-check.js +133 -0
  89. package/scripts/install.sh +4 -0
  90. package/scripts/prompt_sentinel.js +35 -4
  91. package/scripts/run-evals.sh +152 -3
  92. package/scripts/schema/001-init.sql +129 -0
  93. package/scripts/schema/002-story-verify.sql +9 -0
  94. package/scripts/schema/003-tool-registry.sql +15 -0
  95. package/scripts/schema/004-intervention.sql +15 -0
  96. package/scripts/scratch_parser.js +49 -0
  97. package/scripts/spec_visual_sync.js +1 -1
  98. package/scripts/test_generator.js +2 -2
  99. package/scripts/transition_state.sh +32 -8
  100. package/scripts/uninstall.sh +4 -0
  101. package/scripts/validation_gates.sh +2 -80
  102. package/scripts/verify.sh +19 -2
  103. package/tests/fixtures/fixture-index.md +5 -0
  104. package/tests/integration/cli-smoke.test.js +506 -0
  105. package/tests/unit/feature_registry.test.js +152 -0
  106. package/tests/unit/prompt_sentinel.test.js +1 -1
  107. package/tests/unit/repository_hygiene.test.js +17 -0
  108. package/tests/unit/spec_visual_sync.test.js +1 -1
  109. package/tests/unit/state_metadata.test.js +76 -0
  110. package/tests/unit/test_generator.test.js +1 -1
  111. package/tests/unit/verify_gate.test.js +25 -0
  112. package/tests/unit/workflow_contracts.test.js +90 -0
  113. package/fixtures/tts/tts-fixture-template.md +0 -14
  114. package/fixtures/videos/video-fixture-template.md +0 -14
  115. package/playwright/e2e/e2e-template.md +0 -4
@@ -1,504 +1,81 @@
1
1
  ---
2
2
  name: spec-impact-engine
3
- description: Automatically detect specification changes, calculate impact severity on downstream project phases, generate migration guides, and orchestrate auto-updates to prevent downstream spec drift and cascading rework.
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 Skill
7
-
8
- **Purpose**: Automatically detect spec changes and calculate impact on downstream phases.
9
-
10
- **Status**: NEW - Automation layer for cascade prevention
11
-
12
- ## When to Use
13
-
14
- Use this skill when:
15
- - A spec change happens (API, database, requirements)
16
- - ✅ You need to know which downstream phases are affected
17
- - You need automatic downstream phase updates
18
- - You're tracking breaking changes across phases
19
- - You need migration guides for dependent phases
20
- - You want to prevent cascading rework
21
-
22
- ## Commands
23
-
24
- ```bash
25
- # Detect impact of spec changes
26
- invoke spec-impact-engine
27
-
28
- # Parameters:
29
- - changed_files: ["path/to/changed/spec.md"]
30
- - impact_scope: "all" | "current_phase_only"
31
- - auto_update: true | false
32
- - notify: true | false
33
- ```
34
-
35
- ---
36
-
37
- ## How It Works
38
-
39
- ### Phase 1: Change Detection
40
-
41
- **Detects changes in:**
42
- - `.planning/REQUIREMENTS.md` - Feature/requirement changes
43
- - `.planning/API_DOCS.md` - Endpoint signature changes
44
- - `.planning/ARCHITECTURE.md` - System design changes
45
- - `.planning/DESIGN.md` - UI/UX changes
46
- - `.planning/STACK.md` - Tech stack changes
47
- - `.planning/SPEC_CHANGELOG.md` - Explicit spec entries
48
- - `.planning/features/*/SPEC.md` - Feature spec changes
49
- - `.planning/bugs/*/PLAN.md` - Bug fix plan changes
50
-
51
- **For each change, extracts:**
52
- ```javascript
53
- {
54
- type: "breaking" | "feature" | "internal",
55
- document: "API_DOCS.md",
56
- section: "/api/users/:id",
57
- oldValue: "returns { name, email, role }",
58
- newValue: "returns { id, name, email, roles[] }",
59
- severity: "high" | "medium" | "low",
60
- affectedField: "response.roles",
61
- breaking: true,
62
- date: "2026-05-30",
63
- reason: "Support multiple roles per user"
64
- }
65
- ```
66
-
67
- ### Phase 2: Dependency Analysis
68
-
69
- **Maps which phases depend on what:**
70
-
71
- ```javascript
72
- DependencyMap = {
73
- phase1: {
74
- provides: ["auth_system", "user_api", "jwt_tokens"],
75
- provides_to: ["phase2", "phase3", "phase4", "phase5"]
76
- },
77
- phase2: {
78
- requires: ["user_api_from_phase1"],
79
- depends_on: ["phase1"],
80
- provides: ["product_catalog", "search_api"],
81
- provides_to: ["phase3", "phase4"]
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.6",
3
+ "version": "0.1.9",
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"
@@ -27,11 +27,12 @@
27
27
  "Review"
28
28
  ],
29
29
  "defaultPrompt": [
30
- "Use $genesis-harness and run /genesis-init.",
31
- "Use $pipeline-orchestration-skill to run the full test-first harness workflow.",
32
- "Use $api-contract-skill to create endpoint contracts and tests before implementation."
30
+ "Use $genesis-harness. If the repo is blank and the user gives an idea, treat it as implicit init and bootstrap from that brief.",
31
+ "Use genesis-harness add-feature, next, and complete-feature to drive each queued feature through verified completion with evidence.",
32
+ "After all features are verified, use verify-project, complete-project, and pipeline-audit to close the project only from RELEASE_READY.",
33
+ "Use $genesis-pipeline-orchestration to run the full test-first harness workflow.",
34
+ "Use $genesis-api-contract to create endpoint contracts and tests before implementation."
33
35
  ],
34
36
  "brandColor": "#2563EB"
35
37
  }
36
38
  }
37
-
package/CHANGELOG.md CHANGED
@@ -6,7 +6,31 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
 
7
7
  ---
8
8
 
9
- ## [0.1.7] - 2026-06-01
9
+ ## [0.1.9] - 2026-06-11
10
+
11
+ ### Added
12
+ - **Non-interactive bootstrap CLI**: Added `genesis-harness init --platform ... --yes --idea ...` for deterministic project initialization from a blank repo or first product brief.
13
+ - **Run pipeline**: Added `genesis-harness run --idea ... --yes` to persist discovery answers and promote the first implementation slice into `.planning/features/`.
14
+ - **Resume artifacts**: Added `.runs/<session-id>/INPUT.md`, `DISCOVERY.json`, `STATE.json`, and `RESUME.md` so future sessions can resume from disk.
15
+ - **Typed first-slice contracts**: The first scaffolded feature can now emit API/UI contracts and fixtures under `contracts/api`, `contracts/ui`, `fixtures/api`, and `playwright/fixtures`.
16
+ - **Verify-gate contract tests**: Added tests for the expanded `verify-gate`, workflow contracts, state metadata, and CLI bootstrap smoke paths.
17
+
18
+ ### Changed
19
+ - **Verify-gate hardening**: `genesis-harness verify-gate` now runs structural verify, eval regression, docs-gate, cold-start, package dry-run, and LeanCTX reporting.
20
+ - **CI verification**: GitHub verification now delegates to a reusable verify workflow.
21
+ - **npm publishing**: Publish workflow now targets GitHub release/manual events and uses npm trusted publishing with provenance instead of long-lived npm tokens or CI-mutated versions.
22
+ - **Package contents**: `README.EN.md` and `README.VI.md` are included in the npm tarball because root `README.md` links to both language guides.
23
+
24
+ ### Release Notes
25
+ - `package.json`, `package-lock.json`, `.codex-plugin/plugin.json`, `VERSION`, README labels, and this changelog are aligned on `0.1.9`.
26
+ - `tmp_pack/package/**` remains tracked as the historical pack artifact; the accidental deletion from the release-prep commit was restored.
27
+
28
+ ---
29
+
30
+ ## [0.1.8] - 2026-06-01
31
+
32
+ ### Added
33
+ - **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.
10
34
 
11
35
  ### Changed
12
36
  - **Skill Consolidation**: Merged overlapping skills to resolve duplicated slash commands and clean up the architecture.