codex-genesis-harness 0.1.5 β 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.codebase/ARCHITECTURE_REVIEW_COMPLETE.md +216 -216
- package/.codebase/CURRENT_STATE.md +8 -2
- package/.codebase/FILE_NAMING_CLARIFICATION.md +161 -161
- package/.codebase/HARNESS_COMPLETENESS_AUDIT.md +613 -613
- package/.codebase/IMPLEMENTATION_COMPLETE.md +429 -429
- package/.codebase/IMPLEMENTATION_HANDOFF.md +351 -351
- package/.codebase/IMPROVEMENTS_SUMMARY.md +419 -419
- package/.codebase/PHASE3_SKILLS_NAMING_COMPLETE.md +292 -292
- package/.codebase/PHASE_DEPENDENCY_MAP.md +486 -486
- package/.codebase/QUICK_START_SPEC_IMPACT.md +456 -456
- package/.codebase/README.md +139 -139
- package/.codebase/RECOVERY_POINTS.md +83 -438
- package/.codebase/beads.json +16 -0
- package/.codex/skills/genesis-ai-provider/SKILL.md +1 -1
- package/.codex/skills/genesis-api-contract/SKILL.md +1 -1
- package/.codex/skills/genesis-api-sync/SKILL.md +354 -354
- package/.codex/skills/genesis-api-sync/checklists/api-sync-checklist.md +101 -101
- package/.codex/skills/genesis-api-sync/templates/api-change-template.md +257 -257
- package/.codex/skills/genesis-architecture/SKILL.md +1 -1
- package/.codex/skills/genesis-codebase-map/SKILL.md +1 -1
- package/.codex/skills/genesis-debug-guide/SKILL.md +479 -479
- package/.codex/skills/genesis-debug-guide/checklists/flaky-test-investigation.md +339 -339
- package/.codex/skills/genesis-debug-guide/checklists/production-bug-debug.md +210 -210
- package/.codex/skills/genesis-debug-guide/checklists/test-failure-debug.md +158 -158
- package/.codex/skills/genesis-debug-guide/observability/debug-commands.md +365 -365
- package/.codex/skills/genesis-debug-guide/playbooks/unit-test-failures.md +289 -289
- package/.codex/skills/genesis-debug-guide/templates/debug-investigation-log.md +288 -288
- package/.codex/skills/genesis-design-spec/SKILL.md +3 -3
- package/.codex/skills/genesis-docs-automation/SKILL.md +1003 -1003
- package/.codex/skills/genesis-docs-automation/checklists/docs-validation.md +359 -359
- package/.codex/skills/genesis-docs-automation/checklists/spec-alignment.md +312 -312
- package/.codex/skills/genesis-docs-automation/observability/docs-tracking.md +382 -382
- package/.codex/skills/genesis-docs-automation/playbooks/auto-update-flow.md +851 -851
- package/.codex/skills/genesis-docs-automation/playbooks/changelog-generation.md +491 -491
- package/.codex/skills/genesis-docs-automation/templates/changelog-entry-template.md +187 -187
- package/.codex/skills/genesis-docs-automation/templates/handoff-template.md +297 -297
- package/.codex/skills/genesis-harness/SKILL.md +1428 -1427
- package/.codex/skills/genesis-harness/agents/openai.yaml +7 -7
- package/.codex/skills/genesis-harness/checklists/bug-fix-qa.md +169 -169
- package/.codex/skills/genesis-harness/checklists/new-feature-qa.md +157 -157
- package/.codex/skills/genesis-harness/checklists/refactor-qa.md +216 -216
- package/.codex/skills/genesis-harness/checklists/requirements-validation.md +211 -211
- package/.codex/skills/genesis-harness/references/planning-schema.md +35 -35
- package/.codex/skills/genesis-harness/references/quality-rubric.md +21 -21
- package/.codex/skills/genesis-harness/references/research-rubric.md +41 -41
- package/.codex/skills/genesis-harness/references/workflows.md +33 -33
- package/.codex/skills/genesis-harness/resources/agents-template.md +27 -27
- package/.codex/skills/genesis-harness/resources/api-docs-template.md +32 -32
- package/.codex/skills/genesis-harness/resources/architecture-template.md +30 -30
- package/.codex/skills/genesis-harness/resources/audit-template.md +26 -26
- package/.codex/skills/genesis-harness/resources/bug-template.md +34 -34
- package/.codex/skills/genesis-harness/resources/change-impact-matrix-template.md +204 -204
- package/.codex/skills/genesis-harness/resources/check-template.md +21 -21
- package/.codex/skills/genesis-harness/resources/conventions-template.md +42 -42
- package/.codex/skills/genesis-harness/resources/decision-template.md +33 -33
- package/.codex/skills/genesis-harness/resources/design-template.md +26 -26
- package/.codex/skills/genesis-harness/resources/escalation-template.md +21 -21
- package/.codex/skills/genesis-harness/resources/feature-template.md +49 -49
- package/.codex/skills/genesis-harness/resources/foundation-phase-template.md +131 -131
- package/.codex/skills/genesis-harness/resources/integrations-template.md +32 -32
- package/.codex/skills/genesis-harness/resources/journeys-template.md +13 -13
- package/.codex/skills/genesis-harness/resources/lessons-learned-template.md +12 -12
- package/.codex/skills/genesis-harness/resources/observability-template.md +34 -34
- package/.codex/skills/genesis-harness/resources/phase-00-foundation-template.md +76 -76
- package/.codex/skills/genesis-harness/resources/phase-template.md +34 -34
- package/.codex/skills/genesis-harness/resources/pitfalls-template.md +22 -22
- package/.codex/skills/genesis-harness/resources/planning-tree-template.md +39 -39
- package/.codex/skills/genesis-harness/resources/post-implementation-guide.md +347 -347
- package/.codex/skills/genesis-harness/resources/project-template.md +38 -38
- package/.codex/skills/genesis-harness/resources/quality-score-template.md +11 -11
- package/.codex/skills/genesis-harness/resources/requirements-template.md +26 -26
- package/.codex/skills/genesis-harness/resources/research-template.md +26 -26
- package/.codex/skills/genesis-harness/resources/review-template.md +22 -22
- package/.codex/skills/genesis-harness/resources/spec-changelog-template.md +6 -6
- package/.codex/skills/genesis-harness/resources/stack-template.md +33 -33
- package/.codex/skills/genesis-harness/resources/verification-template.md +26 -26
- package/.codex/skills/genesis-harness/scripts/check-architecture-boundaries.sh +0 -0
- package/.codex/skills/genesis-harness/scripts/check-docs-sync.sh +0 -0
- package/.codex/skills/genesis-harness/scripts/check-no-debug-logs.sh +0 -0
- package/.codex/skills/genesis-harness/scripts/check-required-planning-files.sh +0 -0
- package/.codex/skills/genesis-harness/scripts/check-spec-changelog.sh +0 -0
- package/.codex/skills/genesis-harness/scripts/check-task-tracking.sh +0 -0
- package/.codex/skills/genesis-harness/scripts/compact-context.sh +0 -0
- package/.codex/skills/genesis-harness/scripts/create-adr.sh +0 -0
- package/.codex/skills/genesis-harness/scripts/create-bug.sh +0 -0
- package/.codex/skills/genesis-harness/scripts/create-feature.sh +0 -0
- package/.codex/skills/genesis-harness/scripts/detect-stack.sh +0 -0
- package/.codex/skills/genesis-harness/scripts/init-planning.sh +0 -0
- package/.codex/skills/genesis-harness/scripts/list-changed-files.sh +0 -0
- package/.codex/skills/genesis-harness/scripts/offload-log.sh +0 -0
- package/.codex/skills/genesis-harness/scripts/run-verification.sh +0 -0
- package/.codex/skills/genesis-harness/scripts/run-verify-loop.sh +0 -0
- package/.codex/skills/genesis-harness/scripts/update-state.sh +0 -0
- package/.codex/skills/genesis-harness-engineering/SKILL.md +1 -1
- package/.codex/skills/genesis-new-design/SKILL.md +2 -1
- package/.codex/skills/genesis-new-design/agents/openai.yaml +3 -3
- package/.codex/skills/genesis-observability-automation/checklists/.gitkeep +0 -0
- package/.codex/skills/genesis-observability-automation/observability/.gitkeep +0 -0
- package/.codex/skills/genesis-observability-automation/playbooks/.gitkeep +0 -0
- package/.codex/skills/genesis-observability-automation/templates/.gitkeep +0 -0
- package/.codex/skills/genesis-pipeline-orchestration/SKILL.md +1 -1
- package/.codex/skills/genesis-planning/SKILL.md +26 -1
- package/.codex/skills/genesis-planning/checklists/mvp-readiness.md +18 -0
- package/.codex/skills/genesis-planning/examples/5-phase-roadmap-example.md +43 -0
- package/.codex/skills/genesis-planning/templates/phase-1-core.md +17 -0
- package/.codex/skills/genesis-planning/templates/phase-2-auth.md +17 -0
- package/.codex/skills/genesis-planning/templates/phase-3-features.md +17 -0
- package/.codex/skills/genesis-planning/templates/phase-4-integrations.md +17 -0
- package/.codex/skills/genesis-planning/templates/phase-5-readiness.md +17 -0
- package/.codex/skills/genesis-release/SKILL.md +24 -1
- package/.codex/skills/{genesis-release-orchestration β genesis-release}/checklists/post-deployment-verification.md +274 -274
- package/.codex/skills/{genesis-release-orchestration β genesis-release}/checklists/pre-release-validation.md +220 -220
- package/.codex/skills/{genesis-release-orchestration β genesis-release}/observability/release-tracking.md +253 -253
- package/.codex/skills/{genesis-release-orchestration β genesis-release}/playbooks/canary-deployment-orchestration.md +472 -472
- package/.codex/skills/{genesis-release-orchestration β genesis-release}/playbooks/semantic-versioning-automation.md +494 -494
- package/.codex/skills/{genesis-release-orchestration β genesis-release}/templates/deployment-strategy-template.md +303 -303
- package/.codex/skills/{genesis-release-orchestration β genesis-release}/templates/release-runbook-template.md +420 -420
- package/.codex/skills/genesis-research-first/SKILL.md +237 -237
- package/.codex/skills/genesis-research-first/templates/.gitkeep +0 -0
- package/.codex/skills/genesis-spec-propagation/SKILL.md +534 -534
- package/.codex/skills/genesis-spec-propagation/checklists/phase-update-verification.md +384 -384
- package/.codex/skills/genesis-spec-propagation/checklists/spec-change-detection.md +257 -257
- package/.codex/skills/genesis-spec-propagation/observability/propagation-tracking.md +373 -373
- package/.codex/skills/genesis-spec-propagation/playbooks/breaking-change-propagation.md +692 -692
- package/.codex/skills/genesis-spec-propagation/playbooks/feature-change-propagation.md +434 -434
- package/.codex/skills/genesis-spec-propagation/templates/migration-guide-template.md +407 -407
- package/.codex/skills/{ui-ux-test-skill β genesis-ui-ux-test}/SKILL.md +1 -1
- package/.codex/skills/genesis-upgrade-design/agents/openai.yaml +3 -3
- package/.codex/skills/spec-impact-engine/SKILL.md +504 -504
- package/.codex/skills/spec-impact-engine/detect-spec-changes.sh +0 -0
- package/.codex-plugin/plugin.json +19 -19
- package/CHANGELOG.md +56 -0
- package/LICENSE +22 -22
- package/README.EN.md +780 -730
- package/README.VI.md +772 -723
- package/README.md +102 -247
- package/VERSION +2 -2
- package/bin/genesis-harness.js +695 -92
- package/package.json +9 -3
- package/scripts/README.md +342 -342
- package/scripts/compact-context.sh +0 -0
- package/scripts/contract_integrity_gate.js +83 -0
- package/scripts/detect-changes.sh +0 -0
- package/scripts/healing_telemetry.js +118 -0
- package/scripts/install.sh +5 -6
- package/scripts/offload-log.sh +0 -0
- package/scripts/prompt_sentinel.js +84 -0
- package/scripts/run-evals.sh +20 -24
- package/scripts/run-verify-loop.sh +11 -0
- package/scripts/spec_visual_sync.js +157 -0
- package/scripts/test_generator.js +142 -0
- package/scripts/transition_state.sh +0 -0
- package/scripts/uninstall.sh +2 -5
- package/scripts/validation_gates.sh +40 -1
- package/scripts/verify.sh +6 -61
- package/tests/unit/contract_integrity_gate.test.js +74 -0
- package/tests/unit/healing_telemetry.test.js +58 -0
- package/tests/unit/prompt_sentinel.test.js +50 -0
- package/tests/unit/spec_visual_sync.test.js +77 -0
- package/tests/unit/test_generator.test.js +62 -0
- package/.codex/skills/genesis-docs/SKILL.md +0 -46
- package/.codex/skills/genesis-docs/agents/openai.yaml +0 -7
- package/.codex/skills/genesis-release-orchestration/SKILL.md +0 -653
- package/.codex/skills/genesis-release-orchestration/agents/openai.yaml +0 -7
- package/.codex/skills/genesis-research/SKILL.md +0 -46
- package/.codex/skills/genesis-research/agents/openai.yaml +0 -7
- /package/.codex/skills/{genesis-docs/checklists/checklist.md β genesis-docs-automation/checklists/manual-docs-checklist.md} +0 -0
- /package/.codex/skills/{genesis-docs/examples/example.md β genesis-docs-automation/examples/manual-docs-example.md} +0 -0
- /package/.codex/skills/{genesis-docs β genesis-docs-automation}/templates/docs-update-template.md +0 -0
- /package/.codex/skills/{genesis-state-machine/SKILL.md β genesis-harness/references/state-machine.md} +0 -0
- /package/.codex/skills/{genesis-release-orchestration/examples/example.md β genesis-release/examples/orchestration-example.md} +0 -0
- /package/.codex/skills/{genesis-research β genesis-research-first}/checklists/checklist.md +0 -0
- /package/.codex/skills/{genesis-research/examples/example.md β genesis-research-first/examples/manual-research-example.md} +0 -0
- /package/.codex/skills/{genesis-research β genesis-research-first}/templates/research-note-template.md +0 -0
- /package/.codex/skills/{ui-ux-test-skill β genesis-ui-ux-test}/agents/openai.yaml +0 -0
- /package/.codex/skills/{ui-ux-test-skill β genesis-ui-ux-test}/checklists/checklist.md +0 -0
- /package/.codex/skills/{ui-ux-test-skill β genesis-ui-ux-test}/examples/example.md +0 -0
- /package/.codex/skills/{ui-ux-test-skill β genesis-ui-ux-test}/templates/playwright-test-template.md +0 -0
package/README.EN.md
CHANGED
|
@@ -1,730 +1,780 @@
|
|
|
1
|
-
# Genesis Codex Harness - Comprehensive English Guide
|
|
2
|
-
|
|
3
|
-
**[TiαΊΏng Viα»t](README.VI.md)** | English
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## π What is Genesis Codex Harness?
|
|
8
|
-
|
|
9
|
-
**Genesis Codex Harness** is an enterprise-grade, **Codex-exclusive** development framework for building production-quality software with Codex as your AI engineer.
|
|
10
|
-
|
|
11
|
-
### Core Capabilities
|
|
12
|
-
|
|
13
|
-
-
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
-
-
|
|
17
|
-
- β
**
|
|
18
|
-
-
|
|
19
|
-
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
-
|
|
24
|
-
-
|
|
25
|
-
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
β Codex
|
|
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
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
**
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
```
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
```
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
```
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
```
|
|
316
|
-
* **Step 2**:
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
*
|
|
323
|
-
*
|
|
324
|
-
*
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
---
|
|
331
|
-
|
|
332
|
-
###
|
|
333
|
-
*Use this when
|
|
334
|
-
|
|
335
|
-
* **Step 1**:
|
|
336
|
-
```
|
|
337
|
-
|
|
338
|
-
```
|
|
339
|
-
* **Step 2**:
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
* **Step
|
|
345
|
-
*
|
|
346
|
-
|
|
347
|
-
*
|
|
348
|
-
*
|
|
349
|
-
```
|
|
350
|
-
|
|
351
|
-
```
|
|
352
|
-
|
|
353
|
-
*
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
* **Step
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
```
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
*
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
)
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
**
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
**
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
-
|
|
622
|
-
-
|
|
623
|
-
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
**
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
---
|
|
706
|
-
|
|
707
|
-
##
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
-
|
|
711
|
-
-
|
|
712
|
-
-
|
|
713
|
-
-
|
|
714
|
-
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
-
|
|
718
|
-
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
1
|
+
# Genesis Codex Harness - Comprehensive English Guide
|
|
2
|
+
|
|
3
|
+
**[TiαΊΏng Viα»t](README.VI.md)** | English
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## π What is Genesis Codex Harness?
|
|
8
|
+
|
|
9
|
+
**Genesis Codex Harness** is an enterprise-grade, **Codex-exclusive** development framework for building production-quality software with Codex as your AI engineer.
|
|
10
|
+
|
|
11
|
+
### Core Capabilities
|
|
12
|
+
|
|
13
|
+
- πΊοΈ **Structured 5-Phase MVP Roadmap (`genesis-mvp-planning`)** - Guarantees a decision-complete path to production by organizing project delivery across 5 standard gates, ensuring core contracts/infrastructure are validated before feature coding.
|
|
14
|
+
- π‘οΈ **Zero-Drift Validation Gates (`validation_gates.sh`)** - Prevents documentation decay by running automated Git diff scans on phase transitions to flag when source code has modified API, DB schema, or test files without updating matching specifications in `.codebase/`.
|
|
15
|
+
- π **The Death of Context Rot** - Automatically offloads massive terminal outputs (`offload-log.sh`) and dynamically compacts codebase state (`compact-context.sh`), saving 40-60% of prompt window capacity.
|
|
16
|
+
- π₯ **Autonomous Self-Healing (Ralph Loops)** - Catch compilation or test failures and execute closed-loop verify-fix loops (`run-verify-loop.sh`) up to 5 times autonomously, writing fixes and refactoring code until tests turn green.
|
|
17
|
+
- β
**Test-First Development & Contract-First Design** - Strictly enforces writing schemas and failing integration tests (RED) before writing minimal GREEN implementation and refining (IMPROVE).
|
|
18
|
+
- π **Cascading Spec Propagation** - Automatically propagates API contract and schema updates downstream across all affected phases, fixtures, and assertions using the `/propagate-spec` engine.
|
|
19
|
+
- π§ **Empirical, Research-First Engineering** - Auto-researches local codebase patterns and official documentation before generating plans or executing tasks.
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
**Perfect for**:
|
|
23
|
+
- Teams building enterprise software with Codex
|
|
24
|
+
- Projects needing reliable, repeatable development workflows
|
|
25
|
+
- Developers tired of starting from scratch every time
|
|
26
|
+
- Organizations wanting to reduce development token costs
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## π― Why Genesis? (ROI in 3 minutes)
|
|
31
|
+
|
|
32
|
+
### Before Genesis β
|
|
33
|
+
```
|
|
34
|
+
New feature request
|
|
35
|
+
β Explain to Codex what you're building (3k tokens)
|
|
36
|
+
β Codex starts from scratch every time
|
|
37
|
+
β Manual API design, inconsistent contracts
|
|
38
|
+
β No test-first enforcement
|
|
39
|
+
β Change one spec, break 5 others (discover at test time)
|
|
40
|
+
β Rework, rework, rework...
|
|
41
|
+
β Total: 80-150k tokens per project
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### With Genesis β
|
|
45
|
+
```
|
|
46
|
+
New feature request: /new-feature "description"
|
|
47
|
+
β Codex remembers everything from .codebase/ (cache hit!)
|
|
48
|
+
β Contract already defined
|
|
49
|
+
β Test fixtures ready to use
|
|
50
|
+
β Spec changes detected automatically: /spec-change file.json
|
|
51
|
+
β Downstream phases auto-updated: /propagate-spec
|
|
52
|
+
β Tests verify everything works
|
|
53
|
+
β Done.
|
|
54
|
+
β Total: 40-80k tokens (60% savings!)
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
## π Enterprise Comparison: Genesis vs. Standard Agents
|
|
60
|
+
|
|
61
|
+
When developing with a standard AI agent (such as Claude Code in basic mode, default GitHub Copilot Workspace, or standard LLM wrappers), you inevitably hit context drift, design regression, and code fragility as your project grows. Genesis Codex Harness is designed to solve these pain points through rigorous **Harness Engineering**.
|
|
62
|
+
|
|
63
|
+
| Feature | Standard AI Agents (Claude Code, Copilot Workspace, standard wrappers) | Genesis Codex Harness (Codex-Exclusive Harness) |
|
|
64
|
+
| :--- | :--- | :--- |
|
|
65
|
+
| **Workflow Paradigm** | **Passive (Code-Gen First):** Writes implementation code immediately upon request, skipping contracts and test design, creating technical debt. | **Active & Strict (Contract-First + TDD):** Forces API contracts definition first, auto-generates failing tests (RED), minimal code (GREEN), then refactoring (IMPROVE). |
|
|
66
|
+
| **Context & Memory Rot** | **Passive Bloat:** Raw tool logs and redundant file reads accumulate in the prompt, leading to prompt dilution, hallucinations, and amnesia. | **Dynamic Context Compaction:** Automatically offloads large execution logs (`offload-log.sh`) and compacts historical context (`compact-context.sh`). Saves **40-60%** of prompt window. |
|
|
67
|
+
| **Self-Healing (Error Recovery)** | **Manual Iteration:** When tests fail, you must manually copy-paste errors and prompt the agent to retry, leading to tedious debug loops. | **Autonomous Ralph Loops:** Detects compilation/test failures and executes a self-healing **Verify-Fix Loop** (`run-verify-loop.sh`) up to 5 times autonomously. |
|
|
68
|
+
| **Spec Change Management** | **Fragile:** Modifying a schema or API field silently breaks downstream modules. Regression is only discovered at runtime or manual QA. | **Cascading Spec Propagation:** Detects spec modifications (`/spec-change`) and propagates updates (`/propagate-spec`) downstream across contracts, fixtures, and tests. |
|
|
69
|
+
| **Session Resumability** | **Ephemeral:** Resetting the session wipes all codebase map understanding. You must re-explain the project architecture from scratch. | **Permanent State:** The compressed repository memory inside `.codebase/` persists state, design invariants (ADRs), and phase progression permanently. |
|
|
70
|
+
| **Token Cost & ROI** | **Uncontrolled Spend:** Large raw logs and full-file dumps are sent to the LLM on every turn, escalating API token bills dramatically. | **Predictable Efficiency:** Leverages smart local context compaction and prompt-optimized state tracking to cut token overhead by **40-60%** per project. |
|
|
71
|
+
| **Verification & Stability** | **None:** Relies on superficial assertions. No strict verification that structural rules or skill boundaries are maintained. | **Rigorous Assurance:** Enforced via automated CLI verification (`verify.sh`) verifying that skill schemas, design specifications, and contracts match perfectly. |
|
|
72
|
+
|
|
73
|
+
---
|
|
74
|
+
|
|
75
|
+
## 𧬠Technological Breakthroughs: The Core Harness Subsystems (Evolutionary Upgrades)
|
|
76
|
+
|
|
77
|
+
The active FSM runtime surrounds Codex with robust validation, self-healing, and memory safeguards. Below is the operational workflow of the Genesis Harness:
|
|
78
|
+
|
|
79
|
+
```mermaid
|
|
80
|
+
graph TD
|
|
81
|
+
User([User Request / Slash Command]) --> RF[1. Research-First Engine]
|
|
82
|
+
RF --> IP[Implementation Plan & Contracts]
|
|
83
|
+
IP --> TDD[2. Test-First TDD RED State]
|
|
84
|
+
TDD --> Codex{Codex Code-Gen}
|
|
85
|
+
Codex --> VL[3. Verify-Fix Loop / Ralph Loop]
|
|
86
|
+
VL -- Test Fails <= 5 times --> Correct[Auto-Refactor & Diagnose Logs]
|
|
87
|
+
Correct --> Codex
|
|
88
|
+
VL -- Test Passes / Green --> VG[4. Zero-Drift Validation Gate]
|
|
89
|
+
VG -- Git Diff Spec Warning --> Synced[5. Auto-Docs & State Compaction]
|
|
90
|
+
Synced --> Complete([COMPLETED State])
|
|
91
|
+
|
|
92
|
+
subgraph Harness Runtime Shell (FSM-Driven)
|
|
93
|
+
RF
|
|
94
|
+
TDD
|
|
95
|
+
VL
|
|
96
|
+
Correct
|
|
97
|
+
VG
|
|
98
|
+
Synced
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
subgraph Memory & Context Safeguards
|
|
102
|
+
Compaction[(Context Compaction)] <--> Synced
|
|
103
|
+
Offload[(Tool Log Offloader)] <--> VL
|
|
104
|
+
end
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
Genesis Codex Harness introduces five groundbreaking architectural subsystems to ensure continuous, resilient execution in large-scale production codebases without context degradation or documentation drift:
|
|
108
|
+
|
|
109
|
+
### 1. Context Compaction Engine (`compact-context.sh`)
|
|
110
|
+
* **The Problem**: Long developer-AI conversations accumulate hundreds of thousands of redundant tokens, diluting the prompt window, causing model amnesia, and raising API costs.
|
|
111
|
+
* **The Solution**: Automatically active. The engine compacts core architectural decisions, API states, and task completion metrics into condensed files inside `.codebase/context/`, clears redundant chat records, and re-seeds the essential prompt state from disk.
|
|
112
|
+
* **The Benefit**: Maintains prompt sharpness and maximum precision even after 100+ turns of continuous coding, yielding 40-60% token savings.
|
|
113
|
+
|
|
114
|
+
### 2. Tool Call Offloading (`offload-log.sh`)
|
|
115
|
+
* **The Problem**: Running test suites, builds, or directory traversals returns thousands of lines of raw terminal output, instantly flooding the prompt window and diluting focus.
|
|
116
|
+
* **The Solution**: Intercepts massive command outputs and redirects them to local disk logs (`.system_generated/tasks/`), returning a clean structural status summary (exit code, test counts, key compile errors) to the model.
|
|
117
|
+
* **The Benefit**: Eliminates the risk of prompt window exhaustion from long build or test execution cycles.
|
|
118
|
+
|
|
119
|
+
### 3. Ralph Loops / Self-Healing Verify-Fix Loop (`run-verify-loop.sh`)
|
|
120
|
+
* **The Problem**: When a test fails or a build breaks, forcing the developer to manually copy-paste terminal errors and instruct the AI to retry is slow and repetitive.
|
|
121
|
+
* **The Solution**: Implements an autonomous, closed-loop self-healing mechanism. When a build/test verification fails, the loop automatically parses disk error logs, refactors source code, and re-runs the tests up to 5 times autonomously.
|
|
122
|
+
* **The Benefit**: Resolves 90% of syntax errors, import mismatches, and contract alignment bugs without developer intervention.
|
|
123
|
+
|
|
124
|
+
### 4. 5-Phase MVP Roadmap Planner (`genesis-mvp-planning`)
|
|
125
|
+
* **The Problem**: Basic AI agents solve tasks ad-hoc, coding features without establishing foundational APIs, databases, or auth structures first, leading to major regression.
|
|
126
|
+
* **The Solution**: Runs immediately post-initialization to structure delivery across 5 standard product gates (Foundation, Auth, Features, Integrations, Production-Ready), ensuring core infrastructure is robust and verified before building advanced features.
|
|
127
|
+
* **The Benefit**: Enforces architectural discipline and prevents developers from building on shaky foundational code.
|
|
128
|
+
|
|
129
|
+
### 5. Zero-Drift Validation Gates (`validation_gates.sh`)
|
|
130
|
+
* **The Problem**: As codebases evolve rapidly, technical documentation (specs, contracts, database schemas) drifts and becomes obsolete because developers forget to update it.
|
|
131
|
+
* **The Solution**: Integrated directly into state transition gates. It automatically scans Git changes and alerts the developer if source files are modified but matching design/spec documents under `.codebase/` remain unchanged.
|
|
132
|
+
* **The Benefit**: Guarantees zero documentation decay, keeping system design maps perfectly in sync with source code.
|
|
133
|
+
|
|
134
|
+
---
|
|
135
|
+
|
|
136
|
+
## π Next-Gen Harness Engineering Upgrades (v0.1.7)
|
|
137
|
+
|
|
138
|
+
Genesis v0.1.7 introduces five advanced, state-of-the-art tools under `scripts/` to enforce type-safety, automate tests, establish visual-code integrity, protect token consumption, and enable self-healing loop memory recall:
|
|
139
|
+
|
|
140
|
+
1. **Visual Architecture AST Sync (`scripts/spec_visual_sync.js`)**: Bidirectional compiler that syncs Mermaid ERD database diagrams (`database-erd.mmd`) to API contracts JSON schemas (`contracts/api/`) and vice-versa, establishing absolute visual-to-code design integrity.
|
|
141
|
+
2. **Contract-Driven Test Auto-Generator (`scripts/test_generator.js`)**: Automatically compiles fully executable Mocha/Jest integration test suites in `tests/integration/` directly from your API contracts JSON response schemas, providing instant TDD "RED" skeletons.
|
|
142
|
+
3. **AST Contract-Code Integrity Gate (`scripts/contract_integrity_gate.js`)**: Static analysis checker that programmatically validates implementation code properties against API contract JSON schemas at FSM transition boundaries, locking state transitions if data type mismatches or missing properties are detected.
|
|
143
|
+
4. **Pre-emptive Prompt Sentinel (`scripts/prompt_sentinel.js`)**: Real-time token budget monitor. Calculates token weights before calling LLM, pre-emptively halting runaway commands, and executing auto-compaction and log pruning when capacity thresholds (e.g. 20k tokens) are crossed.
|
|
144
|
+
5. **Self-Healing Lessons-Learned Recall (`scripts/healing_telemetry.js`)**: Telemetry system that records compiler/test failure signatures and applied corrective code edits in `.codebase/failures/lessons_learned.md`. The self-healing loop recalls these recorded fixes on identical error signatures, bypassing iterations to achieve immediate **1-turn recovery**.
|
|
145
|
+
|
|
146
|
+
---
|
|
147
|
+
|
|
148
|
+
## π¬ Research-First Guarantee (NEW)
|
|
149
|
+
|
|
150
|
+
**Every important decision is grounded in evidence. No guessing.**
|
|
151
|
+
|
|
152
|
+
When you use commands like `/genesis-init`, `/new-feature`, `/fix-bug`, Genesis automatically:
|
|
153
|
+
|
|
154
|
+
1. **Research Local** - Reads your codebase, existing patterns, docs
|
|
155
|
+
2. **Research External** - Checks GitHub, official docs, best practices
|
|
156
|
+
3. **Compile Evidence** - Builds research note with recommendation + risks
|
|
157
|
+
4. **Generate Plan** - Creates plan pre-populated with findings
|
|
158
|
+
5. **You Review** - Approve plan before implementation starts
|
|
159
|
+
|
|
160
|
+
```
|
|
161
|
+
/new-feature "Add WebSocket notifications"
|
|
162
|
+
β
|
|
163
|
+
[AUTO] Research Phase
|
|
164
|
+
- Found existing Socket.io setup in codebase
|
|
165
|
+
- GitHub best practices: Redis adapter for scaling
|
|
166
|
+
- Official docs: Socket.io namespace pattern
|
|
167
|
+
β
|
|
168
|
+
[AUTO] Compiled Research Note
|
|
169
|
+
- Question: Best way to add real-time notifications?
|
|
170
|
+
- Evidence: Codebase uses Socket.io, team familiar
|
|
171
|
+
- Recommendation: Extend existing Socket.io (not new library)
|
|
172
|
+
- Risks: Requires Redis availability
|
|
173
|
+
β
|
|
174
|
+
[AUTO] Generated Plan
|
|
175
|
+
- Phase 1: Socket.io namespace setup
|
|
176
|
+
- Phase 2: Authentication
|
|
177
|
+
- Phase 3: Notification flow
|
|
178
|
+
- Pre-populated risks from research
|
|
179
|
+
β
|
|
180
|
+
You Review & Approve
|
|
181
|
+
- Plan ready with full research backing
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
**Benefits**:
|
|
185
|
+
- β
No "what framework should we use?" guessing
|
|
186
|
+
- β
All decisions backed by evidence
|
|
187
|
+
- β
Patterns reused from existing codebase
|
|
188
|
+
- β
Best practices automatically included
|
|
189
|
+
- β
Risks identified upfront
|
|
190
|
+
- β
0 rework from wrong assumptions
|
|
191
|
+
|
|
192
|
+
---
|
|
193
|
+
|
|
194
|
+
## π Quick Start (5 Minutes)
|
|
195
|
+
|
|
196
|
+
### 1. Install
|
|
197
|
+
|
|
198
|
+
```bash
|
|
199
|
+
# Global installation (recommended)
|
|
200
|
+
npm install -g codex-genesis-harness@latest
|
|
201
|
+
|
|
202
|
+
# Verify installation
|
|
203
|
+
genesis-harness verify
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
### 2. Init Your First Project
|
|
207
|
+
|
|
208
|
+
Open Codex and type one command:
|
|
209
|
+
|
|
210
|
+
```
|
|
211
|
+
/genesis-init
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
**Codex will ask**:
|
|
215
|
+
- Project name? (e.g., "E-Commerce API")
|
|
216
|
+
- Brief description? (e.g., "REST API for online store with Stripe payments")
|
|
217
|
+
|
|
218
|
+
**Genesis auto-creates**:
|
|
219
|
+
```
|
|
220
|
+
β
Project structure (30 folders)
|
|
221
|
+
β
Documentation templates (22 files)
|
|
222
|
+
β
Phase planning (5 phases by default)
|
|
223
|
+
β
Test templates (ready to customize)
|
|
224
|
+
β
Contract templates (API, UI, data)
|
|
225
|
+
β
Memory system (.codebase/ structure)
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
### 3. Start Your First Feature
|
|
229
|
+
|
|
230
|
+
```
|
|
231
|
+
/new-feature "Add user authentication with JWT"
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
**What Genesis provides**:
|
|
235
|
+
```
|
|
236
|
+
contracts/api/auth/
|
|
237
|
+
βββ request.json # What the API accepts
|
|
238
|
+
βββ response.json # What the API returns
|
|
239
|
+
βββ error.json # Error cases
|
|
240
|
+
βββ schema.json # Validation rules
|
|
241
|
+
βββ example.json # Concrete example
|
|
242
|
+
|
|
243
|
+
tests/integration/
|
|
244
|
+
βββ auth.test.md # Test template (write tests first!)
|
|
245
|
+
|
|
246
|
+
fixtures/
|
|
247
|
+
βββ auth-fixture.md # Test data + expected output
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
### 4. Follow Test-First Workflow
|
|
251
|
+
|
|
252
|
+
**RED** - Write failing test:
|
|
253
|
+
```javascript
|
|
254
|
+
// tests/integration/auth.test.md
|
|
255
|
+
it('should authenticate user with correct password', async () => {
|
|
256
|
+
const res = await POST('/api/auth/login', {
|
|
257
|
+
email: 'user@example.com',
|
|
258
|
+
password: 'correct_password'
|
|
259
|
+
});
|
|
260
|
+
|
|
261
|
+
assert(res.status === 200);
|
|
262
|
+
assert(res.body.token); // JWT token returned
|
|
263
|
+
});
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
**GREEN** - Implement minimal code:
|
|
267
|
+
```javascript
|
|
268
|
+
// src/auth.js
|
|
269
|
+
app.post('/api/auth/login', (req, res) => {
|
|
270
|
+
const { email, password } = req.body;
|
|
271
|
+
|
|
272
|
+
if (password === 'correct_password') {
|
|
273
|
+
const token = jwt.sign({ email }, process.env.JWT_SECRET);
|
|
274
|
+
res.json({ token });
|
|
275
|
+
} else {
|
|
276
|
+
res.status(401).json({ error: 'Invalid password' });
|
|
277
|
+
}
|
|
278
|
+
});
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
**IMPROVE** - Refactor:
|
|
282
|
+
```javascript
|
|
283
|
+
// Better validation, error handling, logging
|
|
284
|
+
// Genesis verifies: tests pass β
, contract matches β
, coverage 80%+ β
|
|
285
|
+
```
|
|
286
|
+
|
|
287
|
+
### 5. Verify Everything Works
|
|
288
|
+
|
|
289
|
+
```bash
|
|
290
|
+
npm run verify
|
|
291
|
+
```
|
|
292
|
+
|
|
293
|
+
**Genesis checks**:
|
|
294
|
+
- β
All tests pass
|
|
295
|
+
- β
Contract matches implementation
|
|
296
|
+
- β
80%+ test coverage
|
|
297
|
+
- β
No token budget violations
|
|
298
|
+
- β
Code quality meets standards
|
|
299
|
+
|
|
300
|
+
---
|
|
301
|
+
|
|
302
|
+
## π οΈ Step-by-Step Production Runbooks
|
|
303
|
+
|
|
304
|
+
A detailed guide to operating the Genesis Codex Harness across every real-world development scenario.
|
|
305
|
+
|
|
306
|
+
---
|
|
307
|
+
|
|
308
|
+
### 1οΈβ£ Creating a New Project from Scratch (`/genesis-init` Flow)
|
|
309
|
+
*Use this when starting a brand new project and you want to establish professional-grade architecture and planning from day one.*
|
|
310
|
+
|
|
311
|
+
* **Step 1**: Create a new empty directory and open it in VS Code (with Codex/Claude):
|
|
312
|
+
```bash
|
|
313
|
+
mkdir my-new-project && cd my-new-project
|
|
314
|
+
code .
|
|
315
|
+
```
|
|
316
|
+
* **Step 2**: Command Codex to initialize the workspace:
|
|
317
|
+
```text
|
|
318
|
+
/genesis-init
|
|
319
|
+
```
|
|
320
|
+
* **Step 3**: Answer the prompt questions regarding project name, description, and target tech stack.
|
|
321
|
+
* **Step 4**: [AUTOMATIC] Genesis fires `init-planning.sh` to:
|
|
322
|
+
* Generate standard directories (`contracts/`, `fixtures/`, `tests/`, `.codebase/`, `observability/`).
|
|
323
|
+
* Initialize `.codebase/CURRENT_STATE.md` and `ARCHITECTURE.md`.
|
|
324
|
+
* Deconstruct the project into **5 sequential phases** with specific deliverables.
|
|
325
|
+
* **Step 5**: Run the initial harness check to verify the structure:
|
|
326
|
+
```bash
|
|
327
|
+
genesis-harness verify
|
|
328
|
+
```
|
|
329
|
+
|
|
330
|
+
---
|
|
331
|
+
|
|
332
|
+
### 2οΈβ£ Adding a New Feature (`/new-feature` Flow under Strict TDD)
|
|
333
|
+
*Use this when adding new business requirements to a Genesis-enabled project. The workflow strictly enforces test-first design.*
|
|
334
|
+
|
|
335
|
+
* **Step 1**: Direct Codex to start the new feature:
|
|
336
|
+
```text
|
|
337
|
+
/new-feature "Add Momo Payment API with callback handler"
|
|
338
|
+
```
|
|
339
|
+
* **Step 2**: [AUTOMATIC] Genesis triggers **Research-First Engine**:
|
|
340
|
+
* Scans codebase for existing patterns (e.g., Stripe, ZaloPay integrations).
|
|
341
|
+
* Creates a solution proposal in `research-template.md`.
|
|
342
|
+
* Sets up a detailed **Implementation Plan**.
|
|
343
|
+
* **Step 3**: Review and approve the Implementation Plan.
|
|
344
|
+
* **Step 4**: **Define API Contracts (Contract-First)**:
|
|
345
|
+
* Establish response/request contracts under `contracts/api/payments/momo-request.json` and `momo-response.json`.
|
|
346
|
+
* **Step 5**: **Write a Failing Test (RED)**:
|
|
347
|
+
* Write a test case in `tests/integration/momo.test.md` mocking the API request and verifying the callback response.
|
|
348
|
+
* Run the test suite and confirm it fails:
|
|
349
|
+
```bash
|
|
350
|
+
npm run test
|
|
351
|
+
```
|
|
352
|
+
* **Step 6**: **Implement Minimal Code (GREEN)**:
|
|
353
|
+
* Code the absolute minimum required in `src/routes/payments.js` to satisfy the tests.
|
|
354
|
+
* **Step 7**: **Verify & Refactor (IMPROVE)**:
|
|
355
|
+
* Execute the self-healing verify loop to optimize code, confirm all tests pass, and verify >80% code coverage:
|
|
356
|
+
```bash
|
|
357
|
+
bash scripts/run-verify-loop.sh
|
|
358
|
+
```
|
|
359
|
+
|
|
360
|
+
---
|
|
361
|
+
|
|
362
|
+
### 3οΈβ£ Fixing a Bug (`/fix-bug` Flow)
|
|
363
|
+
*Use this when debugging production exceptions or resolving failing regression test suites.*
|
|
364
|
+
|
|
365
|
+
* **Step 1**: Command Codex to locate and resolve the bug:
|
|
366
|
+
```text
|
|
367
|
+
/fix-bug "Discount code is not applied when the cart has more than 5 items"
|
|
368
|
+
```
|
|
369
|
+
* **Step 2**: [AUTOMATIC] Genesis generates a bug file `bug-template.md` under `.codebase/failures/` requiring:
|
|
370
|
+
* Detailed root-cause analysis (RCA).
|
|
371
|
+
* A reproducible test case before modifying source code.
|
|
372
|
+
* **Step 3**: **Write a Reproducible Test**:
|
|
373
|
+
* Add a unit test in `tests/unit/discount.test.js` specifying 6 items and a valid coupon code.
|
|
374
|
+
* Execute the test to verify it fails (RED).
|
|
375
|
+
* **Step 4**: **Perform the Fix & Self-Heal**:
|
|
376
|
+
* Correct the logic in `src/services/discount.js`.
|
|
377
|
+
* Trigger the autonomous verify loop to ensure the fix passes and does not break existing features (Regression test):
|
|
378
|
+
```bash
|
|
379
|
+
bash scripts/run-verify-loop.sh
|
|
380
|
+
```
|
|
381
|
+
* **Step 5**: Close the bug log, update the status to resolved, and catalog lessons learned in `lessons-learned-template.md`.
|
|
382
|
+
|
|
383
|
+
---
|
|
384
|
+
|
|
385
|
+
### 4οΈβ£ Integrating Genesis into an Existing Project (Legacy Codebase Injection)
|
|
386
|
+
*Use this when you have an established codebase and want to inject the Genesis Harness to gain planning and regression control.*
|
|
387
|
+
|
|
388
|
+
* **Step 1**: Install the harness CLI globally:
|
|
389
|
+
```bash
|
|
390
|
+
npm install -g codex-genesis-harness@latest
|
|
391
|
+
```
|
|
392
|
+
* **Step 2**: At the root of your existing codebase, execute:
|
|
393
|
+
```bash
|
|
394
|
+
genesis-harness init --existing
|
|
395
|
+
```
|
|
396
|
+
*(Or command Codex in chat: `I want to integrate Genesis into this existing project`)*
|
|
397
|
+
* **Step 3**: **Establish Memory Mapping**:
|
|
398
|
+
* Genesis scans your directories and constructs a dependency graph in `.codebase/DEPENDENCY_GRAPH.md`.
|
|
399
|
+
* It initializes `.codebase/CURRENT_STATE.md` with your existing components grouped under "Phase 0 (Legacy Components)".
|
|
400
|
+
* **Step 4**: **Auto-Generate Contracts for Core Services**:
|
|
401
|
+
* Choose a key route or controller (e.g., `src/routes/users.js`) and run:
|
|
402
|
+
```text
|
|
403
|
+
/spec-change src/routes/users.js
|
|
404
|
+
```
|
|
405
|
+
* Genesis parses the existing code and automatically writes contracts under `contracts/api/users/`.
|
|
406
|
+
* **Step 5**: Run `genesis-harness verify` to ensure the integration is successful without modifying legacy runtime behavior.
|
|
407
|
+
|
|
408
|
+
---
|
|
409
|
+
|
|
410
|
+
### 5οΈβ£ Handling Spec Changes & Cascade Updates (`/spec-change` & `/propagate-spec`)
|
|
411
|
+
*Use this when client requirements change, such as renaming a database field or introducing mandatory payload params.*
|
|
412
|
+
|
|
413
|
+
* **Step 1**: Modify the core API contract (e.g., `contracts/api/products/response.json`).
|
|
414
|
+
* **Step 2**: Declare the change to Codex:
|
|
415
|
+
```text
|
|
416
|
+
/spec-change contracts/api/products/response.json
|
|
417
|
+
```
|
|
418
|
+
* **Step 3**: [AUTOMATIC] Genesis conducts a dependency impact analysis:
|
|
419
|
+
* Identifies downstream dependencies (e.g., Orders module, Products UI component).
|
|
420
|
+
* **Step 4**: Trigger automated propagation to Cascade changes:
|
|
421
|
+
```text
|
|
422
|
+
/propagate-spec
|
|
423
|
+
```
|
|
424
|
+
* **Step 5**: Genesis refactors the dependent schema contracts, updates test fixtures, and reruns tests to guarantee absolute system consistency.
|
|
425
|
+
|
|
426
|
+
---
|
|
427
|
+
|
|
428
|
+
## π‘ Real-World Example: E-Commerce API
|
|
429
|
+
|
|
430
|
+
### Scenario
|
|
431
|
+
Build a complete e-commerce API with:
|
|
432
|
+
- Products (search, filter)
|
|
433
|
+
- Orders (create, track, list)
|
|
434
|
+
- Payments (Stripe integration)
|
|
435
|
+
|
|
436
|
+
### Implementation (90 minutes)
|
|
437
|
+
|
|
438
|
+
#### Step 1: Initialize (5 min)
|
|
439
|
+
```bash
|
|
440
|
+
/genesis-init
|
|
441
|
+
# Input: "E-Commerce Platform"
|
|
442
|
+
# Output: Auto-structured project with 5 phases
|
|
443
|
+
```
|
|
444
|
+
|
|
445
|
+
#### Step 2: Phase 1 - Products API (30 min)
|
|
446
|
+
|
|
447
|
+
```bash
|
|
448
|
+
/new-feature "GET /api/products with search, filter, pagination"
|
|
449
|
+
```
|
|
450
|
+
|
|
451
|
+
**Contract created** (`contracts/api/products/request.json`):
|
|
452
|
+
```json
|
|
453
|
+
{
|
|
454
|
+
"method": "GET",
|
|
455
|
+
"endpoint": "/api/products",
|
|
456
|
+
"query_params": {
|
|
457
|
+
"search": "string (optional, min 2 chars)",
|
|
458
|
+
"category": "string (optional: electronics, books, clothing)",
|
|
459
|
+
"price_min": "number (optional, >= 0)",
|
|
460
|
+
"price_max": "number (optional, > price_min)",
|
|
461
|
+
"sort": "string (price_asc, price_desc, newest, rating)",
|
|
462
|
+
"page": "number (default 1, min 1)",
|
|
463
|
+
"limit": "number (default 20, max 100)"
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
```
|
|
467
|
+
|
|
468
|
+
**Test template created** (`tests/integration/products.test.md`):
|
|
469
|
+
```javascript
|
|
470
|
+
describe('GET /api/products', () => {
|
|
471
|
+
it('should return all products when no filter', async () => {
|
|
472
|
+
const res = await fetch('/api/products');
|
|
473
|
+
assert(res.status === 200);
|
|
474
|
+
assert(Array.isArray(res.data));
|
|
475
|
+
});
|
|
476
|
+
|
|
477
|
+
it('should filter by category', async () => {
|
|
478
|
+
const res = await fetch('/api/products?category=electronics');
|
|
479
|
+
assert(res.data.every(p => p.category === 'electronics'));
|
|
480
|
+
});
|
|
481
|
+
|
|
482
|
+
it('should search by product name', async () => {
|
|
483
|
+
const res = await fetch('/api/products?search=laptop');
|
|
484
|
+
assert(res.data.some(p => p.name.toLowerCase().includes('laptop')));
|
|
485
|
+
});
|
|
486
|
+
|
|
487
|
+
it('should sort by price ascending', async () => {
|
|
488
|
+
const res = await fetch('/api/products?sort=price_asc');
|
|
489
|
+
const prices = res.data.map(p => p.price);
|
|
490
|
+
assert(prices.every((p, i, arr) => i === 0 || arr[i-1] <= p));
|
|
491
|
+
});
|
|
492
|
+
|
|
493
|
+
it('should paginate results', async () => {
|
|
494
|
+
const res1 = await fetch('/api/products?page=1&limit=10');
|
|
495
|
+
const res2 = await fetch('/api/products?page=2&limit=10');
|
|
496
|
+
assert(res1.data.length === 10);
|
|
497
|
+
assert(res2.data.length === 10);
|
|
498
|
+
assert(res1.data[0].id !== res2.data[0].id);
|
|
499
|
+
});
|
|
500
|
+
});
|
|
501
|
+
```
|
|
502
|
+
|
|
503
|
+
**Implementation** (you code):
|
|
504
|
+
```javascript
|
|
505
|
+
// src/routes/products.js
|
|
506
|
+
app.get('/api/products', (req, res) => {
|
|
507
|
+
let products = db.products.getAll();
|
|
508
|
+
|
|
509
|
+
// Search
|
|
510
|
+
if (req.query.search) {
|
|
511
|
+
products = products.filter(p =>
|
|
512
|
+
p.name.toLowerCase().includes(req.query.search.toLowerCase())
|
|
513
|
+
);
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
// Filter by category
|
|
517
|
+
if (req.query.category) {
|
|
518
|
+
products = products.filter(p => p.category === req.query.category);
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
// Price range
|
|
522
|
+
if (req.query.price_min) products = products.filter(p => p.price >= req.query.price_min);
|
|
523
|
+
if (req.query.price_max) products = products.filter(p => p.price <= req.query.price_max);
|
|
524
|
+
|
|
525
|
+
// Sort
|
|
526
|
+
if (req.query.sort === 'price_asc') products.sort((a, b) => a.price - b.price);
|
|
527
|
+
if (req.query.sort === 'price_desc') products.sort((a, b) => b.price - a.price);
|
|
528
|
+
|
|
529
|
+
// Pagination
|
|
530
|
+
const page = parseInt(req.query.page) || 1;
|
|
531
|
+
const limit = Math.min(parseInt(req.query.limit) || 20, 100);
|
|
532
|
+
const start = (page - 1) * limit;
|
|
533
|
+
|
|
534
|
+
res.json({
|
|
535
|
+
data: products.slice(start, start + limit),
|
|
536
|
+
pagination: {
|
|
537
|
+
page,
|
|
538
|
+
limit,
|
|
539
|
+
total: products.length,
|
|
540
|
+
pages: Math.ceil(products.length / limit)
|
|
541
|
+
}
|
|
542
|
+
});
|
|
543
|
+
});
|
|
544
|
+
```
|
|
545
|
+
|
|
546
|
+
#### Step 3: Spec Change Propagation (5 min)
|
|
547
|
+
|
|
548
|
+
**You decide**: "Add `rating` and `reviews_count` to products"
|
|
549
|
+
|
|
550
|
+
```bash
|
|
551
|
+
# Update contract
|
|
552
|
+
/spec-change contracts/api/products/response.json
|
|
553
|
+
```
|
|
554
|
+
|
|
555
|
+
**Genesis detects**:
|
|
556
|
+
```
|
|
557
|
+
β Breaking change: response schema updated
|
|
558
|
+
β Affected phases:
|
|
559
|
+
- Phase 2 (Orders) shows products
|
|
560
|
+
- Phase 3 (Payments) shows products
|
|
561
|
+
β Auto-updating: contracts, tests, fixtures
|
|
562
|
+
β Running verification: All tests pass
|
|
563
|
+
β Report: "2 phases auto-updated β
"
|
|
564
|
+
```
|
|
565
|
+
|
|
566
|
+
**No manual coordination needed!** Downstream phases auto-updated.
|
|
567
|
+
|
|
568
|
+
#### Step 4: Phase 2 - Orders API (30 min)
|
|
569
|
+
|
|
570
|
+
```bash
|
|
571
|
+
/new-feature "POST /api/orders to create order with line items"
|
|
572
|
+
```
|
|
573
|
+
|
|
574
|
+
Genesis creates contracts, tests, fixtures. You implement.
|
|
575
|
+
|
|
576
|
+
#### Step 5: Phase 3 - Payments (30 min)
|
|
577
|
+
|
|
578
|
+
```bash
|
|
579
|
+
/new-feature "POST /api/payments with Stripe integration and webhooks"
|
|
580
|
+
```
|
|
581
|
+
|
|
582
|
+
Genesis creates contracts for:
|
|
583
|
+
- Create payment intent
|
|
584
|
+
- Handle Stripe webhook
|
|
585
|
+
- Update order payment status
|
|
586
|
+
|
|
587
|
+
#### Step 6: Release (15 min)
|
|
588
|
+
|
|
589
|
+
```bash
|
|
590
|
+
/release
|
|
591
|
+
```
|
|
592
|
+
|
|
593
|
+
Genesis:
|
|
594
|
+
- β
Verifies all tests pass (80%+ coverage)
|
|
595
|
+
- β
Generates changelog from commits
|
|
596
|
+
- β
Bumps version (v1.0.0 β v1.1.0)
|
|
597
|
+
- β
Tags git release
|
|
598
|
+
- β
Ready to publish
|
|
599
|
+
|
|
600
|
+
---
|
|
601
|
+
|
|
602
|
+
## π 21 Skills (All Available)
|
|
603
|
+
|
|
604
|
+
Each skill follows the standard naming convention in `.codex/skills/`:
|
|
605
|
+
|
|
606
|
+
| Skill Directory | Purpose | When to Use |
|
|
607
|
+
|---|---|---|
|
|
608
|
+
| **genesis-harness** | Main entry point of the system | `/genesis-init`, `/new-feature`, `/fix-bug` |
|
|
609
|
+
| **genesis-research-first** | Autonomous empirical research before planning | Triggers automatically on new tasks |
|
|
610
|
+
| **genesis-api-contract** | Design robust API contracts (schema, request, response) | Before implementing endpoints |
|
|
611
|
+
| **genesis-api-sync** | Automate bi-directional contract & codebase synchronization | When endpoints are updated |
|
|
612
|
+
| **genesis-spec-propagation** | Automatically cascade design specification updates downstream | When specs change |
|
|
613
|
+
| **genesis-docs-automation** | Automatically synchronize system technical docs | Triggers after tests pass |
|
|
614
|
+
| **genesis-ui-ux-test** | Design and validate UI user journeys and visual test specs | Before frontend implementation |
|
|
615
|
+
| **genesis-debug-guide** | Systematic, evidence-based debugging and troubleshooting | On compile errors or test failures |
|
|
616
|
+
| **genesis-pipeline-orchestration** | Orchestrate multi-phase software development lifecycle | Complex multi-phase projects |
|
|
617
|
+
| **genesis-architecture** | High-level system design and architecture decisions (ADRs) | Major design changes |
|
|
618
|
+
| **genesis-planning** | Breakdown complex business requirements into micro-plans | Preparing large features |
|
|
619
|
+
| **genesis-codebase-map** | Build comprehensive dependency graphs and architecture maps | Navigating large codebases |
|
|
620
|
+
| **genesis-release** | Manage semantic versioning, Git tags, runbooks, and rollback plans | Preparing releases & deployments |
|
|
621
|
+
| **genesis-performance-profiling** | Measure system latency and execute runtime optimization | Before performance tuning |
|
|
622
|
+
| **genesis-observability-automation** | Log autonomous decisions, ADR history, and tool outputs | Maintaining execution trace |
|
|
623
|
+
| **genesis-ai-provider** | Monitor, budget, and optimize LLM token consumption | Safeguarding API token limits |
|
|
624
|
+
| **genesis-new-design** | Author UI/UX design specifications from scratch | New UI features |
|
|
625
|
+
| **genesis-upgrade-design** | Audit and upgrade existing UI/UX elements | Improving legacy views |
|
|
626
|
+
| **genesis-design-spec** | Define and manage design tokens and theme consistency | Standardizing design systems |
|
|
627
|
+
| **genesis-harness-engineering** | Build test frameworks, harness structures, and test fixtures | Setting up test suites |
|
|
628
|
+
| **spec-impact-engine** | Evaluate the blast radius of proposed specification changes | Assessing spec adjustments |
|
|
629
|
+
|
|
630
|
+
---
|
|
631
|
+
|
|
632
|
+
## π Documentation Reference
|
|
633
|
+
|
|
634
|
+
| Document | Purpose | Read Time |
|
|
635
|
+
|----------|---------|-----------|
|
|
636
|
+
| [MODEL_ALLOCATION.md](.codex/MODEL_ALLOCATION.md) | Why Codex is primary | 5 min |
|
|
637
|
+
| [SKILLS_INDEX.md](.codex/SKILLS_INDEX.md) | All skills detailed | 20 min |
|
|
638
|
+
| [SKILLS_NAMING_GUIDE.md](.codex/SKILLS_NAMING_GUIDE.md) | Naming conventions | 5 min |
|
|
639
|
+
| [FILE_NAMING_CLARIFICATION.md](.codebase/FILE_NAMING_CLARIFICATION.md) | File naming explained | 5 min |
|
|
640
|
+
| [ARCHITECTURE_REVIEW_COMPLETE.md](.codebase/ARCHITECTURE_REVIEW_COMPLETE.md) | Latest updates | 10 min |
|
|
641
|
+
| [PHASE3_SKILLS_NAMING_COMPLETE.md](.codebase/PHASE3_SKILLS_NAMING_COMPLETE.md) | Naming changes | 10 min |
|
|
642
|
+
| [CONTRIBUTING.md](CONTRIBUTING.md) | How to contribute | 10 min |
|
|
643
|
+
|
|
644
|
+
---
|
|
645
|
+
|
|
646
|
+
## β Frequently Asked Questions
|
|
647
|
+
|
|
648
|
+
**Q: Do I need to be an expert at Codex to use Genesis?**
|
|
649
|
+
A: No! Genesis handles most Codex interactions. You mainly use simple commands like `/genesis-init`, `/new-feature`, etc.
|
|
650
|
+
|
|
651
|
+
**Q: Is Genesis Codex-exclusive or can I use it with other models?**
|
|
652
|
+
A: **Codex-exclusive only**. Genesis is specifically designed for Codex strengths. Using other models will break the workflow.
|
|
653
|
+
|
|
654
|
+
**Q: How much can I actually save on tokens?**
|
|
655
|
+
A: Typically **40-60% per project**. Average project: 150k tokens (normal) β 60-90k tokens (with Genesis caching).
|
|
656
|
+
|
|
657
|
+
**Q: Can I customize the skills?**
|
|
658
|
+
A: Yes! Copy any skill from `.codex/skills/genesis-*`, modify it, and Genesis will use your custom version.
|
|
659
|
+
|
|
660
|
+
**Q: What if I want to add Genesis to an existing project?**
|
|
661
|
+
A: See [CONTRIBUTING.md](CONTRIBUTING.md). Takes about 30 minutes to integrate with existing codebases.
|
|
662
|
+
|
|
663
|
+
**Q: Are there any limits or gotchas?**
|
|
664
|
+
A: Main limits are technical: max 5 phases per project (performance), token budget enforcement (prevents runaway costs).
|
|
665
|
+
|
|
666
|
+
---
|
|
667
|
+
|
|
668
|
+
## π¦ Installation & Setup
|
|
669
|
+
|
|
670
|
+
### Requirements
|
|
671
|
+
- Node.js 16+
|
|
672
|
+
- npm 8+
|
|
673
|
+
- Codex via VS Code Copilot
|
|
674
|
+
|
|
675
|
+
### Install Methods
|
|
676
|
+
|
|
677
|
+
**Method 1: npm (Recommended)**
|
|
678
|
+
```bash
|
|
679
|
+
npm install -g codex-genesis-harness@latest
|
|
680
|
+
genesis-harness verify
|
|
681
|
+
```
|
|
682
|
+
|
|
683
|
+
**Method 2: From Git**
|
|
684
|
+
```bash
|
|
685
|
+
git clone https://github.com/tuanpham09/codex-genesis-harness.git
|
|
686
|
+
cd codex-genesis-harness
|
|
687
|
+
./scripts/install.sh
|
|
688
|
+
./scripts/verify.sh
|
|
689
|
+
```
|
|
690
|
+
|
|
691
|
+
**Method 3: Docker (Optional)**
|
|
692
|
+
```bash
|
|
693
|
+
docker run -v $(pwd):/project codex-genesis-harness:latest /genesis-init
|
|
694
|
+
```
|
|
695
|
+
|
|
696
|
+
### Verify Installation
|
|
697
|
+
|
|
698
|
+
```bash
|
|
699
|
+
npm run verify # Check all files
|
|
700
|
+
./scripts/verify.sh # Verify skills installed
|
|
701
|
+
npm run eval # Run evaluations
|
|
702
|
+
npm run pack:check # Check npm package
|
|
703
|
+
```
|
|
704
|
+
|
|
705
|
+
---
|
|
706
|
+
|
|
707
|
+
## π Learning Path
|
|
708
|
+
|
|
709
|
+
### Week 1: Basics (2-3 hours)
|
|
710
|
+
- [ ] Read this README
|
|
711
|
+
- [ ] Run `/genesis-init` to create first project
|
|
712
|
+
- [ ] Read execution-plan.md
|
|
713
|
+
- [ ] Complete Phase 0 (foundation)
|
|
714
|
+
- [ ] Start Phase 1 with `/new-feature`
|
|
715
|
+
|
|
716
|
+
### Week 2: Workflows (3-4 hours)
|
|
717
|
+
- [ ] Implement 2-3 features using `/new-feature`
|
|
718
|
+
- [ ] Experience `/spec-change` and auto-updates
|
|
719
|
+
- [ ] Fix bugs using `/fix-bug`
|
|
720
|
+
- [ ] Run tests: `npm run verify`
|
|
721
|
+
- [ ] Review code: `/review`
|
|
722
|
+
|
|
723
|
+
### Week 3: Mastery (2-3 hours)
|
|
724
|
+
- [ ] Lead a 2-phase project from start to finish
|
|
725
|
+
- [ ] Experience token savings firsthand
|
|
726
|
+
- [ ] Understand memory system benefits
|
|
727
|
+
- [ ] Mentor others on Genesis workflows
|
|
728
|
+
|
|
729
|
+
### Ongoing: Advanced
|
|
730
|
+
- [ ] Customize skills for your domain
|
|
731
|
+
- [ ] Create reusable skill templates
|
|
732
|
+
- [ ] Contribute improvements back to Genesis
|
|
733
|
+
- [ ] Use for production projects
|
|
734
|
+
|
|
735
|
+
---
|
|
736
|
+
|
|
737
|
+
## π Support the Project (Donate)
|
|
738
|
+
|
|
739
|
+
This project is open-source and developed with passion. If you find **Genesis Codex Harness** helpful and it saves you time, consider buying me a coffee to keep the momentum going:
|
|
740
|
+
|
|
741
|
+
- **Momo (Vietnam)**: `0865814259`
|
|
742
|
+
- **PayPal**: *(Will be updated later)*
|
|
743
|
+
|
|
744
|
+
Thank you so much for supporting the development of this project! β€οΈ
|
|
745
|
+
|
|
746
|
+
---
|
|
747
|
+
|
|
748
|
+
## π Resources
|
|
749
|
+
|
|
750
|
+
- **GitHub**: [codex-genesis-harness](https://github.com/tuanpham09/codex-genesis-harness)
|
|
751
|
+
- **Documentation**: See [.codex/](./codex/) folder
|
|
752
|
+
- **Issues**: GitHub Issues
|
|
753
|
+
- **Discussions**: GitHub Discussions
|
|
754
|
+
|
|
755
|
+
---
|
|
756
|
+
|
|
757
|
+
## π Project Status
|
|
758
|
+
|
|
759
|
+
- β
**Architecture**: 10/10 (research-first + auto-debug + auto-spec-propagation + auto-docs + validation gates)
|
|
760
|
+
- β
**Codex-Only Enforcement**: 100%
|
|
761
|
+
- β
**Skills**: 25 fully implemented & verified (added 5-Phase MVP Roadmap planner, advanced self-healing and compaction engines)
|
|
762
|
+
- β
**Test Coverage**: 80%+ required
|
|
763
|
+
- β
**Token Savings**: 40-60%
|
|
764
|
+
- β
**Production Ready**: Yes (v0.1.7)
|
|
765
|
+
- β
**Auto-Research Enforcement**: Active
|
|
766
|
+
- β
**Auto-Debug Verification**: Active
|
|
767
|
+
- β
**Auto-Spec-Propagation**: Active
|
|
768
|
+
- β
**Auto-Docs-Automation**: Active
|
|
769
|
+
|
|
770
|
+
---
|
|
771
|
+
|
|
772
|
+
## π License & Attribution
|
|
773
|
+
|
|
774
|
+
MIT License - See [LICENSE](LICENSE)
|
|
775
|
+
|
|
776
|
+
**Genesis Codex Harness** - Build production software with Codex | v0.1.7 | June 2026
|
|
777
|
+
|
|
778
|
+
---
|
|
779
|
+
|
|
780
|
+
**Next**: Read [TiαΊΏng Viα»t](README.VI.md) for Vietnamese documentation.
|