codex-genesis-harness 0.1.7 β 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.codebase/COMPRESSED_CONTEXT.md +80 -0
- package/.codebase/CURRENT_STATE.md +10 -10
- package/.codebase/DEPENDENCY_GRAPH.md +14 -1
- package/.codebase/IMPLEMENTATION_HANDOFF.md +34 -336
- package/.codebase/KNOWN_PROBLEMS.md +73 -3
- package/.codebase/MODULE_INDEX.md +23 -2
- package/.codebase/PIPELINE_FLOW.md +16 -6
- package/.codebase/RECOVERY_POINTS.md +80 -78
- package/.codebase/TECH_DEBT.md +6 -0
- package/.codebase/TEST_MATRIX.md +8 -3
- package/.codebase/VISUAL_GRAPH.md +127 -0
- package/.codebase/context-policy.json +68 -0
- package/.codebase/memories/lessons_learned.md +63 -0
- package/.codebase/memories/preferences.md +17 -0
- package/.codebase/state.json +156 -17
- package/.codex/skills/genesis-architecture/SKILL.md +5 -0
- package/.codex/skills/genesis-debug-guide/SKILL.md +10 -4
- package/.codex/skills/genesis-docs-automation/SKILL.md +52 -973
- package/.codex/skills/genesis-executing-plans/SKILL.md +54 -0
- package/.codex/skills/genesis-executing-plans/agents/openai.yaml +6 -0
- package/.codex/skills/genesis-executing-plans/checklists/.gitkeep +0 -0
- package/.codex/skills/genesis-executing-plans/examples/.gitkeep +0 -0
- package/.codex/skills/genesis-executing-plans/templates/.gitkeep +0 -0
- package/.codex/skills/genesis-harness/SKILL.md +73 -1385
- package/.codex/skills/genesis-harness/agents/openai.yaml +1 -2
- package/.codex/skills/genesis-harness/references/state-machine.md +4 -1
- package/.codex/skills/genesis-harness/references/workflows.md +7 -1
- package/.codex/skills/genesis-harness/scripts/check-docs-sync.sh +3 -3
- package/.codex/skills/genesis-harness/scripts/init-planning.sh +246 -14
- package/.codex/skills/genesis-new-design/SKILL.md +4 -1
- package/.codex/skills/genesis-new-design/agents/openai.yaml +2 -0
- package/.codex/skills/genesis-observability-automation/SKILL.md +69 -303
- package/.codex/skills/genesis-observability-automation/references/common-mistakes-and-recovery.md +84 -0
- package/.codex/skills/genesis-observability-automation/references/workflow-phases.md +78 -0
- package/.codex/skills/genesis-performance-profiling/SKILL.md +1 -22
- package/.codex/skills/genesis-performance-profiling/agents/openai.yaml +1 -1
- package/.codex/skills/genesis-pipeline-orchestration/SKILL.md +15 -3
- package/.codex/skills/genesis-planning/SKILL.md +6 -1
- package/.codex/skills/genesis-release/SKILL.md +5 -0
- package/.codex/skills/genesis-research-first/SKILL.md +6 -0
- package/.codex/skills/genesis-spec-propagation/SKILL.md +52 -504
- package/.codex/skills/genesis-test-driven-development/SKILL.md +55 -0
- package/.codex/skills/genesis-test-driven-development/agents/openai.yaml +6 -0
- package/.codex/skills/genesis-test-driven-development/checklists/.gitkeep +0 -0
- package/.codex/skills/genesis-test-driven-development/examples/.gitkeep +0 -0
- package/.codex/skills/genesis-test-driven-development/templates/.gitkeep +0 -0
- package/.codex/skills/genesis-upgrade-design/SKILL.md +4 -2
- package/.codex/skills/genesis-upgrade-design/agents/openai.yaml +2 -0
- package/.codex/skills/genesis-using-git-worktrees/SKILL.md +54 -0
- package/.codex/skills/genesis-using-git-worktrees/agents/openai.yaml +6 -0
- package/.codex/skills/genesis-using-git-worktrees/checklists/.gitkeep +0 -0
- package/.codex/skills/genesis-using-git-worktrees/examples/.gitkeep +0 -0
- package/.codex/skills/genesis-using-git-worktrees/templates/.gitkeep +0 -0
- package/.codex/skills/genesis-verification-before-completion/SKILL.md +53 -0
- package/.codex/skills/genesis-verification-before-completion/agents/openai.yaml +6 -0
- package/.codex/skills/genesis-verification-before-completion/checklists/.gitkeep +0 -0
- package/.codex/skills/genesis-verification-before-completion/examples/.gitkeep +0 -0
- package/.codex/skills/genesis-verification-before-completion/templates/.gitkeep +0 -0
- package/.codex/skills/spec-impact-engine/SKILL.md +77 -500
- package/.codex/skills/spec-impact-engine/checklists/checklist.md +10 -0
- package/.codex-plugin/plugin.json +6 -5
- package/CHANGELOG.md +25 -1
- package/README.EN.md +74 -17
- package/README.VI.md +77 -19
- package/README.md +126 -10
- package/VERSION +1 -2
- package/bin/genesis-harness.js +2979 -149
- package/contracts/features/project-registry-schema.json +37 -0
- package/contracts/features/registry-schema.json +15 -0
- package/contracts/observability/agent-run-schema.json +39 -0
- package/contracts/observability/failure-schema.json +35 -0
- package/contracts/ui/auth/login-screen-contract.json +43 -0
- package/features/REGISTRY.md +65 -0
- package/features/SCOPE-template.md +65 -0
- package/fixtures/pipeline/end-to-end-project-lifecycle-fixture.md +39 -0
- package/fixtures/pipeline/feature-completion-fixture.md +26 -0
- package/fixtures/pipeline/run-to-feature-execution-fixture.md +20 -0
- package/fixtures/planning/MOCKUP_PROMPT_TEMPLATE.md +16 -0
- package/observability/agent-runs/sample-run.json +13 -0
- package/observability/decision-logs/sample-decision.md +43 -0
- package/observability/failures/sample-failure.json +12 -0
- package/package.json +15 -4
- package/playwright/e2e/app-template.spec.js +37 -0
- package/playwright/e2e/auth/login-screen.spec.js +65 -0
- package/playwright/e2e/web-template.spec.js +28 -0
- package/scripts/check-repository-hygiene.js +48 -0
- package/scripts/check-scope.sh +100 -0
- package/scripts/cold-start-check.js +133 -0
- package/scripts/install.sh +4 -0
- package/scripts/prompt_sentinel.js +35 -4
- package/scripts/run-evals.sh +152 -3
- package/scripts/schema/001-init.sql +129 -0
- package/scripts/schema/002-story-verify.sql +9 -0
- package/scripts/schema/003-tool-registry.sql +15 -0
- package/scripts/schema/004-intervention.sql +15 -0
- package/scripts/scratch_parser.js +49 -0
- package/scripts/spec_visual_sync.js +1 -1
- package/scripts/test_generator.js +2 -2
- package/scripts/transition_state.sh +32 -8
- package/scripts/uninstall.sh +4 -0
- package/scripts/validation_gates.sh +2 -80
- package/scripts/verify.sh +19 -2
- package/tests/fixtures/fixture-index.md +5 -0
- package/tests/integration/cli-smoke.test.js +506 -0
- package/tests/unit/feature_registry.test.js +152 -0
- package/tests/unit/prompt_sentinel.test.js +1 -1
- package/tests/unit/repository_hygiene.test.js +17 -0
- package/tests/unit/spec_visual_sync.test.js +1 -1
- package/tests/unit/state_metadata.test.js +76 -0
- package/tests/unit/test_generator.test.js +1 -1
- package/tests/unit/verify_gate.test.js +25 -0
- package/tests/unit/workflow_contracts.test.js +90 -0
- package/fixtures/tts/tts-fixture-template.md +0 -14
- package/fixtures/videos/video-fixture-template.md +0 -14
- package/playwright/e2e/e2e-template.md +0 -4
package/README.EN.md
CHANGED
|
@@ -27,6 +27,17 @@
|
|
|
27
27
|
|
|
28
28
|
---
|
|
29
29
|
|
|
30
|
+
## π Support the Project (Donate)
|
|
31
|
+
|
|
32
|
+
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:
|
|
33
|
+
|
|
34
|
+
- **Momo (Vietnam)**: `0865814259`
|
|
35
|
+
- **PayPal**: *(Will be updated later)*
|
|
36
|
+
|
|
37
|
+
Thank you so much for supporting the development of this project! β€οΈ
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
30
41
|
## π― Why Genesis? (ROI in 3 minutes)
|
|
31
42
|
|
|
32
43
|
### Before Genesis β
|
|
@@ -133,16 +144,69 @@ Genesis Codex Harness introduces five groundbreaking architectural subsystems to
|
|
|
133
144
|
|
|
134
145
|
---
|
|
135
146
|
|
|
136
|
-
## π Next-Gen Harness Engineering Upgrades (v0.1.
|
|
147
|
+
## π Next-Gen Harness Engineering Upgrades (v0.1.8)
|
|
137
148
|
|
|
138
|
-
Genesis v0.1.
|
|
149
|
+
Genesis v0.1.8 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
150
|
|
|
140
151
|
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
152
|
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
153
|
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
|
|
154
|
+
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 the LeanCTX threshold in `.codebase/context-policy.json` is crossed.
|
|
144
155
|
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
156
|
|
|
157
|
+
### LeanCTX + Optional Local Wrappers
|
|
158
|
+
|
|
159
|
+
Genesis ships a portable LeanCTX policy at `.codebase/context-policy.json` and exposes it through:
|
|
160
|
+
|
|
161
|
+
```bash
|
|
162
|
+
genesis-harness leanctx
|
|
163
|
+
genesis-harness prime
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
`npm install` / `genesis-harness install` seeds the policy into the current project when a project root is detected, and never overwrites an existing custom policy. The `leanctx` command is only for inspection. Npm users keep using portable commands such as `genesis-harness sync`, `genesis-harness docs-gate`, and `npm run verify`. When `rtk` exists on a developer machine, Genesis reports it as an optional local wrapper only; it is not a public dependency.
|
|
167
|
+
|
|
168
|
+
---
|
|
169
|
+
|
|
170
|
+
## π§ Release v0.1.9
|
|
171
|
+
|
|
172
|
+
Genesis v0.1.9 adds a deterministic bootstrap path that starts from a product idea, records discovery answers, scaffolds the first implementation-ready feature, and persists a resumable checkpoint.
|
|
173
|
+
|
|
174
|
+
```bash
|
|
175
|
+
genesis-harness init --platform codex --yes --idea "<brief>"
|
|
176
|
+
genesis-harness run --platform codex --yes --idea "<brief>" \
|
|
177
|
+
--product-approach "<approach>" \
|
|
178
|
+
--primary-user "<user>" \
|
|
179
|
+
--v1-outcome "<smallest useful outcome>" \
|
|
180
|
+
--qa-owner "<owner>" \
|
|
181
|
+
--backend "<runtime>" \
|
|
182
|
+
--frontend "<client>" \
|
|
183
|
+
--database "<storage>" \
|
|
184
|
+
--deployment "<target>" \
|
|
185
|
+
--test-strategy "<tests>"
|
|
186
|
+
genesis-harness resume
|
|
187
|
+
genesis-harness add-feature --title "Notify staff" --slug "staff-notifications" --verify-cmd "npm test"
|
|
188
|
+
genesis-harness next
|
|
189
|
+
genesis-harness complete-feature --verify-cmd "npm test" --evidence "All feature tests passed"
|
|
190
|
+
genesis-harness verify-project --verify-cmd "npm run verify" --evidence "Acceptance suite passed"
|
|
191
|
+
genesis-harness complete-project --evidence "Release candidate accepted"
|
|
192
|
+
genesis-harness pipeline-audit
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
Release highlights:
|
|
196
|
+
|
|
197
|
+
1. Blank repos can be initialized from the first user idea.
|
|
198
|
+
2. Init now creates Discovery & QA scaffolding plus `.codebase/PHASE_DEPENDENCY_MAP.md`.
|
|
199
|
+
3. `run --idea` can promote discovery answers into the active first feature under `.planning/features/`.
|
|
200
|
+
4. First-slice scaffolding can generate typed API/UI contracts and fixtures.
|
|
201
|
+
5. `.runs/<session-id>/` stores resumable run artifacts.
|
|
202
|
+
6. `verify-gate` now covers verify, evals, docs-gate, cold-start, package dry-run, and LeanCTX.
|
|
203
|
+
7. `add-feature`, `next`, and `complete-feature` operate a repeatable multi-feature execution queue with persisted evidence and lead-time metrics.
|
|
204
|
+
8. `verify-project` reruns every feature proof plus the project proof, creates the implementation handoff, and moves the project to `RELEASE_READY`.
|
|
205
|
+
9. `complete-project` requires release or acceptance evidence, while `pipeline-audit` detects lifecycle drift.
|
|
206
|
+
10. npm publishing is hardened for GitHub release/manual runs with provenance and trusted publishing.
|
|
207
|
+
|
|
208
|
+
Before tagging, confirm `package.json`, `.codex-plugin/plugin.json`, `VERSION`, `CHANGELOG.md`, and README version labels all agree.
|
|
209
|
+
|
|
146
210
|
---
|
|
147
211
|
|
|
148
212
|
## π¬ Research-First Guarantee (NEW)
|
|
@@ -599,7 +663,7 @@ Genesis:
|
|
|
599
663
|
|
|
600
664
|
---
|
|
601
665
|
|
|
602
|
-
## π
|
|
666
|
+
## π 25 Skills (All Available)
|
|
603
667
|
|
|
604
668
|
Each skill follows the standard naming convention in `.codex/skills/`:
|
|
605
669
|
|
|
@@ -626,6 +690,10 @@ Each skill follows the standard naming convention in `.codex/skills/`:
|
|
|
626
690
|
| **genesis-design-spec** | Define and manage design tokens and theme consistency | Standardizing design systems |
|
|
627
691
|
| **genesis-harness-engineering** | Build test frameworks, harness structures, and test fixtures | Setting up test suites |
|
|
628
692
|
| **spec-impact-engine** | Evaluate the blast radius of proposed specification changes | Assessing spec adjustments |
|
|
693
|
+
| **genesis-executing-plans** | Strictly follow the approved execution plan and task.md | Implementing features via plan |
|
|
694
|
+
| **genesis-test-driven-development** | Enforce TDD (Red -> Green -> Refactor) and test verification | Writing logic or bug fixes |
|
|
695
|
+
| **genesis-verification-before-completion** | Require evidence and script execution before task completion | Finalizing any autonomous task |
|
|
696
|
+
| **genesis-using-git-worktrees** | Isolate destructive or large architectural changes | High-risk refactoring |
|
|
629
697
|
|
|
630
698
|
---
|
|
631
699
|
|
|
@@ -734,17 +802,6 @@ npm run pack:check # Check npm package
|
|
|
734
802
|
|
|
735
803
|
---
|
|
736
804
|
|
|
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
805
|
## π Resources
|
|
749
806
|
|
|
750
807
|
- **GitHub**: [codex-genesis-harness](https://github.com/tuanpham09/codex-genesis-harness)
|
|
@@ -761,7 +818,7 @@ Thank you so much for supporting the development of this project! β€οΈ
|
|
|
761
818
|
- β
**Skills**: 25 fully implemented & verified (added 5-Phase MVP Roadmap planner, advanced self-healing and compaction engines)
|
|
762
819
|
- β
**Test Coverage**: 80%+ required
|
|
763
820
|
- β
**Token Savings**: 40-60%
|
|
764
|
-
- β
**Production Ready**: Yes (v0.1.
|
|
821
|
+
- β
**Production Ready**: Yes (v0.1.9)
|
|
765
822
|
- β
**Auto-Research Enforcement**: Active
|
|
766
823
|
- β
**Auto-Debug Verification**: Active
|
|
767
824
|
- β
**Auto-Spec-Propagation**: Active
|
|
@@ -773,7 +830,7 @@ Thank you so much for supporting the development of this project! β€οΈ
|
|
|
773
830
|
|
|
774
831
|
MIT License - See [LICENSE](LICENSE)
|
|
775
832
|
|
|
776
|
-
**Genesis Codex Harness** - Build production software with Codex | v0.1.
|
|
833
|
+
**Genesis Codex Harness** - Build production software with Codex | v0.1.9 | June 2026
|
|
777
834
|
|
|
778
835
|
---
|
|
779
836
|
|
package/README.VI.md
CHANGED
|
@@ -26,6 +26,17 @@
|
|
|
26
26
|
|
|
27
27
|
---
|
|
28
28
|
|
|
29
|
+
## π Ủng Hα» Dα»± Γn (Donate)
|
|
30
|
+
|
|
31
|
+
Dα»± Γ‘n nΓ y lΓ mΓ£ nguα»n mα» vΓ Δược phΓ‘t triα»n hoΓ n toΓ n vΓ¬ Δam mΓͺ. NαΊΏu bαΊ‘n thαΊ₯y **Genesis Codex Harness** hα»―u Γch vΓ giΓΊp bαΊ‘n tiαΊΏt kiα»m thα»i gian, bαΊ‘n cΓ³ thα» mα»i tΓ΄i mα»t ly cafe Δα» tiαΊΏp thΓͺm Δα»ng lα»±c phΓ‘t triα»n nhΓ©:
|
|
32
|
+
|
|
33
|
+
- **Momo**: `0865814259`
|
|
34
|
+
- **PayPal**: *(SαΊ½ cαΊp nhαΊt sau)*
|
|
35
|
+
|
|
36
|
+
CαΊ£m Ζ‘n bαΊ‘n rαΊ₯t nhiα»u vΓ¬ ΔΓ£ Δα»ng hΓ nh cΓΉng sα»± phΓ‘t triα»n cα»§a dα»± Γ‘n! β€οΈ
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
29
40
|
## π― TαΊ‘i Sao DΓΉng Genesis? (ROI trong 3 phΓΊt)
|
|
30
41
|
|
|
31
42
|
### TrΖ°α»c Genesis β
|
|
@@ -132,15 +143,69 @@ Genesis Codex Harness giα»i thiα»u 5 phΓ’n hα» kα»Ή thuαΊt mang tΓnh Δα»t
|
|
|
132
143
|
|
|
133
144
|
---
|
|
134
145
|
|
|
135
|
-
## π NΓ’ng CαΊ₯p Kα»Ή Nghα» Harness ThαΊΏ Hα» Mα»i (v0.1.
|
|
146
|
+
## π NΓ’ng CαΊ₯p Kα»Ή Nghα» Harness ThαΊΏ Hα» Mα»i (v0.1.8)
|
|
136
147
|
|
|
137
|
-
PhiΓͺn bαΊ£n Genesis v0.1.
|
|
148
|
+
PhiΓͺn bαΊ£n Genesis v0.1.8 giα»i thiα»u sΓ‘u cΓ΄ng cα»₯ cao cαΊ₯p, Δα»t phΓ‘ trong thΖ° mα»₯c `scripts/` nhαΊ±m Γ‘p ΔαΊ·t an toΓ n kiα»u dα»― liα»u, tα»± Δα»ng hΓ³a test, thiαΊΏt lαΊp sα»± Δα»ng nhαΊ₯t giα»―a sΖ‘ Δα» trα»±c quan vΓ mΓ£ nguα»n, chα»§ Δα»ng kiα»m soΓ‘t token, khΓ΄i phα»₯c nhanh bΓ i hα»c sα»a lα»i vΓ hα» trợ lαΊp trΓ¬nh UI thαΊ§n tα»c:
|
|
138
149
|
|
|
139
150
|
1. **Δα»ng bα» SΖ‘ Δα» Trα»±c quan 2 Chiα»u (`scripts/spec_visual_sync.js`)**: TrΓ¬nh biΓͺn dα»ch hai chiα»u tα»± Δα»ng Δα»ng bα» hΓ³a sΖ‘ Δα» cΖ‘ sα» dα»― liα»u ERD Mermaid (`database-erd.mmd`) sang cΓ‘c tα»p JSON API contracts (`contracts/api/`) vΓ ngược lαΊ‘i, bαΊ£o vα» tΓnh nhαΊ₯t quΓ‘n thiαΊΏt kαΊΏ tuyα»t Δα»i.
|
|
140
151
|
2. **TrΓ¬nh Tα»± Δα»ng Sinh Test tα»« Hợp Δα»ng (`scripts/test_generator.js`)**: Tα»± Δα»ng biΓͺn dα»ch vΓ tαΊ‘o cαΊ₯u trΓΊc cΓ‘c bα» kiα»m thα» tΓch hợp (Node.js/Jest) hoΓ n chα»nh tαΊ‘i `tests/integration/` trα»±c tiαΊΏp tα»« cΓ‘c file response contract JSON, hα» trợ lαΊp tα»©c kα»ch bαΊ£n TDD "RED" skeleton.
|
|
141
152
|
3. **Cα»ng Kiα»m SoΓ‘t Δα»ng NhαΊ₯t Kiα»u Dα»― Liα»u TΔ©nh (`scripts/contract_integrity_gate.js`)**: TrΓ¬nh phΓ’n tΓch tΔ©nh chα»§ Δα»ng Δα»i chiαΊΏu mΓ£ nguα»n thα»±c tαΊΏ vα»i JSON API contract khi FSM chuyα»n trαΊ‘ng thΓ‘i, khΓ³a cα»©ng tiαΊΏn trΓ¬nh build/commit nαΊΏu phΓ‘t hiα»n trΖ°α»ng dα»― liα»u bα» thiαΊΏu hoαΊ·c sai lα»ch kiα»u dα»― liα»u.
|
|
142
|
-
4. **Vα» Binh Tiα»n TrαΊ£m Token Chα»§ Δα»ng (`scripts/prompt_sentinel.js`)**: Bα» giΓ‘m sΓ‘t dung lượng token thα»i gian thα»±c. Sentinel Δo lΖ°α»ng tαΊ£i lượng token trΖ°α»c khi gα»i LLM, chα»§ Δα»ng tαΊ‘m dα»«ng cΓ‘c lα»nh quΓ‘ nαΊ·ng vΓ kΓch hoαΊ‘t nΓ©n FSM/dα»n logs khi dung lượng chαΊ‘m ngΖ°α»‘ng
|
|
153
|
+
4. **Vα» Binh Tiα»n TrαΊ£m Token Chα»§ Δα»ng (`scripts/prompt_sentinel.js`)**: Bα» giΓ‘m sΓ‘t dung lượng token thα»i gian thα»±c. Sentinel Δo lΖ°α»ng tαΊ£i lượng token trΖ°α»c khi gα»i LLM, chα»§ Δα»ng tαΊ‘m dα»«ng cΓ‘c lα»nh quΓ‘ nαΊ·ng vΓ kΓch hoαΊ‘t nΓ©n FSM/dα»n logs khi dung lượng chαΊ‘m ngΖ°α»‘ng LeanCTX trong `.codebase/context-policy.json`.
|
|
143
154
|
5. **Tα»± Δα»ng Thu Hα»i BΓ i Hα»c Sα»a Lα»i (`scripts/healing_telemetry.js`)**: Hα» thα»ng ghi chΓ©p lα»ch sα» chα»― kΓ½ lα»i vΓ mΓ£ nguα»n sα»a lα»i thΓ nh cΓ΄ng vΓ o `.codebase/failures/lessons_learned.md`. VΓ²ng lαΊ·p Ralph Loop sαΊ½ Δα»i sΓ‘nh vΓ tΓ‘i sα» dα»₯ng trα»±c tiαΊΏp cΓ‘c phΖ°Ζ‘ng Γ‘n sα»a lα»i nΓ y khi gαΊ·p lα»i tΖ°Ζ‘ng α»©ng, ΔαΊ‘t hiα»u suαΊ₯t **tα»± khαΊ―c phα»₯c lα»i chα» trong ΔΓΊng 1 turn**.
|
|
155
|
+
6. **Aesthetic Vibe Mode (`VIBE_MODE=1`)**: Mα»t hα» thα»ng Triage linh hoαΊ‘t cho phΓ©p AI tα»± Δα»ng bα» qua cΓ‘c bΓ i test nghiΓͺm ngαΊ·t (TDD/Contract) khi ngΖ°α»i dΓΉng chα» muα»n chα»nh sα»a giao diα»n thαΊ©m mα»Ή (CSS/UI). Mα»i vi phαΊ‘m lΓ‘ch luαΊt Δα»u Δược ghi chΓ©p ngαΊ§m vΓ o `.codebase/TECH_DEBT.md` Δα» xα» lΓ½ sau.
|
|
156
|
+
|
|
157
|
+
### LeanCTX + wrapper local tΓΉy chα»n
|
|
158
|
+
|
|
159
|
+
Genesis cΓ i kΓ¨m policy LeanCTX portable tαΊ‘i `.codebase/context-policy.json` vΓ cung cαΊ₯p:
|
|
160
|
+
|
|
161
|
+
```bash
|
|
162
|
+
genesis-harness leanctx
|
|
163
|
+
genesis-harness prime
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
`npm install` / `genesis-harness install` sαΊ½ tα»± seed policy vΓ o project hiα»n tαΊ‘i khi phΓ‘t hiα»n project root, vΓ khΓ΄ng ghi ΔΓ¨ policy ΔΓ£ custom. Lα»nh `leanctx` chα» Δα» xem/kiα»m tra policy. NgΖ°α»i dΓΉng cΓ i tα»« npm vαΊ«n dΓΉng lα»nh chuαΊ©n nhΖ° `genesis-harness sync`, `genesis-harness docs-gate`, `npm run verify`. NαΊΏu mΓ‘y dev cΓ³ `rtk`, Genesis chα» tα»± nhαΊn diα»n vΓ hiα»n thα» nhΖ° wrapper local tΓΉy chα»n; `rtk` khΓ΄ng phαΊ£i dependency cΓ΄ng khai.
|
|
167
|
+
|
|
168
|
+
---
|
|
169
|
+
|
|
170
|
+
## π§ Release v0.1.9
|
|
171
|
+
|
|
172
|
+
Genesis v0.1.9 bα» sung luα»ng bootstrap deterministic: bαΊ―t ΔαΊ§u tα»« Γ½ tΖ°α»ng sαΊ£n phαΊ©m, ghi lαΊ‘i discovery answers, scaffold feature ΔαΊ§u tiΓͺn sαΊ΅n sΓ ng implement, vΓ lΖ°u checkpoint Δα» phiΓͺn sau resume tα»« α» ΔΔ©a.
|
|
173
|
+
|
|
174
|
+
```bash
|
|
175
|
+
genesis-harness init --platform codex --yes --idea "<brief>"
|
|
176
|
+
genesis-harness run --platform codex --yes --idea "<brief>" \
|
|
177
|
+
--product-approach "<approach>" \
|
|
178
|
+
--primary-user "<user>" \
|
|
179
|
+
--v1-outcome "<smallest useful outcome>" \
|
|
180
|
+
--qa-owner "<owner>" \
|
|
181
|
+
--backend "<runtime>" \
|
|
182
|
+
--frontend "<client>" \
|
|
183
|
+
--database "<storage>" \
|
|
184
|
+
--deployment "<target>" \
|
|
185
|
+
--test-strategy "<tests>"
|
|
186
|
+
genesis-harness resume
|
|
187
|
+
genesis-harness add-feature --title "ThΓ΄ng bΓ‘o cho nhΓ’n viΓͺn" --slug "staff-notifications" --verify-cmd "npm test"
|
|
188
|
+
genesis-harness next
|
|
189
|
+
genesis-harness complete-feature --verify-cmd "npm test" --evidence "ToΓ n bα» test feature ΔΓ£ pass"
|
|
190
|
+
genesis-harness verify-project --verify-cmd "npm run verify" --evidence "Acceptance suite ΔΓ£ pass"
|
|
191
|
+
genesis-harness complete-project --evidence "Release candidate ΔΓ£ Δược chαΊ₯p nhαΊn"
|
|
192
|
+
genesis-harness pipeline-audit
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
Δiα»m chΓnh cα»§a release:
|
|
196
|
+
|
|
197
|
+
1. Repo trα»ng cΓ³ thα» init trα»±c tiαΊΏp tα»« Γ½ tΖ°α»ng ΔαΊ§u tiΓͺn cα»§a user.
|
|
198
|
+
2. Init tαΊ‘o Discovery & QA scaffold cΓΉng `.codebase/PHASE_DEPENDENCY_MAP.md`.
|
|
199
|
+
3. `run --idea` cΓ³ thα» ΔΖ°a discovery answers thΓ nh feature ΔαΊ§u tiΓͺn Δang active trong `.planning/features/`.
|
|
200
|
+
4. First-slice scaffold cΓ³ thα» sinh API/UI contracts vΓ fixtures cΓ³ kiα»u rΓ΅ rΓ ng.
|
|
201
|
+
5. `.runs/<session-id>/` lΖ°u artifacts Δα» resume.
|
|
202
|
+
6. `verify-gate` giα» bao phα»§ verify, evals, docs-gate, cold-start, package dry-run, vΓ LeanCTX.
|
|
203
|
+
7. `add-feature`, `next`, vΓ `complete-feature` vαΊn hΓ nh queue nhiα»u feature lαΊ·p lαΊ‘i, Δα»ng thα»i lΖ°u evidence vΓ lead-time metrics.
|
|
204
|
+
8. `verify-project` chαΊ‘y lαΊ‘i toΓ n bα» feature proof cΓΉng project proof, tαΊ‘o implementation handoff, rα»i chuyα»n dα»± Γ‘n sang `RELEASE_READY`.
|
|
205
|
+
9. `complete-project` yΓͺu cαΊ§u release hoαΊ·c acceptance evidence; `pipeline-audit` phΓ‘t hiα»n lifecycle drift.
|
|
206
|
+
10. npm publish Δược harden cho GitHub release/manual runs vα»i provenance vΓ trusted publishing.
|
|
207
|
+
|
|
208
|
+
TrΖ°α»c khi tag release, cαΊ§n xΓ‘c nhαΊn `package.json`, `.codex-plugin/plugin.json`, `VERSION`, `CHANGELOG.md`, vΓ nhΓ£n version trong README Δα»u khα»p nhau.
|
|
144
209
|
|
|
145
210
|
---
|
|
146
211
|
|
|
@@ -599,7 +664,7 @@ Genesis:
|
|
|
599
664
|
|
|
600
665
|
---
|
|
601
666
|
|
|
602
|
-
## π
|
|
667
|
+
## π 25 Skills (TαΊ₯t CαΊ£)
|
|
603
668
|
|
|
604
669
|
Mα»i skill tuΓ’n theo naming quy chuαΊ©n trong thΖ° mα»₯c `.codex/skills/`:
|
|
605
670
|
|
|
@@ -626,6 +691,10 @@ Mα»i skill tuΓ’n theo naming quy chuαΊ©n trong thΖ° mα»₯c `.codex/skills/`:
|
|
|
626
691
|
| **genesis-design-spec** | ThiαΊΏt lαΊp Design System vΓ Design Tokens | Δα»ng bα» thiαΊΏt kαΊΏ hα» thα»ng |
|
|
627
692
|
| **genesis-harness-engineering** | XΓ’y dα»±ng cΖ‘ sα» hαΊ‘ tαΊ§ng test vΓ dα»― liα»u mαΊ«u | Setup test framework |
|
|
628
693
|
| **spec-impact-engine** | CΓ΄ng cα»₯ ΔΓ‘nh giΓ‘ mα»©c Δα» αΊ£nh hΖ°α»ng cα»§a thay Δα»i spec | Kiα»m tra Δα» tΖ°Ζ‘ng thΓch |
|
|
694
|
+
| **genesis-executing-plans** | TuΓ’n thα»§ chαΊ·t chαΊ½ bαΊ£n kαΊΏ hoαΊ‘ch ΔΓ£ duyα»t vΓ task.md | Triα»n khai theo plan ΔΓ£ chα»t |
|
|
695
|
+
| **genesis-test-driven-development** | Γp buα»c tuΓ’n thα»§ TDD (Red -> Green -> Refactor) | ViαΊΏt logic mα»i hoαΊ·c sα»a lα»i |
|
|
696
|
+
| **genesis-verification-before-completion** | BαΊ―t buα»c chαΊ‘y kα»ch bαΊ£n kiα»m Δα»nh trΖ°α»c khi xong viα»c | ΔΓ³ng gΓ³i/hoΓ n tαΊ₯t ΔαΊ§u mα»₯c |
|
|
697
|
+
| **genesis-using-git-worktrees** | CΓ΄ lαΊp mΓ΄i trΖ°α»ng code bαΊ±ng git worktree an toΓ n | Δα»i cαΊ₯u trΓΊc/refactor diα»n rα»ng |
|
|
629
698
|
|
|
630
699
|
---
|
|
631
700
|
|
|
@@ -634,7 +703,7 @@ Mα»i skill tuΓ’n theo naming quy chuαΊ©n trong thΖ° mα»₯c `.codex/skills/`:
|
|
|
634
703
|
| TΓ i Liα»u | Mα»₯c ΔΓch | Thα»i Gian |
|
|
635
704
|
|----------|---------|----------|
|
|
636
705
|
| [MODEL_ALLOCATION.md](.codex/MODEL_ALLOCATION.md) | TαΊ‘i sao Codex lΓ primary | 5 phΓΊt |
|
|
637
|
-
| [SKILLS_INDEX.md](.codex/SKILLS_INDEX.md) | Chi tiαΊΏt
|
|
706
|
+
| [SKILLS_INDEX.md](.codex/SKILLS_INDEX.md) | Chi tiαΊΏt 25 skills | 20 phΓΊt |
|
|
638
707
|
| [SKILLS_NAMING_GUIDE.md](.codex/SKILLS_NAMING_GUIDE.md) | Convention naming | 5 phΓΊt |
|
|
639
708
|
| [FILE_NAMING_CLARIFICATION.md](.codebase/FILE_NAMING_CLARIFICATION.md) | GiαΊ£i thΓch file naming | 5 phΓΊt |
|
|
640
709
|
| [CONTRIBUTING.md](CONTRIBUTING.md) | CΓ‘ch ΔΓ³ng gΓ³p | 10 phΓΊt |
|
|
@@ -726,17 +795,6 @@ npm run eval # ChαΊ‘y evaluation
|
|
|
726
795
|
|
|
727
796
|
---
|
|
728
797
|
|
|
729
|
-
## π Ủng Hα» Dα»± Γn (Donate)
|
|
730
|
-
|
|
731
|
-
Dα»± Γ‘n nΓ y lΓ mΓ£ nguα»n mα» vΓ Δược phΓ‘t triα»n hoΓ n toΓ n vΓ¬ Δam mΓͺ. NαΊΏu bαΊ‘n thαΊ₯y **Genesis Codex Harness** hα»―u Γch vΓ giΓΊp bαΊ‘n tiαΊΏt kiα»m thα»i gian, bαΊ‘n cΓ³ thα» mα»i tΓ΄i mα»t ly cafe Δα» tiαΊΏp thΓͺm Δα»ng lα»±c phΓ‘t triα»n nhΓ©:
|
|
732
|
-
|
|
733
|
-
- **Momo**: `0865814259`
|
|
734
|
-
- **PayPal**: *(SαΊ½ cαΊp nhαΊt sau)*
|
|
735
|
-
|
|
736
|
-
CαΊ£m Ζ‘n bαΊ‘n rαΊ₯t nhiα»u vΓ¬ ΔΓ£ Δα»ng hΓ nh cΓΉng sα»± phΓ‘t triα»n cα»§a dα»± Γ‘n! β€οΈ
|
|
737
|
-
|
|
738
|
-
---
|
|
739
|
-
|
|
740
798
|
## π TΓ i NguyΓͺn
|
|
741
799
|
|
|
742
800
|
- **GitHub**: [codex-genesis-harness](https://github.com/tuanpham09/codex-genesis-harness)
|
|
@@ -750,10 +808,10 @@ CαΊ£m Ζ‘n bαΊ‘n rαΊ₯t nhiα»u vΓ¬ ΔΓ£ Δα»ng hΓ nh cΓΉng sα»± phΓ‘t triα»n c
|
|
|
750
808
|
|
|
751
809
|
- β
**Architecture**: 10/10 (research-first + auto-debug + auto-spec-propagation + auto-docs + validation gates)
|
|
752
810
|
- β
**Codex-Only Enforcement**: 100%
|
|
753
|
-
- β
**
|
|
811
|
+
- β
**25 Skills**: HoΓ n toΓ n kαΊΏ thα»«a vΓ triα»n khai ΔαΊ§y Δα»§ (ΔΓ£ bα» sung lα» trΓ¬nh 5-Phase MVP, tα»± chα»―a lΓ nh & nΓ©n context)
|
|
754
812
|
- β
**Test Coverage**: 80%+ required
|
|
755
813
|
- β
**Token Savings**: 40-60%
|
|
756
|
-
- β
**Production Ready**: Yes (v0.1.
|
|
814
|
+
- β
**Production Ready**: Yes (v0.1.9)
|
|
757
815
|
- β
**Auto-Research Enforcement**: Active
|
|
758
816
|
- β
**Auto-Debug Verification**: Active
|
|
759
817
|
- β
**Auto-Spec-Propagation**: Active
|
|
@@ -765,7 +823,7 @@ CαΊ£m Ζ‘n bαΊ‘n rαΊ₯t nhiα»u vΓ¬ ΔΓ£ Δα»ng hΓ nh cΓΉng sα»± phΓ‘t triα»n c
|
|
|
765
823
|
|
|
766
824
|
MIT License - Xem [LICENSE](LICENSE)
|
|
767
825
|
|
|
768
|
-
**Genesis Codex Harness** - XΓ’y dα»±ng phαΊ§n mα»m production vα»i Codex | v0.1.
|
|
826
|
+
**Genesis Codex Harness** - XΓ’y dα»±ng phαΊ§n mα»m production vα»i Codex | v0.1.9 | ThΓ‘ng 6, 2026
|
|
769
827
|
|
|
770
828
|
---
|
|
771
829
|
|
package/README.md
CHANGED
|
@@ -13,6 +13,17 @@
|
|
|
13
13
|
|
|
14
14
|
---
|
|
15
15
|
|
|
16
|
+
## π Support the Project (Donate)
|
|
17
|
+
|
|
18
|
+
This project is open-source and developed purely out of passion. If you find **Genesis Codex Harness** helpful and it saves you time, you can buy me a coffee to keep the development going:
|
|
19
|
+
|
|
20
|
+
- **Momo**: `0865814259`
|
|
21
|
+
- **PayPal**: *(Coming soon)*
|
|
22
|
+
|
|
23
|
+
Thank you so much for your support! β€οΈ
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
16
27
|
## β‘ Core Pillars at a Glance
|
|
17
28
|
|
|
18
29
|
* πΊοΈ **Structured 5-Phase MVP Roadmap (`genesis-mvp-planning`):** Guarantees a decision-complete path to production. Genesis structures project delivery across 5 standard MVP phases (Foundation/API Core, Auth/Security, Core Features, Integrations, and Production Readiness), ensuring core infrastructure is verified before writing feature code.
|
|
@@ -30,8 +41,8 @@ To cater to all developers, Genesis features separate, highly exhaustive step-by
|
|
|
30
41
|
|
|
31
42
|
| Language | Primary Link | Content Included |
|
|
32
43
|
| :--- | :--- | :--- |
|
|
33
|
-
| π¬π§ **English** | [README.EN.md](README.EN.md) | Exhaustive runbooks, all
|
|
34
|
-
| π»π³ **TiαΊΏng Viα»t** | [README.VI.md](README.VI.md) | CαΊ©m nang chi tiαΊΏt bαΊ±ng TiαΊΏng Viα»t, giαΊ£i nghΔ©a
|
|
44
|
+
| π¬π§ **English** | [README.EN.md](README.EN.md) | Exhaustive runbooks, all 25 skill details, learning paths, & production workflows. |
|
|
45
|
+
| π»π³ **TiαΊΏng Viα»t** | [README.VI.md](README.VI.md) | CαΊ©m nang chi tiαΊΏt bαΊ±ng TiαΊΏng Viα»t, giαΊ£i nghΔ©a 25 skills, quy trΓ¬nh TDD chuαΊ©n. |
|
|
35
46
|
|
|
36
47
|
---
|
|
37
48
|
|
|
@@ -67,7 +78,7 @@ graph TD
|
|
|
67
78
|
VL -- Test Passes / Green --> VG[4. Zero-Drift Validation Gate]
|
|
68
79
|
VG -- Git Diff Spec Warning --> Synced[5. Auto-Docs & State Compaction]
|
|
69
80
|
Synced --> Complete([COMPLETED State])
|
|
70
|
-
|
|
81
|
+
|
|
71
82
|
subgraph Harness Runtime Shell (FSM-Driven)
|
|
72
83
|
RF
|
|
73
84
|
TDD
|
|
@@ -76,7 +87,7 @@ graph TD
|
|
|
76
87
|
VG
|
|
77
88
|
Synced
|
|
78
89
|
end
|
|
79
|
-
|
|
90
|
+
|
|
80
91
|
subgraph Memory & Context Safeguards
|
|
81
92
|
Compaction[(Context Compaction)] <--> Synced
|
|
82
93
|
Offload[(Tool Log Offloader)] <--> VL
|
|
@@ -94,15 +105,88 @@ Genesis is built on five core, state-of-the-art technological breakthroughs that
|
|
|
94
105
|
|
|
95
106
|
---
|
|
96
107
|
|
|
97
|
-
## π Next-Gen Harness Engineering Upgrades (v0.1.
|
|
108
|
+
## π Next-Gen Harness Engineering Upgrades (v0.1.8)
|
|
98
109
|
|
|
99
|
-
Genesis v0.1.
|
|
110
|
+
Genesis v0.1.8 introduces six advanced, state-of-the-art tools under `scripts/` to enforce type-safety, automate tests, establish visual-code integrity, protect token consumption, enable self-healing loop memory recall, and provide agile UI iteration:
|
|
100
111
|
|
|
101
112
|
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.
|
|
102
113
|
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.
|
|
103
114
|
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.
|
|
104
115
|
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.
|
|
105
116
|
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**.
|
|
117
|
+
6. **Aesthetic Vibe Mode (`VIBE_MODE=1`)**: A dynamic Triage engine that allows the AI to bypass strict PEV loops and TDD blockers exclusively for pure UI/CSS aesthetic changes. Bypassed failures are seamlessly routed to `.codebase/TECH_DEBT.md` for later reconciliation.
|
|
118
|
+
|
|
119
|
+
### LeanCTX + Optional Local Wrappers
|
|
120
|
+
|
|
121
|
+
Genesis ships a portable LeanCTX policy at `.codebase/context-policy.json` and exposes it through:
|
|
122
|
+
|
|
123
|
+
```bash
|
|
124
|
+
genesis-harness leanctx
|
|
125
|
+
genesis-harness prime
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
`npm install` / `genesis-harness install` seeds the policy into the current project when a project root is detected, and never overwrites an existing custom policy. The `leanctx` command is only for inspection. Public npm usage and CI commands stay portable (`genesis-harness sync`, `genesis-harness docs-gate`, `npm run verify`). If `rtk` is installed locally, Genesis reports it as an optional wrapper for developer machines only; it is not required for npm users.
|
|
129
|
+
|
|
130
|
+
---
|
|
131
|
+
|
|
132
|
+
## π§ Release v0.1.9
|
|
133
|
+
|
|
134
|
+
Genesis v0.1.9 turns the harness from a planning scaffold into a resumable runtime bootstrap that can start from a single product idea and carry the first feature slice into implementation.
|
|
135
|
+
|
|
136
|
+
### Runtime Bootstrap
|
|
137
|
+
|
|
138
|
+
```bash
|
|
139
|
+
# Initialize a blank repo from a user idea
|
|
140
|
+
genesis-harness init --platform codex --yes --idea "Build a staff-facing request queue"
|
|
141
|
+
|
|
142
|
+
# Run deterministic discovery and promote the first feature slice
|
|
143
|
+
genesis-harness run \
|
|
144
|
+
--platform codex \
|
|
145
|
+
--yes \
|
|
146
|
+
--idea "Build a concierge booking assistant" \
|
|
147
|
+
--product-approach "Staff-facing tablet dashboard" \
|
|
148
|
+
--primary-user "Front-desk staff" \
|
|
149
|
+
--v1-outcome "Staff can log, prioritize, and resolve guest requests in one queue" \
|
|
150
|
+
--qa-owner "Operations lead" \
|
|
151
|
+
--backend "Node.js" \
|
|
152
|
+
--frontend "React" \
|
|
153
|
+
--database "PostgreSQL" \
|
|
154
|
+
--deployment "Fly.io" \
|
|
155
|
+
--test-strategy "Node integration tests and Playwright smoke tests"
|
|
156
|
+
|
|
157
|
+
# Resume the active run from disk
|
|
158
|
+
genesis-harness resume
|
|
159
|
+
genesis-harness add-feature --title "Notify staff" --slug "staff-notifications" --verify-cmd "npm test"
|
|
160
|
+
genesis-harness next
|
|
161
|
+
genesis-harness complete-feature --verify-cmd "npm test" --evidence "All feature tests passed"
|
|
162
|
+
genesis-harness verify-project --verify-cmd "npm run verify" --evidence "Acceptance suite passed"
|
|
163
|
+
genesis-harness complete-project --evidence "Release candidate accepted"
|
|
164
|
+
genesis-harness pipeline-audit
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
### What Changes
|
|
168
|
+
|
|
169
|
+
1. **Implicit init from an idea**: Empty repos can be bootstrapped directly from the first product brief.
|
|
170
|
+
2. **Discovery & QA phase**: Init now creates `.planning/INIT_QA.md`, a Discovery & QA phase, and `.codebase/PHASE_DEPENDENCY_MAP.md`.
|
|
171
|
+
3. **Idea-seeded planning docs**: `PROJECT.md`, `REQUIREMENTS.md`, `STACK.md`, `SUMMARY.md`, `.codebase/CURRENT_STATE.md`, and `.codebase/state.json` are seeded from the user brief when available.
|
|
172
|
+
4. **Deterministic `run --idea` pipeline**: Discovery answers can be provided in one command and promoted into an active first feature under `.planning/features/`.
|
|
173
|
+
5. **Typed first-slice contracts**: The first feature scaffold can generate API/UI contracts and fixtures under `contracts/api`, `contracts/ui`, `fixtures/api`, and `playwright/fixtures`.
|
|
174
|
+
6. **Resumable run artifacts**: `.runs/<session-id>/INPUT.md`, `DISCOVERY.json`, `STATE.json`, and `RESUME.md` persist the active checkpoint.
|
|
175
|
+
7. **Stronger verify-gate**: `genesis-harness verify-gate` now runs structural verify, evals, docs-gate, cold-start, package dry-run, and LeanCTX reporting.
|
|
176
|
+
8. **End-to-end lifecycle**: Features are queued and verified one at a time; project-wide verification creates a release-ready handoff before final completion.
|
|
177
|
+
9. **Durable audit trail**: `.runs/<session-id>/EVENTS.jsonl` records lifecycle events, while `pipeline-audit` detects queue, state, proof, and handoff drift.
|
|
178
|
+
10. **Release publishing hardening**: GitHub release/manual publishing now uses npm trusted publishing with provenance instead of long-lived npm tokens or CI-mutated versions.
|
|
179
|
+
|
|
180
|
+
### Release Readiness Checklist
|
|
181
|
+
|
|
182
|
+
```bash
|
|
183
|
+
npm run verify
|
|
184
|
+
npm run eval
|
|
185
|
+
npm run pack:check
|
|
186
|
+
node bin/genesis-harness.js verify-gate
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
Before tagging, confirm `package.json`, `.codex-plugin/plugin.json`, `VERSION`, `CHANGELOG.md`, and the README version labels all agree.
|
|
106
190
|
|
|
107
191
|
---
|
|
108
192
|
|
|
@@ -134,6 +218,23 @@ After installation, simply type standard commands in your Codex chat interface t
|
|
|
134
218
|
|
|
135
219
|
*All commands are strictly enforced to run in a Codex-only, no-switching environment.*
|
|
136
220
|
|
|
221
|
+
For non-interactive CLI bootstrap, use:
|
|
222
|
+
|
|
223
|
+
```bash
|
|
224
|
+
genesis-harness init --platform codex --yes --idea "<brief>"
|
|
225
|
+
genesis-harness run --platform codex --yes --idea "<brief>" \
|
|
226
|
+
--product-approach "<approach>" \
|
|
227
|
+
--primary-user "<user>" \
|
|
228
|
+
--v1-outcome "<smallest useful outcome>" \
|
|
229
|
+
--qa-owner "<owner>" \
|
|
230
|
+
--backend "<runtime>" \
|
|
231
|
+
--frontend "<client>" \
|
|
232
|
+
--database "<storage>" \
|
|
233
|
+
--deployment "<target>" \
|
|
234
|
+
--test-strategy "<tests>"
|
|
235
|
+
genesis-harness resume
|
|
236
|
+
```
|
|
237
|
+
|
|
137
238
|
---
|
|
138
239
|
|
|
139
240
|
## ποΈ What Gets Installed
|
|
@@ -146,7 +247,7 @@ After installation, simply type standard commands in your Codex chat interface t
|
|
|
146
247
|
βββ genesis-api-contract/ # Enterprise API contract designer
|
|
147
248
|
βββ genesis-spec-propagation/ # Automated spec propagation engine
|
|
148
249
|
βββ genesis-planning/ # 5-Phase MVP roadmap planner
|
|
149
|
-
βββ ... (
|
|
250
|
+
βββ ... (19 more skills, total 25 skills)
|
|
150
251
|
|
|
151
252
|
.codebase/ # Persistent repository memory system
|
|
152
253
|
contracts/ # Enterprise API, UI, and Data contracts
|
|
@@ -158,13 +259,28 @@ observability/ # Run records and architectural ADR lo
|
|
|
158
259
|
|
|
159
260
|
---
|
|
160
261
|
|
|
262
|
+
## π MCP Server Configuration (Optional)
|
|
263
|
+
|
|
264
|
+
To supercharge the agent's research and debugging capabilities, you can optionally configure MCP (Model Context Protocol) servers.
|
|
265
|
+
We provide two ways to integrate them:
|
|
266
|
+
|
|
267
|
+
### Option 1: Global Installation
|
|
268
|
+
Run the built-in setup script to install recommended MCPs globally:
|
|
269
|
+
```bash
|
|
270
|
+
npm run mcp:setup
|
|
271
|
+
```
|
|
272
|
+
This installs essential MCPs like Puppeteer (Browser/UI tests), GitHub, and SQLite (Vector Memory).
|
|
273
|
+
|
|
274
|
+
### Option 2: Dynamic Execution (Agent Config)
|
|
275
|
+
If you prefer not to install them globally, you can configure your Agent Client (e.g., Claude Desktop, Hermes, Cursor) to run them dynamically. See the `mcp.example.json` file in the repository root for configuration snippets.
|
|
276
|
+
|
|
161
277
|
## π Project Status & Versioning
|
|
162
278
|
|
|
163
279
|
- β
**Architecture Rating**: `10/10` (Enforced research-first + self-healing + spec-propagation)
|
|
164
280
|
- β
**Codex-Only Enforcement**: `100%`
|
|
165
|
-
- β
**Skills Matrix**:
|
|
281
|
+
- β
**Skills Matrix**: 25 fully implemented, structured, and verified skills
|
|
166
282
|
- β
**Token Caching Savings**: `40% to 60%` verified per enterprise project
|
|
167
|
-
- β
**Stability & Readiness**: Production Ready (`v0.1.
|
|
283
|
+
- β
**Stability & Readiness**: Production Ready (`v0.1.9` - June 2026)
|
|
168
284
|
|
|
169
285
|
---
|
|
170
286
|
|
|
@@ -174,5 +290,5 @@ Licensed under the [MIT License](LICENSE). Contributions, bug reports, and featu
|
|
|
174
290
|
|
|
175
291
|
---
|
|
176
292
|
|
|
177
|
-
**Genesis Codex Harness** v0.1.
|
|
293
|
+
**Genesis Codex Harness** v0.1.9 | June 2026
|
|
178
294
|
π **[Full English Guide](README.EN.md) | [TiαΊΏng Viα»t HΖ°α»ng DαΊ«n](README.VI.md)**
|
package/VERSION
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
0.1.
|
|
2
|
-
|
|
1
|
+
0.1.9
|