codex-genesis-harness 0.1.7 β†’ 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. package/.codebase/COMPRESSED_CONTEXT.md +80 -0
  2. package/.codebase/CURRENT_STATE.md +10 -10
  3. package/.codebase/DEPENDENCY_GRAPH.md +14 -1
  4. package/.codebase/IMPLEMENTATION_HANDOFF.md +34 -336
  5. package/.codebase/KNOWN_PROBLEMS.md +73 -3
  6. package/.codebase/MODULE_INDEX.md +23 -2
  7. package/.codebase/PIPELINE_FLOW.md +16 -6
  8. package/.codebase/RECOVERY_POINTS.md +80 -78
  9. package/.codebase/TECH_DEBT.md +6 -0
  10. package/.codebase/TEST_MATRIX.md +8 -3
  11. package/.codebase/VISUAL_GRAPH.md +127 -0
  12. package/.codebase/context-policy.json +68 -0
  13. package/.codebase/memories/lessons_learned.md +63 -0
  14. package/.codebase/memories/preferences.md +17 -0
  15. package/.codebase/state.json +156 -17
  16. package/.codex/skills/genesis-architecture/SKILL.md +5 -0
  17. package/.codex/skills/genesis-debug-guide/SKILL.md +10 -4
  18. package/.codex/skills/genesis-docs-automation/SKILL.md +52 -973
  19. package/.codex/skills/genesis-executing-plans/SKILL.md +54 -0
  20. package/.codex/skills/genesis-executing-plans/agents/openai.yaml +6 -0
  21. package/.codex/skills/genesis-executing-plans/checklists/.gitkeep +0 -0
  22. package/.codex/skills/genesis-executing-plans/examples/.gitkeep +0 -0
  23. package/.codex/skills/genesis-executing-plans/templates/.gitkeep +0 -0
  24. package/.codex/skills/genesis-harness/SKILL.md +73 -1385
  25. package/.codex/skills/genesis-harness/agents/openai.yaml +1 -2
  26. package/.codex/skills/genesis-harness/references/state-machine.md +4 -1
  27. package/.codex/skills/genesis-harness/references/workflows.md +7 -1
  28. package/.codex/skills/genesis-harness/scripts/check-docs-sync.sh +3 -3
  29. package/.codex/skills/genesis-harness/scripts/init-planning.sh +246 -14
  30. package/.codex/skills/genesis-new-design/SKILL.md +4 -1
  31. package/.codex/skills/genesis-new-design/agents/openai.yaml +2 -0
  32. package/.codex/skills/genesis-observability-automation/SKILL.md +69 -303
  33. package/.codex/skills/genesis-observability-automation/references/common-mistakes-and-recovery.md +84 -0
  34. package/.codex/skills/genesis-observability-automation/references/workflow-phases.md +78 -0
  35. package/.codex/skills/genesis-performance-profiling/SKILL.md +1 -22
  36. package/.codex/skills/genesis-performance-profiling/agents/openai.yaml +1 -1
  37. package/.codex/skills/genesis-pipeline-orchestration/SKILL.md +15 -3
  38. package/.codex/skills/genesis-planning/SKILL.md +6 -1
  39. package/.codex/skills/genesis-release/SKILL.md +5 -0
  40. package/.codex/skills/genesis-research-first/SKILL.md +6 -0
  41. package/.codex/skills/genesis-spec-propagation/SKILL.md +52 -504
  42. package/.codex/skills/genesis-test-driven-development/SKILL.md +55 -0
  43. package/.codex/skills/genesis-test-driven-development/agents/openai.yaml +6 -0
  44. package/.codex/skills/genesis-test-driven-development/checklists/.gitkeep +0 -0
  45. package/.codex/skills/genesis-test-driven-development/examples/.gitkeep +0 -0
  46. package/.codex/skills/genesis-test-driven-development/templates/.gitkeep +0 -0
  47. package/.codex/skills/genesis-upgrade-design/SKILL.md +4 -2
  48. package/.codex/skills/genesis-upgrade-design/agents/openai.yaml +2 -0
  49. package/.codex/skills/genesis-using-git-worktrees/SKILL.md +54 -0
  50. package/.codex/skills/genesis-using-git-worktrees/agents/openai.yaml +6 -0
  51. package/.codex/skills/genesis-using-git-worktrees/checklists/.gitkeep +0 -0
  52. package/.codex/skills/genesis-using-git-worktrees/examples/.gitkeep +0 -0
  53. package/.codex/skills/genesis-using-git-worktrees/templates/.gitkeep +0 -0
  54. package/.codex/skills/genesis-verification-before-completion/SKILL.md +53 -0
  55. package/.codex/skills/genesis-verification-before-completion/agents/openai.yaml +6 -0
  56. package/.codex/skills/genesis-verification-before-completion/checklists/.gitkeep +0 -0
  57. package/.codex/skills/genesis-verification-before-completion/examples/.gitkeep +0 -0
  58. package/.codex/skills/genesis-verification-before-completion/templates/.gitkeep +0 -0
  59. package/.codex/skills/spec-impact-engine/SKILL.md +77 -500
  60. package/.codex/skills/spec-impact-engine/checklists/checklist.md +10 -0
  61. package/.codex-plugin/plugin.json +6 -5
  62. package/CHANGELOG.md +25 -1
  63. package/README.EN.md +74 -17
  64. package/README.VI.md +77 -19
  65. package/README.md +126 -10
  66. package/VERSION +1 -2
  67. package/bin/genesis-harness.js +2979 -149
  68. package/contracts/features/project-registry-schema.json +37 -0
  69. package/contracts/features/registry-schema.json +15 -0
  70. package/contracts/observability/agent-run-schema.json +39 -0
  71. package/contracts/observability/failure-schema.json +35 -0
  72. package/contracts/ui/auth/login-screen-contract.json +43 -0
  73. package/features/REGISTRY.md +65 -0
  74. package/features/SCOPE-template.md +65 -0
  75. package/fixtures/pipeline/end-to-end-project-lifecycle-fixture.md +39 -0
  76. package/fixtures/pipeline/feature-completion-fixture.md +26 -0
  77. package/fixtures/pipeline/run-to-feature-execution-fixture.md +20 -0
  78. package/fixtures/planning/MOCKUP_PROMPT_TEMPLATE.md +16 -0
  79. package/observability/agent-runs/sample-run.json +13 -0
  80. package/observability/decision-logs/sample-decision.md +43 -0
  81. package/observability/failures/sample-failure.json +12 -0
  82. package/package.json +15 -4
  83. package/playwright/e2e/app-template.spec.js +37 -0
  84. package/playwright/e2e/auth/login-screen.spec.js +65 -0
  85. package/playwright/e2e/web-template.spec.js +28 -0
  86. package/scripts/check-repository-hygiene.js +48 -0
  87. package/scripts/check-scope.sh +100 -0
  88. package/scripts/cold-start-check.js +133 -0
  89. package/scripts/install.sh +4 -0
  90. package/scripts/prompt_sentinel.js +35 -4
  91. package/scripts/run-evals.sh +152 -3
  92. package/scripts/schema/001-init.sql +129 -0
  93. package/scripts/schema/002-story-verify.sql +9 -0
  94. package/scripts/schema/003-tool-registry.sql +15 -0
  95. package/scripts/schema/004-intervention.sql +15 -0
  96. package/scripts/scratch_parser.js +49 -0
  97. package/scripts/spec_visual_sync.js +1 -1
  98. package/scripts/test_generator.js +2 -2
  99. package/scripts/transition_state.sh +32 -8
  100. package/scripts/uninstall.sh +4 -0
  101. package/scripts/validation_gates.sh +2 -80
  102. package/scripts/verify.sh +19 -2
  103. package/tests/fixtures/fixture-index.md +5 -0
  104. package/tests/integration/cli-smoke.test.js +506 -0
  105. package/tests/unit/feature_registry.test.js +152 -0
  106. package/tests/unit/prompt_sentinel.test.js +1 -1
  107. package/tests/unit/repository_hygiene.test.js +17 -0
  108. package/tests/unit/spec_visual_sync.test.js +1 -1
  109. package/tests/unit/state_metadata.test.js +76 -0
  110. package/tests/unit/test_generator.test.js +1 -1
  111. package/tests/unit/verify_gate.test.js +25 -0
  112. package/tests/unit/workflow_contracts.test.js +90 -0
  113. package/fixtures/tts/tts-fixture-template.md +0 -14
  114. package/fixtures/videos/video-fixture-template.md +0 -14
  115. package/playwright/e2e/e2e-template.md +0 -4
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.7)
147
+ ## πŸš€ Next-Gen Harness Engineering Upgrades (v0.1.8)
137
148
 
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:
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 capacity thresholds (e.g. 20k tokens) are crossed.
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
- ## πŸ“š 21 Skills (All Available)
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.7)
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.7 | June 2026
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.7)
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.7 giα»›i thiệu nΔƒm 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 vΓ  khΓ΄i phα»₯c nhanh bΓ i học sα»­a lα»—i cα»§a Ralph Loop:
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 an toΓ n (vΓ­ dα»₯: 20k tokens).
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
- ## πŸ“š 21 Skills (TαΊ₯t CαΊ£)
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 19 skills | 20 phΓΊ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
- - βœ… **21 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)
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.7)
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.7 | ThΓ‘ng 6, 2026
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 21 skill details, learning paths, & production workflows. |
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 21 skills, quy trΓ¬nh TDD chuαΊ©n. |
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.7)
108
+ ## πŸš€ Next-Gen Harness Engineering Upgrades (v0.1.8)
98
109
 
99
- 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:
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
- └── ... (15 more skills, total 21 skills)
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**: 21 fully implemented, structured, and verified skills
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.7` - June 2026)
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.7 | June 2026
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.7
2
-
1
+ 0.1.9