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.
Files changed (178) hide show
  1. package/.codebase/ARCHITECTURE_REVIEW_COMPLETE.md +216 -216
  2. package/.codebase/CURRENT_STATE.md +8 -2
  3. package/.codebase/FILE_NAMING_CLARIFICATION.md +161 -161
  4. package/.codebase/HARNESS_COMPLETENESS_AUDIT.md +613 -613
  5. package/.codebase/IMPLEMENTATION_COMPLETE.md +429 -429
  6. package/.codebase/IMPLEMENTATION_HANDOFF.md +351 -351
  7. package/.codebase/IMPROVEMENTS_SUMMARY.md +419 -419
  8. package/.codebase/PHASE3_SKILLS_NAMING_COMPLETE.md +292 -292
  9. package/.codebase/PHASE_DEPENDENCY_MAP.md +486 -486
  10. package/.codebase/QUICK_START_SPEC_IMPACT.md +456 -456
  11. package/.codebase/README.md +139 -139
  12. package/.codebase/RECOVERY_POINTS.md +83 -438
  13. package/.codebase/beads.json +16 -0
  14. package/.codex/skills/genesis-ai-provider/SKILL.md +1 -1
  15. package/.codex/skills/genesis-api-contract/SKILL.md +1 -1
  16. package/.codex/skills/genesis-api-sync/SKILL.md +354 -354
  17. package/.codex/skills/genesis-api-sync/checklists/api-sync-checklist.md +101 -101
  18. package/.codex/skills/genesis-api-sync/templates/api-change-template.md +257 -257
  19. package/.codex/skills/genesis-architecture/SKILL.md +1 -1
  20. package/.codex/skills/genesis-codebase-map/SKILL.md +1 -1
  21. package/.codex/skills/genesis-debug-guide/SKILL.md +479 -479
  22. package/.codex/skills/genesis-debug-guide/checklists/flaky-test-investigation.md +339 -339
  23. package/.codex/skills/genesis-debug-guide/checklists/production-bug-debug.md +210 -210
  24. package/.codex/skills/genesis-debug-guide/checklists/test-failure-debug.md +158 -158
  25. package/.codex/skills/genesis-debug-guide/observability/debug-commands.md +365 -365
  26. package/.codex/skills/genesis-debug-guide/playbooks/unit-test-failures.md +289 -289
  27. package/.codex/skills/genesis-debug-guide/templates/debug-investigation-log.md +288 -288
  28. package/.codex/skills/genesis-design-spec/SKILL.md +3 -3
  29. package/.codex/skills/genesis-docs-automation/SKILL.md +1003 -1003
  30. package/.codex/skills/genesis-docs-automation/checklists/docs-validation.md +359 -359
  31. package/.codex/skills/genesis-docs-automation/checklists/spec-alignment.md +312 -312
  32. package/.codex/skills/genesis-docs-automation/observability/docs-tracking.md +382 -382
  33. package/.codex/skills/genesis-docs-automation/playbooks/auto-update-flow.md +851 -851
  34. package/.codex/skills/genesis-docs-automation/playbooks/changelog-generation.md +491 -491
  35. package/.codex/skills/genesis-docs-automation/templates/changelog-entry-template.md +187 -187
  36. package/.codex/skills/genesis-docs-automation/templates/handoff-template.md +297 -297
  37. package/.codex/skills/genesis-harness/SKILL.md +1428 -1427
  38. package/.codex/skills/genesis-harness/agents/openai.yaml +7 -7
  39. package/.codex/skills/genesis-harness/checklists/bug-fix-qa.md +169 -169
  40. package/.codex/skills/genesis-harness/checklists/new-feature-qa.md +157 -157
  41. package/.codex/skills/genesis-harness/checklists/refactor-qa.md +216 -216
  42. package/.codex/skills/genesis-harness/checklists/requirements-validation.md +211 -211
  43. package/.codex/skills/genesis-harness/references/planning-schema.md +35 -35
  44. package/.codex/skills/genesis-harness/references/quality-rubric.md +21 -21
  45. package/.codex/skills/genesis-harness/references/research-rubric.md +41 -41
  46. package/.codex/skills/genesis-harness/references/workflows.md +33 -33
  47. package/.codex/skills/genesis-harness/resources/agents-template.md +27 -27
  48. package/.codex/skills/genesis-harness/resources/api-docs-template.md +32 -32
  49. package/.codex/skills/genesis-harness/resources/architecture-template.md +30 -30
  50. package/.codex/skills/genesis-harness/resources/audit-template.md +26 -26
  51. package/.codex/skills/genesis-harness/resources/bug-template.md +34 -34
  52. package/.codex/skills/genesis-harness/resources/change-impact-matrix-template.md +204 -204
  53. package/.codex/skills/genesis-harness/resources/check-template.md +21 -21
  54. package/.codex/skills/genesis-harness/resources/conventions-template.md +42 -42
  55. package/.codex/skills/genesis-harness/resources/decision-template.md +33 -33
  56. package/.codex/skills/genesis-harness/resources/design-template.md +26 -26
  57. package/.codex/skills/genesis-harness/resources/escalation-template.md +21 -21
  58. package/.codex/skills/genesis-harness/resources/feature-template.md +49 -49
  59. package/.codex/skills/genesis-harness/resources/foundation-phase-template.md +131 -131
  60. package/.codex/skills/genesis-harness/resources/integrations-template.md +32 -32
  61. package/.codex/skills/genesis-harness/resources/journeys-template.md +13 -13
  62. package/.codex/skills/genesis-harness/resources/lessons-learned-template.md +12 -12
  63. package/.codex/skills/genesis-harness/resources/observability-template.md +34 -34
  64. package/.codex/skills/genesis-harness/resources/phase-00-foundation-template.md +76 -76
  65. package/.codex/skills/genesis-harness/resources/phase-template.md +34 -34
  66. package/.codex/skills/genesis-harness/resources/pitfalls-template.md +22 -22
  67. package/.codex/skills/genesis-harness/resources/planning-tree-template.md +39 -39
  68. package/.codex/skills/genesis-harness/resources/post-implementation-guide.md +347 -347
  69. package/.codex/skills/genesis-harness/resources/project-template.md +38 -38
  70. package/.codex/skills/genesis-harness/resources/quality-score-template.md +11 -11
  71. package/.codex/skills/genesis-harness/resources/requirements-template.md +26 -26
  72. package/.codex/skills/genesis-harness/resources/research-template.md +26 -26
  73. package/.codex/skills/genesis-harness/resources/review-template.md +22 -22
  74. package/.codex/skills/genesis-harness/resources/spec-changelog-template.md +6 -6
  75. package/.codex/skills/genesis-harness/resources/stack-template.md +33 -33
  76. package/.codex/skills/genesis-harness/resources/verification-template.md +26 -26
  77. package/.codex/skills/genesis-harness/scripts/check-architecture-boundaries.sh +0 -0
  78. package/.codex/skills/genesis-harness/scripts/check-docs-sync.sh +0 -0
  79. package/.codex/skills/genesis-harness/scripts/check-no-debug-logs.sh +0 -0
  80. package/.codex/skills/genesis-harness/scripts/check-required-planning-files.sh +0 -0
  81. package/.codex/skills/genesis-harness/scripts/check-spec-changelog.sh +0 -0
  82. package/.codex/skills/genesis-harness/scripts/check-task-tracking.sh +0 -0
  83. package/.codex/skills/genesis-harness/scripts/compact-context.sh +0 -0
  84. package/.codex/skills/genesis-harness/scripts/create-adr.sh +0 -0
  85. package/.codex/skills/genesis-harness/scripts/create-bug.sh +0 -0
  86. package/.codex/skills/genesis-harness/scripts/create-feature.sh +0 -0
  87. package/.codex/skills/genesis-harness/scripts/detect-stack.sh +0 -0
  88. package/.codex/skills/genesis-harness/scripts/init-planning.sh +0 -0
  89. package/.codex/skills/genesis-harness/scripts/list-changed-files.sh +0 -0
  90. package/.codex/skills/genesis-harness/scripts/offload-log.sh +0 -0
  91. package/.codex/skills/genesis-harness/scripts/run-verification.sh +0 -0
  92. package/.codex/skills/genesis-harness/scripts/run-verify-loop.sh +0 -0
  93. package/.codex/skills/genesis-harness/scripts/update-state.sh +0 -0
  94. package/.codex/skills/genesis-harness-engineering/SKILL.md +1 -1
  95. package/.codex/skills/genesis-new-design/SKILL.md +2 -1
  96. package/.codex/skills/genesis-new-design/agents/openai.yaml +3 -3
  97. package/.codex/skills/genesis-observability-automation/checklists/.gitkeep +0 -0
  98. package/.codex/skills/genesis-observability-automation/observability/.gitkeep +0 -0
  99. package/.codex/skills/genesis-observability-automation/playbooks/.gitkeep +0 -0
  100. package/.codex/skills/genesis-observability-automation/templates/.gitkeep +0 -0
  101. package/.codex/skills/genesis-pipeline-orchestration/SKILL.md +1 -1
  102. package/.codex/skills/genesis-planning/SKILL.md +26 -1
  103. package/.codex/skills/genesis-planning/checklists/mvp-readiness.md +18 -0
  104. package/.codex/skills/genesis-planning/examples/5-phase-roadmap-example.md +43 -0
  105. package/.codex/skills/genesis-planning/templates/phase-1-core.md +17 -0
  106. package/.codex/skills/genesis-planning/templates/phase-2-auth.md +17 -0
  107. package/.codex/skills/genesis-planning/templates/phase-3-features.md +17 -0
  108. package/.codex/skills/genesis-planning/templates/phase-4-integrations.md +17 -0
  109. package/.codex/skills/genesis-planning/templates/phase-5-readiness.md +17 -0
  110. package/.codex/skills/genesis-release/SKILL.md +24 -1
  111. package/.codex/skills/{genesis-release-orchestration → genesis-release}/checklists/post-deployment-verification.md +274 -274
  112. package/.codex/skills/{genesis-release-orchestration → genesis-release}/checklists/pre-release-validation.md +220 -220
  113. package/.codex/skills/{genesis-release-orchestration → genesis-release}/observability/release-tracking.md +253 -253
  114. package/.codex/skills/{genesis-release-orchestration → genesis-release}/playbooks/canary-deployment-orchestration.md +472 -472
  115. package/.codex/skills/{genesis-release-orchestration → genesis-release}/playbooks/semantic-versioning-automation.md +494 -494
  116. package/.codex/skills/{genesis-release-orchestration → genesis-release}/templates/deployment-strategy-template.md +303 -303
  117. package/.codex/skills/{genesis-release-orchestration → genesis-release}/templates/release-runbook-template.md +420 -420
  118. package/.codex/skills/genesis-research-first/SKILL.md +237 -237
  119. package/.codex/skills/genesis-research-first/templates/.gitkeep +0 -0
  120. package/.codex/skills/genesis-spec-propagation/SKILL.md +534 -534
  121. package/.codex/skills/genesis-spec-propagation/checklists/phase-update-verification.md +384 -384
  122. package/.codex/skills/genesis-spec-propagation/checklists/spec-change-detection.md +257 -257
  123. package/.codex/skills/genesis-spec-propagation/observability/propagation-tracking.md +373 -373
  124. package/.codex/skills/genesis-spec-propagation/playbooks/breaking-change-propagation.md +692 -692
  125. package/.codex/skills/genesis-spec-propagation/playbooks/feature-change-propagation.md +434 -434
  126. package/.codex/skills/genesis-spec-propagation/templates/migration-guide-template.md +407 -407
  127. package/.codex/skills/{ui-ux-test-skill → genesis-ui-ux-test}/SKILL.md +1 -1
  128. package/.codex/skills/genesis-upgrade-design/agents/openai.yaml +3 -3
  129. package/.codex/skills/spec-impact-engine/SKILL.md +504 -504
  130. package/.codex/skills/spec-impact-engine/detect-spec-changes.sh +0 -0
  131. package/.codex-plugin/plugin.json +19 -19
  132. package/CHANGELOG.md +56 -0
  133. package/LICENSE +22 -22
  134. package/README.EN.md +780 -730
  135. package/README.VI.md +772 -723
  136. package/README.md +102 -247
  137. package/VERSION +2 -2
  138. package/bin/genesis-harness.js +695 -92
  139. package/package.json +9 -3
  140. package/scripts/README.md +342 -342
  141. package/scripts/compact-context.sh +0 -0
  142. package/scripts/contract_integrity_gate.js +83 -0
  143. package/scripts/detect-changes.sh +0 -0
  144. package/scripts/healing_telemetry.js +118 -0
  145. package/scripts/install.sh +5 -6
  146. package/scripts/offload-log.sh +0 -0
  147. package/scripts/prompt_sentinel.js +84 -0
  148. package/scripts/run-evals.sh +20 -24
  149. package/scripts/run-verify-loop.sh +11 -0
  150. package/scripts/spec_visual_sync.js +157 -0
  151. package/scripts/test_generator.js +142 -0
  152. package/scripts/transition_state.sh +0 -0
  153. package/scripts/uninstall.sh +2 -5
  154. package/scripts/validation_gates.sh +40 -1
  155. package/scripts/verify.sh +6 -61
  156. package/tests/unit/contract_integrity_gate.test.js +74 -0
  157. package/tests/unit/healing_telemetry.test.js +58 -0
  158. package/tests/unit/prompt_sentinel.test.js +50 -0
  159. package/tests/unit/spec_visual_sync.test.js +77 -0
  160. package/tests/unit/test_generator.test.js +62 -0
  161. package/.codex/skills/genesis-docs/SKILL.md +0 -46
  162. package/.codex/skills/genesis-docs/agents/openai.yaml +0 -7
  163. package/.codex/skills/genesis-release-orchestration/SKILL.md +0 -653
  164. package/.codex/skills/genesis-release-orchestration/agents/openai.yaml +0 -7
  165. package/.codex/skills/genesis-research/SKILL.md +0 -46
  166. package/.codex/skills/genesis-research/agents/openai.yaml +0 -7
  167. /package/.codex/skills/{genesis-docs/checklists/checklist.md → genesis-docs-automation/checklists/manual-docs-checklist.md} +0 -0
  168. /package/.codex/skills/{genesis-docs/examples/example.md → genesis-docs-automation/examples/manual-docs-example.md} +0 -0
  169. /package/.codex/skills/{genesis-docs → genesis-docs-automation}/templates/docs-update-template.md +0 -0
  170. /package/.codex/skills/{genesis-state-machine/SKILL.md → genesis-harness/references/state-machine.md} +0 -0
  171. /package/.codex/skills/{genesis-release-orchestration/examples/example.md → genesis-release/examples/orchestration-example.md} +0 -0
  172. /package/.codex/skills/{genesis-research → genesis-research-first}/checklists/checklist.md +0 -0
  173. /package/.codex/skills/{genesis-research/examples/example.md → genesis-research-first/examples/manual-research-example.md} +0 -0
  174. /package/.codex/skills/{genesis-research → genesis-research-first}/templates/research-note-template.md +0 -0
  175. /package/.codex/skills/{ui-ux-test-skill → genesis-ui-ux-test}/agents/openai.yaml +0 -0
  176. /package/.codex/skills/{ui-ux-test-skill → genesis-ui-ux-test}/checklists/checklist.md +0 -0
  177. /package/.codex/skills/{ui-ux-test-skill → genesis-ui-ux-test}/examples/example.md +0 -0
  178. /package/.codex/skills/{ui-ux-test-skill → genesis-ui-ux-test}/templates/playwright-test-template.md +0 -0
@@ -1,438 +1,83 @@
1
- # Recovery Points
2
-
3
- **Purpose**: Document where implementation can be paused and resumed without losing context or creating inconsistencies.
4
-
5
- **Use When**: Work needs to be paused, passed to another developer, or interrupted by higher priority work.
6
-
7
- ---
8
-
9
- ## Quick Reference: Current Recovery Points
10
-
11
- | Phase | Status | Resumption File | Last Updated |
12
- |-------|--------|-----------------|--------------|
13
- | Planning | ✓ Complete | `.codebase/CURRENT_STATE.md` | _date_ |
14
- | Design | ✓ Complete | IMPLEMENTATION_HANDOFF.md | _date_ |
15
- | Contracts | ✓ Complete | `.codebase/API_CONTRACTS.md` | _date_ |
16
- | Tests | ⏸️ In Progress | `tests/auth.test.ts` | _date_ |
17
- | Implementation | ⏸️ In Progress | `src/auth/` | _date_ |
18
- | Documentation | ⏸️ Pending | `docs/AUTH.md` | _date_ |
19
-
20
- ---
21
-
22
- ## Phase: Planning
23
-
24
- **Status**: ✓ Complete
25
- **Start Date**: _date_
26
- **End Date**: _date_
27
- **Resumption**: Not needed
28
-
29
- ### What Happened
30
-
31
- All requirements gathered, validated, and documented.
32
-
33
- ### To Resume (If Needed)
34
-
35
- Not applicable - planning is complete and locked.
36
-
37
- ---
38
-
39
- ## Phase: Design & Architecture
40
-
41
- **Status**: ✓ Complete
42
- **Start Date**: _date_
43
- **End Date**: _date_
44
- **Resumption**: Not needed
45
-
46
- ### What Happened
47
-
48
- System design completed, contracts defined, technology choices made.
49
-
50
- ### Artifacts
51
-
52
- - `.codebase/ARCHITECTURE.md` - Final design
53
- - `.codebase/API_CONTRACTS.md` - API specifications
54
- - `IMPLEMENTATION_HANDOFF.md` - Design decisions
55
-
56
- ### To Resume (If Needed)
57
-
58
- Not applicable - design is frozen and approved.
59
-
60
- ---
61
-
62
- ## Phase: Test Contracts & Fixtures
63
-
64
- **Status**: Complete
65
- **Start Date**: _date_
66
- **End Date**: _date_
67
- **Resumption**: Not needed
68
-
69
- ### What Happened
70
-
71
- Test contracts created, fixtures built, test infrastructure ready.
72
-
73
- ### Artifacts
74
-
75
- ```
76
- tests/
77
- ├── contracts/
78
- │ ├── auth-api.contract.json
79
- │ └── session-manager.contract.json
80
- ├── fixtures/
81
- │ ├── oauth-responses.json
82
- │ └── user-data.json
83
- └── setup/
84
- ├── test-db-init.sql
85
- └── mock-providers.ts
86
- ```
87
-
88
- ### To Resume (If Needed)
89
-
90
- Not applicable - test infrastructure is ready.
91
-
92
- ---
93
-
94
- ## Phase: Core Implementation (CURRENT PAUSE POINT)
95
-
96
- **Status**: ⏸️ In Progress (50% complete)
97
- **Start Date**: _date_
98
- **Current Date**: _YYYY-MM-DD_
99
- **Estimated Completion**: _date_
100
-
101
- ### What Was Done (Completed)
102
-
103
- ```
104
- ✓ src/auth/oauth-provider.ts
105
- - OAuth 2.0 flow implementation
106
- - Provider callback handling
107
- - Token management
108
-
109
- ✓ src/db/migrations/
110
- - New users table fields
111
- - oauth_provider, oauth_id columns
112
-
113
- ✓ tests/auth.test.ts
114
- - 15 tests written and passing
115
- - 90% coverage of oauth-provider.ts
116
- ```
117
-
118
- ### What Remains (To Do)
119
-
120
- ```
121
- ⏳ src/auth/session-manager.ts
122
- - Session creation and validation
123
- - Session timeout handling
124
- - Concurrent session management
125
-
126
- ⏳ src/ui/pages/
127
- - Login component
128
- - Registration component
129
- - Error handling UI
130
-
131
- ⏳ API endpoints
132
- - POST /auth/login
133
- - POST /auth/register
134
- - POST /auth/logout
135
-
136
- ⏳ Integration tests
137
- - End-to-end OAuth flow
138
- - Database state consistency
139
- ```
140
-
141
- ### Pause State
142
-
143
- **What's Safe to Pause Here:**
144
-
145
- The OAuth provider module is isolated and complete. Can pause safely at this point.
146
-
147
- **Before Pausing:**
148
-
149
- ```bash
150
- # 1. Commit current progress
151
- git add -A
152
- git commit -m "feat: OAuth provider implementation (50% complete)"
153
-
154
- # 2. Verify tests pass
155
- npm test
156
-
157
- # 3. Document pause point
158
- # (You are reading this file!)
159
-
160
- # 4. Create recovery checklist
161
- # (See section below)
162
- ```
163
-
164
- ### To Resume From Here
165
-
166
- **Step 1: Environment Setup** (5 min)
167
-
168
- ```bash
169
- # Pull latest changes
170
- git pull origin main
171
-
172
- # Verify you're on the right branch
173
- git branch -v
174
-
175
- # Install dependencies
176
- npm install
177
-
178
- # Check database is migrated
179
- npm run db:status
180
- ```
181
-
182
- **Step 2: Verify Previous Work** (5 min)
183
-
184
- ```bash
185
- # Run existing tests
186
- npm test -- auth.test.ts
187
- # Expected: 15 passing
188
-
189
- # Check module compiles
190
- npm run build
191
-
192
- # Verify no uncommitted changes
193
- git status
194
- ```
195
-
196
- **Step 3: Review What's Next** (10 min)
197
-
198
- ```bash
199
- # Read the handoff document
200
- cat IMPLEMENTATION_HANDOFF.md
201
-
202
- # Check what was planned next
203
- cat .codebase/CURRENT_STATE.md
204
-
205
- # Review test contract
206
- cat tests/contracts/auth-api.contract.json
207
- ```
208
-
209
- **Step 4: Resume Implementation** (30 min+)
210
-
211
- Start with session-manager.ts:
212
-
213
- ```bash
214
- # Create new branch (if needed)
215
- git checkout -b continue/auth-session
216
-
217
- # Open the next module
218
- code src/auth/session-manager.ts
219
-
220
- # Reference the test contract
221
- code tests/contracts/session-manager.contract.json
222
-
223
- # Start implementing...
224
- ```
225
-
226
- ---
227
-
228
- ## Phase: Session Management (NEXT PHASE)
229
-
230
- **Status**: ⏳ Ready to start
231
- **Estimated Start**: _date_
232
- **Estimated Duration**: 4-6 hours
233
- **Estimator**: Original developer
234
-
235
- ### What Needs to Happen
236
-
237
- 1. **Implement session-manager.ts**
238
- - Create session on login
239
- - Validate session on requests
240
- - Handle timeout
241
-
242
- 2. **Write session tests**
243
- - Session creation tests
244
- - Validation tests
245
- - Timeout tests
246
- - Concurrent session tests
247
-
248
- 3. **Update database**
249
- - Add sessions table migration
250
- - Add indexes for performance
251
-
252
- ### Acceptance Criteria
253
-
254
- ```
255
- - [ ] Session manager module complete
256
- - [ ] 12+ session tests written and passing
257
- - [ ] Coverage ≥ 85%
258
- - [ ] No performance regressions
259
- - [ ] Integrated with OAuth provider
260
- ```
261
-
262
- ### Dependencies
263
-
264
- - ✓ OAuth provider complete (already done)
265
- - ✓ Database migrations (already done)
266
- - ⏳ Needs: Node.js session library installed
267
-
268
- ### Blockers
269
-
270
- None identified. Ready to proceed.
271
-
272
- ---
273
-
274
- ## Phase: UI Components (AFTER SESSION)
275
-
276
- **Status**: ⏳ Ready to start
277
- **Estimated Start**: _date_ (after session phase)
278
- **Estimated Duration**: 6-8 hours
279
-
280
- ### What Needs to Happen
281
-
282
- 1. **Build Login Page**
283
- - OAuth provider buttons
284
- - Error messaging
285
- - Loading states
286
-
287
- 2. **Build Register Page**
288
- - Form validation
289
- - Provider linking
290
- - Success messaging
291
-
292
- 3. **Update Layout**
293
- - Add auth header
294
- - Add logout button
295
- - Add user menu
296
-
297
- ### Files to Modify
298
-
299
- ```
300
- src/ui/pages/
301
- ├── login.tsx (new)
302
- ├── register.tsx (new)
303
- └── layout.tsx (modify)
304
-
305
- src/ui/components/
306
- ├── oauth-button.tsx (new)
307
- ├── auth-error.tsx (new)
308
- └── user-menu.tsx (modify)
309
-
310
- styles/
311
- ├── auth.css (new)
312
- ```
313
-
314
- ### Acceptance Criteria
315
-
316
- ```
317
- - [ ] Login page working
318
- - [ ] Register page working
319
- - [ ] OAuth provider flow works E2E
320
- - [ ] Error messages display correctly
321
- - [ ] Mobile responsive
322
- - [ ] Browser compatibility tested
323
- ```
324
-
325
- ---
326
-
327
- ## Phase: Documentation & Testing (FINAL PHASE)
328
-
329
- **Status**: ⏳ Ready to start
330
- **Estimated Start**: _date_ (after UI phase)
331
- **Estimated Duration**: 4 hours
332
-
333
- ### What Needs to Happen
334
-
335
- 1. **Update Documentation**
336
- - README auth section
337
- - Setup guide
338
- - API documentation
339
- - Troubleshooting guide
340
-
341
- 2. **Final Testing**
342
- - Full E2E test suite
343
- - Performance testing
344
- - Security testing
345
- - Browser compatibility
346
-
347
- 3. **Code Review & QA**
348
- - Team code review
349
- - QA testing
350
- - Security review
351
-
352
- ### Acceptance Criteria
353
-
354
- ```
355
- - [ ] All documentation complete
356
- - [ ] All E2E tests passing
357
- - [ ] Code review approved
358
- - [ ] No security issues
359
- - [ ] Performance acceptable
360
- - [ ] Ready for production
361
- ```
362
-
363
- ---
364
-
365
- ## Rollback Points
366
-
367
- ### If Implementation Gets Stuck
368
-
369
- **Rollback Level 1: Last Commit**
370
- ```bash
371
- git reset --hard HEAD
372
- npm install
373
- npm test # Should pass
374
- ```
375
-
376
- **Rollback Level 2: Before This Feature**
377
- ```bash
378
- git checkout main
379
- npm install
380
- npm test
381
- # Verify everything works on main
382
- ```
383
-
384
- **Rollback Level 3: Database Rollback**
385
- ```bash
386
- npm run db:rollback -- auth-v1
387
- # Removes auth tables/fields
388
- # App reverts to state before auth changes
389
- ```
390
-
391
- ---
392
-
393
- ## Checklist: Before Pausing Work
394
-
395
- - [ ] All current tests passing
396
- - [ ] Code builds without errors
397
- - [ ] No uncommitted changes
398
- - [ ] Commit message written (describe state)
399
- - [ ] This Recovery Points file updated
400
- - [ ] Next developer notified
401
- - [ ] Slack message sent with status
402
-
403
- ---
404
-
405
- ## Checklist: When Resuming Work
406
-
407
- - [ ] Pull latest git changes
408
- - [ ] Run `npm install` (if dependencies changed)
409
- - [ ] Run existing tests (verify they still pass)
410
- - [ ] Read IMPLEMENTATION_HANDOFF.md
411
- - [ ] Read this Recovery Points file
412
- - [ ] Update status in this file (what phase are you on?)
413
- - [ ] Begin implementation from current phase
414
-
415
- ---
416
-
417
- ## Known Issues That Might Affect Resumption
418
-
419
- | Issue | Severity | Workaround | Fixed? |
420
- |-------|----------|-----------|--------|
421
- | OAuth token refresh timing | Low | Add 5s buffer | ⏳ TODO |
422
- | Database connection pooling | Medium | Use pool size 10 | ✓ Fixed |
423
- | Rate limiting missing | Low | Not blocking | ⏳ TODO |
424
-
425
- ---
426
-
427
- ## Contact For Questions
428
-
429
- **Original Developer**: _Name_ (_email_)
430
- **Current Owner**: _Name_ (_email_)
431
- **Slack Channel**: #auth-feature
432
-
433
- ---
434
-
435
- **Last Updated**: _YYYY-MM-DD HH:MM_
436
- **Updated By**: _Name_
437
- **Next Review**: _YYYY-MM-DD_
438
- **Paused At**: _Phase: Core Implementation_
1
+ # Recovery Points
2
+
3
+ **Purpose**: Document where harness architecture implementation can be paused and resumed without losing context or creating inconsistencies.
4
+
5
+ **Use When**: Evolution of the Codex harness (verification loops, CLI tools, scripts) needs to be paused, or when a rollback is necessary due to environment breakage.
6
+
7
+ ---
8
+
9
+ ## Quick Reference: Current Recovery Points
10
+
11
+ | Phase | Status | Resumption File | Last Updated |
12
+ |-------|--------|-----------------|--------------|
13
+ | TUI Mockup Viewer Integration | ✓ Complete | `.codebase/CURRENT_STATE.md` | 2026-06-01 |
14
+ | Harness Verification Streamlining | ✓ Complete | `.codebase/CURRENT_STATE.md` | 2026-06-01 |
15
+ | Bead Memory Regression Tests | ✓ Complete | `scripts/run-evals.sh` | 2026-06-01 |
16
+ | Harness Engineering Overhaul | ⏸️ Idle (Stable) | `scripts/verify.sh` | 2026-06-01 |
17
+
18
+ ---
19
+
20
+ ## Phase: Harness Verification Streamlining & Memory Evals
21
+
22
+ **Status**: Complete
23
+ **Last Updated**: 2026-06-01
24
+
25
+ ### What Happened
26
+
27
+ - Cleaned up legacy/deprecated skills (e.g., `genesis-mvp-planning`, `genesis-release-orchestration`) from `scripts/verify.sh`, `scripts/uninstall.sh`, and `scripts/run-evals.sh`.
28
+ - Removed hard-coded skill name mappings (`expected_name` switch statements), enabling dynamic mapping directly based on directory names.
29
+ - Added test coverage in `run-evals.sh` for the local bead memory commands (`remember`, `recall`, `prime`, `forget`).
30
+ - Enforced `state-machine.md` presence in `verify_harness_skill()`.
31
+
32
+ ### Safe State Confirmation
33
+
34
+ The harness currently passes all structural tests cleanly.
35
+ ```bash
36
+ # Verify structure
37
+ ./scripts/verify.sh
38
+
39
+ # Verify regression
40
+ ./scripts/run-evals.sh
41
+
42
+ # Dry-run package integrity
43
+ npm run pack:check
44
+ ```
45
+
46
+ ---
47
+
48
+ ## Rollback Points
49
+
50
+ ### If A Future Harness Evolution Breaks the CLI/Environment
51
+
52
+ **Rollback Level 1: Last Stable Run (Current State)**
53
+ If a new change to `bin/genesis-harness.js` or `scripts/verify.sh` creates infinite loops or immediate failures:
54
+ ```bash
55
+ git checkout -- bin/genesis-harness.js scripts/verify.sh scripts/run-evals.sh
56
+ npm install
57
+ ./scripts/verify.sh
58
+ ```
59
+
60
+ **Rollback Level 2: Full Repository Reset**
61
+ If tests are failing in a manner that contaminates local fixtures or memory:
62
+ ```bash
63
+ git reset --hard HEAD
64
+ git clean -fd
65
+ npm install
66
+ ./scripts/verify.sh
67
+ ```
68
+
69
+ ---
70
+
71
+ ## Checklist: Before Pausing Work on Harness Evolutions
72
+
73
+ - [ ] `scripts/verify.sh` passing cleanly (Exit Code 0)
74
+ - [ ] `scripts/run-evals.sh` passing cleanly (Exit Code 0)
75
+ - [ ] Script files verified for POSIX/LF line endings
76
+ - [ ] No uncommitted changes in core scripts that break existing workflows
77
+ - [ ] `.codebase/CURRENT_STATE.md` updated with exact phase details
78
+
79
+ ---
80
+
81
+ ## Contact For Questions
82
+ **Owner**: Codex Harness Engineering Team
83
+ **Last Validated**: 2026-06-01
@@ -0,0 +1,16 @@
1
+ [
2
+ {
3
+ "id": "212329",
4
+ "category": "general",
5
+ "fact": "Always use PORT 8080 when running development servers locally.",
6
+ "timestamp": "2026-06-01T07:22:12.428Z",
7
+ "git_commit": "92d8138"
8
+ },
9
+ {
10
+ "id": "25d72a",
11
+ "category": "api",
12
+ "fact": "Verify request.json schema before running visual regression tests.",
13
+ "timestamp": "2026-06-01T07:22:33.273Z",
14
+ "git_commit": "92d8138"
15
+ }
16
+ ]
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: ai-provider-skill
2
+ name: genesis-ai-provider
3
3
  description: Define reliable AI provider harnesses with mock providers, schemas, retries, invalid JSON recovery, persistence tests, and provider contracts. Use for LLM, image, voice, subtitle, render, and pipeline provider work.
4
4
  ---
5
5
 
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: api-contract-skill
2
+ name: genesis-api-contract
3
3
  description: Create and verify API contracts before endpoint implementation. Use for API routes, service interfaces, validation rules, error shapes, snapshots, and endpoint tests.
4
4
  ---
5
5