@danmoisan/drm-copilot-mcp 1.1.19 → 1.1.20

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.
Files changed (112) hide show
  1. package/out/mcp-server.js +165 -4
  2. package/package.json +1 -1
  3. package/resources/claude-customizations/.claude/agents/atomic-executor.md +17 -6
  4. package/resources/claude-customizations/.claude/agents/atomic-planner.md +10 -2
  5. package/resources/claude-customizations/.claude/agents/epic-orchestrator.md +5 -0
  6. package/resources/claude-customizations/.claude/agents/orchestrator.md +4 -1
  7. package/resources/claude-customizations/.claude/agents/parallel-orchestrator.md +4 -0
  8. package/resources/claude-customizations/.claude/agents/task-researcher.md +8 -0
  9. package/resources/claude-customizations/.claude/hooks/enforce-epic-merge-gate-command.ps1 +190 -0
  10. package/resources/claude-customizations/.claude/hooks/enforce-epic-merge-gate.ps1 +22 -53
  11. package/resources/claude-customizations/.claude/hooks/hook-docs-only-diff.ps1 +5 -1
  12. package/resources/claude-customizations/.claude/hooks/premortem-section.ps1 +149 -0
  13. package/resources/claude-customizations/.claude/hooks/validate-executor-output.ps1 +210 -84
  14. package/resources/claude-customizations/.claude/hooks/validate-planner-output.ps1 +13 -1
  15. package/resources/claude-customizations/.claude/hooks/validate-task-researcher-output.ps1 +24 -5
  16. package/resources/claude-customizations/.claude/lib/ci-gate/Invoke-MergeConfirmationParser.ps1 +203 -0
  17. package/resources/claude-customizations/.claude/rules/plan-acceptance-gates.md +46 -10
  18. package/resources/claude-customizations/.claude/skills/atomic-plan-contract/SKILL.md +48 -16
  19. package/resources/claude-customizations/.claude/skills/cleanup-merged-worktrees/SKILL.md +7 -3
  20. package/resources/claude-customizations/.claude/skills/csharp-change-budget-router/SKILL.md +2 -2
  21. package/resources/claude-customizations/.claude/skills/epic-orchestrate/SKILL.md +12 -3
  22. package/resources/claude-customizations/.claude/skills/epic-plan/SKILL.md +4 -2
  23. package/resources/claude-customizations/.claude/skills/execution-environment/SKILL.md +134 -0
  24. package/resources/claude-customizations/.claude/skills/orchestrate/SKILL.md +22 -9
  25. package/resources/claude-customizations/.claude/skills/parallel-orchestrate/SKILL.md +29 -5
  26. package/resources/claude-customizations/.claude/skills/powershell-change-budget-router/SKILL.md +1 -1
  27. package/resources/claude-customizations/.claude/skills/python-change-budget-router/SKILL.md +1 -1
  28. package/resources/claude-customizations/.claude/skills/remediation-handoff-atomic-planner/SKILL.md +14 -6
  29. package/resources/claude-customizations/.claude/skills/research-issue/SKILL.md +6 -0
  30. package/resources/claude-customizations/pack-manifests/core.json +4 -0
  31. package/resources/codex-and-agents-customizations/.agents/skills/README.md +1 -0
  32. package/resources/codex-and-agents-customizations/.agents/skills/atomic-executor/SKILL.md +8 -7
  33. package/resources/codex-and-agents-customizations/.agents/skills/atomic-plan-contract/SKILL.md +39 -4
  34. package/resources/codex-and-agents-customizations/.agents/skills/atomic-planner/SKILL.md +8 -6
  35. package/resources/codex-and-agents-customizations/.agents/skills/csharp-change-budget-router/SKILL.md +2 -2
  36. package/resources/codex-and-agents-customizations/.agents/skills/epic-orchestrate/SKILL.md +8 -1
  37. package/resources/codex-and-agents-customizations/.agents/skills/execution-environment/SKILL.md +134 -0
  38. package/resources/codex-and-agents-customizations/.agents/skills/orchestrate/SKILL.md +12 -2
  39. package/resources/codex-and-agents-customizations/.agents/skills/powershell-change-budget-router/SKILL.md +1 -1
  40. package/resources/codex-and-agents-customizations/.agents/skills/python-change-budget-router/SKILL.md +1 -1
  41. package/resources/codex-and-agents-customizations/.agents/skills/remediation-handoff-atomic-planner/SKILL.md +7 -3
  42. package/resources/codex-and-agents-customizations/.agents/skills/research-issue/SKILL.md +6 -0
  43. package/resources/codex-and-agents-customizations/.codex/agents/atomic-executor-c1.toml +10 -6
  44. package/resources/codex-and-agents-customizations/.codex/agents/atomic-executor-c2.toml +10 -6
  45. package/resources/codex-and-agents-customizations/.codex/agents/atomic-executor-c3-elevated.toml +10 -6
  46. package/resources/codex-and-agents-customizations/.codex/agents/atomic-executor-c3.toml +10 -6
  47. package/resources/codex-and-agents-customizations/.codex/agents/atomic-executor-c4.toml +10 -6
  48. package/resources/codex-and-agents-customizations/.codex/agents/atomic-executor.toml +10 -6
  49. package/resources/codex-and-agents-customizations/.codex/agents/atomic-planner-c1.toml +5 -2
  50. package/resources/codex-and-agents-customizations/.codex/agents/atomic-planner-c2.toml +5 -2
  51. package/resources/codex-and-agents-customizations/.codex/agents/atomic-planner-c3-elevated.toml +5 -2
  52. package/resources/codex-and-agents-customizations/.codex/agents/atomic-planner-c3.toml +5 -2
  53. package/resources/codex-and-agents-customizations/.codex/agents/atomic-planner-c4.toml +5 -2
  54. package/resources/codex-and-agents-customizations/.codex/agents/atomic-planner.toml +5 -2
  55. package/resources/codex-and-agents-customizations/.codex/agents/atomic-planning.toml +1 -1
  56. package/resources/codex-and-agents-customizations/.codex/agents/csharp-atomic-planning.toml +1 -1
  57. package/resources/codex-and-agents-customizations/.codex/agents/epic-orchestrator.toml +2 -0
  58. package/resources/codex-and-agents-customizations/.codex/agents/orchestrator-c1.toml +5 -2
  59. package/resources/codex-and-agents-customizations/.codex/agents/orchestrator-c2.toml +5 -2
  60. package/resources/codex-and-agents-customizations/.codex/agents/orchestrator-c3-elevated.toml +5 -2
  61. package/resources/codex-and-agents-customizations/.codex/agents/orchestrator-c3.toml +5 -2
  62. package/resources/codex-and-agents-customizations/.codex/agents/orchestrator-c4.toml +5 -2
  63. package/resources/codex-and-agents-customizations/.codex/agents/orchestrator.toml +5 -2
  64. package/resources/codex-and-agents-customizations/.codex/agents/powershell-atomic-planning.toml +1 -1
  65. package/resources/codex-and-agents-customizations/.codex/agents/python-atomic-planning.toml +1 -1
  66. package/resources/codex-and-agents-customizations/.codex/agents/task-researcher-c1.toml +6 -0
  67. package/resources/codex-and-agents-customizations/.codex/agents/task-researcher-c2.toml +6 -0
  68. package/resources/codex-and-agents-customizations/.codex/agents/task-researcher-c3-elevated.toml +6 -0
  69. package/resources/codex-and-agents-customizations/.codex/agents/task-researcher-c3.toml +6 -0
  70. package/resources/codex-and-agents-customizations/.codex/agents/task-researcher-c4.toml +6 -0
  71. package/resources/codex-and-agents-customizations/.codex/agents/task-researcher.toml +6 -0
  72. package/resources/codex-and-agents-customizations/.codex/config.toml +1 -1
  73. package/resources/codex-and-agents-customizations/.codex/hooks/enforce-epic-merge-gate-command.ps1 +190 -0
  74. package/resources/codex-and-agents-customizations/.codex/hooks/enforce-epic-merge-gate.ps1 +17 -38
  75. package/resources/codex-and-agents-customizations/.codex/hooks/hook-docs-only-diff.ps1 +5 -1
  76. package/resources/codex-and-agents-customizations/.codex/prompts/feature-review-remediate.md +6 -4
  77. package/resources/codex-and-agents-customizations/pack-manifests/core.json +2 -0
  78. package/resources/customizations/.github/agents/atomic_executor.agent.md +21 -11
  79. package/resources/customizations/.github/agents/atomic_planning.agent.md +8 -3
  80. package/resources/customizations/.github/agents/csharp-atomic-executor.agent.md +13 -9
  81. package/resources/customizations/.github/agents/csharp-atomic-planning.agent.md +2 -2
  82. package/resources/customizations/.github/agents/csharp-orchestrator.agent.md +2 -2
  83. package/resources/customizations/.github/agents/csharp-typed-engineer.agent.md +3 -3
  84. package/resources/customizations/.github/agents/orchestrator.agent.md +8 -5
  85. package/resources/customizations/.github/agents/powershell-atomic-executor.agent.md +13 -9
  86. package/resources/customizations/.github/agents/powershell-atomic-planning.agent.md +2 -2
  87. package/resources/customizations/.github/agents/powershell-orchestrator.agent.md +2 -2
  88. package/resources/customizations/.github/agents/powershell-typed-engineer.agent.md +3 -3
  89. package/resources/customizations/.github/agents/python-atomic-executor.agent.md +13 -9
  90. package/resources/customizations/.github/agents/python-atomic-planning.agent.md +2 -2
  91. package/resources/customizations/.github/agents/python-orchestrator.agent.md +2 -2
  92. package/resources/customizations/.github/agents/task-researcher.agent.md +6 -0
  93. package/resources/customizations/.github/prompts/generate-atomic-plan.prompt.md +16 -10
  94. package/resources/customizations/.github/prompts/orchestrate-csharp-work.prompt.md +2 -2
  95. package/resources/customizations/.github/prompts/orchestrate-powershell-work.prompt.md +1 -1
  96. package/resources/customizations/.github/prompts/orchestrate-python-work.prompt.md +1 -1
  97. package/resources/customizations/.github/prompts/orchestrate-work.prompt.md +2 -2
  98. package/resources/customizations/.github/skills/atomic-plan-contract/SKILL.md +39 -4
  99. package/resources/customizations/.github/skills/csharp-change-budget-router/SKILL.md +1 -1
  100. package/resources/customizations/.github/skills/execution-environment/SKILL.md +134 -0
  101. package/resources/customizations/.github/skills/powershell-change-budget-router/SKILL.md +1 -1
  102. package/resources/customizations/.github/skills/remediation-handoff-atomic-planner/SKILL.md +7 -3
  103. package/resources/feature-templates/bug/plan.yyyy-MM-ddTHH-mm.md +10 -0
  104. package/resources/feature-templates/feature/plan.yyyy-MM-ddTHH-mm.md +11 -0
  105. package/resources/feature-templates/refactor/plan.yyyy-MM-ddTHH-mm.md +11 -0
  106. package/resources/powershell/PoshQC/PoshQC.CoverageMerge.psm1 +163 -0
  107. package/resources/powershell/PoshQC/PoshQC.Shard.psm1 +296 -0
  108. package/resources/powershell/PoshQC/PoshQC.Testing.psm1 +23 -4
  109. package/resources/powershell/PoshQC/PoshQC.psd1 +7 -1
  110. package/resources/powershell/PoshQC/PoshQC.psm1 +17 -5
  111. package/resources/powershell/PoshQC/README.md +13 -1
  112. package/resources/powershell/PoshQC/settings/pester.runsettings.psd1 +3 -0
@@ -11,6 +11,7 @@ Use the following repo-local skills as the canonical workflow source:
11
11
  - atomic-plan-contract
12
12
  - policy-compliance-order
13
13
  - acceptance-criteria-tracking
14
+ - execution-environment
14
15
 
15
16
  ---
16
17
  name: atomic-executor
@@ -35,11 +36,13 @@ tools:
35
36
  - "mcp__drm-copilot__run_poshqc_analyze"
36
37
  - "mcp__drm-copilot__run_poshqc_test"
37
38
  - "mcp__drm-copilot__run_poshqc_analyze_autofix"
39
+ - "mcp__drm-copilot__validate_orchestration_artifacts"
38
40
  skills:
39
41
  - policy-compliance-order
40
42
  - atomic-plan-contract
41
43
  - evidence-and-timestamp-conventions
42
44
  - acceptance-criteria-tracking
45
+ - execution-environment
43
46
  memory: project
44
47
  hooks:
45
48
  SubagentStop:
@@ -106,19 +109,20 @@ Concurrent child runs in one session share one session scratchpad, so every scra
106
109
 
107
110
  ## Preflight Validation
108
111
 
109
- When receiving a plan with directive `DIRECTIVE: PREFLIGHT VALIDATION ONLY`, perform validation only and return exactly one of `PREFLIGHT: ALL CLEAR` or `PREFLIGHT: REVISIONS REQUIRED`.
112
+ When the delegation prompt carries the directive `DIRECTIVE: PREFLIGHT VALIDATION ONLY`, perform validation only and return exactly one of `PREFLIGHT: ALL CLEAR` or `PREFLIGHT: REVISIONS REQUIRED`. The preflight directive belongs in the delegation prompt, never in a plan file.
110
113
 
111
114
  - `PREFLIGHT: ALL CLEAR`
112
115
  - `PREFLIGHT: REVISIONS REQUIRED`
113
- - If revisions are required, include a precise plan delta that can be applied to the same plan file.
114
- - When returning `PREFLIGHT: REVISIONS REQUIRED`, automatically hand off back to `atomic-planner` and request that it apply the delta to the same plan file.
115
- - Continue the validate -> delta -> planner-revise -> validate loop until preflight can return `PREFLIGHT: ALL CLEAR`.
116
- - If the handoff loop cannot proceed or the required validator is unavailable, stop and report blocked state.
116
+ - Review the entire plan in one pass and classify every defect as trivial or substantive, per `### Single-Pass Preflight` in `atomic-plan-contract`.
117
+ - Fix trivial defects in place, in task text only; never add, remove, or reorder tasks. Report each fix as `PREFLIGHT-FIX: <task id or heading> | <defect class> | <change made>` and name the fix record as `preflight-fix-record: <path>`.
118
+ - If revisions are required, include a precise plan delta that can be applied to the same plan file, with one `PREFLIGHT-DEFECT: <task id or heading> | <defect class> | <required change>` line per substantive defect.
119
+ - Return the result to the caller. A plan returns to the planner at most once; the orchestrator routes the defect list for one revision and runs one confirming preflight.
120
+ - If the required validator is unavailable, stop and report blocked state.
117
121
  - Before any `PREFLIGHT: ALL CLEAR` result is treated as approved, the target plan must pass the `validate_orchestration_artifacts` MCP tool with `artifact_type: "plan"` and `artifact_path: <plan-path>`.
118
122
 
119
123
  ## Blocking Protocol
120
124
 
121
- Blocking is permitted only during preflight validation (before `[P0-T1]`). When preflight-blocked:
125
+ Blocking is permitted only during preflight validation (before `[P0-T1]`), including the preflight that opens a combined preflight-and-execute run of a proportionate remediation cycle. When preflight-blocked:
122
126
 
123
127
  1. State: `BLOCKED at preflight (before [P0-T1])`.
124
128
  2. Provide a short, concrete explanation of why.
@@ -11,6 +11,7 @@ Use the following repo-local skills as the canonical workflow source:
11
11
  - atomic-plan-contract
12
12
  - policy-compliance-order
13
13
  - evidence-and-timestamp-conventions
14
+ - execution-environment
14
15
 
15
16
  ---
16
17
  name: atomic-planner
@@ -23,10 +24,12 @@ tools:
23
24
  - "Edit(artifacts/**)"
24
25
  - "Write(docs/**)"
25
26
  - "Write(artifacts/**)"
27
+ - "mcp__drm-copilot__validate_orchestration_artifacts"
26
28
  skills:
27
29
  - policy-compliance-order
28
30
  - atomic-plan-contract
29
31
  - evidence-and-timestamp-conventions
32
+ - execution-environment
30
33
  memory: project
31
34
  hooks:
32
35
  Stop:
@@ -84,8 +87,8 @@ Before reporting completion, explicitly spawn the `atomic-executor` subagent for
84
87
  - `PREFLIGHT: ALL CLEAR`
85
88
  - `PREFLIGHT: REVISIONS REQUIRED`
86
89
  - Treat executor preflight findings as binding plan defects.
87
- - If preflight returns `PREFLIGHT: REVISIONS REQUIRED`, revise the same target plan file using the executor's precise plan delta and re-run preflight.
88
- - Reuse the same target plan file for every preflight revision iteration in the same planning cycle.
90
+ - If preflight returns `PREFLIGHT: REVISIONS REQUIRED`, revise the same target plan file once using the executor's precise plan delta and its full `PREFLIGHT-DEFECT:` list, and run one confirming preflight. Preflight is single-pass: trivial defects are fixed in place by the executor, and a plan returns to the planner at most once; a second substantive result halts with `blocked_reason: "validator_failed"`.
91
+ - Reuse the same target plan file for the single permitted preflight revision in the same planning cycle.
89
92
  - If the required `atomic-executor` handoff cannot be started or completed, stop and report blocked state; do not self-approve the plan.
90
93
  - Before reporting completion, the target plan MUST pass the `validate_orchestration_artifacts` MCP tool with `artifact_type: "plan"` and `artifact_path: <plan-path>`.
91
94
 
@@ -11,6 +11,7 @@ Use the following repo-local skills as the canonical workflow source:
11
11
  - atomic-plan-contract
12
12
  - policy-compliance-order
13
13
  - evidence-and-timestamp-conventions
14
+ - execution-environment
14
15
 
15
16
  ---
16
17
  name: atomic-planner
@@ -23,10 +24,12 @@ tools:
23
24
  - "Edit(artifacts/**)"
24
25
  - "Write(docs/**)"
25
26
  - "Write(artifacts/**)"
27
+ - "mcp__drm-copilot__validate_orchestration_artifacts"
26
28
  skills:
27
29
  - policy-compliance-order
28
30
  - atomic-plan-contract
29
31
  - evidence-and-timestamp-conventions
32
+ - execution-environment
30
33
  memory: project
31
34
  hooks:
32
35
  Stop:
@@ -84,8 +87,8 @@ Before reporting completion, explicitly spawn the `atomic-executor` subagent for
84
87
  - `PREFLIGHT: ALL CLEAR`
85
88
  - `PREFLIGHT: REVISIONS REQUIRED`
86
89
  - Treat executor preflight findings as binding plan defects.
87
- - If preflight returns `PREFLIGHT: REVISIONS REQUIRED`, revise the same target plan file using the executor's precise plan delta and re-run preflight.
88
- - Reuse the same target plan file for every preflight revision iteration in the same planning cycle.
90
+ - If preflight returns `PREFLIGHT: REVISIONS REQUIRED`, revise the same target plan file once using the executor's precise plan delta and its full `PREFLIGHT-DEFECT:` list, and run one confirming preflight. Preflight is single-pass: trivial defects are fixed in place by the executor, and a plan returns to the planner at most once; a second substantive result halts with `blocked_reason: "validator_failed"`.
91
+ - Reuse the same target plan file for the single permitted preflight revision in the same planning cycle.
89
92
  - If the required `atomic-executor` handoff cannot be started or completed, stop and report blocked state; do not self-approve the plan.
90
93
  - Before reporting completion, the target plan MUST pass the `validate_orchestration_artifacts` MCP tool with `artifact_type: "plan"` and `artifact_path: <plan-path>`.
91
94
 
@@ -11,6 +11,7 @@ Use the following repo-local skills as the canonical workflow source:
11
11
  - atomic-plan-contract
12
12
  - policy-compliance-order
13
13
  - evidence-and-timestamp-conventions
14
+ - execution-environment
14
15
 
15
16
  ---
16
17
  name: atomic-planner
@@ -23,10 +24,12 @@ tools:
23
24
  - "Edit(artifacts/**)"
24
25
  - "Write(docs/**)"
25
26
  - "Write(artifacts/**)"
27
+ - "mcp__drm-copilot__validate_orchestration_artifacts"
26
28
  skills:
27
29
  - policy-compliance-order
28
30
  - atomic-plan-contract
29
31
  - evidence-and-timestamp-conventions
32
+ - execution-environment
30
33
  memory: project
31
34
  hooks:
32
35
  Stop:
@@ -84,8 +87,8 @@ Before reporting completion, explicitly spawn the `atomic-executor` subagent for
84
87
  - `PREFLIGHT: ALL CLEAR`
85
88
  - `PREFLIGHT: REVISIONS REQUIRED`
86
89
  - Treat executor preflight findings as binding plan defects.
87
- - If preflight returns `PREFLIGHT: REVISIONS REQUIRED`, revise the same target plan file using the executor's precise plan delta and re-run preflight.
88
- - Reuse the same target plan file for every preflight revision iteration in the same planning cycle.
90
+ - If preflight returns `PREFLIGHT: REVISIONS REQUIRED`, revise the same target plan file once using the executor's precise plan delta and its full `PREFLIGHT-DEFECT:` list, and run one confirming preflight. Preflight is single-pass: trivial defects are fixed in place by the executor, and a plan returns to the planner at most once; a second substantive result halts with `blocked_reason: "validator_failed"`.
91
+ - Reuse the same target plan file for the single permitted preflight revision in the same planning cycle.
89
92
  - If the required `atomic-executor` handoff cannot be started or completed, stop and report blocked state; do not self-approve the plan.
90
93
  - Before reporting completion, the target plan MUST pass the `validate_orchestration_artifacts` MCP tool with `artifact_type: "plan"` and `artifact_path: <plan-path>`.
91
94
 
@@ -11,6 +11,7 @@ Use the following repo-local skills as the canonical workflow source:
11
11
  - atomic-plan-contract
12
12
  - policy-compliance-order
13
13
  - evidence-and-timestamp-conventions
14
+ - execution-environment
14
15
 
15
16
  ---
16
17
  name: atomic-planner
@@ -23,10 +24,12 @@ tools:
23
24
  - "Edit(artifacts/**)"
24
25
  - "Write(docs/**)"
25
26
  - "Write(artifacts/**)"
27
+ - "mcp__drm-copilot__validate_orchestration_artifacts"
26
28
  skills:
27
29
  - policy-compliance-order
28
30
  - atomic-plan-contract
29
31
  - evidence-and-timestamp-conventions
32
+ - execution-environment
30
33
  memory: project
31
34
  hooks:
32
35
  Stop:
@@ -84,8 +87,8 @@ Before reporting completion, explicitly spawn the `atomic-executor` subagent for
84
87
  - `PREFLIGHT: ALL CLEAR`
85
88
  - `PREFLIGHT: REVISIONS REQUIRED`
86
89
  - Treat executor preflight findings as binding plan defects.
87
- - If preflight returns `PREFLIGHT: REVISIONS REQUIRED`, revise the same target plan file using the executor's precise plan delta and re-run preflight.
88
- - Reuse the same target plan file for every preflight revision iteration in the same planning cycle.
90
+ - If preflight returns `PREFLIGHT: REVISIONS REQUIRED`, revise the same target plan file once using the executor's precise plan delta and its full `PREFLIGHT-DEFECT:` list, and run one confirming preflight. Preflight is single-pass: trivial defects are fixed in place by the executor, and a plan returns to the planner at most once; a second substantive result halts with `blocked_reason: "validator_failed"`.
91
+ - Reuse the same target plan file for the single permitted preflight revision in the same planning cycle.
89
92
  - If the required `atomic-executor` handoff cannot be started or completed, stop and report blocked state; do not self-approve the plan.
90
93
  - Before reporting completion, the target plan MUST pass the `validate_orchestration_artifacts` MCP tool with `artifact_type: "plan"` and `artifact_path: <plan-path>`.
91
94
 
@@ -11,6 +11,7 @@ Use the following repo-local skills as the canonical workflow source:
11
11
  - atomic-plan-contract
12
12
  - policy-compliance-order
13
13
  - evidence-and-timestamp-conventions
14
+ - execution-environment
14
15
 
15
16
  ---
16
17
  name: atomic-planner
@@ -23,10 +24,12 @@ tools:
23
24
  - "Edit(artifacts/**)"
24
25
  - "Write(docs/**)"
25
26
  - "Write(artifacts/**)"
27
+ - "mcp__drm-copilot__validate_orchestration_artifacts"
26
28
  skills:
27
29
  - policy-compliance-order
28
30
  - atomic-plan-contract
29
31
  - evidence-and-timestamp-conventions
32
+ - execution-environment
30
33
  memory: project
31
34
  hooks:
32
35
  Stop:
@@ -84,8 +87,8 @@ Before reporting completion, explicitly spawn the `atomic-executor` subagent for
84
87
  - `PREFLIGHT: ALL CLEAR`
85
88
  - `PREFLIGHT: REVISIONS REQUIRED`
86
89
  - Treat executor preflight findings as binding plan defects.
87
- - If preflight returns `PREFLIGHT: REVISIONS REQUIRED`, revise the same target plan file using the executor's precise plan delta and re-run preflight.
88
- - Reuse the same target plan file for every preflight revision iteration in the same planning cycle.
90
+ - If preflight returns `PREFLIGHT: REVISIONS REQUIRED`, revise the same target plan file once using the executor's precise plan delta and its full `PREFLIGHT-DEFECT:` list, and run one confirming preflight. Preflight is single-pass: trivial defects are fixed in place by the executor, and a plan returns to the planner at most once; a second substantive result halts with `blocked_reason: "validator_failed"`.
91
+ - Reuse the same target plan file for the single permitted preflight revision in the same planning cycle.
89
92
  - If the required `atomic-executor` handoff cannot be started or completed, stop and report blocked state; do not self-approve the plan.
90
93
  - Before reporting completion, the target plan MUST pass the `validate_orchestration_artifacts` MCP tool with `artifact_type: "plan"` and `artifact_path: <plan-path>`.
91
94
 
@@ -11,6 +11,7 @@ Use the following repo-local skills as the canonical workflow source:
11
11
  - atomic-plan-contract
12
12
  - policy-compliance-order
13
13
  - evidence-and-timestamp-conventions
14
+ - execution-environment
14
15
 
15
16
  ---
16
17
  name: atomic-planner
@@ -23,10 +24,12 @@ tools:
23
24
  - "Edit(artifacts/**)"
24
25
  - "Write(docs/**)"
25
26
  - "Write(artifacts/**)"
27
+ - "mcp__drm-copilot__validate_orchestration_artifacts"
26
28
  skills:
27
29
  - policy-compliance-order
28
30
  - atomic-plan-contract
29
31
  - evidence-and-timestamp-conventions
32
+ - execution-environment
30
33
  memory: project
31
34
  hooks:
32
35
  Stop:
@@ -84,8 +87,8 @@ Before reporting completion, explicitly spawn the `atomic-executor` subagent for
84
87
  - `PREFLIGHT: ALL CLEAR`
85
88
  - `PREFLIGHT: REVISIONS REQUIRED`
86
89
  - Treat executor preflight findings as binding plan defects.
87
- - If preflight returns `PREFLIGHT: REVISIONS REQUIRED`, revise the same target plan file using the executor's precise plan delta and re-run preflight.
88
- - Reuse the same target plan file for every preflight revision iteration in the same planning cycle.
90
+ - If preflight returns `PREFLIGHT: REVISIONS REQUIRED`, revise the same target plan file once using the executor's precise plan delta and its full `PREFLIGHT-DEFECT:` list, and run one confirming preflight. Preflight is single-pass: trivial defects are fixed in place by the executor, and a plan returns to the planner at most once; a second substantive result halts with `blocked_reason: "validator_failed"`.
91
+ - Reuse the same target plan file for the single permitted preflight revision in the same planning cycle.
89
92
  - If the required `atomic-executor` handoff cannot be started or completed, stop and report blocked state; do not self-approve the plan.
90
93
  - Before reporting completion, the target plan MUST pass the `validate_orchestration_artifacts` MCP tool with `artifact_type: "plan"` and `artifact_path: <plan-path>`.
91
94
 
@@ -13,7 +13,7 @@ Core behavior:
13
13
  - Produce or revise only deterministic plan files.
14
14
  - Delegate validation-only preflight to `atomic-executor`.
15
15
  - Require the exact directive `DIRECTIVE: PREFLIGHT VALIDATION ONLY` in the delegated preflight handoff.
16
- - Reuse the same target plan file for every preflight revision iteration.
16
+ - Reuse the same target plan file for the single permitted preflight revision.
17
17
  - Do not create timestamped sibling plan files when an authoritative `plan-path` already exists.
18
18
  - Stop and report blocked state if the required `atomic-executor` handoff cannot be started, resumed, or completed.
19
19
 
@@ -14,7 +14,7 @@ Core behavior:
14
14
  - Delegate validation-only preflight to `atomic-executor`.
15
15
  - Require the exact directive `DIRECTIVE: PREFLIGHT VALIDATION ONLY` in the delegated preflight handoff.
16
16
  - Require explicit C# baseline and final-QA tasks, including formatting, analyzer, type-safety, test, and coverage steps where policy requires coverage.
17
- - Reuse the same target plan file for every preflight revision iteration.
17
+ - Reuse the same target plan file for the single permitted preflight revision.
18
18
  - Do not create timestamped sibling plan files when an authoritative `plan-path` already exists.
19
19
  - Stop and report blocked state if the required `atomic-executor` handoff cannot be started, resumed, or completed.
20
20
 
@@ -81,6 +81,8 @@ integration-to-main PR is merged with its merge SHA recorded, the status project
81
81
  acceptance criteria are checked, and `validate_orchestration_artifacts` passes
82
82
  `epic-orchestrator-state` with `require_complete: true`, `require_codex_topology: true`, and
83
83
  `require_codex_model_routing: true`.
84
+ The final merge SHA is recorded only after the merge is confirmed by polling and ancestry check:
85
+ under a merge queue on `main`, `gh pr merge` can return before the merge happens (issue #952).
84
86
  '''
85
87
 
86
88
  [skills]
@@ -18,6 +18,7 @@ Use the following repo-local skills as the canonical workflow source:
18
18
  - pr-context-artifacts
19
19
  - pr-base-branch-merge-base
20
20
  - evidence-and-timestamp-conventions
21
+ - execution-environment
21
22
 
22
23
  ## Startup Protocol
23
24
 
@@ -60,8 +61,10 @@ entry path with `EPIC_INVOCATION_ORIGIN_BLOCKED`.
60
61
 
61
62
  When the parent prompt carries the literal `Preparation mode: true` marker, select only
62
63
  `route_id: preparation`. Perform promotion through the MCP surface, research, `spec.md`,
63
- `user-story.md`, atomic planning, and atomic-executor preflight. Iterate the same plan until
64
- `PREFLIGHT: ALL CLEAR`, commit the prepared feature folder and plan, then stop with
64
+ `user-story.md`, atomic planning, and atomic-executor preflight. Run single-pass preflight on the
65
+ same plan (trivial defects fixed in place, at most one return to the planner, a second substantive
66
+ result halts with `blocked_reason: "validator_failed"`), commit the prepared feature folder and
67
+ plan after `PREFLIGHT: ALL CLEAR`, then stop with
65
68
  `completed_steps` containing `S3_promotion` and `S4_atomic_planning`,
66
69
  `next_step: "S5_atomic_execution"`, execution-through-CI statuses exactly `not-applicable`, and
67
70
  `blocked_reason: "none"`. Do not implement, create a PR, run feature review, monitor CI, or claim
@@ -18,6 +18,7 @@ Use the following repo-local skills as the canonical workflow source:
18
18
  - pr-context-artifacts
19
19
  - pr-base-branch-merge-base
20
20
  - evidence-and-timestamp-conventions
21
+ - execution-environment
21
22
 
22
23
  ## Startup Protocol
23
24
 
@@ -60,8 +61,10 @@ entry path with `EPIC_INVOCATION_ORIGIN_BLOCKED`.
60
61
 
61
62
  When the parent prompt carries the literal `Preparation mode: true` marker, select only
62
63
  `route_id: preparation`. Perform promotion through the MCP surface, research, `spec.md`,
63
- `user-story.md`, atomic planning, and atomic-executor preflight. Iterate the same plan until
64
- `PREFLIGHT: ALL CLEAR`, commit the prepared feature folder and plan, then stop with
64
+ `user-story.md`, atomic planning, and atomic-executor preflight. Run single-pass preflight on the
65
+ same plan (trivial defects fixed in place, at most one return to the planner, a second substantive
66
+ result halts with `blocked_reason: "validator_failed"`), commit the prepared feature folder and
67
+ plan after `PREFLIGHT: ALL CLEAR`, then stop with
65
68
  `completed_steps` containing `S3_promotion` and `S4_atomic_planning`,
66
69
  `next_step: "S5_atomic_execution"`, execution-through-CI statuses exactly `not-applicable`, and
67
70
  `blocked_reason: "none"`. Do not implement, create a PR, run feature review, monitor CI, or claim
@@ -18,6 +18,7 @@ Use the following repo-local skills as the canonical workflow source:
18
18
  - pr-context-artifacts
19
19
  - pr-base-branch-merge-base
20
20
  - evidence-and-timestamp-conventions
21
+ - execution-environment
21
22
 
22
23
  ## Startup Protocol
23
24
 
@@ -60,8 +61,10 @@ entry path with `EPIC_INVOCATION_ORIGIN_BLOCKED`.
60
61
 
61
62
  When the parent prompt carries the literal `Preparation mode: true` marker, select only
62
63
  `route_id: preparation`. Perform promotion through the MCP surface, research, `spec.md`,
63
- `user-story.md`, atomic planning, and atomic-executor preflight. Iterate the same plan until
64
- `PREFLIGHT: ALL CLEAR`, commit the prepared feature folder and plan, then stop with
64
+ `user-story.md`, atomic planning, and atomic-executor preflight. Run single-pass preflight on the
65
+ same plan (trivial defects fixed in place, at most one return to the planner, a second substantive
66
+ result halts with `blocked_reason: "validator_failed"`), commit the prepared feature folder and
67
+ plan after `PREFLIGHT: ALL CLEAR`, then stop with
65
68
  `completed_steps` containing `S3_promotion` and `S4_atomic_planning`,
66
69
  `next_step: "S5_atomic_execution"`, execution-through-CI statuses exactly `not-applicable`, and
67
70
  `blocked_reason: "none"`. Do not implement, create a PR, run feature review, monitor CI, or claim
@@ -18,6 +18,7 @@ Use the following repo-local skills as the canonical workflow source:
18
18
  - pr-context-artifacts
19
19
  - pr-base-branch-merge-base
20
20
  - evidence-and-timestamp-conventions
21
+ - execution-environment
21
22
 
22
23
  ## Startup Protocol
23
24
 
@@ -60,8 +61,10 @@ entry path with `EPIC_INVOCATION_ORIGIN_BLOCKED`.
60
61
 
61
62
  When the parent prompt carries the literal `Preparation mode: true` marker, select only
62
63
  `route_id: preparation`. Perform promotion through the MCP surface, research, `spec.md`,
63
- `user-story.md`, atomic planning, and atomic-executor preflight. Iterate the same plan until
64
- `PREFLIGHT: ALL CLEAR`, commit the prepared feature folder and plan, then stop with
64
+ `user-story.md`, atomic planning, and atomic-executor preflight. Run single-pass preflight on the
65
+ same plan (trivial defects fixed in place, at most one return to the planner, a second substantive
66
+ result halts with `blocked_reason: "validator_failed"`), commit the prepared feature folder and
67
+ plan after `PREFLIGHT: ALL CLEAR`, then stop with
65
68
  `completed_steps` containing `S3_promotion` and `S4_atomic_planning`,
66
69
  `next_step: "S5_atomic_execution"`, execution-through-CI statuses exactly `not-applicable`, and
67
70
  `blocked_reason: "none"`. Do not implement, create a PR, run feature review, monitor CI, or claim
@@ -18,6 +18,7 @@ Use the following repo-local skills as the canonical workflow source:
18
18
  - pr-context-artifacts
19
19
  - pr-base-branch-merge-base
20
20
  - evidence-and-timestamp-conventions
21
+ - execution-environment
21
22
 
22
23
  ## Startup Protocol
23
24
 
@@ -60,8 +61,10 @@ entry path with `EPIC_INVOCATION_ORIGIN_BLOCKED`.
60
61
 
61
62
  When the parent prompt carries the literal `Preparation mode: true` marker, select only
62
63
  `route_id: preparation`. Perform promotion through the MCP surface, research, `spec.md`,
63
- `user-story.md`, atomic planning, and atomic-executor preflight. Iterate the same plan until
64
- `PREFLIGHT: ALL CLEAR`, commit the prepared feature folder and plan, then stop with
64
+ `user-story.md`, atomic planning, and atomic-executor preflight. Run single-pass preflight on the
65
+ same plan (trivial defects fixed in place, at most one return to the planner, a second substantive
66
+ result halts with `blocked_reason: "validator_failed"`), commit the prepared feature folder and
67
+ plan after `PREFLIGHT: ALL CLEAR`, then stop with
65
68
  `completed_steps` containing `S3_promotion` and `S4_atomic_planning`,
66
69
  `next_step: "S5_atomic_execution"`, execution-through-CI statuses exactly `not-applicable`, and
67
70
  `blocked_reason: "none"`. Do not implement, create a PR, run feature review, monitor CI, or claim
@@ -18,6 +18,7 @@ Use the following repo-local skills as the canonical workflow source:
18
18
  - pr-context-artifacts
19
19
  - pr-base-branch-merge-base
20
20
  - evidence-and-timestamp-conventions
21
+ - execution-environment
21
22
 
22
23
  ## Startup Protocol
23
24
 
@@ -60,8 +61,10 @@ entry path with `EPIC_INVOCATION_ORIGIN_BLOCKED`.
60
61
 
61
62
  When the parent prompt carries the literal `Preparation mode: true` marker, select only
62
63
  `route_id: preparation`. Perform promotion through the MCP surface, research, `spec.md`,
63
- `user-story.md`, atomic planning, and atomic-executor preflight. Iterate the same plan until
64
- `PREFLIGHT: ALL CLEAR`, commit the prepared feature folder and plan, then stop with
64
+ `user-story.md`, atomic planning, and atomic-executor preflight. Run single-pass preflight on the
65
+ same plan (trivial defects fixed in place, at most one return to the planner, a second substantive
66
+ result halts with `blocked_reason: "validator_failed"`), commit the prepared feature folder and
67
+ plan after `PREFLIGHT: ALL CLEAR`, then stop with
65
68
  `completed_steps` containing `S3_promotion` and `S4_atomic_planning`,
66
69
  `next_step: "S5_atomic_execution"`, execution-through-CI statuses exactly `not-applicable`, and
67
70
  `blocked_reason: "none"`. Do not implement, create a PR, run feature review, monitor CI, or claim
@@ -14,7 +14,7 @@ Core behavior:
14
14
  - Delegate validation-only preflight to `atomic-executor`.
15
15
  - Require the exact directive `DIRECTIVE: PREFLIGHT VALIDATION ONLY` in the delegated preflight handoff.
16
16
  - Require explicit PowerShell baseline and final-QA tasks, including format, analyzer, test, and coverage steps where policy requires coverage.
17
- - Reuse the same target plan file for every preflight revision iteration.
17
+ - Reuse the same target plan file for the single permitted preflight revision.
18
18
  - Do not create timestamped sibling plan files when an authoritative `plan-path` already exists.
19
19
  - Stop and report blocked state if the required `atomic-executor` handoff cannot be started, resumed, or completed.
20
20
 
@@ -14,7 +14,7 @@ Core behavior:
14
14
  - Delegate validation-only preflight to `atomic-executor`.
15
15
  - Require the exact directive `DIRECTIVE: PREFLIGHT VALIDATION ONLY` in the delegated preflight handoff.
16
16
  - Require explicit Python baseline and final-QA tasks, including Ruff, Pyright, pytest, and coverage where policy requires coverage.
17
- - Reuse the same target plan file for every preflight revision iteration.
17
+ - Reuse the same target plan file for the single permitted preflight revision.
18
18
  - Do not create timestamped sibling plan files when an authoritative `plan-path` already exists.
19
19
  - Stop and report blocked state if the required `atomic-executor` handoff cannot be started, resumed, or completed.
20
20
 
@@ -13,6 +13,10 @@ Do not weaken validation-only preflight loops, QA gates, remediation triggers, r
13
13
  Applied rewrites:
14
14
  - Rewrite Claude skill paths to shared skill paths.
15
15
 
16
+ Use the following repo-local skills as the canonical workflow source:
17
+ - evidence-and-timestamp-conventions
18
+ - execution-environment
19
+
16
20
  Canonical migration source:
17
21
  - .github/agents/task-researcher.agent.md
18
22
 
@@ -33,7 +37,9 @@ tools:
33
37
  - Glob
34
38
  - WebFetch
35
39
  - "Write(/artifacts/research/**)"
40
+ skills:
36
41
  - evidence-and-timestamp-conventions
42
+ - execution-environment
37
43
  memory: project
38
44
  hooks:
39
45
  Stop:
@@ -13,6 +13,10 @@ Do not weaken validation-only preflight loops, QA gates, remediation triggers, r
13
13
  Applied rewrites:
14
14
  - Rewrite Claude skill paths to shared skill paths.
15
15
 
16
+ Use the following repo-local skills as the canonical workflow source:
17
+ - evidence-and-timestamp-conventions
18
+ - execution-environment
19
+
16
20
  Canonical migration source:
17
21
  - .github/agents/task-researcher.agent.md
18
22
 
@@ -33,7 +37,9 @@ tools:
33
37
  - Glob
34
38
  - WebFetch
35
39
  - "Write(/artifacts/research/**)"
40
+ skills:
36
41
  - evidence-and-timestamp-conventions
42
+ - execution-environment
37
43
  memory: project
38
44
  hooks:
39
45
  Stop:
@@ -13,6 +13,10 @@ Do not weaken validation-only preflight loops, QA gates, remediation triggers, r
13
13
  Applied rewrites:
14
14
  - Rewrite Claude skill paths to shared skill paths.
15
15
 
16
+ Use the following repo-local skills as the canonical workflow source:
17
+ - evidence-and-timestamp-conventions
18
+ - execution-environment
19
+
16
20
  Canonical migration source:
17
21
  - .github/agents/task-researcher.agent.md
18
22
 
@@ -33,7 +37,9 @@ tools:
33
37
  - Glob
34
38
  - WebFetch
35
39
  - "Write(/artifacts/research/**)"
40
+ skills:
36
41
  - evidence-and-timestamp-conventions
42
+ - execution-environment
37
43
  memory: project
38
44
  hooks:
39
45
  Stop:
@@ -13,6 +13,10 @@ Do not weaken validation-only preflight loops, QA gates, remediation triggers, r
13
13
  Applied rewrites:
14
14
  - Rewrite Claude skill paths to shared skill paths.
15
15
 
16
+ Use the following repo-local skills as the canonical workflow source:
17
+ - evidence-and-timestamp-conventions
18
+ - execution-environment
19
+
16
20
  Canonical migration source:
17
21
  - .github/agents/task-researcher.agent.md
18
22
 
@@ -33,7 +37,9 @@ tools:
33
37
  - Glob
34
38
  - WebFetch
35
39
  - "Write(/artifacts/research/**)"
40
+ skills:
36
41
  - evidence-and-timestamp-conventions
42
+ - execution-environment
37
43
  memory: project
38
44
  hooks:
39
45
  Stop:
@@ -13,6 +13,10 @@ Do not weaken validation-only preflight loops, QA gates, remediation triggers, r
13
13
  Applied rewrites:
14
14
  - Rewrite Claude skill paths to shared skill paths.
15
15
 
16
+ Use the following repo-local skills as the canonical workflow source:
17
+ - evidence-and-timestamp-conventions
18
+ - execution-environment
19
+
16
20
  Canonical migration source:
17
21
  - .github/agents/task-researcher.agent.md
18
22
 
@@ -33,7 +37,9 @@ tools:
33
37
  - Glob
34
38
  - WebFetch
35
39
  - "Write(/artifacts/research/**)"
40
+ skills:
36
41
  - evidence-and-timestamp-conventions
42
+ - execution-environment
37
43
  memory: project
38
44
  hooks:
39
45
  Stop:
@@ -13,6 +13,10 @@ Do not weaken validation-only preflight loops, QA gates, remediation triggers, r
13
13
  Applied rewrites:
14
14
  - Rewrite Claude skill paths to shared skill paths.
15
15
 
16
+ Use the following repo-local skills as the canonical workflow source:
17
+ - evidence-and-timestamp-conventions
18
+ - execution-environment
19
+
16
20
  Canonical migration source:
17
21
  - .github/agents/task-researcher.agent.md
18
22
 
@@ -33,7 +37,9 @@ tools:
33
37
  - Glob
34
38
  - WebFetch
35
39
  - "Write(/artifacts/research/**)"
40
+ skills:
36
41
  - evidence-and-timestamp-conventions
42
+ - execution-environment
37
43
  memory: project
38
44
  hooks:
39
45
  Stop:
@@ -2,7 +2,7 @@ default_permissions = ":danger-full-access"
2
2
 
3
3
  [mcp_servers.drm-copilot]
4
4
  command = "npx"
5
- args = ["-y", "@danmoisan/drm-copilot-mcp@1.1.19"]
5
+ args = ["-y", "@danmoisan/drm-copilot-mcp@1.1.20"]
6
6
  required = true
7
7
  enabled_tools = [
8
8
  "collect_commit_context",