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
|
@@ -0,0 +1,653 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: genesis-release-orchestration
|
|
3
|
+
description: "Automate release workflows from semantic versioning through production rollback plans. Detects breaking changes, calculates version bumps, generates deployment runbooks, migration guides, release notes, and approval gates. Reduces 3-5 hour manual release prep to under 30 minutes."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# genesis-release-orchestration
|
|
7
|
+
|
|
8
|
+
## Purpose
|
|
9
|
+
|
|
10
|
+
Transform manual release management (3-5 hours per release) into automated orchestration (under 30 minutes). Automatically detects semantic version bump needed, generates environment-specific deployment runbooks, produces migration guides for breaking changes, creates rollback procedures, and enforces approval gates based on release risk score.
|
|
11
|
+
|
|
12
|
+
## When to use
|
|
13
|
+
|
|
14
|
+
- Before any npm publish, version tag, or production deployment
|
|
15
|
+
- After `genesis-spec-propagation` detects breaking changes
|
|
16
|
+
- When running `/prep-release`, `/deployment-strategy`, or `/rollback-plan` commands
|
|
17
|
+
- When VERSION file is bumped and tests pass
|
|
18
|
+
- Before merging release branch to main
|
|
19
|
+
|
|
20
|
+
## When NOT to use
|
|
21
|
+
|
|
22
|
+
- For local development builds not intended for release
|
|
23
|
+
- For hotfixes that bypass normal release channels (use emergency runbook instead)
|
|
24
|
+
- When no code changes since last release (documentation-only releases)
|
|
25
|
+
|
|
26
|
+
## Inputs required
|
|
27
|
+
|
|
28
|
+
- Current VERSION file content (e.g., `v2.4.1`)
|
|
29
|
+
- List of all changes since last release tag
|
|
30
|
+
- `SPEC_CHANGELOG.md` entries (breaking changes source)
|
|
31
|
+
- Deployment environment config (dev/staging/prod)
|
|
32
|
+
- Consumer list from contracts (for migration impact assessment)
|
|
33
|
+
|
|
34
|
+
## Outputs required
|
|
35
|
+
|
|
36
|
+
- Proposed semantic version (e.g., `v2.4.1 → v3.0.0`)
|
|
37
|
+
- Deployment risk score (1-10) with justification
|
|
38
|
+
- Environment-specific runbooks (dev/staging/prod)
|
|
39
|
+
- Deployment strategy document (blue-green/canary/rolling)
|
|
40
|
+
- Release notes with breaking change warnings
|
|
41
|
+
- Consumer migration guides (per breaking change)
|
|
42
|
+
- Rollback procedure document
|
|
43
|
+
- Pre/post deployment checklists
|
|
44
|
+
- Release approval status
|
|
45
|
+
|
|
46
|
+
## Required tests
|
|
47
|
+
|
|
48
|
+
- All tests passing at 80%+ coverage before release approval
|
|
49
|
+
- Smoke test suite passing in staging before production runbook
|
|
50
|
+
- Contract compatibility check (no unmitigated breaking changes)
|
|
51
|
+
- Rollback procedure dry-run validation
|
|
52
|
+
|
|
53
|
+
## Required fixtures
|
|
54
|
+
|
|
55
|
+
- `fixtures/release/version-bump-expected.json` — semantic version decision
|
|
56
|
+
- `fixtures/release/deployment-strategy-expected.json` — strategy selection
|
|
57
|
+
- `fixtures/release/release-readiness-expected.json` — pre-release gate
|
|
58
|
+
|
|
59
|
+
## Required contract updates
|
|
60
|
+
|
|
61
|
+
- Update `contracts/agents/ReleaseOrchestrator/` when release workflow changes
|
|
62
|
+
- Update `SPEC_CHANGELOG.md` with release entry
|
|
63
|
+
- Update VERSION file with new version number
|
|
64
|
+
|
|
65
|
+
## Required codebase map updates
|
|
66
|
+
|
|
67
|
+
- `.codebase/CURRENT_STATE.md`: Record release version + date
|
|
68
|
+
- `.codebase/KNOWN_PROBLEMS.md`: Document any release blockers
|
|
69
|
+
- `.codebase/EVOLUTION_PLAN.md`: Update next release milestones
|
|
70
|
+
|
|
71
|
+
## Token saving rules
|
|
72
|
+
|
|
73
|
+
- Read VERSION file and SPEC_CHANGELOG.md only (don't re-scan full codebase)
|
|
74
|
+
- Summarize breaking changes as count + type, not full text
|
|
75
|
+
- Reuse risk score calculation from impact analysis (don't recalculate)
|
|
76
|
+
- Template runbooks from existing templates, fill variables only
|
|
77
|
+
- Link to existing migration guides instead of regenerating
|
|
78
|
+
|
|
79
|
+
## Acceptance criteria
|
|
80
|
+
|
|
81
|
+
- Semantic version correctly calculated from change types
|
|
82
|
+
- Risk score matches breaking change count and deployment complexity
|
|
83
|
+
- Runbooks include pre/deployment/post/rollback sections
|
|
84
|
+
- All breaking changes have consumer migration guides
|
|
85
|
+
- Release notes accurately reflect all changes
|
|
86
|
+
- Approval gate matches risk score (auto/lead/tech-lead/CTO)
|
|
87
|
+
- Rollback procedure tested and documented
|
|
88
|
+
|
|
89
|
+
## Common mistakes
|
|
90
|
+
|
|
91
|
+
- Skipping migration guides for breaking changes
|
|
92
|
+
- Using rolling deployment for high-risk (>6) releases (use canary instead)
|
|
93
|
+
- Forgetting to check consumer compatibility before release
|
|
94
|
+
- Publishing without verifying rollback procedure is valid
|
|
95
|
+
- Marking release as approved before 80%+ test coverage confirmed
|
|
96
|
+
|
|
97
|
+
## Recovery workflow
|
|
98
|
+
|
|
99
|
+
If release fails after deployment:
|
|
100
|
+
1. Execute rollback runbook immediately (target: under 5 min)
|
|
101
|
+
2. Verify all health checks pass post-rollback
|
|
102
|
+
3. Document incident in `.codebase/KNOWN_PROBLEMS.md`
|
|
103
|
+
4. Root cause analysis: which validation gate missed the issue?
|
|
104
|
+
5. Add regression test or gate to prevent recurrence
|
|
105
|
+
6. Increment PATCH version for the fix release
|
|
106
|
+
|
|
107
|
+
---
|
|
108
|
+
|
|
109
|
+
## Core Capability
|
|
110
|
+
|
|
111
|
+
Transform manual release management (3-5 hours per release) into automated orchestration (5-10 minutes per release) with:
|
|
112
|
+
|
|
113
|
+
✅ **Semantic Versioning Automation** - Detect breaking/feature/patch changes, auto-calculate version bump
|
|
114
|
+
✅ **Deployment Strategy Generation** - Auto-generate blue-green, canary, rolling deployment plans
|
|
115
|
+
✅ **Breaking Change Detection** - Identify all breaking changes across phases, auto-flag for communication
|
|
116
|
+
✅ **Migration Guide Generation** - Auto-compile migration guides for consumers
|
|
117
|
+
✅ **Rollback Plan Automation** - Generate step-by-step rollback procedures
|
|
118
|
+
✅ **Deployment Runbook Generation** - Auto-create environment-specific runbooks
|
|
119
|
+
✅ **Production Health Check Automation** - Generate pre/post deployment verification steps
|
|
120
|
+
✅ **Release Notes Generation** - Auto-compile comprehensive release notes from changelog
|
|
121
|
+
✅ **Environment-Specific Config** - Auto-generate config for dev/staging/prod with validation
|
|
122
|
+
✅ **Deployment Approval Gate** - Enforce manual review for high-risk releases
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
## When to Use
|
|
127
|
+
|
|
128
|
+
**Auto-triggers**:
|
|
129
|
+
- ✅ After `/release` command (manual trigger in CLI)
|
|
130
|
+
- ✅ Auto-triggered when VERSION file bumped + tests pass
|
|
131
|
+
|
|
132
|
+
**Manual invocation**:
|
|
133
|
+
- `/prep-release [version]` - Prepare release artifacts
|
|
134
|
+
- `/deployment-strategy [env]` - Generate deployment plan
|
|
135
|
+
- `/validate-release` - Verify release readiness
|
|
136
|
+
- `/create-runbook [env]` - Generate runbook for environment
|
|
137
|
+
- `/rollback-plan` - Generate rollback procedure
|
|
138
|
+
- `/release-notes` - Compile release notes
|
|
139
|
+
|
|
140
|
+
---
|
|
141
|
+
|
|
142
|
+
## 5-Phase Workflow (120 min execution)
|
|
143
|
+
|
|
144
|
+
### **Phase 1: Version Detection & Semantic Versioning** (15 min)
|
|
145
|
+
|
|
146
|
+
**Input**: Current VERSION file + all code changes since last release
|
|
147
|
+
|
|
148
|
+
**Process**:
|
|
149
|
+
1. Parse current version (e.g., v2.4.1)
|
|
150
|
+
2. Analyze all changes since last tag:
|
|
151
|
+
- Extract breaking changes from SPEC_CHANGELOG.md
|
|
152
|
+
- Extract new features from SPEC_CHANGELOG.md
|
|
153
|
+
- Extract bug fixes from SPEC_CHANGELOG.md
|
|
154
|
+
3. Apply semantic versioning rules:
|
|
155
|
+
- BREAKING → Major version bump (v2.x.x → v3.0.0)
|
|
156
|
+
- FEATURE (new optional) → Minor version bump (v2.x.x → v2.5.0)
|
|
157
|
+
- BUG_FIX or INTERNAL → Patch version bump (v2.x.x → v2.4.2)
|
|
158
|
+
4. Validate version format (MAJOR.MINOR.PATCH)
|
|
159
|
+
5. Flag if version bump was manual (verify intentional)
|
|
160
|
+
|
|
161
|
+
**Output**: Proposed version (e.g., v2.5.0), change summary, breaking change count
|
|
162
|
+
|
|
163
|
+
**Example**:
|
|
164
|
+
```
|
|
165
|
+
Current Version: v2.4.1
|
|
166
|
+
Changes analyzed:
|
|
167
|
+
- 3 BREAKING changes detected
|
|
168
|
+
- 5 FEATURE changes
|
|
169
|
+
- 2 BUG_FIX changes
|
|
170
|
+
|
|
171
|
+
Semantic versioning decision:
|
|
172
|
+
- BREAKING changes require MAJOR bump
|
|
173
|
+
- Proposed: v2.4.1 → v3.0.0
|
|
174
|
+
- Reason: 3 breaking changes (incompatible with consumers)
|
|
175
|
+
|
|
176
|
+
Risk flag: HIGH (major version bump)
|
|
177
|
+
Manual review: REQUIRED before proceeding
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
---
|
|
181
|
+
|
|
182
|
+
### **Phase 2: Impact Analysis & Risk Assessment** (20 min)
|
|
183
|
+
|
|
184
|
+
**Input**: Proposed version, breaking changes, deployment matrix
|
|
185
|
+
|
|
186
|
+
**Process**:
|
|
187
|
+
1. **Breaking Change Analysis**:
|
|
188
|
+
- Enumerate each breaking change:
|
|
189
|
+
* What changed? (endpoint removed, field type changed, behavior inverted, etc.)
|
|
190
|
+
* Why? (business requirement, security fix, performance)
|
|
191
|
+
* Consumer impact? (which API consumers affected)
|
|
192
|
+
* Mitigation strategy? (hard break, deprecation period, parallel APIs)
|
|
193
|
+
|
|
194
|
+
2. **Consumer Impact Mapping**:
|
|
195
|
+
- Query all registered API consumers (from contracts)
|
|
196
|
+
- Determine compatibility: will each consumer work with new version?
|
|
197
|
+
- Identify clients requiring migration
|
|
198
|
+
- Estimate migration effort per consumer
|
|
199
|
+
|
|
200
|
+
3. **Deployment Risk Assessment**:
|
|
201
|
+
- Database schema changes? (migrations required)
|
|
202
|
+
- New dependencies? (version compatibility)
|
|
203
|
+
- Infrastructure changes? (scaling, new services)
|
|
204
|
+
- Backward compatibility? (can phase back if needed)
|
|
205
|
+
- Rollback feasibility? (can restore previous state)
|
|
206
|
+
|
|
207
|
+
4. **Release Complexity Score** (1-10):
|
|
208
|
+
- 1-2: Patch only, low risk (auto-approve possible)
|
|
209
|
+
- 3-5: Minor + some bugs, medium risk (review recommended)
|
|
210
|
+
- 6-8: Major with breaking changes, high risk (manual review required)
|
|
211
|
+
- 9-10: Major with DB migrations + breaking changes, critical risk (CEO sign-off)
|
|
212
|
+
|
|
213
|
+
5. **Deployment Strategy Selection**:
|
|
214
|
+
- Low risk → Rolling deployment (gradual rollout)
|
|
215
|
+
- Medium risk → Blue-green (instant switchback)
|
|
216
|
+
- High risk → Canary (1% → 10% → 50% → 100%)
|
|
217
|
+
- Critical risk → Canary + manual approval at each step
|
|
218
|
+
|
|
219
|
+
**Output**: Risk score, impact matrix, recommended deployment strategy, flagged items requiring manual review
|
|
220
|
+
|
|
221
|
+
**Example**:
|
|
222
|
+
```
|
|
223
|
+
BREAKING CHANGE ANALYSIS:
|
|
224
|
+
Breaking Change #1: Removed POST /users/:id/avatar endpoint
|
|
225
|
+
→ Consumer Impact: 3 clients affected (MobileApp v1.0-1.2)
|
|
226
|
+
→ Migration: Clients must use PUT /users/:id instead
|
|
227
|
+
→ Migration effort: 2-3 hours per client
|
|
228
|
+
|
|
229
|
+
Breaking Change #2: Changed response format { user: {...} } → { data: {...} }
|
|
230
|
+
→ Consumer Impact: 12 clients affected (WebApp, Dashboard, Admin)
|
|
231
|
+
→ Migration: All clients need response mapping update
|
|
232
|
+
→ Migration effort: 2-4 hours per app
|
|
233
|
+
|
|
234
|
+
DEPLOYMENT RISK SCORE: 8/10 (HIGH RISK)
|
|
235
|
+
- 2 breaking changes (consumer migration required)
|
|
236
|
+
- 8 affected clients/services
|
|
237
|
+
- Requires manual approval before proceeding
|
|
238
|
+
- Recommended: Canary deployment (1% → 10% → 50% → 100%)
|
|
239
|
+
|
|
240
|
+
RECOMMENDED DEPLOYMENT STRATEGY: Canary
|
|
241
|
+
- Stage 1: Deploy to 1% of traffic (1 hour monitoring)
|
|
242
|
+
- Stage 2: Deploy to 10% of traffic (2 hours monitoring)
|
|
243
|
+
- Stage 3: Deploy to 50% of traffic (4 hours monitoring)
|
|
244
|
+
- Stage 4: Deploy to 100% of traffic (full rollout)
|
|
245
|
+
- Total deployment window: 8 hours
|
|
246
|
+
|
|
247
|
+
MANUAL REVIEW GATE: REQUIRED
|
|
248
|
+
Reasons:
|
|
249
|
+
❌ Breaking changes detected (requires consumer notification)
|
|
250
|
+
❌ High risk score (8/10)
|
|
251
|
+
❌ Multiple clients affected (8+)
|
|
252
|
+
❌ Consumer migration required
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
---
|
|
256
|
+
|
|
257
|
+
### **Phase 3: Deployment Strategy & Runbook Generation** (30 min)
|
|
258
|
+
|
|
259
|
+
**Input**: Risk assessment, deployment strategy selected, environment config
|
|
260
|
+
|
|
261
|
+
**Process**:
|
|
262
|
+
|
|
263
|
+
1. **Generate Deployment Runbook** for each environment:
|
|
264
|
+
- **Pre-Deployment** (10-15 min):
|
|
265
|
+
* Database migration script (if needed)
|
|
266
|
+
* Config validation
|
|
267
|
+
* Dependency check
|
|
268
|
+
* Health check baseline
|
|
269
|
+
- **Deployment** (20-30 min):
|
|
270
|
+
* Docker image build command
|
|
271
|
+
* Container registry push
|
|
272
|
+
* Kubernetes/ECS deployment command
|
|
273
|
+
* Service restart commands
|
|
274
|
+
* DNS/load balancer updates
|
|
275
|
+
- **Post-Deployment Verification** (10-15 min):
|
|
276
|
+
* Health check endpoints
|
|
277
|
+
* Smoke test scenarios
|
|
278
|
+
* Database integrity check
|
|
279
|
+
* Performance baseline validation
|
|
280
|
+
- **Rollback** (5-10 min):
|
|
281
|
+
* Rollback trigger conditions
|
|
282
|
+
* Rollback command
|
|
283
|
+
* Verification steps post-rollback
|
|
284
|
+
|
|
285
|
+
2. **Generate Deployment Strategy Document**:
|
|
286
|
+
- If Blue-Green:
|
|
287
|
+
* Deploy to Blue environment (parallel prod clone)
|
|
288
|
+
* Verify all health checks
|
|
289
|
+
* Switch routing to Blue
|
|
290
|
+
* Keep Green as instant rollback
|
|
291
|
+
- If Canary:
|
|
292
|
+
* Stages with % traffic allocation
|
|
293
|
+
* Monitoring metrics per stage
|
|
294
|
+
* Go/no-go criteria per stage
|
|
295
|
+
- If Rolling:
|
|
296
|
+
* How many instances per wave
|
|
297
|
+
* Health check between waves
|
|
298
|
+
* Instant rollback if health check fails
|
|
299
|
+
|
|
300
|
+
3. **Generate Environment-Specific Runbooks**:
|
|
301
|
+
- Development (auto-deploy after tests)
|
|
302
|
+
- Staging (manual approval, full validation)
|
|
303
|
+
- Production (multiple approvals, canary default)
|
|
304
|
+
|
|
305
|
+
**Output**: 3 environment-specific runbooks, deployment strategy guide, pre/post checklists
|
|
306
|
+
|
|
307
|
+
---
|
|
308
|
+
|
|
309
|
+
### **Phase 4: Release Communication & Migration Guides** (25 min)
|
|
310
|
+
|
|
311
|
+
**Input**: Breaking changes, affected consumers, migration strategies
|
|
312
|
+
|
|
313
|
+
**Process**:
|
|
314
|
+
|
|
315
|
+
1. **Generate Release Notes** (for public consumption):
|
|
316
|
+
- Headline: "Version X.Y.Z Released"
|
|
317
|
+
- What's new (new features with examples)
|
|
318
|
+
- What's fixed (bug fixes with descriptions)
|
|
319
|
+
- What's deprecated (old endpoints/fields with timeline)
|
|
320
|
+
- BREAKING CHANGES section (bold, prominent):
|
|
321
|
+
* What changed
|
|
322
|
+
* Why it changed
|
|
323
|
+
* How to migrate
|
|
324
|
+
* Migration deadline
|
|
325
|
+
* Support contact
|
|
326
|
+
- Security fixes (if any)
|
|
327
|
+
- Performance improvements (if any)
|
|
328
|
+
- Known issues (if any)
|
|
329
|
+
|
|
330
|
+
2. **Generate Migration Guides**:
|
|
331
|
+
- For each breaking change, generate:
|
|
332
|
+
* Before/after code examples
|
|
333
|
+
* Step-by-step migration instructions
|
|
334
|
+
* Common pitfalls and how to avoid
|
|
335
|
+
* Troubleshooting section
|
|
336
|
+
* Support contact information
|
|
337
|
+
|
|
338
|
+
3. **Generate Consumer Communication Template**:
|
|
339
|
+
- Email template for API consumers
|
|
340
|
+
- Slack notification template
|
|
341
|
+
- In-app banner template (if applicable)
|
|
342
|
+
- FAQ template
|
|
343
|
+
|
|
344
|
+
**Output**: Release notes, per-consumer migration guides, communication templates, FAQ
|
|
345
|
+
|
|
346
|
+
---
|
|
347
|
+
|
|
348
|
+
### **Phase 5: Validation Gate & Approval Workflow** (30 min)
|
|
349
|
+
|
|
350
|
+
**Input**: All generated artifacts, release readiness checklist
|
|
351
|
+
|
|
352
|
+
**Process**:
|
|
353
|
+
|
|
354
|
+
1. **Pre-Release Validation**:
|
|
355
|
+
- ✓ All tests pass? (80%+ coverage)
|
|
356
|
+
- ✓ Version correctly bumped?
|
|
357
|
+
- ✓ CHANGELOG.md updated?
|
|
358
|
+
- ✓ Migration guides created (if breaking)?
|
|
359
|
+
- ✓ Release notes accurate?
|
|
360
|
+
- ✓ Runbooks verified?
|
|
361
|
+
- ✓ Consumer communication drafted?
|
|
362
|
+
- ✓ Rollback plan tested?
|
|
363
|
+
- ✓ Database migrations tested (if applicable)?
|
|
364
|
+
- ✓ Performance metrics baseline established?
|
|
365
|
+
|
|
366
|
+
2. **Approval Workflow**:
|
|
367
|
+
- Low risk (score 1-2): Auto-approved if all checks pass
|
|
368
|
+
- Medium risk (score 3-5): Requires Lead Engineer approval
|
|
369
|
+
- High risk (score 6-8): Requires Tech Lead + Product Lead approval
|
|
370
|
+
- Critical risk (score 9-10): Requires CTO/VP approval + scheduled deployment window
|
|
371
|
+
|
|
372
|
+
3. **Create Release Tag**:
|
|
373
|
+
- Tag format: `v{MAJOR}.{MINOR}.{PATCH}`
|
|
374
|
+
- Tag message includes:
|
|
375
|
+
* Summary of changes
|
|
376
|
+
* Breaking changes (if any)
|
|
377
|
+
* Migration guide link
|
|
378
|
+
* Deployment instructions
|
|
379
|
+
- Example: `git tag -a v3.0.0 -m "Major release: breaking API changes with migration guide"`
|
|
380
|
+
|
|
381
|
+
4. **Generate Release Report**:
|
|
382
|
+
- Version bumped: X.X.X → Y.Y.Y
|
|
383
|
+
- Change breakdown: N breaking, N features, N bugs fixed
|
|
384
|
+
- Risk score: N/10
|
|
385
|
+
- Deployment strategy: [Blue-Green|Canary|Rolling]
|
|
386
|
+
- Approval status: [Approved|Pending|Blocked]
|
|
387
|
+
- Approval chain: Who approved at what time
|
|
388
|
+
- Ready to deploy: Yes/No
|
|
389
|
+
|
|
390
|
+
**Output**: Release approval status, deployment clearance, git tag created, release report
|
|
391
|
+
|
|
392
|
+
---
|
|
393
|
+
|
|
394
|
+
## Supporting Files
|
|
395
|
+
|
|
396
|
+
### **Checklists** (2 files)
|
|
397
|
+
|
|
398
|
+
**File 1: pre-release-validation.md** (350+ lines)
|
|
399
|
+
- Is version correctly bumped?
|
|
400
|
+
- Are all breaking changes documented?
|
|
401
|
+
- Do all tests pass (80%+)?
|
|
402
|
+
- Are migration guides complete?
|
|
403
|
+
- Is deployment runbook tested?
|
|
404
|
+
- Are health checks configured?
|
|
405
|
+
- Is rollback plan verified?
|
|
406
|
+
- Have consumers been notified?
|
|
407
|
+
- Is deployment window scheduled?
|
|
408
|
+
- Have required approvals been obtained?
|
|
409
|
+
|
|
410
|
+
**File 2: post-deployment-verification.md** (300+ lines)
|
|
411
|
+
- Did deployment succeed?
|
|
412
|
+
- Do all health checks pass?
|
|
413
|
+
- Is database schema consistent?
|
|
414
|
+
- Are metrics within expected range?
|
|
415
|
+
- Are error rates normal?
|
|
416
|
+
- Are all consumers compatible?
|
|
417
|
+
- Can users perform critical workflows?
|
|
418
|
+
- Are logs clean (no critical errors)?
|
|
419
|
+
- Is rollback still available (if needed)?
|
|
420
|
+
- Should we proceed to next stage (if canary)?
|
|
421
|
+
|
|
422
|
+
---
|
|
423
|
+
|
|
424
|
+
### **Playbooks** (2 files)
|
|
425
|
+
|
|
426
|
+
**File 1: semantic-versioning-automation.md** (600+ lines)
|
|
427
|
+
- Complete walkthrough of version bump decision
|
|
428
|
+
- Breaking change examples (5+ scenarios):
|
|
429
|
+
* Endpoint removal
|
|
430
|
+
* Response format change
|
|
431
|
+
* Field type change
|
|
432
|
+
* Authentication change
|
|
433
|
+
* Database schema change
|
|
434
|
+
- Semantic versioning decision tree (breaking→major, feature→minor, patch→patch)
|
|
435
|
+
- Real example: API evolution from v1 → v2 → v3 with all breaking changes documented
|
|
436
|
+
|
|
437
|
+
**File 2: canary-deployment-orchestration.md** (800+ lines)
|
|
438
|
+
- Complete canary deployment workflow
|
|
439
|
+
- Stage breakdown (1% → 10% → 50% → 100%)
|
|
440
|
+
- Monitoring metrics per stage
|
|
441
|
+
- Go/no-go decision criteria per stage
|
|
442
|
+
- How to handle failures at each stage
|
|
443
|
+
- Real example: Rolling out v2.5.0 with new feature + bug fix through all 4 canary stages
|
|
444
|
+
- Includes: decision points, rollback triggers, monitoring dashboard setup
|
|
445
|
+
|
|
446
|
+
---
|
|
447
|
+
|
|
448
|
+
### **Templates** (2 files)
|
|
449
|
+
|
|
450
|
+
**File 1: release-runbook-template.md** (500+ lines)
|
|
451
|
+
- Pre-deployment: Database migrations, config validation, dependency check
|
|
452
|
+
- Deployment: Build, push, deploy, restart
|
|
453
|
+
- Post-deployment: Health checks, smoke tests, validation
|
|
454
|
+
- Rollback: Trigger conditions, rollback steps, verification
|
|
455
|
+
|
|
456
|
+
**File 2: deployment-strategy-template.md** (400+ lines)
|
|
457
|
+
- Blue-green: Setup, switch, rollback
|
|
458
|
+
- Canary: Stages, metrics, decision tree
|
|
459
|
+
- Rolling: Wave size, health checks, failure handling
|
|
460
|
+
|
|
461
|
+
---
|
|
462
|
+
|
|
463
|
+
### **Observability** (1 file)
|
|
464
|
+
|
|
465
|
+
**File: release-tracking.md** (500+ lines)
|
|
466
|
+
- RELEASE_LOG.md format: date, version, strategy, status, duration, approvals
|
|
467
|
+
- release-metrics.csv: structured data for analysis
|
|
468
|
+
- Deployment success rate tracking
|
|
469
|
+
- Time analysis by phase
|
|
470
|
+
- Risk score trends
|
|
471
|
+
- Rollback frequency analysis
|
|
472
|
+
- Consumer migration tracking
|
|
473
|
+
- Query examples for continuous improvement
|
|
474
|
+
|
|
475
|
+
---
|
|
476
|
+
|
|
477
|
+
## Feature Capabilities
|
|
478
|
+
|
|
479
|
+
### **Auto-Detection**
|
|
480
|
+
|
|
481
|
+
- ✅ Detects semantic version bump needed (breaking/feature/patch)
|
|
482
|
+
- ✅ Identifies breaking changes from SPEC_CHANGELOG.md
|
|
483
|
+
- ✅ Maps affected API consumers
|
|
484
|
+
- ✅ Calculates deployment risk score
|
|
485
|
+
- ✅ Recommends deployment strategy
|
|
486
|
+
|
|
487
|
+
### **Auto-Generation**
|
|
488
|
+
|
|
489
|
+
- ✅ Generate semantic version number
|
|
490
|
+
- ✅ Generate deployment runbook per environment
|
|
491
|
+
- ✅ Generate deployment strategy document
|
|
492
|
+
- ✅ Generate migration guides for breaking changes
|
|
493
|
+
- ✅ Generate release notes with breaking change warnings
|
|
494
|
+
- ✅ Generate consumer communication templates
|
|
495
|
+
- ✅ Generate rollback procedures
|
|
496
|
+
- ✅ Generate pre/post deployment checklists
|
|
497
|
+
|
|
498
|
+
### **Auto-Validation**
|
|
499
|
+
|
|
500
|
+
- ✅ Verify all tests pass (80%+ required)
|
|
501
|
+
- ✅ Verify version correctly bumped
|
|
502
|
+
- ✅ Verify CHANGELOG.md updated
|
|
503
|
+
- ✅ Verify migration guides present (if breaking changes)
|
|
504
|
+
- ✅ Verify rollback plan tested
|
|
505
|
+
- ✅ Verify all approvals obtained
|
|
506
|
+
- ✅ Flag risky releases for manual review
|
|
507
|
+
|
|
508
|
+
### **Auto-Approval**
|
|
509
|
+
|
|
510
|
+
- ✅ Low-risk patches: auto-approve
|
|
511
|
+
- ✅ Medium-risk releases: require Lead Engineer approval
|
|
512
|
+
- ✅ High-risk releases: require Tech Lead + Product approval
|
|
513
|
+
- ✅ Critical releases: require CTO approval + scheduled window
|
|
514
|
+
|
|
515
|
+
---
|
|
516
|
+
|
|
517
|
+
## Integration Points
|
|
518
|
+
|
|
519
|
+
### **Upstream Dependencies**
|
|
520
|
+
- `genesis-spec-propagation` ✅ - Provides breaking change list
|
|
521
|
+
- `genesis-docs-automation` ✅ - Provides changelog entries
|
|
522
|
+
- `spec-impact-engine` ✅ - Detects phase changes
|
|
523
|
+
- `.codebase/SPEC_CHANGELOG.md` ✅ - Breaking change source
|
|
524
|
+
- `VERSION` file ✅ - Current version source
|
|
525
|
+
|
|
526
|
+
### **Downstream Dependencies**
|
|
527
|
+
- `genesis-pipeline-orchestration` - Triggers deployment
|
|
528
|
+
- `genesis-observability` (Priority 5) - Monitors post-deployment
|
|
529
|
+
- CI/CD system (GitHub Actions, GitLab CI, Jenkins)
|
|
530
|
+
- Deployment infrastructure (Kubernetes, ECS, Heroku)
|
|
531
|
+
|
|
532
|
+
---
|
|
533
|
+
|
|
534
|
+
## Rules & Gates
|
|
535
|
+
|
|
536
|
+
**CRITICAL**:
|
|
537
|
+
- ❌ BREAKING changes ALWAYS require manual review before release
|
|
538
|
+
- ❌ NO release without 80%+ test coverage
|
|
539
|
+
- ❌ NO release without changelog entry
|
|
540
|
+
- ❌ NO release without migration guides (if breaking)
|
|
541
|
+
- ❌ NO production deployment without approved runbook
|
|
542
|
+
- ❌ NO skipping pre-deployment validation checklist
|
|
543
|
+
|
|
544
|
+
**Risk Assessment**:
|
|
545
|
+
- Score 1-2: Auto-approve (if checks pass)
|
|
546
|
+
- Score 3-5: Lead approval required
|
|
547
|
+
- Score 6-8: Lead + Product approval required
|
|
548
|
+
- Score 9-10: CTO + scheduled deployment window required
|
|
549
|
+
|
|
550
|
+
**Deployment Strategy**:
|
|
551
|
+
- Low risk (1-2) → Rolling deployment
|
|
552
|
+
- Medium risk (3-5) → Blue-green deployment
|
|
553
|
+
- High risk (6-8+) → Canary deployment with approval gates
|
|
554
|
+
|
|
555
|
+
---
|
|
556
|
+
|
|
557
|
+
## Error Codes & Troubleshooting
|
|
558
|
+
|
|
559
|
+
### **Error: VERSION_MISMATCH**
|
|
560
|
+
```
|
|
561
|
+
Problem: Version in VERSION file doesn't match semantic versioning rules
|
|
562
|
+
Solution:
|
|
563
|
+
1. Analyze changes since last release
|
|
564
|
+
2. Recalculate version bump (breaking vs feature vs patch)
|
|
565
|
+
3. Update VERSION file
|
|
566
|
+
4. Verify all approvals agree with new version
|
|
567
|
+
```
|
|
568
|
+
|
|
569
|
+
### **Error: BREAKING_CHANGES_NOT_DOCUMENTED**
|
|
570
|
+
```
|
|
571
|
+
Problem: Breaking changes detected but no migration guide found
|
|
572
|
+
Solution:
|
|
573
|
+
1. Add entries to SPEC_CHANGELOG.md for each breaking change
|
|
574
|
+
2. Run genesis-docs-automation to generate migration guides
|
|
575
|
+
3. Have architecture team review migration guides
|
|
576
|
+
4. Update release notes with migration instructions
|
|
577
|
+
```
|
|
578
|
+
|
|
579
|
+
### **Error: CONSUMER_COMPATIBILITY_CHECK_FAILED**
|
|
580
|
+
```
|
|
581
|
+
Problem: Some consumers incompatible with new version
|
|
582
|
+
Solution:
|
|
583
|
+
1. Identify which consumers are affected
|
|
584
|
+
2. Determine if breaking change is avoidable
|
|
585
|
+
3. If avoidable: Revert breaking change, use backwards-compatible approach
|
|
586
|
+
4. If required: Notify consumers, schedule migration window, use canary deployment
|
|
587
|
+
```
|
|
588
|
+
|
|
589
|
+
### **Error: ROLLBACK_PLAN_MISSING**
|
|
590
|
+
```
|
|
591
|
+
Problem: Can't generate rollback plan for this release
|
|
592
|
+
Solution:
|
|
593
|
+
1. Review database migrations (do they have rollback scripts?)
|
|
594
|
+
2. Review config changes (are old configs still available?)
|
|
595
|
+
3. Review deployment artifacts (can previous version be restored?)
|
|
596
|
+
4. If any impossible: Mark release as HIGH RISK, schedule lower traffic deployment
|
|
597
|
+
```
|
|
598
|
+
|
|
599
|
+
---
|
|
600
|
+
|
|
601
|
+
## Success Metrics
|
|
602
|
+
|
|
603
|
+
| Metric | Target | Status |
|
|
604
|
+
|--------|--------|--------|
|
|
605
|
+
| Release prep time | 5-10 min | ✅ Auto-orchestrated |
|
|
606
|
+
| Manual approval time | <1 hour | ✅ Clear criteria |
|
|
607
|
+
| Deployment time | <30 min | ✅ Strategy dependent |
|
|
608
|
+
| Post-deployment validation | <15 min | ✅ Auto-checklist |
|
|
609
|
+
| Rollback time (if needed) | <5 min | ✅ Runbook-driven |
|
|
610
|
+
| **Total release cycle** | **<2 hours** | **✅ vs 3-5 hours manual** |
|
|
611
|
+
| Breaking change communication | 100% | ✅ Template-driven |
|
|
612
|
+
| Consumer migration success | 100% | ✅ Guide-driven |
|
|
613
|
+
| Production stability post-release | 99%+ uptime | ✅ Canary strategy |
|
|
614
|
+
|
|
615
|
+
---
|
|
616
|
+
|
|
617
|
+
## Time Savings
|
|
618
|
+
|
|
619
|
+
**Before** (Manual):
|
|
620
|
+
- Version decision: 15 min
|
|
621
|
+
- Runbook creation: 30 min
|
|
622
|
+
- Migration guides: 30 min
|
|
623
|
+
- Release notes: 20 min
|
|
624
|
+
- Approval coordination: 30 min
|
|
625
|
+
- Deployment: 60 min
|
|
626
|
+
- Validation: 20 min
|
|
627
|
+
- **TOTAL: 3-5 hours (with risk)**
|
|
628
|
+
|
|
629
|
+
**After** (Genesis orchestrated):
|
|
630
|
+
- Version detection: 2 min (auto)
|
|
631
|
+
- Runbook generation: 3 min (auto)
|
|
632
|
+
- Migration guides: 2 min (auto)
|
|
633
|
+
- Release notes: 2 min (auto)
|
|
634
|
+
- Approval validation: 1 min (auto)
|
|
635
|
+
- Manual review (if needed): 5-15 min
|
|
636
|
+
- Deployment: 20-60 min (strategy dependent)
|
|
637
|
+
- Validation: 2 min (auto-checklist)
|
|
638
|
+
- **TOTAL: 37-90 min (37-50 min faster, 70% reduction)**
|
|
639
|
+
|
|
640
|
+
---
|
|
641
|
+
|
|
642
|
+
## Next Phase
|
|
643
|
+
|
|
644
|
+
After genesis-release-orchestration complete:
|
|
645
|
+
- **Priority 4**: genesis-performance-profiling (benchmarking automation)
|
|
646
|
+
- **Priority 5**: genesis-observability (monitoring + incident response automation)
|
|
647
|
+
- **Target**: 100% harness completeness (10/10 architecture score)
|
|
648
|
+
|
|
649
|
+
---
|
|
650
|
+
|
|
651
|
+
**Status**: SKILL DEFINITION COMPLETE
|
|
652
|
+
**Ready for**: Implementation phase (8-10 files creation)
|
|
653
|
+
**Estimated completion**: Priority 3 done → Ready for Priority 4-5
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
interface:
|
|
2
|
+
display_name: "Release Orchestration Skill"
|
|
3
|
+
short_description: "Automated release versioning, deployment planning, and production safety orchestration"
|
|
4
|
+
default_prompt: "Use $genesis-release-orchestration to automate the release process including versioning, runbooks, and deployment strategy."
|
|
5
|
+
|
|
6
|
+
policy:
|
|
7
|
+
allow_implicit_invocation: true
|