codex-genesis-harness 0.1.6 → 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 +35 -8
- 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 +15 -431
- package/.codebase/TECH_DEBT.md +6 -0
- package/.codebase/TEST_MATRIX.md +4 -3
- package/.codebase/VISUAL_GRAPH.md +127 -0
- package/.codebase/beads.json +16 -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-ai-provider/SKILL.md +1 -1
- package/.codex/skills/genesis-api-contract/SKILL.md +1 -1
- package/.codex/skills/genesis-api-sync/SKILL.md +1 -1
- package/.codex/skills/genesis-architecture/SKILL.md +6 -1
- package/.codex/skills/genesis-codebase-map/SKILL.md +1 -1
- package/.codex/skills/genesis-debug-guide/SKILL.md +11 -5
- package/.codex/skills/genesis-design-spec/SKILL.md +3 -3
- 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 -1384
- 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-harness-engineering/SKILL.md +1 -1
- package/.codex/skills/genesis-new-design/SKILL.md +6 -2
- 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 +1 -1
- package/.codex/skills/genesis-planning/SKILL.md +31 -1
- package/.codex/skills/genesis-release/SKILL.md +29 -1
- 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/{ui-ux-test-skill → genesis-ui-ux-test}/SKILL.md +1 -1
- 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 +17 -0
- package/README.EN.md +33 -22
- package/README.VI.md +36 -24
- package/README.md +46 -8
- package/VERSION +1 -1
- package/bin/genesis-harness.js +1337 -7
- 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 +6 -6
- package/scripts/prompt_sentinel.js +35 -4
- package/scripts/run-evals.sh +137 -26
- 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 +6 -6
- package/scripts/verify.sh +21 -66
- 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/.codex/skills/genesis-docs/SKILL.md +0 -46
- package/.codex/skills/genesis-docs/agents/openai.yaml +0 -7
- package/.codex/skills/genesis-mvp-planning/SKILL.md +0 -114
- package/.codex/skills/genesis-mvp-planning/agents/openai.yaml +0 -6
- package/.codex/skills/genesis-release-orchestration/SKILL.md +0 -653
- package/.codex/skills/genesis-release-orchestration/agents/openai.yaml +0 -7
- package/.codex/skills/genesis-research/SKILL.md +0 -46
- package/.codex/skills/genesis-research/agents/openai.yaml +0 -7
- package/playwright/e2e/e2e-template.md +0 -4
- /package/.codex/skills/{genesis-docs/checklists/checklist.md → genesis-docs-automation/checklists/manual-docs-checklist.md} +0 -0
- /package/.codex/skills/{genesis-docs/examples/example.md → genesis-docs-automation/examples/manual-docs-example.md} +0 -0
- /package/.codex/skills/{genesis-docs → genesis-docs-automation}/templates/docs-update-template.md +0 -0
- /package/.codex/skills/{genesis-state-machine/SKILL.md → genesis-harness/references/state-machine.md} +0 -0
- /package/.codex/skills/{genesis-mvp-planning → genesis-planning}/checklists/mvp-readiness.md +0 -0
- /package/.codex/skills/{genesis-mvp-planning → genesis-planning}/examples/5-phase-roadmap-example.md +0 -0
- /package/.codex/skills/{genesis-mvp-planning → genesis-planning}/templates/phase-1-core.md +0 -0
- /package/.codex/skills/{genesis-mvp-planning → genesis-planning}/templates/phase-2-auth.md +0 -0
- /package/.codex/skills/{genesis-mvp-planning → genesis-planning}/templates/phase-3-features.md +0 -0
- /package/.codex/skills/{genesis-mvp-planning → genesis-planning}/templates/phase-4-integrations.md +0 -0
- /package/.codex/skills/{genesis-mvp-planning → genesis-planning}/templates/phase-5-readiness.md +0 -0
- /package/.codex/skills/{genesis-release-orchestration → genesis-release}/checklists/post-deployment-verification.md +0 -0
- /package/.codex/skills/{genesis-release-orchestration → genesis-release}/checklists/pre-release-validation.md +0 -0
- /package/.codex/skills/{genesis-release-orchestration/examples/example.md → genesis-release/examples/orchestration-example.md} +0 -0
- /package/.codex/skills/{genesis-release-orchestration → genesis-release}/observability/release-tracking.md +0 -0
- /package/.codex/skills/{genesis-release-orchestration → genesis-release}/playbooks/canary-deployment-orchestration.md +0 -0
- /package/.codex/skills/{genesis-release-orchestration → genesis-release}/playbooks/semantic-versioning-automation.md +0 -0
- /package/.codex/skills/{genesis-release-orchestration → genesis-release}/templates/deployment-strategy-template.md +0 -0
- /package/.codex/skills/{genesis-release-orchestration → genesis-release}/templates/release-runbook-template.md +0 -0
- /package/.codex/skills/{genesis-research → genesis-research-first}/checklists/checklist.md +0 -0
- /package/.codex/skills/{genesis-research/examples/example.md → genesis-research-first/examples/manual-research-example.md} +0 -0
- /package/.codex/skills/{genesis-research → genesis-research-first}/templates/research-note-template.md +0 -0
- /package/.codex/skills/{ui-ux-test-skill → genesis-ui-ux-test}/agents/openai.yaml +0 -0
- /package/.codex/skills/{ui-ux-test-skill → genesis-ui-ux-test}/checklists/checklist.md +0 -0
- /package/.codex/skills/{ui-ux-test-skill → genesis-ui-ux-test}/examples/example.md +0 -0
- /package/.codex/skills/{ui-ux-test-skill → genesis-ui-ux-test}/templates/playwright-test-template.md +0 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: genesis-executing-plans
|
|
3
|
+
description: Tuân thủ nghiêm ngặt lộ trình đã thống nhất. Yêu cầu agent check-off các công việc trong task.md và nghiêm cấm việc đi chệch hướng khỏi kế hoạch đã được duyệt.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Genesis Executing Plans
|
|
7
|
+
|
|
8
|
+
## Purpose
|
|
9
|
+
Đảm bảo execution bám sát 100% bản kế hoạch (Implementation Plan). Ngăn chặn tình trạng AI tự ý mở rộng phạm vi công việc (scope creep) hoặc thực hiện những tác vụ chưa được người dùng phê duyệt.
|
|
10
|
+
|
|
11
|
+
## When to use
|
|
12
|
+
Sử dụng trong mọi quá trình thực thi code sau khi phase Planning kết thúc và đã nhận được sự phê duyệt (approval) của người dùng.
|
|
13
|
+
|
|
14
|
+
## When NOT to use
|
|
15
|
+
Không sử dụng trong lúc đang làm research, lập kế hoạch, hoặc khi hệ thống gặp sự cố khẩn cấp (cần hotfix) chưa kịp có plan.
|
|
16
|
+
|
|
17
|
+
## Inputs required
|
|
18
|
+
- Bản kế hoạch đã được phê duyệt (`artifacts/implementation_plan.md`)
|
|
19
|
+
- Danh sách công việc chi tiết (`artifacts/task.md`)
|
|
20
|
+
|
|
21
|
+
## Outputs required
|
|
22
|
+
- Dấu `[x]` (hoàn thành) hoặc `[/]` (đang làm) được cập nhật liên tục vào `task.md`.
|
|
23
|
+
- Báo cáo kết quả trực tiếp bám sát theo từng đầu mục công việc, không lan man.
|
|
24
|
+
|
|
25
|
+
## Required tests
|
|
26
|
+
Mọi chức năng thêm mới hoặc sửa đổi đều phải có test tương ứng để chứng minh tính đúng đắn trước khi hoàn tất công việc.
|
|
27
|
+
|
|
28
|
+
## Required fixtures
|
|
29
|
+
Nếu task yêu cầu xử lý luồng dữ liệu mới, bắt buộc phải có file JSON/Markdown giả lập (mock data) ở mục `fixtures/` để mô phỏng chính xác dữ liệu đầu vào.
|
|
30
|
+
|
|
31
|
+
## Required contract updates
|
|
32
|
+
Nếu quá trình thực thi làm thay đổi interface (input/output/schema) của API hoặc cấu trúc Agent, bắt buộc cập nhật các file hợp đồng tại `contracts/`.
|
|
33
|
+
|
|
34
|
+
## Required codebase map updates
|
|
35
|
+
Nếu quá trình thực thi làm thay đổi cấu trúc thư mục, thêm/bớt module, bắt buộc cập nhật `CURRENT_STATE.md` và `MODULE_INDEX.md`.
|
|
36
|
+
|
|
37
|
+
## Token saving rules
|
|
38
|
+
Chỉ sử dụng `view_file` để đọc những file liên quan trực tiếp đến sub-task hiện tại. Không đọc toàn bộ file hoặc toàn bộ project nếu không thực sự cần thiết. Khuyến khích đọc các file summary thay vì đọc source code dài.
|
|
39
|
+
|
|
40
|
+
## Acceptance criteria
|
|
41
|
+
1. Mọi công việc trong `task.md` phải được đánh dấu `[x]`.
|
|
42
|
+
2. Code phải pass toàn bộ linter và test (`npm run verify` / `npm test`).
|
|
43
|
+
3. Cấu trúc project sau khi thực thi phải sạch sẽ, không có file nháp thừa (ngoại trừ trong `scratch/`).
|
|
44
|
+
|
|
45
|
+
## Common mistakes
|
|
46
|
+
- **Scope creep**: Nhảy cóc qua các bước, tự ý thêm tính năng hoặc refactor những file không nằm trong kế hoạch ban đầu.
|
|
47
|
+
- **Quên cập nhật task.md**: Làm xong việc nhưng không cập nhật dấu `[x]` vào checklist, gây mất bối cảnh cho các tác vụ tiếp theo.
|
|
48
|
+
- **Thiếu test**: Viết code xong nhưng bỏ quên bước tạo test đi kèm.
|
|
49
|
+
|
|
50
|
+
## Recovery workflow
|
|
51
|
+
Nếu quá trình thực thi làm hỏng hệ thống và không thể vãn hồi nhanh chóng:
|
|
52
|
+
1. Thông báo ngay cho người dùng về mức độ nghiêm trọng.
|
|
53
|
+
2. Dùng lệnh `git reset --hard` hoặc checkout lại từ branch/worktree gốc để đưa hệ thống về trạng thái an toàn gần nhất.
|
|
54
|
+
3. Cập nhật lại kế hoạch nếu hướng đi hiện tại không khả thi.
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
interface:
|
|
2
|
+
display_name: "Genesis Executing Plans"
|
|
3
|
+
short_description: "Thực thi kế hoạch nghiêm ngặt"
|
|
4
|
+
default_prompt: "Thực thi theo kế hoạch đã đề ra, đánh dấu công việc đã hoàn thành và tuyệt đối không đi chệch hướng."
|
|
5
|
+
policy:
|
|
6
|
+
allow_implicit_invocation: true
|
|
File without changes
|
|
File without changes
|
|
File without changes
|