codex-genesis-harness 0.1.7 → 0.1.8
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 +37 -11
- package/.codebase/DEPENDENCY_GRAPH.md +14 -1
- package/.codebase/IMPLEMENTATION_HANDOFF.md +34 -336
- package/.codebase/KNOWN_PROBLEMS.md +54 -3
- package/.codebase/MODULE_INDEX.md +8 -0
- package/.codebase/PIPELINE_FLOW.md +7 -5
- package/.codebase/RECOVERY_POINTS.md +17 -78
- package/.codebase/TECH_DEBT.md +6 -0
- package/.codebase/TEST_MATRIX.md +4 -3
- package/.codebase/VISUAL_GRAPH.md +127 -0
- package/.codebase/context-policy.json +68 -0
- package/.codebase/memories/lessons_learned.md +21 -0
- package/.codebase/memories/preferences.md +17 -0
- package/.codebase/state.json +45 -24
- 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 +64 -1385
- package/.codex/skills/genesis-harness/scripts/check-docs-sync.sh +3 -3
- package/.codex/skills/genesis-harness/scripts/init-planning.sh +1 -1
- 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-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 +3 -4
- package/CHANGELOG.md +4 -1
- package/README.EN.md +32 -17
- package/README.VI.md +35 -19
- package/README.md +48 -10
- package/VERSION +1 -1
- package/bin/genesis-harness.js +735 -5
- package/contracts/features/registry-schema.json +15 -0
- package/contracts/observability/agent-run-schema.json +34 -0
- package/contracts/observability/failure-schema.json +35 -0
- package/contracts/ui/auth/login-screen-contract.json +43 -0
- package/features/REGISTRY.md +63 -0
- package/features/SCOPE-template.md +65 -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 +9 -3
- 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-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 +119 -3
- package/scripts/scratch_parser.js +49 -0
- package/scripts/spec_visual_sync.js +1 -1
- package/scripts/test_generator.js +2 -2
- package/scripts/uninstall.sh +4 -0
- package/scripts/verify.sh +16 -1
- package/tests/integration/cli-smoke.test.js +103 -0
- package/tests/unit/feature_registry.test.js +152 -0
- package/tests/unit/prompt_sentinel.test.js +1 -1
- package/tests/unit/spec_visual_sync.test.js +1 -1
- package/tests/unit/test_generator.test.js +1 -1
- 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,27 @@ 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
|
+
|
|
146
168
|
---
|
|
147
169
|
|
|
148
170
|
## 🔬 Research-First Guarantee (NEW)
|
|
@@ -599,7 +621,7 @@ Genesis:
|
|
|
599
621
|
|
|
600
622
|
---
|
|
601
623
|
|
|
602
|
-
## 📚
|
|
624
|
+
## 📚 25 Skills (All Available)
|
|
603
625
|
|
|
604
626
|
Each skill follows the standard naming convention in `.codex/skills/`:
|
|
605
627
|
|
|
@@ -626,6 +648,10 @@ Each skill follows the standard naming convention in `.codex/skills/`:
|
|
|
626
648
|
| **genesis-design-spec** | Define and manage design tokens and theme consistency | Standardizing design systems |
|
|
627
649
|
| **genesis-harness-engineering** | Build test frameworks, harness structures, and test fixtures | Setting up test suites |
|
|
628
650
|
| **spec-impact-engine** | Evaluate the blast radius of proposed specification changes | Assessing spec adjustments |
|
|
651
|
+
| **genesis-executing-plans** | Strictly follow the approved execution plan and task.md | Implementing features via plan |
|
|
652
|
+
| **genesis-test-driven-development** | Enforce TDD (Red -> Green -> Refactor) and test verification | Writing logic or bug fixes |
|
|
653
|
+
| **genesis-verification-before-completion** | Require evidence and script execution before task completion | Finalizing any autonomous task |
|
|
654
|
+
| **genesis-using-git-worktrees** | Isolate destructive or large architectural changes | High-risk refactoring |
|
|
629
655
|
|
|
630
656
|
---
|
|
631
657
|
|
|
@@ -734,17 +760,6 @@ npm run pack:check # Check npm package
|
|
|
734
760
|
|
|
735
761
|
---
|
|
736
762
|
|
|
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
763
|
## 🔗 Resources
|
|
749
764
|
|
|
750
765
|
- **GitHub**: [codex-genesis-harness](https://github.com/tuanpham09/codex-genesis-harness)
|
|
@@ -761,7 +776,7 @@ Thank you so much for supporting the development of this project! ❤️
|
|
|
761
776
|
- ✅ **Skills**: 25 fully implemented & verified (added 5-Phase MVP Roadmap planner, advanced self-healing and compaction engines)
|
|
762
777
|
- ✅ **Test Coverage**: 80%+ required
|
|
763
778
|
- ✅ **Token Savings**: 40-60%
|
|
764
|
-
- ✅ **Production Ready**: Yes (v0.1.
|
|
779
|
+
- ✅ **Production Ready**: Yes (v0.1.8)
|
|
765
780
|
- ✅ **Auto-Research Enforcement**: Active
|
|
766
781
|
- ✅ **Auto-Debug Verification**: Active
|
|
767
782
|
- ✅ **Auto-Spec-Propagation**: Active
|
|
@@ -773,7 +788,7 @@ Thank you so much for supporting the development of this project! ❤️
|
|
|
773
788
|
|
|
774
789
|
MIT License - See [LICENSE](LICENSE)
|
|
775
790
|
|
|
776
|
-
**Genesis Codex Harness** - Build production software with Codex | v0.1.
|
|
791
|
+
**Genesis Codex Harness** - Build production software with Codex | v0.1.8 | June 2026
|
|
777
792
|
|
|
778
793
|
---
|
|
779
794
|
|
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,27 @@ 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.
|
|
144
167
|
|
|
145
168
|
---
|
|
146
169
|
|
|
@@ -599,7 +622,7 @@ Genesis:
|
|
|
599
622
|
|
|
600
623
|
---
|
|
601
624
|
|
|
602
|
-
## 📚
|
|
625
|
+
## 📚 25 Skills (Tất Cả)
|
|
603
626
|
|
|
604
627
|
Mỗi skill tuân theo naming quy chuẩn trong thư mục `.codex/skills/`:
|
|
605
628
|
|
|
@@ -626,6 +649,10 @@ Mỗi skill tuân theo naming quy chuẩn trong thư mục `.codex/skills/`:
|
|
|
626
649
|
| **genesis-design-spec** | Thiết lập Design System và Design Tokens | Đồng bộ thiết kế hệ thống |
|
|
627
650
|
| **genesis-harness-engineering** | Xây dựng cơ sở hạ tầng test và dữ liệu mẫu | Setup test framework |
|
|
628
651
|
| **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 |
|
|
652
|
+
| **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 |
|
|
653
|
+
| **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 |
|
|
654
|
+
| **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 |
|
|
655
|
+
| **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
656
|
|
|
630
657
|
---
|
|
631
658
|
|
|
@@ -634,7 +661,7 @@ Mỗi skill tuân theo naming quy chuẩn trong thư mục `.codex/skills/`:
|
|
|
634
661
|
| Tài Liệu | Mục Đích | Thời Gian |
|
|
635
662
|
|----------|---------|----------|
|
|
636
663
|
| [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
|
|
664
|
+
| [SKILLS_INDEX.md](.codex/SKILLS_INDEX.md) | Chi tiết 25 skills | 20 phút |
|
|
638
665
|
| [SKILLS_NAMING_GUIDE.md](.codex/SKILLS_NAMING_GUIDE.md) | Convention naming | 5 phút |
|
|
639
666
|
| [FILE_NAMING_CLARIFICATION.md](.codebase/FILE_NAMING_CLARIFICATION.md) | Giải thích file naming | 5 phút |
|
|
640
667
|
| [CONTRIBUTING.md](CONTRIBUTING.md) | Cách đóng góp | 10 phút |
|
|
@@ -726,17 +753,6 @@ npm run eval # Chạy evaluation
|
|
|
726
753
|
|
|
727
754
|
---
|
|
728
755
|
|
|
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
756
|
## 🔗 Tài Nguyên
|
|
741
757
|
|
|
742
758
|
- **GitHub**: [codex-genesis-harness](https://github.com/tuanpham09/codex-genesis-harness)
|
|
@@ -750,10 +766,10 @@ Cảm ơn bạn rất nhiều vì đã đồng hành cùng sự phát triển c
|
|
|
750
766
|
|
|
751
767
|
- ✅ **Architecture**: 10/10 (research-first + auto-debug + auto-spec-propagation + auto-docs + validation gates)
|
|
752
768
|
- ✅ **Codex-Only Enforcement**: 100%
|
|
753
|
-
- ✅ **
|
|
769
|
+
- ✅ **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
770
|
- ✅ **Test Coverage**: 80%+ required
|
|
755
771
|
- ✅ **Token Savings**: 40-60%
|
|
756
|
-
- ✅ **Production Ready**: Yes (v0.1.
|
|
772
|
+
- ✅ **Production Ready**: Yes (v0.1.8)
|
|
757
773
|
- ✅ **Auto-Research Enforcement**: Active
|
|
758
774
|
- ✅ **Auto-Debug Verification**: Active
|
|
759
775
|
- ✅ **Auto-Spec-Propagation**: Active
|
|
@@ -765,7 +781,7 @@ Cảm ơn bạn rất nhiều vì đã đồng hành cùng sự phát triển c
|
|
|
765
781
|
|
|
766
782
|
MIT License - Xem [LICENSE](LICENSE)
|
|
767
783
|
|
|
768
|
-
**Genesis Codex Harness** - Xây dựng phần mềm production với Codex | v0.1.
|
|
784
|
+
**Genesis Codex Harness** - Xây dựng phần mềm production với Codex | v0.1.8 | Tháng 6, 2026
|
|
769
785
|
|
|
770
786
|
---
|
|
771
787
|
|
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,27 @@ 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.
|
|
106
129
|
|
|
107
130
|
---
|
|
108
131
|
|
|
@@ -146,7 +169,7 @@ After installation, simply type standard commands in your Codex chat interface t
|
|
|
146
169
|
├── genesis-api-contract/ # Enterprise API contract designer
|
|
147
170
|
├── genesis-spec-propagation/ # Automated spec propagation engine
|
|
148
171
|
├── genesis-planning/ # 5-Phase MVP roadmap planner
|
|
149
|
-
└── ... (
|
|
172
|
+
└── ... (19 more skills, total 25 skills)
|
|
150
173
|
|
|
151
174
|
.codebase/ # Persistent repository memory system
|
|
152
175
|
contracts/ # Enterprise API, UI, and Data contracts
|
|
@@ -158,13 +181,28 @@ observability/ # Run records and architectural ADR lo
|
|
|
158
181
|
|
|
159
182
|
---
|
|
160
183
|
|
|
184
|
+
## 🔌 MCP Server Configuration (Optional)
|
|
185
|
+
|
|
186
|
+
To supercharge the agent's research and debugging capabilities, you can optionally configure MCP (Model Context Protocol) servers.
|
|
187
|
+
We provide two ways to integrate them:
|
|
188
|
+
|
|
189
|
+
### Option 1: Global Installation
|
|
190
|
+
Run the built-in setup script to install recommended MCPs globally:
|
|
191
|
+
```bash
|
|
192
|
+
npm run mcp:setup
|
|
193
|
+
```
|
|
194
|
+
This installs essential MCPs like Puppeteer (Browser/UI tests), GitHub, and SQLite (Vector Memory).
|
|
195
|
+
|
|
196
|
+
### Option 2: Dynamic Execution (Agent Config)
|
|
197
|
+
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.
|
|
198
|
+
|
|
161
199
|
## 📊 Project Status & Versioning
|
|
162
200
|
|
|
163
201
|
- ✅ **Architecture Rating**: `10/10` (Enforced research-first + self-healing + spec-propagation)
|
|
164
202
|
- ✅ **Codex-Only Enforcement**: `100%`
|
|
165
|
-
- ✅ **Skills Matrix**:
|
|
203
|
+
- ✅ **Skills Matrix**: 25 fully implemented, structured, and verified skills
|
|
166
204
|
- ✅ **Token Caching Savings**: `40% to 60%` verified per enterprise project
|
|
167
|
-
- ✅ **Stability & Readiness**: Production Ready (`v0.1.
|
|
205
|
+
- ✅ **Stability & Readiness**: Production Ready (`v0.1.8` - June 2026)
|
|
168
206
|
|
|
169
207
|
---
|
|
170
208
|
|
|
@@ -174,5 +212,5 @@ Licensed under the [MIT License](LICENSE). Contributions, bug reports, and featu
|
|
|
174
212
|
|
|
175
213
|
---
|
|
176
214
|
|
|
177
|
-
**Genesis Codex Harness** v0.1.
|
|
215
|
+
**Genesis Codex Harness** v0.1.8 | June 2026
|
|
178
216
|
👉 **[Full English Guide](README.EN.md) | [Tiếng Việt Hướng Dẫn](README.VI.md)**
|
package/VERSION
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.8
|
|
2
2
|
|