@danmoisan/drm-copilot-mcp 0.0.1
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/LICENSE +21 -0
- package/README.md +50 -0
- package/out/mcp-server.js +17323 -0
- package/package.json +36 -0
- package/resources/claude-customizations/.claude/agent-memory/orchestrator/MEMORY.md +3 -0
- package/resources/claude-customizations/.claude/agent-memory/orchestrator/feedback_repo_root_is_source_of_truth.md +11 -0
- package/resources/claude-customizations/.claude/agent-memory/orchestrator/feedback_vsce_verify_package_location.md +19 -0
- package/resources/claude-customizations/.claude/agent-memory/orchestrator/project_extension_location.md +11 -0
- package/resources/claude-customizations/.claude/agent-memory/prd-feature/MEMORY.md +1 -0
- package/resources/claude-customizations/.claude/agent-memory/prd-feature/project_push_down_pattern.md +13 -0
- package/resources/claude-customizations/.claude/agent-memory/task-researcher/MEMORY.md +3 -0
- package/resources/claude-customizations/.claude/agent-memory/task-researcher/project_push_down_claude_dir.md +11 -0
- package/resources/claude-customizations/.claude/agents/atomic-executor.md +135 -0
- package/resources/claude-customizations/.claude/agents/atomic-planner.md +71 -0
- package/resources/claude-customizations/.claude/agents/csharp-typed-engineer.md +69 -0
- package/resources/claude-customizations/.claude/agents/epic-review.md +40 -0
- package/resources/claude-customizations/.claude/agents/feature-review.md +136 -0
- package/resources/claude-customizations/.claude/agents/orchestrator.md +83 -0
- package/resources/claude-customizations/.claude/agents/powershell-typed-engineer.md +80 -0
- package/resources/claude-customizations/.claude/agents/prd-feature.md +42 -0
- package/resources/claude-customizations/.claude/agents/python-typed-engineer.md +72 -0
- package/resources/claude-customizations/.claude/agents/staged-review.md +41 -0
- package/resources/claude-customizations/.claude/agents/status-updater.md +41 -0
- package/resources/claude-customizations/.claude/agents/task-researcher.md +81 -0
- package/resources/claude-customizations/.claude/agents/typescript-engineer.md +24 -0
- package/resources/claude-customizations/.claude/hooks/check-powershell-test-purity.ps1 +111 -0
- package/resources/claude-customizations/.claude/hooks/check-python-test-purity.ps1 +146 -0
- package/resources/claude-customizations/.claude/hooks/enforce-evidence-locations.ps1 +150 -0
- package/resources/claude-customizations/.claude/hooks/enforce-powershell-batch-budget.ps1 +238 -0
- package/resources/claude-customizations/.claude/hooks/enforce-promotion-mcp-only.ps1 +147 -0
- package/resources/claude-customizations/.claude/hooks/enforce-python-batch-budget.ps1 +235 -0
- package/resources/claude-customizations/.claude/hooks/validate-bash.ps1 +69 -0
- package/resources/claude-customizations/.claude/hooks/validate-executor-output.ps1 +296 -0
- package/resources/claude-customizations/.claude/hooks/validate-feature-review-coverage.ps1 +389 -0
- package/resources/claude-customizations/.claude/hooks/validate-orchestrator-output.ps1 +141 -0
- package/resources/claude-customizations/.claude/hooks/validate-planner-output.ps1 +288 -0
- package/resources/claude-customizations/.claude/hooks/validate-required-artifact-output.ps1 +171 -0
- package/resources/claude-customizations/.claude/hooks/validate-task-researcher-output.ps1 +142 -0
- package/resources/claude-customizations/.claude/rules/csharp.md +62 -0
- package/resources/claude-customizations/.claude/rules/general-code-change.md +71 -0
- package/resources/claude-customizations/.claude/rules/general-unit-test.md +60 -0
- package/resources/claude-customizations/.claude/rules/powershell.md +97 -0
- package/resources/claude-customizations/.claude/rules/python-suppressions.md +143 -0
- package/resources/claude-customizations/.claude/rules/python.md +99 -0
- package/resources/claude-customizations/.claude/rules/self-explanatory-code-commenting.md +97 -0
- package/resources/claude-customizations/.claude/rules/tonality.md +80 -0
- package/resources/claude-customizations/.claude/rules/typescript-suppressions.md +66 -0
- package/resources/claude-customizations/.claude/rules/typescript.md +45 -0
- package/resources/claude-customizations/.claude/settings.json +144 -0
- package/resources/claude-customizations/.claude/skills/acceptance-criteria-tracking/SKILL.md +102 -0
- package/resources/claude-customizations/.claude/skills/atomic-plan-contract/SKILL.md +189 -0
- package/resources/claude-customizations/.claude/skills/commit-message/SKILL.md +65 -0
- package/resources/claude-customizations/.claude/skills/csharp-change-budget-router/SKILL.md +90 -0
- package/resources/claude-customizations/.claude/skills/csharp-orchestration-state-machine/SKILL.md +58 -0
- package/resources/claude-customizations/.claude/skills/csharp-qa-gate/SKILL.md +77 -0
- package/resources/claude-customizations/.claude/skills/evidence-and-timestamp-conventions/SKILL.md +164 -0
- package/resources/claude-customizations/.claude/skills/execute-hard-lock/SKILL.md +82 -0
- package/resources/claude-customizations/.claude/skills/feature-promotion-lifecycle/SKILL.md +115 -0
- package/resources/claude-customizations/.claude/skills/feature-review-workflow/SKILL.md +167 -0
- package/resources/claude-customizations/.claude/skills/fill-feature-docs/SKILL.md +22 -0
- package/resources/claude-customizations/.claude/skills/invoke-csharp-engineer/SKILL.md +64 -0
- package/resources/claude-customizations/.claude/skills/invoke-powershell-engineer/SKILL.md +65 -0
- package/resources/claude-customizations/.claude/skills/invoke-python-engineer/SKILL.md +64 -0
- package/resources/claude-customizations/.claude/skills/make-skill-template/SKILL.md +147 -0
- package/resources/claude-customizations/.claude/skills/orchestrate/SKILL.md +132 -0
- package/resources/claude-customizations/.claude/skills/policy-audit-template-usage/SKILL.md +49 -0
- package/resources/claude-customizations/.claude/skills/policy-compliance-order/SKILL.md +40 -0
- package/resources/claude-customizations/.claude/skills/powershell-change-budget-router/SKILL.md +49 -0
- package/resources/claude-customizations/.claude/skills/powershell-orchestration-state-machine/SKILL.md +58 -0
- package/resources/claude-customizations/.claude/skills/powershell-qa-gate/SKILL.md +77 -0
- package/resources/claude-customizations/.claude/skills/pr-author/SKILL.md +50 -0
- package/resources/claude-customizations/.claude/skills/pr-base-branch-merge-base/SKILL.md +56 -0
- package/resources/claude-customizations/.claude/skills/pr-context-artifacts/SKILL.md +30 -0
- package/resources/claude-customizations/.claude/skills/python-change-budget-router/SKILL.md +79 -0
- package/resources/claude-customizations/.claude/skills/python-qa-gate/SKILL.md +77 -0
- package/resources/claude-customizations/.claude/skills/remediation-handoff-atomic-planner/SKILL.md +40 -0
- package/resources/claude-customizations/.claude/skills/research-issue/SKILL.md +67 -0
- package/resources/claude-customizations/.claude/skills/review-epic/SKILL.md +21 -0
- package/resources/claude-customizations/.claude/skills/review-feature/SKILL.md +25 -0
- package/resources/claude-customizations/.claude/skills/review-staged/SKILL.md +21 -0
- package/resources/claude-customizations/.claude/skills/skill-canonical-location-audit/SKILL.md +49 -0
- package/resources/claude-customizations/.claude/skills/translate-copilot-to-claude/SKILL.md +295 -0
- package/resources/claude-customizations/.claude/skills/update-status/SKILL.md +21 -0
- package/resources/claude-dir-customizations/.mcp.json +8 -0
- package/resources/codex-and-agents-customizations/.agents/README.md +86 -0
- package/resources/codex-and-agents-customizations/.agents/skills/README.md +49 -0
- package/resources/codex-and-agents-customizations/.agents/skills/acceptance-criteria-tracking/SKILL.md +107 -0
- package/resources/codex-and-agents-customizations/.agents/skills/atomic-executor/SKILL.md +73 -0
- package/resources/codex-and-agents-customizations/.agents/skills/atomic-plan-contract/SKILL.md +194 -0
- package/resources/codex-and-agents-customizations/.agents/skills/atomic-planner/SKILL.md +87 -0
- package/resources/codex-and-agents-customizations/.agents/skills/commit-message/SKILL.md +70 -0
- package/resources/codex-and-agents-customizations/.agents/skills/commit-message-conventions/SKILL.md +95 -0
- package/resources/codex-and-agents-customizations/.agents/skills/csharp/SKILL.md +67 -0
- package/resources/codex-and-agents-customizations/.agents/skills/csharp-change-budget-router/SKILL.md +94 -0
- package/resources/codex-and-agents-customizations/.agents/skills/csharp-orchestration-state-machine/SKILL.md +64 -0
- package/resources/codex-and-agents-customizations/.agents/skills/csharp-qa-gate/SKILL.md +82 -0
- package/resources/codex-and-agents-customizations/.agents/skills/evidence-and-timestamp-conventions/SKILL.md +168 -0
- package/resources/codex-and-agents-customizations/.agents/skills/execute-hard-lock/SKILL.md +88 -0
- package/resources/codex-and-agents-customizations/.agents/skills/feature-promotion-lifecycle/SKILL.md +129 -0
- package/resources/codex-and-agents-customizations/.agents/skills/feature-review/SKILL.md +106 -0
- package/resources/codex-and-agents-customizations/.agents/skills/feature-review-workflow/SKILL.md +181 -0
- package/resources/codex-and-agents-customizations/.agents/skills/fill-feature-docs/SKILL.md +27 -0
- package/resources/codex-and-agents-customizations/.agents/skills/invoke-csharp-engineer/SKILL.md +73 -0
- package/resources/codex-and-agents-customizations/.agents/skills/invoke-powershell-engineer/SKILL.md +74 -0
- package/resources/codex-and-agents-customizations/.agents/skills/invoke-python-engineer/SKILL.md +73 -0
- package/resources/codex-and-agents-customizations/.agents/skills/make-skill-template/SKILL.md +152 -0
- package/resources/codex-and-agents-customizations/.agents/skills/orchestrate/SKILL.md +143 -0
- package/resources/codex-and-agents-customizations/.agents/skills/orchestrator-workflow/SKILL.md +317 -0
- package/resources/codex-and-agents-customizations/.agents/skills/policy-audit-template-usage/SKILL.md +53 -0
- package/resources/codex-and-agents-customizations/.agents/skills/policy-compliance-order/SKILL.md +49 -0
- package/resources/codex-and-agents-customizations/.agents/skills/powershell/SKILL.md +102 -0
- package/resources/codex-and-agents-customizations/.agents/skills/powershell-change-budget-router/SKILL.md +53 -0
- package/resources/codex-and-agents-customizations/.agents/skills/powershell-orchestration-state-machine/SKILL.md +64 -0
- package/resources/codex-and-agents-customizations/.agents/skills/powershell-qa-gate/SKILL.md +83 -0
- package/resources/codex-and-agents-customizations/.agents/skills/pr-author/SKILL.md +55 -0
- package/resources/codex-and-agents-customizations/.agents/skills/pr-authoring/SKILL.md +124 -0
- package/resources/codex-and-agents-customizations/.agents/skills/pr-base-branch-merge-base/SKILL.md +60 -0
- package/resources/codex-and-agents-customizations/.agents/skills/pr-context-artifacts/SKILL.md +34 -0
- package/resources/codex-and-agents-customizations/.agents/skills/python/SKILL.md +104 -0
- package/resources/codex-and-agents-customizations/.agents/skills/python-change-budget-router/SKILL.md +84 -0
- package/resources/codex-and-agents-customizations/.agents/skills/python-qa-gate/SKILL.md +82 -0
- package/resources/codex-and-agents-customizations/.agents/skills/python-suppressions/SKILL.md +148 -0
- package/resources/codex-and-agents-customizations/.agents/skills/remediation-handoff-atomic-planner/SKILL.md +49 -0
- package/resources/codex-and-agents-customizations/.agents/skills/repo-automation-adapter/SKILL.md +142 -0
- package/resources/codex-and-agents-customizations/.agents/skills/repo-automation-adapter/agents/openai.yaml +5 -0
- package/resources/codex-and-agents-customizations/.agents/skills/research-issue/SKILL.md +72 -0
- package/resources/codex-and-agents-customizations/.agents/skills/review-epic/SKILL.md +26 -0
- package/resources/codex-and-agents-customizations/.agents/skills/review-feature/SKILL.md +30 -0
- package/resources/codex-and-agents-customizations/.agents/skills/review-staged/SKILL.md +26 -0
- package/resources/codex-and-agents-customizations/.agents/skills/self-explanatory-code-commenting/SKILL.md +102 -0
- package/resources/codex-and-agents-customizations/.agents/skills/skill-canonical-location-audit/SKILL.md +52 -0
- package/resources/codex-and-agents-customizations/.agents/skills/translate-copilot-to-claude/SKILL.md +317 -0
- package/resources/codex-and-agents-customizations/.agents/skills/typescript/SKILL.md +50 -0
- package/resources/codex-and-agents-customizations/.agents/skills/typescript-suppressions/SKILL.md +71 -0
- package/resources/codex-and-agents-customizations/.agents/skills/update-status/SKILL.md +26 -0
- package/resources/codex-and-agents-customizations/.codex/agents/5.1-beast-adjusted.toml +23 -0
- package/resources/codex-and-agents-customizations/.codex/agents/5.1-thinking-beast-mode-adjusted.toml +23 -0
- package/resources/codex-and-agents-customizations/.codex/agents/api-architect.toml +23 -0
- package/resources/codex-and-agents-customizations/.codex/agents/atomic-executor.toml +151 -0
- package/resources/codex-and-agents-customizations/.codex/agents/atomic-planner.toml +93 -0
- package/resources/codex-and-agents-customizations/.codex/agents/atomic-planning.toml +24 -0
- package/resources/codex-and-agents-customizations/.codex/agents/commentary-remediation.toml +23 -0
- package/resources/codex-and-agents-customizations/.codex/agents/commit-steward.toml +20 -0
- package/resources/codex-and-agents-customizations/.codex/agents/csharp-atomic-executor.toml +24 -0
- package/resources/codex-and-agents-customizations/.codex/agents/csharp-atomic-planning.toml +25 -0
- package/resources/codex-and-agents-customizations/.codex/agents/csharp-orchestrator.toml +56 -0
- package/resources/codex-and-agents-customizations/.codex/agents/csharp-typed-engineer.toml +97 -0
- package/resources/codex-and-agents-customizations/.codex/agents/epic-review.toml +52 -0
- package/resources/codex-and-agents-customizations/.codex/agents/expert-nextjs-developer.toml +23 -0
- package/resources/codex-and-agents-customizations/.codex/agents/expert-react-frontend-engineer.toml +23 -0
- package/resources/codex-and-agents-customizations/.codex/agents/feature-review.toml +149 -0
- package/resources/codex-and-agents-customizations/.codex/agents/feature-reviewer.toml +60 -0
- package/resources/codex-and-agents-customizations/.codex/agents/gpt-5-beast-mode.toml +23 -0
- package/resources/codex-and-agents-customizations/.codex/agents/hlbpa.toml +23 -0
- package/resources/codex-and-agents-customizations/.codex/agents/mentor.toml +23 -0
- package/resources/codex-and-agents-customizations/.codex/agents/orchestrator.toml +121 -0
- package/resources/codex-and-agents-customizations/.codex/agents/powershell-atomic-executor.toml +24 -0
- package/resources/codex-and-agents-customizations/.codex/agents/powershell-atomic-planning.toml +25 -0
- package/resources/codex-and-agents-customizations/.codex/agents/powershell-di-unit-test-engineer.toml +24 -0
- package/resources/codex-and-agents-customizations/.codex/agents/powershell-orchestrator.toml +56 -0
- package/resources/codex-and-agents-customizations/.codex/agents/powershell-typed-engineer.toml +108 -0
- package/resources/codex-and-agents-customizations/.codex/agents/pr-author.toml +26 -0
- package/resources/codex-and-agents-customizations/.codex/agents/prd-feature.toml +53 -0
- package/resources/codex-and-agents-customizations/.codex/agents/prd.toml +23 -0
- package/resources/codex-and-agents-customizations/.codex/agents/pytest-unit-test-coding.toml +24 -0
- package/resources/codex-and-agents-customizations/.codex/agents/python-atomic-executor.toml +24 -0
- package/resources/codex-and-agents-customizations/.codex/agents/python-atomic-planning.toml +25 -0
- package/resources/codex-and-agents-customizations/.codex/agents/python-execution-only-typed.toml +24 -0
- package/resources/codex-and-agents-customizations/.codex/agents/python-orchestrator.toml +54 -0
- package/resources/codex-and-agents-customizations/.codex/agents/python-typed-engineer.toml +100 -0
- package/resources/codex-and-agents-customizations/.codex/agents/staged-review.toml +53 -0
- package/resources/codex-and-agents-customizations/.codex/agents/status-updater.toml +53 -0
- package/resources/codex-and-agents-customizations/.codex/agents/task-researcher.toml +103 -0
- package/resources/codex-and-agents-customizations/.codex/agents/tdd-green.toml +23 -0
- package/resources/codex-and-agents-customizations/.codex/agents/tdd-red.toml +23 -0
- package/resources/codex-and-agents-customizations/.codex/agents/tdd-refactor.toml +23 -0
- package/resources/codex-and-agents-customizations/.codex/agents/typescript-engineer.toml +48 -0
- package/resources/codex-and-agents-customizations/.codex/agents/voidbeast-gpt41enhanced.toml +23 -0
- package/resources/codex-and-agents-customizations/.codex/codex-web-setup.plan.md +26 -0
- package/resources/codex-and-agents-customizations/.codex/codex-web-setup.sh +384 -0
- package/resources/codex-and-agents-customizations/.codex/config.toml +137 -0
- package/resources/codex-and-agents-customizations/.codex/hooks/check-powershell-test-purity.ps1 +113 -0
- package/resources/codex-and-agents-customizations/.codex/hooks/check-python-test-purity.ps1 +149 -0
- package/resources/codex-and-agents-customizations/.codex/hooks/enforce-evidence-locations.ps1 +153 -0
- package/resources/codex-and-agents-customizations/.codex/hooks/enforce-powershell-batch-budget.ps1 +241 -0
- package/resources/codex-and-agents-customizations/.codex/hooks/enforce-promotion-mcp-only.ps1 +150 -0
- package/resources/codex-and-agents-customizations/.codex/hooks/enforce-python-batch-budget.ps1 +238 -0
- package/resources/codex-and-agents-customizations/.codex/hooks/validate-bash.ps1 +72 -0
- package/resources/codex-and-agents-customizations/.codex/hooks/validate-feature-review-coverage.ps1 +265 -0
- package/resources/codex-and-agents-customizations/.codex/prompts/feature-review-remediate.md +10 -0
- package/resources/codex-and-agents-customizations/.codex/prompts/generate-commit-message-repo.md +11 -0
- package/resources/codex-and-agents-customizations/.codex/prompts/generate-pr.md +15 -0
- package/resources/codex-and-agents-customizations/.codex/prompts/orchestrate-work.md +22 -0
- package/resources/codex-and-agents-customizations/AGENTS.md +317 -0
- package/resources/customizations/.github/agents/5.1-Beast-adjusted.agent.md +181 -0
- package/resources/customizations/.github/agents/5.1-Thinking-Beast-Mode-adjusted.agent.md +361 -0
- package/resources/customizations/.github/agents/Powershell DI Unit Test Engineer.agent.md +192 -0
- package/resources/customizations/.github/agents/api-architect.agent.md +40 -0
- package/resources/customizations/.github/agents/atomic_executor.agent.md +251 -0
- package/resources/customizations/.github/agents/atomic_planning.agent.md +658 -0
- package/resources/customizations/.github/agents/commentary-remediation.agent.md +35 -0
- package/resources/customizations/.github/agents/commit-steward.agent.md +200 -0
- package/resources/customizations/.github/agents/csharp-atomic-executor.agent.md +288 -0
- package/resources/customizations/.github/agents/csharp-atomic-planning.agent.md +354 -0
- package/resources/customizations/.github/agents/csharp-orchestrator.agent.md +375 -0
- package/resources/customizations/.github/agents/csharp-typed-engineer.agent.md +285 -0
- package/resources/customizations/.github/agents/epic-review.agent.md +374 -0
- package/resources/customizations/.github/agents/expert-nextjs-developer.agent.md +477 -0
- package/resources/customizations/.github/agents/expert-react-frontend-engineer.agent.md +739 -0
- package/resources/customizations/.github/agents/feature-review.agent.md +49 -0
- package/resources/customizations/.github/agents/gpt-5-beast-mode.agent.md +116 -0
- package/resources/customizations/.github/agents/hlbpa.agent.md +219 -0
- package/resources/customizations/.github/agents/mentor.agent.md +32 -0
- package/resources/customizations/.github/agents/orchestrator.agent.md +449 -0
- package/resources/customizations/.github/agents/powershell-atomic-executor.agent.md +287 -0
- package/resources/customizations/.github/agents/powershell-atomic-planning.agent.md +647 -0
- package/resources/customizations/.github/agents/powershell-orchestrator.agent.md +382 -0
- package/resources/customizations/.github/agents/powershell-typed-engineer.agent.md +293 -0
- package/resources/customizations/.github/agents/pr-author.agent.md +138 -0
- package/resources/customizations/.github/agents/prd-feature.agent.md +52 -0
- package/resources/customizations/.github/agents/prd.agent.md +202 -0
- package/resources/customizations/.github/agents/pytest-unit-test-coding.agent.md +202 -0
- package/resources/customizations/.github/agents/python-atomic-executor.agent.md +289 -0
- package/resources/customizations/.github/agents/python-atomic-planning.agent.md +429 -0
- package/resources/customizations/.github/agents/python-execution-only-typed.agent.md +217 -0
- package/resources/customizations/.github/agents/python-orchestrator.agent.md +380 -0
- package/resources/customizations/.github/agents/python-typed-engineer.agent.md +271 -0
- package/resources/customizations/.github/agents/staged-review.agent.md +246 -0
- package/resources/customizations/.github/agents/status_updater.agent.md +279 -0
- package/resources/customizations/.github/agents/task-researcher.agent.md +298 -0
- package/resources/customizations/.github/agents/tdd-green.agent.md +60 -0
- package/resources/customizations/.github/agents/tdd-red.agent.md +66 -0
- package/resources/customizations/.github/agents/tdd-refactor.agent.md +94 -0
- package/resources/customizations/.github/agents/typescript-engineer.agent.md +167 -0
- package/resources/customizations/.github/agents/voidbeast-gpt41enhanced.agent.md +230 -0
- package/resources/customizations/.github/codex/execute-hard-lock.prompt.md +105 -0
- package/resources/customizations/.github/codex/resume-hard-lock.prompt.md +92 -0
- package/resources/customizations/.github/copilot-instructions.md +7 -0
- package/resources/customizations/.github/instructions/csharp-code-change.instructions.md +184 -0
- package/resources/customizations/.github/instructions/csharp-unit-test.instructions.md +52 -0
- package/resources/customizations/.github/instructions/general-code-change.instructions.md +290 -0
- package/resources/customizations/.github/instructions/general-unit-test.instructions.md +106 -0
- package/resources/customizations/.github/instructions/github-actions-ci-cd-best-practices.instructions.md +607 -0
- package/resources/customizations/.github/instructions/github-actions.instructions.md +23 -0
- package/resources/customizations/.github/instructions/powershell-code-change.instructions.md +81 -0
- package/resources/customizations/.github/instructions/powershell-unit-test.instructions.md +69 -0
- package/resources/customizations/.github/instructions/python-code-change.instructions.md +232 -0
- package/resources/customizations/.github/instructions/python-suppressions.instructions.md +609 -0
- package/resources/customizations/.github/instructions/python-unit-test.instructions.md +71 -0
- package/resources/customizations/.github/instructions/self-explanatory-code-commenting.instructions.md +238 -0
- package/resources/customizations/.github/instructions/tonality.instructions.md +133 -0
- package/resources/customizations/.github/instructions/typescript-code-change.instructions.md +203 -0
- package/resources/customizations/.github/instructions/typescript-suppressions.instructions.md +157 -0
- package/resources/customizations/.github/instructions/typescript-unit-test.instructions.md +112 -0
- package/resources/customizations/.github/prompts/add-educational-comments.prompt.md +129 -0
- package/resources/customizations/.github/prompts/breakdown-bug-prd.prompt.md +29 -0
- package/resources/customizations/.github/prompts/breakdown-epic-arch.prompt.md +66 -0
- package/resources/customizations/.github/prompts/breakdown-epic-pm.prompt.md +58 -0
- package/resources/customizations/.github/prompts/breakdown-feature-implementation.prompt.md +128 -0
- package/resources/customizations/.github/prompts/breakdown-feature-prd.prompt.md +61 -0
- package/resources/customizations/.github/prompts/code-exemplars-blueprint-generator.prompt.md +126 -0
- package/resources/customizations/.github/prompts/drafts/create-github-issues-feature-from-implementation-plan.prompt.md +28 -0
- package/resources/customizations/.github/prompts/drafts/create-implementation-plan.prompt.md +158 -0
- package/resources/customizations/.github/prompts/drafts/create-technical-spike.prompt.md +231 -0
- package/resources/customizations/.github/prompts/drafts/potential-feature-prd.prompt.md +19 -0
- package/resources/customizations/.github/prompts/drafts/update-implementation-plan.prompt.md +158 -0
- package/resources/customizations/.github/prompts/execute-plan-template.md +21 -0
- package/resources/customizations/.github/prompts/export-chat.prompt.md +7 -0
- package/resources/customizations/.github/prompts/fillout-prd-feature.prompt.md +46 -0
- package/resources/customizations/.github/prompts/generate-atomic-plan.prompt.md +96 -0
- package/resources/customizations/.github/prompts/generate-commit-message-repo.prompt.md +108 -0
- package/resources/customizations/.github/prompts/generate-pr.prompt.md +151 -0
- package/resources/customizations/.github/prompts/javascript-typescript-jest.prompt.md +44 -0
- package/resources/customizations/.github/prompts/orchestrate-csharp-work.prompt.md +66 -0
- package/resources/customizations/.github/prompts/orchestrate-powershell-work.prompt.md +50 -0
- package/resources/customizations/.github/prompts/orchestrate-python-work.prompt.md +50 -0
- package/resources/customizations/.github/prompts/orchestrate-work.prompt.md +66 -0
- package/resources/customizations/.github/prompts/remediate-comments.prompt.md +53 -0
- package/resources/customizations/.github/prompts/research-issue.prompt.md +125 -0
- package/resources/customizations/.github/prompts/review-epic.prompt.md +94 -0
- package/resources/customizations/.github/prompts/review-feature.prompt.md +130 -0
- package/resources/customizations/.github/prompts/review-staged.prompt.md +43 -0
- package/resources/customizations/.github/prompts/update_status.prompt.md +68 -0
- package/resources/customizations/.github/skills/README.md +26 -0
- package/resources/customizations/.github/skills/acceptance-criteria-tracking/SKILL.md +102 -0
- package/resources/customizations/.github/skills/atomic-plan-contract/SKILL.md +174 -0
- package/resources/customizations/.github/skills/csharp-change-budget-router/SKILL.md +48 -0
- package/resources/customizations/.github/skills/csharp-orchestration-state-machine/SKILL.md +57 -0
- package/resources/customizations/.github/skills/evidence-and-timestamp-conventions/SKILL.md +135 -0
- package/resources/customizations/.github/skills/feature-promotion-lifecycle/SKILL.md +121 -0
- package/resources/customizations/.github/skills/feature-review-workflow/SKILL.md +153 -0
- package/resources/customizations/.github/skills/make-skill-template/SKILL.md +147 -0
- package/resources/customizations/.github/skills/policy-audit-template-usage/SKILL.md +48 -0
- package/resources/customizations/.github/skills/policy-compliance-order/SKILL.md +37 -0
- package/resources/customizations/.github/skills/powershell-change-budget-router/SKILL.md +48 -0
- package/resources/customizations/.github/skills/powershell-orchestration-state-machine/SKILL.md +57 -0
- package/resources/customizations/.github/skills/pr-base-branch-merge-base/SKILL.md +55 -0
- package/resources/customizations/.github/skills/pr-context-artifacts/SKILL.md +29 -0
- package/resources/customizations/.github/skills/remediation-handoff-atomic-planner/SKILL.md +39 -0
- package/resources/customizations/.github/skills/skill-canonical-location-audit/SKILL.md +48 -0
- package/resources/feature-templates/bug/plan.yyyy-MM-ddTHH-mm.md +44 -0
- package/resources/feature-templates/bug/potential_bug.md +59 -0
- package/resources/feature-templates/bug/spec.md +99 -0
- package/resources/feature-templates/epic/initiative.md +43 -0
- package/resources/feature-templates/feature/plan.yyyy-MM-ddTHH-mm.md +53 -0
- package/resources/feature-templates/feature/spec.md +66 -0
- package/resources/feature-templates/feature/user-story.md +42 -0
- package/resources/feature-templates/potential/template.md +33 -0
- package/resources/feature-templates/refactor/plan.yyyy-MM-ddTHH-mm.md +52 -0
- package/resources/feature-templates/refactor/spec.md +69 -0
- package/resources/powershell/PoshQC/PoshQC.Analyzer.psm1 +254 -0
- package/resources/powershell/PoshQC/PoshQC.FileDiscovery.psm1 +138 -0
- package/resources/powershell/PoshQC/PoshQC.Testing.psm1 +409 -0
- package/resources/powershell/PoshQC/PoshQC.psd1 +31 -0
- package/resources/powershell/PoshQC/PoshQC.psm1 +101 -0
- package/resources/powershell/PoshQC/README.md +80 -0
- package/resources/powershell/PoshQC/settings/pester.runsettings.psd1 +59 -0
- package/resources/powershell/PoshQC/settings/pssa.settings.psd1 +55 -0
- package/resources/scripts/dev_tools/__init__.py +0 -0
- package/resources/scripts/dev_tools/agentic_sync.py +819 -0
- package/resources/scripts/dev_tools/codex_native_converter/__init__.py +11 -0
- package/resources/scripts/dev_tools/codex_native_converter/__main__.py +6 -0
- package/resources/scripts/dev_tools/codex_native_converter/cli.py +11 -0
- package/resources/scripts/dev_tools/new_active_feature_folder.py +79 -0
- package/resources/scripts/dev_tools/new_active_feature_folder_docs.py +268 -0
- package/resources/scripts/dev_tools/new_active_feature_folder_flow.py +366 -0
- package/resources/scripts/dev_tools/new_active_feature_folder_io.py +306 -0
- package/resources/scripts/dev_tools/new_active_feature_folder_markdown.py +252 -0
- package/resources/scripts/dev_tools/new_active_feature_folder_models.py +136 -0
- package/resources/scripts/dev_tools/new_potential_bug_entry.py +465 -0
- package/resources/scripts/dev_tools/potential_to_issue.py +421 -0
- package/resources/scripts/dev_tools/potential_to_issue_content.py +212 -0
- package/resources/scripts/dev_tools/pr_context/__init__.py +0 -0
- package/resources/scripts/dev_tools/pr_context/collector.py +619 -0
- package/resources/scripts/dev_tools/pr_context/feature_docs.py +349 -0
- package/resources/scripts/dev_tools/pr_context/git.py +153 -0
- package/resources/scripts/dev_tools/pr_context/github.py +549 -0
- package/resources/scripts/dev_tools/pr_context/models.py +198 -0
- package/resources/scripts/dev_tools/pr_context/render.py +342 -0
- package/resources/scripts/dev_tools/pr_context/render_feature_excerpts.py +256 -0
- package/resources/scripts/dev_tools/pr_context/render_pr_helpers.py +291 -0
- package/resources/scripts/dev_tools/pr_context/summary_helpers.py +386 -0
- package/resources/scripts/dev_tools/pr_context/verification_evidence.py +171 -0
- package/resources/scripts/dev_tools/prompt_mode_contract.py +152 -0
- package/resources/scripts/dev_tools/push_down_claude_customizations.py +188 -0
- package/resources/scripts/dev_tools/push_down_codex_and_agents_customizations.py +139 -0
- package/resources/scripts/dev_tools/push_down_copilot_customizations.py +504 -0
- package/resources/scripts/dev_tools/push_down_copilot_customizations_filesystem.py +217 -0
- package/resources/scripts/dev_tools/push_down_copilot_customizations_rewrites.py +293 -0
- package/resources/scripts/dev_tools/resolve_file_prompt.py +457 -0
- package/resources/scripts/dev_tools/resolve_hard_lock_prompt.py +444 -0
- package/resources/scripts/dev_tools/validate_orchestration_artifacts.py +554 -0
- package/resources/templates/codex_native_converter.py +35 -0
- package/resources/templates/collect_commit_context.py +212 -0
- package/resources/templates/collect_pr_context.py +74 -0
- package/resources/templates/hello_pwsh.ps1 +3 -0
- package/resources/templates/hello_python.py +11 -0
- package/resources/templates/link-parent-child.ps1 +480 -0
- package/resources/templates/new-claude-worktree-session.ps1 +232 -0
- package/resources/templates/new-potential-entry.ps1 +187 -0
- package/resources/templates/new_active_feature_folder.py +67 -0
- package/resources/templates/new_potential_bug_entry.py +54 -0
- package/resources/templates/policy_audit/AGENTS.md +117 -0
- package/resources/templates/policy_audit/code-review.yyyy-MM-ddTHH-mm.md +165 -0
- package/resources/templates/policy_audit/feature-audit.yyyy-MM-ddTHH-mm.md +124 -0
- package/resources/templates/policy_audit/policy-audit.yyyy-MM-ddTHH-mm.md +649 -0
- package/resources/templates/potential_to_issue.py +55 -0
- package/resources/templates/push_down_claude_customizations.py +188 -0
- package/resources/templates/push_down_codex_and_agents_customizations.py +95 -0
- package/resources/templates/push_down_copilot_customizations.py +124 -0
- package/resources/templates/resolve_atomic_plan_prompt.py +75 -0
- package/resources/templates/resolve_hard_lock_prompt.py +65 -0
- package/resources/templates/run-poshqc-analyze-autofix.ps1 +16 -0
- package/resources/templates/run-poshqc-analyze.ps1 +26 -0
- package/resources/templates/run-poshqc-format.ps1 +26 -0
- package/resources/templates/run-poshqc-suite.ps1 +24 -0
- package/resources/templates/run-poshqc-test.ps1 +32 -0
- package/resources/templates/sync-agents-from-instructions.ps1 +400 -0
- package/resources/templates/validate_orchestration_artifacts.py +55 -0
- package/resources/templates/vscode-cli.helpers.ps1 +63 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
---
|
|
2
|
+
agent: 'csharp-orchestrator'
|
|
3
|
+
description: 'Route a C# request through budget-based orchestration: direct small-scope delivery or full feature/bug lifecycle with promotion, research, plan/execution, and review.'
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# C# Orchestration Prompt
|
|
7
|
+
|
|
8
|
+
Use this prompt to run an end-to-end C# workflow through `csharp-orchestrator`.
|
|
9
|
+
|
|
10
|
+
## Objective
|
|
11
|
+
|
|
12
|
+
Coordinate the user request from intake to completion using the correct path based on rough change budget.
|
|
13
|
+
|
|
14
|
+
## Inputs
|
|
15
|
+
|
|
16
|
+
- **Request summary (required):** clear objective and expected outcome
|
|
17
|
+
- **Likely affected files (optional):** any known production/test files
|
|
18
|
+
- **Initial classification hint (optional):** `feature` or `bug`
|
|
19
|
+
- **Constraints (optional):** APIs/paths/behavior that must remain unchanged
|
|
20
|
+
|
|
21
|
+
## Required orchestration behavior
|
|
22
|
+
|
|
23
|
+
1. Estimate rough change budget first (production C# files and test C# files).
|
|
24
|
+
2. If budget is **1–3 production C# files** (+ corresponding tests):
|
|
25
|
+
- Execute enforced small-path lifecycle:
|
|
26
|
+
1) Scope/create potential entry and promote with `--work-mode minor-audit`
|
|
27
|
+
2) Create branch and active feature folder with `--work-mode minor-audit`, then verify `issue.md` contains an explicit `## Acceptance Criteria` section
|
|
28
|
+
3) Delegate plan creation to `atomic_planner` with directive `DIRECTIVE: MINIMAL-AUDIT PLAN REQUIRED`
|
|
29
|
+
4) Require `atomic_executor` preflight until `PREFLIGHT: ALL CLEAR`
|
|
30
|
+
5) Delegate to `atomic_executor` to execute **Phase 0 only**
|
|
31
|
+
6) Branch behavior:
|
|
32
|
+
- manual bootstrap: save state and stop for manual resume
|
|
33
|
+
- non-bootstrap small development: delegate constrained implementation to `csharp-typed-engineer`
|
|
34
|
+
7) Delegate post-delivery validation to `atomic_executor` for validation against issue.md, using only the explicit `## Acceptance Criteria` section for minor-audit acceptance validation, and persist checklist/doc updates
|
|
35
|
+
8) Run reduced small-path audit and remediation loop until ready-to-merge
|
|
36
|
+
3. If budget is **>3 production C# files** or **>3 test C# files**:
|
|
37
|
+
- Execute full large-path lifecycle:
|
|
38
|
+
1) Scope and create potential entry (`feature` vs `bug`, short-name creation)
|
|
39
|
+
2) Promote to GitHub issue and capture issue metadata
|
|
40
|
+
3) Create branch and active feature folder
|
|
41
|
+
4) Delegate research + spec/story completion
|
|
42
|
+
5) Delegate plan creation to `csharp-atomic-planning` (which delegates to `atomic_planner`, then validates preflight via `atomic_executor` until `PREFLIGHT: ALL CLEAR`)
|
|
43
|
+
6) After all-clear, delegate implementation + QA directly to `csharp-atomic-executor`
|
|
44
|
+
7) Delegate post-implementation feature review
|
|
45
|
+
|
|
46
|
+
## Persistence and resume
|
|
47
|
+
|
|
48
|
+
- Maintain orchestration state in `artifacts/orchestration/csharp-orchestrator-state.json`.
|
|
49
|
+
- Resume from the next incomplete step if interrupted.
|
|
50
|
+
- Do not end early while required downstream steps remain.
|
|
51
|
+
|
|
52
|
+
## Output expectations
|
|
53
|
+
|
|
54
|
+
On completion, report:
|
|
55
|
+
|
|
56
|
+
- Selected route (`small` or `large`)
|
|
57
|
+
- Branch name (if created)
|
|
58
|
+
- Key captured variables (`promotion-type`, `short-name`, `issue-num`, `feature-folder` when applicable)
|
|
59
|
+
- Created/updated artifact paths
|
|
60
|
+
- Final readiness summary and any remaining action items
|
|
61
|
+
|
|
62
|
+
For small path also report:
|
|
63
|
+
- approved `plan-path`
|
|
64
|
+
- preflight result (`PREFLIGHT: ALL CLEAR`)
|
|
65
|
+
- whether `manual bootstrap` branch was taken
|
|
66
|
+
- Phase 0 execution evidence and stored `next_step` for resume
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
---
|
|
2
|
+
agent: 'powershell-orchestrator'
|
|
3
|
+
description: 'Route a PowerShell request through budget-based orchestration: direct small-scope delivery or full feature/bug lifecycle with promotion, research, plan/execution, and review.'
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# PowerShell Orchestration Prompt
|
|
7
|
+
|
|
8
|
+
Use this prompt to run an end-to-end PowerShell workflow through `powershell-orchestrator`.
|
|
9
|
+
|
|
10
|
+
## Objective
|
|
11
|
+
|
|
12
|
+
Coordinate the user request from intake to completion using the correct path based on rough change budget.
|
|
13
|
+
|
|
14
|
+
## Inputs
|
|
15
|
+
|
|
16
|
+
- **Request summary (required):** clear objective and expected outcome
|
|
17
|
+
- **Likely affected files (optional):** any known production/test files
|
|
18
|
+
- **Initial classification hint (optional):** `feature` or `bug`
|
|
19
|
+
- **Constraints (optional):** APIs/paths/behavior that must remain unchanged
|
|
20
|
+
|
|
21
|
+
## Required orchestration behavior
|
|
22
|
+
|
|
23
|
+
1. Estimate rough change budget first (production PowerShell files).
|
|
24
|
+
2. If budget is **1–2 production PowerShell files** (+ corresponding tests):
|
|
25
|
+
- Delegate directly to `powershell-typed-engineer` for plan + implementation + QA closure.
|
|
26
|
+
3. If budget is **>2 production PowerShell files**:
|
|
27
|
+
- Execute full large-path lifecycle:
|
|
28
|
+
1) Scope and create potential entry (`feature` vs `bug`, short-name creation)
|
|
29
|
+
2) Promote to GitHub issue and capture issue metadata
|
|
30
|
+
3) Create branch and active feature folder
|
|
31
|
+
4) Delegate research + spec/story completion
|
|
32
|
+
5) Delegate plan creation to `powershell-atomic-planning` (which delegates to `atomic_planner`, then validates preflight via `atomic_executor` until `PREFLIGHT: ALL CLEAR`)
|
|
33
|
+
6) After all-clear, delegate implementation + QA directly to `powershell_atomic_executor`
|
|
34
|
+
7) Delegate post-implementation feature review
|
|
35
|
+
|
|
36
|
+
## Persistence and resume
|
|
37
|
+
|
|
38
|
+
- Maintain orchestration state in `artifacts/orchestration/powershell-orchestrator-state.json`.
|
|
39
|
+
- Resume from the next incomplete step if interrupted.
|
|
40
|
+
- Do not end early while required downstream steps remain.
|
|
41
|
+
|
|
42
|
+
## Output expectations
|
|
43
|
+
|
|
44
|
+
On completion, report:
|
|
45
|
+
|
|
46
|
+
- Selected route (`small` or `large`)
|
|
47
|
+
- Branch name (if created)
|
|
48
|
+
- Key captured variables (`promotion-type`, `short-name`, `issue-num`, `feature-folder` when applicable)
|
|
49
|
+
- Created/updated artifact paths
|
|
50
|
+
- Final readiness summary and any remaining action items
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
---
|
|
2
|
+
agent: 'python-orchestrator'
|
|
3
|
+
description: 'Route a Python request through budget-based orchestration: direct small-scope delivery or full feature/bug lifecycle with promotion, research, plan/execution, and review.'
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Python Orchestration Prompt
|
|
7
|
+
|
|
8
|
+
Use this prompt to run an end-to-end Python workflow through `python-orchestrator`.
|
|
9
|
+
|
|
10
|
+
## Objective
|
|
11
|
+
|
|
12
|
+
Coordinate the user request from intake to completion using the correct path based on rough change budget.
|
|
13
|
+
|
|
14
|
+
## Inputs
|
|
15
|
+
|
|
16
|
+
- **Request summary (required):** clear objective and expected outcome
|
|
17
|
+
- **Likely affected files (optional):** any known production/test files
|
|
18
|
+
- **Initial classification hint (optional):** `feature` or `bug`
|
|
19
|
+
- **Constraints (optional):** APIs/paths/behavior that must remain unchanged
|
|
20
|
+
|
|
21
|
+
## Required orchestration behavior
|
|
22
|
+
|
|
23
|
+
1. Estimate rough change budget first (production Python files and test Python files).
|
|
24
|
+
2. If budget is **1–3 production Python files** (+ corresponding tests):
|
|
25
|
+
- Delegate directly to `python-typed-engineer` for plan + implementation + QA closure.
|
|
26
|
+
3. If budget is **>3 production Python files** or **>3 test Python files**:
|
|
27
|
+
- Execute full large-path lifecycle:
|
|
28
|
+
1) Scope and create potential entry (`feature` vs `bug`, short-name creation)
|
|
29
|
+
2) Promote to GitHub issue and capture issue metadata
|
|
30
|
+
3) Create branch and active feature folder
|
|
31
|
+
4) Delegate research + spec/story completion
|
|
32
|
+
5) Delegate plan creation to `python-atomic-planning` (which delegates to `atomic_planner`, then validates preflight via `atomic_executor` until `PREFLIGHT: ALL CLEAR`)
|
|
33
|
+
6) After all-clear, delegate implementation + QA directly to `python-atomic-executor`
|
|
34
|
+
7) Delegate post-implementation feature review
|
|
35
|
+
|
|
36
|
+
## Persistence and resume
|
|
37
|
+
|
|
38
|
+
- Maintain orchestration state in `artifacts/orchestration/python-orchestrator-state.json`.
|
|
39
|
+
- Resume from the next incomplete step if interrupted.
|
|
40
|
+
- Do not end early while required downstream steps remain.
|
|
41
|
+
|
|
42
|
+
## Output expectations
|
|
43
|
+
|
|
44
|
+
On completion, report:
|
|
45
|
+
|
|
46
|
+
- Selected route (`small` or `large`)
|
|
47
|
+
- Branch name (if created)
|
|
48
|
+
- Key captured variables (`promotion-type`, `short-name`, `issue-num`, `feature-folder` when applicable)
|
|
49
|
+
- Created/updated artifact paths
|
|
50
|
+
- Final readiness summary and any remaining action items
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
---
|
|
2
|
+
agent: 'orchestrator'
|
|
3
|
+
description: 'Route a request through budget-based orchestration: direct small-scope delivery or full feature/bug lifecycle with promotion, research, plan/execution, and review.'
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Orchestration Prompt
|
|
7
|
+
|
|
8
|
+
Use this prompt to run an end-to-end workflow through `orchestrator`.
|
|
9
|
+
|
|
10
|
+
## Objective
|
|
11
|
+
|
|
12
|
+
Coordinate the user request from intake to completion using the correct path based on rough change budget.
|
|
13
|
+
|
|
14
|
+
## Inputs
|
|
15
|
+
|
|
16
|
+
- **Request summary (required):** clear objective and expected outcome
|
|
17
|
+
- **Likely affected files (optional):** any known production/test files
|
|
18
|
+
- **Initial classification hint (optional):** `feature` or `bug`
|
|
19
|
+
- **Constraints (optional):** APIs/paths/behavior that must remain unchanged
|
|
20
|
+
|
|
21
|
+
## Required orchestration behavior
|
|
22
|
+
|
|
23
|
+
1. Estimate rough change budget first (production files and test files).
|
|
24
|
+
2. If budget is **1–3 production files** (+ corresponding tests):
|
|
25
|
+
- Execute enforced small-path lifecycle:
|
|
26
|
+
1) Scope/create potential entry and promote with `--work-mode minor-audit`
|
|
27
|
+
2) Create branch and active feature folder with `--work-mode minor-audit`, then verify `issue.md` contains an explicit `## Acceptance Criteria` section
|
|
28
|
+
3) Delegate plan creation to `atomic_planner` with directive `DIRECTIVE: MINIMAL-AUDIT PLAN REQUIRED`
|
|
29
|
+
4) Require `atomic_executor` preflight until `PREFLIGHT: ALL CLEAR`
|
|
30
|
+
5) Delegate to `atomic_executor` to execute **Phase 0 only**
|
|
31
|
+
6) Branch behavior:
|
|
32
|
+
- manual bootstrap: save state and stop for manual resume
|
|
33
|
+
- non-bootstrap small development: delegate constrained implementation to the small-path engineer
|
|
34
|
+
7) Delegate post-delivery validation to `atomic_executor` against `issue.md`, using only the explicit `## Acceptance Criteria` section for minor-audit acceptance validation, and persist checklist/doc updates
|
|
35
|
+
8) Run reduced small-path audit and remediation loop until ready-to-merge
|
|
36
|
+
3. If budget is **>3 production files** or **>3 test files**:
|
|
37
|
+
- Execute full large-path lifecycle:
|
|
38
|
+
1) Scope and create potential entry (`feature` vs `bug`, short-name creation)
|
|
39
|
+
2) Promote to GitHub issue and capture issue metadata
|
|
40
|
+
3) Create branch and active feature folder
|
|
41
|
+
4) Delegate research + spec/story completion
|
|
42
|
+
5) Delegate plan creation to `atomic_planner` (and require validation-only preflight through `atomic_executor` until `PREFLIGHT: ALL CLEAR`)
|
|
43
|
+
6) After all-clear, delegate implementation + QA directly to `atomic_executor`
|
|
44
|
+
7) Delegate post-implementation feature review
|
|
45
|
+
|
|
46
|
+
## Persistence and resume
|
|
47
|
+
|
|
48
|
+
- Maintain orchestration state in `artifacts/orchestration/orchestrator-state.json`.
|
|
49
|
+
- Resume from the next incomplete step if interrupted.
|
|
50
|
+
- Do not end early while required downstream steps remain.
|
|
51
|
+
|
|
52
|
+
## Output expectations
|
|
53
|
+
|
|
54
|
+
On completion, report:
|
|
55
|
+
|
|
56
|
+
- Selected route (`small` or `large`)
|
|
57
|
+
- Branch name (if created)
|
|
58
|
+
- Key captured variables (`promotion-type`, `short-name`, `issue-num`, `feature-folder` when applicable)
|
|
59
|
+
- Created/updated artifact paths
|
|
60
|
+
- Final readiness summary and any remaining action items
|
|
61
|
+
|
|
62
|
+
For small path also report:
|
|
63
|
+
- approved `plan-path`
|
|
64
|
+
- preflight result (`PREFLIGHT: ALL CLEAR`)
|
|
65
|
+
- whether `manual bootstrap` branch was taken
|
|
66
|
+
- Phase 0 execution evidence and stored `next_step` for resume
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
---
|
|
2
|
+
agent: 'comment_remediator'
|
|
3
|
+
description: 'Remediate a specified Python scope so docstrings and intent comments comply with self-explanatory-code-commenting rules, following all repo policies.'
|
|
4
|
+
tools: ['search/listDirectory', 'search/fileSearch', 'search/codebase', 'search/usages', 'search/changes', 'read/readFile', 'edit/createFile', 'edit/createDirectory', 'edit/editFiles', 'execute/runTask', 'execute/createAndRunTask', 'execute/runInTerminal', 'execute/getTerminalOutput', 'read/problems', 'execute/testFailure', 'todo']
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Comment Remediation Loader
|
|
8
|
+
|
|
9
|
+
Use this prompt to launch `comment_remediator` on any scope (single file, folder, or glob) and enforce `.github/instructions/self-explanatory-code-commenting.instructions.md` while obeying all repo policies.
|
|
10
|
+
|
|
11
|
+
## Inputs
|
|
12
|
+
|
|
13
|
+
- **Scope** (required): Path or glob to remediate (e.g., `src/lexile_corpus_tuner/.../enrich_original_pub_year/**`).
|
|
14
|
+
|
|
15
|
+
## Policy Order
|
|
16
|
+
|
|
17
|
+
Apply in this sequence:
|
|
18
|
+
1. `.github/copilot-instructions.md`
|
|
19
|
+
2. `.github/instructions/general-code-change.instructions.md`
|
|
20
|
+
3. `.github/instructions/general-unit-test.instructions.md`
|
|
21
|
+
4. `.github/instructions/python-code-change.instructions.md`
|
|
22
|
+
5. `.github/instructions/python-unit-test.instructions.md`
|
|
23
|
+
6. `.github/instructions/self-explanatory-code-commenting.instructions.md`
|
|
24
|
+
|
|
25
|
+
## Execution Rules
|
|
26
|
+
|
|
27
|
+
- Remediate the entire scope to add/adjust robust docstrings and intent comments for loops, branches, and multi-step blocks; avoid low-value narration.
|
|
28
|
+
- Keep modules cohesive, under 500 lines, strongly typed; avoid `Any` unless justified.
|
|
29
|
+
- Maintain encoding/EOL and ASCII unless the file already uses Unicode.
|
|
30
|
+
- Do not pause for approval or clarification once scope is set; continue across turns if needed until fully compliant.
|
|
31
|
+
|
|
32
|
+
## Workflow
|
|
33
|
+
|
|
34
|
+
1. **Context pass**: Identify files in scope and gaps; capture tasks with `manage_todo_list`.
|
|
35
|
+
2. **Remediate**: Add or refine docstrings and intent comments; refactor only when needed for clarity.
|
|
36
|
+
3. **Validate (loop until clean)**:
|
|
37
|
+
- `poetry run black .`
|
|
38
|
+
- `poetry run ruff check`
|
|
39
|
+
- `poetry run pyright`
|
|
40
|
+
- `poetry run pytest`
|
|
41
|
+
Restart from Black after any change or failure; resolve all errors before finishing.
|
|
42
|
+
|
|
43
|
+
## Completion Criteria
|
|
44
|
+
|
|
45
|
+
- Scope complies with self-explanatory commenting guidance and repo policies.
|
|
46
|
+
- Final toolchain pass is green.
|
|
47
|
+
- Provide a concise summary and list of commands run.
|
|
48
|
+
|
|
49
|
+
## Launch Template
|
|
50
|
+
|
|
51
|
+
```
|
|
52
|
+
Scope: <INSERT SCOPE PATH OR GLOB>
|
|
53
|
+
```
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
---
|
|
2
|
+
agent: 'Task Researcher Instructions'
|
|
3
|
+
description: 'Research-only kickoff: investigate best implementation approach for a feature using provided issue/spec docs.'
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Research Prompt: Feature implementation approach (research-only)
|
|
7
|
+
|
|
8
|
+
## Goal
|
|
9
|
+
|
|
10
|
+
Determine the **best implementation approach** for the feature described in the documentation provided after this prompt (typically an `issue.md`, and sometimes also a `user-story.md`).
|
|
11
|
+
|
|
12
|
+
Your output must be actionable for an engineer/agent to implement, and must be grounded in verified evidence from:
|
|
13
|
+
|
|
14
|
+
- the current codebase (existing patterns, constraints, and seams), and
|
|
15
|
+
- authoritative external references (official docs, well-maintained repos, etc.).
|
|
16
|
+
|
|
17
|
+
## Scope and operating rules
|
|
18
|
+
|
|
19
|
+
Follow the operating rules in your agent definition (research-only, write to `artifacts/research/`, evidence-based). Do not restate those rules in the research notes; apply them.
|
|
20
|
+
|
|
21
|
+
## Inputs / Context (authoritative)
|
|
22
|
+
|
|
23
|
+
After this kickoff prompt, you will be given one or more feature documents. Treat them as the primary specification.
|
|
24
|
+
|
|
25
|
+
Common examples (not exhaustive):
|
|
26
|
+
|
|
27
|
+
- `docs/features/active/<feature>/issue.md` (usually)
|
|
28
|
+
- `docs/features/active/<feature>/user-story.md` (sometimes)
|
|
29
|
+
|
|
30
|
+
Also identify (from the feature docs) the **implementation target files** in the repo (e.g., the script/module to change), and treat those as primary technical context.
|
|
31
|
+
|
|
32
|
+
## Research Outputs (required)
|
|
33
|
+
|
|
34
|
+
Create (or update) a single research file under `artifacts/research/` using the Task Researcher template exactly.
|
|
35
|
+
|
|
36
|
+
Filename convention:
|
|
37
|
+
|
|
38
|
+
- `artifacts/research/YYYYMMDD-<short-feature-name>-implementation-research.md`
|
|
39
|
+
|
|
40
|
+
In the research file, keep any discussion of non-selected approaches *brief and non-exhaustive*. After selecting a recommendation, remove detailed notes for other approaches and keep only a short “Rejected alternatives” summary (what was rejected and why).
|
|
41
|
+
|
|
42
|
+
Because the research template must be followed exactly, place the “Rejected alternatives” summary inside the required template under `## Recommended Approach` (as a short subsection/paragraph), not as a separate top-level header.
|
|
43
|
+
|
|
44
|
+
Also place the core context (issue link, feature folder, spec doc paths, target files) inside the required template under `## Research Executed` (e.g., `### File Analysis`) and/or `### Project Conventions`. Do not add a separate custom header outside the template.
|
|
45
|
+
|
|
46
|
+
## What to Investigate
|
|
47
|
+
|
|
48
|
+
### 1) Current state analysis (internal)
|
|
49
|
+
|
|
50
|
+
- Identify the implementation targets from the feature docs.
|
|
51
|
+
- Read the relevant modules end-to-end.
|
|
52
|
+
- Document:
|
|
53
|
+
- current behavior and user-visible outputs
|
|
54
|
+
- key abstractions and extension points
|
|
55
|
+
- constraints imposed by repo policies/toolchain
|
|
56
|
+
- how success/failure is currently computed and surfaced
|
|
57
|
+
|
|
58
|
+
### 2) Candidate implementation approaches (external + internal feasibility)
|
|
59
|
+
|
|
60
|
+
Research and compare at least two viable approaches (but select ONE final recommendation). Examples of “approaches” include:
|
|
61
|
+
|
|
62
|
+
- different UX/output strategies (interactive vs non-interactive fallback)
|
|
63
|
+
- dependency-free vs library-backed implementations
|
|
64
|
+
- architectural patterns (small new component vs minimal inline changes)
|
|
65
|
+
|
|
66
|
+
For any approach that introduces a new dependency:
|
|
67
|
+
|
|
68
|
+
- confirm whether it is already present in the repo’s dependency set, and
|
|
69
|
+
- justify why adding it is necessary and low-risk.
|
|
70
|
+
|
|
71
|
+
For each approach, gather **authoritative docs** and/or examples to support the recommendation.
|
|
72
|
+
|
|
73
|
+
### 3) Behavior semantics and edge cases
|
|
74
|
+
|
|
75
|
+
Extract the intended behavior from the feature docs and define:
|
|
76
|
+
|
|
77
|
+
- success/failure conditions
|
|
78
|
+
- ordering rules (if any)
|
|
79
|
+
- cancellation/abort behavior (if applicable)
|
|
80
|
+
- CI vs local terminal behavior expectations
|
|
81
|
+
|
|
82
|
+
Research comparable tools/projects that implement similar semantics.
|
|
83
|
+
|
|
84
|
+
### 4) Requirements mapping → design
|
|
85
|
+
|
|
86
|
+
Map the acceptance criteria into a concrete design and internal API boundaries.
|
|
87
|
+
|
|
88
|
+
Your mapping should include:
|
|
89
|
+
|
|
90
|
+
- a proposed state model (states, transitions)
|
|
91
|
+
- where/when updates occur
|
|
92
|
+
- how the final summary/reporting is produced
|
|
93
|
+
- what changes are required (files/functions), and why
|
|
94
|
+
|
|
95
|
+
### 5) Testing implications (design-level)
|
|
96
|
+
|
|
97
|
+
Without writing tests, propose a test strategy consistent with repo policy:
|
|
98
|
+
|
|
99
|
+
- Unit tests for a pure “status state machine” component.
|
|
100
|
+
- Unit tests for fail-fast coordination behavior.
|
|
101
|
+
- Integration test concept (if feasible) that avoids external dependencies and avoids temp files.
|
|
102
|
+
|
|
103
|
+
## Selection Criteria (how you choose the recommendation)
|
|
104
|
+
|
|
105
|
+
Recommend ONE approach based on:
|
|
106
|
+
|
|
107
|
+
- Alignment with the feature docs’ acceptance criteria.
|
|
108
|
+
- Compatibility with the repo’s supported environments (local dev + CI).
|
|
109
|
+
- Maintainability and simplicity (prefer small, testable units).
|
|
110
|
+
- Minimal disruption to existing behavior unless explicitly required.
|
|
111
|
+
- Dependency impact (avoid new deps unless strongly justified).
|
|
112
|
+
|
|
113
|
+
## Deliverable Requirements (in the research doc)
|
|
114
|
+
|
|
115
|
+
Your final research file must include:
|
|
116
|
+
|
|
117
|
+
- A single recommended approach with rationale, plus a brief (non-exhaustive) “Rejected alternatives” summary.
|
|
118
|
+
- A proposed high-level design:
|
|
119
|
+
- components/classes/functions to add
|
|
120
|
+
- data structures (shared status map, locks)
|
|
121
|
+
- threading and cancellation model
|
|
122
|
+
- pseudocode for the rendering loop and the branch update calls
|
|
123
|
+
- Specific implementation hooks in the relevant target file(s) (identify functions/locations).
|
|
124
|
+
- Risks and mitigations (Windows/CI output, subprocess behavior).
|
|
125
|
+
- Verification plan aligned to the repo’s toolchain and acceptance criteria.
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
---
|
|
2
|
+
agent: 'epic_review_agent'
|
|
3
|
+
description: 'Prompt for reviewing an epic documentation root folder with a delivery-first audit for a single-developer, multi-feature initiative. Derives all feature subfolders and current versions/plans from the epic root input, validates acceptance criteria against current code, reconciles plan checklists, generates epic-audit + feature-delivery-inventory + policy-audit (plus pre-execution orchestration-review when applicable); if remediation is needed, produces remediation inputs and automatically creates remediation-plan.md via atomic_planner.'
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Epic Review Prompt
|
|
7
|
+
|
|
8
|
+
## Goal
|
|
9
|
+
|
|
10
|
+
Act as an epic reviewer with a **delivery-first** posture. Review the epic **from its documentation root folder**, derive all constituent feature documentation (including version selection), validate acceptance criteria against the current codebase and tests, reconcile plan checklists, and produce audit-grade outputs suitable for merge readiness and execution planning.
|
|
11
|
+
|
|
12
|
+
An epic is defined here as:
|
|
13
|
+
> “A multi-feature initiative with interdependencies, used to organize scope and delivery for a single developer (or small team), without requiring formal program increments or business-case artifacts.”
|
|
14
|
+
|
|
15
|
+
Do not ask clarifying questions. Make best-effort inferences, document assumptions, and provide evidence-based findings. Missing formal business-case documentation should be **noted** but is **non-blocking** for merge readiness.
|
|
16
|
+
|
|
17
|
+
## Inputs (required)
|
|
18
|
+
|
|
19
|
+
- **Epic root folder (required):** `${input:EpicRootFolder}`
|
|
20
|
+
- Example: `docs/features/active/2026-02-02-some-epic-47`
|
|
21
|
+
|
|
22
|
+
## What you must derive from the epic root
|
|
23
|
+
|
|
24
|
+
From the epic root folder contents:
|
|
25
|
+
- Read `initiative.md`, `issue.md`, `orchestration.md` (if present)
|
|
26
|
+
- Enumerate each feature subfolder
|
|
27
|
+
- For each feature:
|
|
28
|
+
- If version folders exist (`v1`, `v2`, ...), select the highest `vN` as current
|
|
29
|
+
- Otherwise treat the feature root as current
|
|
30
|
+
- Select latest `plan.<timestamp>.md` using max ISO timestamp (`yyyy-MM-ddTHH-mm`)
|
|
31
|
+
- Read `issue.md`, `spec.md`, `user-story.md`, and the selected plan (best-effort)
|
|
32
|
+
- Extract acceptance criteria from `spec.md` and `user-story.md`
|
|
33
|
+
- Verify each acceptance criterion against code/tests and capture evidence
|
|
34
|
+
- Reconcile unchecked plan items against delivered code/tests (auto-check if delivered)
|
|
35
|
+
|
|
36
|
+
## Evidence provenance and freshness rules (blocking metrics)
|
|
37
|
+
|
|
38
|
+
Apply these requirements to any **numeric/metric claim** (coverage, pass rates, counts, etc.) used in audits or blocking decisions:
|
|
39
|
+
|
|
40
|
+
1. **Evidence provenance requirement (blocking claim):**
|
|
41
|
+
- Every numeric claim MUST cite **source file + timestamp + command** (if applicable).
|
|
42
|
+
- Example: “Coverage $= 45\%$ (source: `implementation-summary.md`, 2026-02-02, command not recorded).”
|
|
43
|
+
|
|
44
|
+
2. **Evidence classification (mandatory tag):**
|
|
45
|
+
- **Verified**: toolchain output, `coverage.xml`, or a CI run URL.
|
|
46
|
+
- **Reported**: doc-only claim without toolchain output.
|
|
47
|
+
- **Stale**: doc-only claim **older than the review date** or not backed by toolchain output.
|
|
48
|
+
|
|
49
|
+
3. **Freshness rule:**
|
|
50
|
+
- If the source is not a toolchain output OR is older than the review date, mark the claim **Stale**.
|
|
51
|
+
- **Stale claims cannot be used as blocking evidence** without re-validation.
|
|
52
|
+
|
|
53
|
+
4. **Blocking claims must be Verified:**
|
|
54
|
+
- Any blocking item based on metrics requires **Verified** status.
|
|
55
|
+
- Otherwise, phrase it as **“needs verification”** rather than **“fails.”**
|
|
56
|
+
|
|
57
|
+
## Output format
|
|
58
|
+
|
|
59
|
+
Write all outputs to the epic root folder `${input:EpicRootFolder}`.
|
|
60
|
+
|
|
61
|
+
All filenames must include a timestamp in ISO-8601 format `yyyy-MM-ddTHH-mm` (e.g., `2026-02-02T15-30`).
|
|
62
|
+
|
|
63
|
+
### Required deliverables
|
|
64
|
+
|
|
65
|
+
1. `epic-audit.<timestamp>.md`
|
|
66
|
+
- Single-developer work-planning clarity and decision-quality audit
|
|
67
|
+
- Objective/scope mapping across features
|
|
68
|
+
- Overall epic readiness: PASS / NEEDS REVISION / BLOCKED
|
|
69
|
+
|
|
70
|
+
2. `feature-delivery-inventory.<timestamp>.md`
|
|
71
|
+
- Inventory of features + versions + selected “current” docs
|
|
72
|
+
- Summary chart including requirements delivered (Met/Total)
|
|
73
|
+
- Per-feature acceptance criteria list with status (Met / Partially Met / Not Met / Unknown)
|
|
74
|
+
- Concrete evidence from code/tests for each criterion
|
|
75
|
+
- Plan reconciliation notes (auto-checked items with evidence)
|
|
76
|
+
|
|
77
|
+
3. `policy-audit.<timestamp>.md`
|
|
78
|
+
- Repo-wide policy audit using `docs/features/templates/policy_audit/policy-audit.yyyy-MM-ddTHH-mm.md`
|
|
79
|
+
|
|
80
|
+
### Conditional deliverables (only if remediation is required)
|
|
81
|
+
|
|
82
|
+
4. `remediation-inputs.<timestamp>.md`
|
|
83
|
+
- Concrete, enumerated fix list with “done” criteria and exact doc locations
|
|
84
|
+
|
|
85
|
+
5. A **completed** `remediation-plan.<timestamp>.md` created by automatically invoking `atomic_planner`
|
|
86
|
+
|
|
87
|
+
### Conditional deliverables (pre-execution only)
|
|
88
|
+
|
|
89
|
+
6. `orchestration-review.<timestamp>.md`
|
|
90
|
+
- Dependency, sequencing, and integration review of `orchestration.md`
|
|
91
|
+
- Cross-check orchestration claims against feature plans
|
|
92
|
+
- Only generate when execution has not begun (no delivered plan items and no code/test evidence yet)
|
|
93
|
+
|
|
94
|
+
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
---
|
|
2
|
+
agent: 'feature_code_review_agent'
|
|
3
|
+
description: 'Prompt for reviewing an entire feature branch relative to a base branch. Generates PolicyAudit + CodeReview + FeatureAudit (acceptance criteria) in the active feature folder; if remediation is needed, generates remediation inputs and AUTOMATICALLY delegates remediation plan creation to atomic_planner.'
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Feature Code Review Prompt
|
|
7
|
+
|
|
8
|
+
## Goal
|
|
9
|
+
|
|
10
|
+
Act as a feature-branch reviewer and policy auditor. Review the feature branch **relative to the specified base branch**, using PR context artifacts generated by the repo tooling.
|
|
11
|
+
|
|
12
|
+
Read `artifacts/pr_context.summary.txt` thoroughly as the primary source of truth. Use `artifacts/pr_context.appendix.txt` only as needed for full baseline diff evidence.
|
|
13
|
+
|
|
14
|
+
Do not ask clarifying questions. Make best-effort inferences, document assumptions, and produce audit-grade documentation suitable for PR readiness and merge decisions.
|
|
15
|
+
|
|
16
|
+
## Output Format
|
|
17
|
+
|
|
18
|
+
Write outputs to the **active feature folder** determined by the agent. If no active feature folder can be inferred, use the agent’s fallback (e.g., `docs/features/active/<date>-feature-review/`).
|
|
19
|
+
|
|
20
|
+
### Baseline capture location (canonical)
|
|
21
|
+
|
|
22
|
+
- Store baseline artifacts in a `baseline/` folder next to the plan file.
|
|
23
|
+
- For multi-feature epics, store the epic-wide baseline at the epic root `baseline/`.
|
|
24
|
+
- For multi-version features, keep a feature-level baseline in the feature root `baseline/`, and store version-specific baselines in a `baseline/` folder next to each version plan.
|
|
25
|
+
|
|
26
|
+
### Required deliverables
|
|
27
|
+
|
|
28
|
+
All filenames must include a timestamp in ISO-8601 format `yyyy-MM-ddTHH-mm` (e.g., `policy-audit.2026-01-08T14-30.md`).
|
|
29
|
+
|
|
30
|
+
1. `policy-audit.<timestamp>.md`
|
|
31
|
+
- A completed Policy Audit document based on the repo's policy-audit template and the policy_audit template guidance.
|
|
32
|
+
- Must include PASS/PARTIAL/FAIL (or equivalent) statuses with concrete evidence (commands run, outputs, file references).
|
|
33
|
+
- For languages in scope with mandatory coverage policy, MUST include numeric baseline/post/new-code coverage values and command evidence; `UNVERIFIED` is not allowed for a PASS verdict.
|
|
34
|
+
|
|
35
|
+
2. `code-review.<timestamp>.md`
|
|
36
|
+
- A feature-level code review relative to the base branch, emphasizing strongly typed Python best practices and repo compliance.
|
|
37
|
+
- Must include a clear go/no-go recommendation for PR readiness.
|
|
38
|
+
|
|
39
|
+
3. `feature-audit.<timestamp>.md`
|
|
40
|
+
- A feature acceptance audit mapping acceptance criteria to evidence and verification results relative to the base branch.
|
|
41
|
+
- Must clearly state overall feature readiness (PASS / NEEDS REVISION / BLOCKED).
|
|
42
|
+
- If required coverage metrics are missing, overall readiness MUST be `NEEDS REVISION` (not PASS).
|
|
43
|
+
|
|
44
|
+
### Minor-audit integrity gate (mandatory when `issue.md` declares `- Work Mode: minor-audit`)
|
|
45
|
+
|
|
46
|
+
For short-path/minor-audit reviews, the reviewer MUST verify all of the following before issuing any PASS-style outcome:
|
|
47
|
+
|
|
48
|
+
- `${feature-folder}/issue.md` exists and is the sole requirements source used for acceptance validation.
|
|
49
|
+
- `${feature-folder}/issue.md` contains an explicit `## Acceptance Criteria` section, and only that section is used for minor-audit acceptance validation.
|
|
50
|
+
- `${feature-folder}/spec.md` does not exist.
|
|
51
|
+
- `${feature-folder}/user-story.md` does not exist.
|
|
52
|
+
- `phase0-instructions-read.md` exists in the canonical baseline location with the required metadata fields.
|
|
53
|
+
- every baseline command-step artifact required by the approved plan exists and includes `Timestamp:`, `Command:`, `EXIT_CODE:`, and `Output Summary:`.
|
|
54
|
+
- plan checklist state matches artifact evidence on disk; do not accept blanket or inferred checkoffs.
|
|
55
|
+
|
|
56
|
+
If any minor-audit integrity condition fails:
|
|
57
|
+
- `policy-audit` MUST NOT report PASS,
|
|
58
|
+
- `feature-audit` overall readiness MUST be `NEEDS REVISION` or `BLOCKED`,
|
|
59
|
+
- remediation inputs MUST explicitly call out the missing/contradictory evidence.
|
|
60
|
+
|
|
61
|
+
### Conditional deliverables (only if remediation is required)
|
|
62
|
+
|
|
63
|
+
4. `remediation-inputs.<timestamp>.md`
|
|
64
|
+
- Concrete, enumerated fix list with acceptance criteria and verification commands.
|
|
65
|
+
- Must explicitly identify unmet acceptance criteria, if any.
|
|
66
|
+
|
|
67
|
+
5. `remediation-plan.<timestamp>.md`
|
|
68
|
+
- MUST be produced by **automatically delegating** to the `atomic_planner` agent (no copy/paste prompt in chat as the primary mechanism).
|
|
69
|
+
- MUST use `.github/prompts/generate-atomic-plan.prompt.md` as the base prompt template, with all template variables filled deterministically.
|
|
70
|
+
- MUST be written to the same active feature folder as the audit documents.
|
|
71
|
+
|
|
72
|
+
## Final report contract (mandatory)
|
|
73
|
+
|
|
74
|
+
The final response MUST end with these exact single-line fields:
|
|
75
|
+
|
|
76
|
+
- `REVIEW_STATUS: PASS` or `REVIEW_STATUS: REMEDIATION_REQUIRED`
|
|
77
|
+
- `FEATURE_FOLDER: <path>`
|
|
78
|
+
- `POLICY_AUDIT: <path>`
|
|
79
|
+
- `CODE_REVIEW: <path>`
|
|
80
|
+
- `FEATURE_AUDIT: <path>`
|
|
81
|
+
- `REMEDIATION_INPUTS: <path-or-NONE>`
|
|
82
|
+
- `REMEDIATION_PLAN: <path-or-NONE>`
|
|
83
|
+
|
|
84
|
+
Set `REVIEW_STATUS: PASS` only when no remediation artifact is required. Set `REVIEW_STATUS: REMEDIATION_REQUIRED` when remediation inputs or a remediation plan was required.
|
|
85
|
+
|
|
86
|
+
#### Atomic planner delegation requirements (mandatory when remediation is triggered)
|
|
87
|
+
|
|
88
|
+
When remediation is triggered, the feature review agent MUST:
|
|
89
|
+
|
|
90
|
+
1) Create a remediation plan target file from a plan template (so `${file}` exists and has structure to fill)
|
|
91
|
+
- Default template: `docs/features/templates/feature/plan.yyyy-MM-ddTHH-mm.md`
|
|
92
|
+
- Output path: `<FEATURE_FOLDER>/remediation-plan.<timestamp>.md`
|
|
93
|
+
- Replace top-level placeholders minimally (feature name, issue reference if known, last updated timestamp). Leave task checkboxes empty for atomic_planner to fill.
|
|
94
|
+
|
|
95
|
+
2) Delegate to `atomic_planner` with a fully-resolved prompt
|
|
96
|
+
- The delegated prompt MUST be the content of `.github/prompts/generate-atomic-plan.prompt.md` with:
|
|
97
|
+
- `${name}` = `Remediation Plan: <feature-folder-name> (<timestamp>)`
|
|
98
|
+
- `${file}` = `<FEATURE_FOLDER>/remediation-plan.<timestamp>.md`
|
|
99
|
+
- `${spec}` = `<FEATURE_FOLDER>/remediation-inputs.<timestamp>.md` (PRIMARY requirements source)
|
|
100
|
+
- `${user-story}` = best-effort: the most relevant scoping doc path (e.g., `<FEATURE_FOLDER>/spec.md` if present), but treated as secondary.
|
|
101
|
+
|
|
102
|
+
3) Ensure the atomic_planner prompt is **self-contained** (no missing context)
|
|
103
|
+
- Append a “Context package” section that includes the FULL TEXT (verbatim) of:
|
|
104
|
+
- `<FEATURE_FOLDER>/remediation-inputs.<timestamp>.md` (primary)
|
|
105
|
+
- `artifacts/pr_context.summary.txt`
|
|
106
|
+
- `artifacts/pr_context.appendix.txt` (at minimum: base/head, commits in range, changed files; include full file if feasible)
|
|
107
|
+
- `<FEATURE_FOLDER>/policy-audit.<timestamp>.md`
|
|
108
|
+
- `<FEATURE_FOLDER>/code-review.<timestamp>.md`
|
|
109
|
+
- `<FEATURE_FOLDER>/feature-audit.<timestamp>.md`
|
|
110
|
+
- The original plan file(s) in the feature folder (e.g., `<FEATURE_FOLDER>/plan.<timestamp>.md` if present)
|
|
111
|
+
|
|
112
|
+
4) Remediation planning must prioritize remediation-inputs over scoping docs
|
|
113
|
+
- The remediation plan MUST implement every fix and acceptance criterion listed in `remediation-inputs.<timestamp>.md`.
|
|
114
|
+
- `spec.md` / `user-story.md` may be used only to preserve boundaries/invariants; do not allow them to dilute or override remediation-inputs.
|
|
115
|
+
|
|
116
|
+
5) Plan status synchronization requirements (must be included in remediation plan tasks)
|
|
117
|
+
- The remediation plan MUST include explicit tasks to:
|
|
118
|
+
- Check off any items in the original `plan.<timestamp>.md` (or feature plan file) that were completed but remain unchecked.
|
|
119
|
+
- Check off additional items that become delivered as remediation work completes.
|
|
120
|
+
- These sync tasks MUST be repeated at least:
|
|
121
|
+
- Once immediately after remediation-plan creation (baseline sync)
|
|
122
|
+
- Once at the end of the remediation execution (final sync)
|
|
123
|
+
|
|
124
|
+
## Context Template
|
|
125
|
+
|
|
126
|
+
- **Base branch (required):** [e.g., `development`, `main`]
|
|
127
|
+
- **Feature intent / summary (optional):** [One sentence describing the feature’s purpose]
|
|
128
|
+
- **Acceptance criteria source (optional):** [Plan / PRD / feature doc if known]
|
|
129
|
+
- **Verification hints (optional):** [Repo-specific tasks/commands to prioritize]
|
|
130
|
+
- **Risk tolerance (optional):** [e.g., “fail if any PARTIAL”, or “allow PARTIAL with remediation plan”]
|