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