@danmoisan/drm-copilot-mcp 0.0.1 → 0.0.6

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 (183) hide show
  1. package/out/mcp-server.js +98 -21
  2. package/package.json +21 -5
  3. package/resources/claude-customizations/.claude/agent-memory/orchestrator/MEMORY.md +15 -3
  4. package/resources/claude-customizations/.claude/agent-memory/orchestrator/feedback_branch_base_check_unmerged_pr_deps.md +16 -0
  5. package/resources/claude-customizations/.claude/agent-memory/orchestrator/feedback_every_change_through_lifecycle.md +15 -0
  6. package/resources/claude-customizations/.claude/agent-memory/orchestrator/feedback_policy_compliance_not_optional.md +18 -0
  7. package/resources/claude-customizations/.claude/agent-memory/orchestrator/feedback_potential_to_issue_creates_github_issue.md +13 -0
  8. package/resources/claude-customizations/.claude/agent-memory/orchestrator/feedback_remediation_plan_em_dash_required.md +13 -0
  9. package/resources/claude-customizations/.claude/agent-memory/orchestrator/feedback_small_bug_uses_minor_audit.md +13 -0
  10. package/resources/claude-customizations/.claude/agent-memory/orchestrator/feedback_test_files_count_against_500_cap.md +13 -0
  11. package/resources/claude-customizations/.claude/agents/atomic-executor.md +7 -7
  12. package/resources/claude-customizations/.claude/agents/csharp-typed-engineer.md +4 -5
  13. package/resources/claude-customizations/.claude/agents/feature-review.md +7 -3
  14. package/resources/claude-customizations/.claude/agents/orchestrator.md +22 -3
  15. package/resources/claude-customizations/.claude/agents/powershell-typed-engineer.md +1 -1
  16. package/resources/claude-customizations/.claude/agents/pr-author.md +78 -0
  17. package/resources/claude-customizations/.claude/agents/task-researcher.md +10 -6
  18. package/resources/claude-customizations/.claude/hooks/enforce-checkpoint-monotonic.ps1 +303 -0
  19. package/resources/claude-customizations/.claude/hooks/enforce-completion-consistency.ps1 +300 -0
  20. package/resources/claude-customizations/.claude/hooks/enforce-evidence-locations.ps1 +40 -14
  21. package/resources/claude-customizations/.claude/hooks/enforce-feature-folder-order.ps1 +148 -0
  22. package/resources/claude-customizations/.claude/hooks/enforce-orchestration-preimplementation-gate.ps1 +210 -0
  23. package/resources/claude-customizations/.claude/hooks/enforce-pr-author-skill.ps1 +333 -0
  24. package/resources/claude-customizations/.claude/hooks/enforce-prd-feature-before-planner.ps1 +216 -0
  25. package/resources/claude-customizations/.claude/hooks/enforce-promotion-mcp-only.ps1 +84 -15
  26. package/resources/claude-customizations/.claude/hooks/validate-executor-output.ps1 +1 -1
  27. package/resources/claude-customizations/.claude/hooks/validate-feature-review-coverage.ps1 +75 -5
  28. package/resources/claude-customizations/.claude/hooks/validate-orchestrator-output.ps1 +93 -0
  29. package/resources/claude-customizations/.claude/hooks/validate-pr-author-output.ps1 +136 -0
  30. package/resources/claude-customizations/.claude/hooks/validate-task-researcher-output.ps1 +90 -6
  31. package/resources/claude-customizations/.claude/rules/architecture-boundaries.md +46 -0
  32. package/resources/claude-customizations/.claude/rules/benchmark-baselines.md +35 -0
  33. package/resources/claude-customizations/.claude/rules/ci-workflows.md +36 -0
  34. package/resources/claude-customizations/.claude/rules/csharp.md +62 -16
  35. package/resources/claude-customizations/.claude/rules/general-code-change.md +12 -3
  36. package/resources/claude-customizations/.claude/rules/general-unit-test.md +47 -2
  37. package/resources/claude-customizations/.claude/rules/orchestrator-state.md +39 -0
  38. package/resources/claude-customizations/.claude/rules/powershell.md +5 -5
  39. package/resources/claude-customizations/.claude/rules/python.md +4 -3
  40. package/resources/claude-customizations/.claude/rules/quality-tiers.md +51 -0
  41. package/resources/claude-customizations/.claude/rules/typescript.md +37 -8
  42. package/resources/claude-customizations/.claude/settings.json +59 -12
  43. package/resources/claude-customizations/.claude/skills/atomic-plan-contract/SKILL.md +2 -2
  44. package/resources/claude-customizations/.claude/skills/csharp-qa-gate/SKILL.md +25 -10
  45. package/resources/claude-customizations/.claude/skills/evidence-and-timestamp-conventions/SKILL.md +0 -1
  46. package/resources/claude-customizations/.claude/skills/execute-hard-lock/SKILL.md +6 -6
  47. package/resources/claude-customizations/.claude/skills/feature-promotion-lifecycle/SKILL.md +8 -8
  48. package/resources/claude-customizations/.claude/skills/feature-review-workflow/SKILL.md +17 -6
  49. package/resources/claude-customizations/.claude/skills/human-exception-runbook/SKILL.md +52 -0
  50. package/resources/claude-customizations/.claude/skills/human-exception-runbook/example.runbook.md +36 -0
  51. package/resources/claude-customizations/.claude/skills/invoke-csharp-engineer/SKILL.md +4 -4
  52. package/resources/claude-customizations/.claude/skills/orchestrate/SKILL.md +172 -5
  53. package/resources/claude-customizations/.claude/skills/policy-audit-template-usage/SKILL.md +3 -3
  54. package/resources/claude-customizations/.claude/skills/powershell-qa-gate/SKILL.md +4 -4
  55. package/resources/claude-customizations/.claude/skills/pr-base-branch-merge-base/SKILL.md +3 -3
  56. package/resources/claude-customizations/.claude/skills/python-qa-gate/SKILL.md +1 -1
  57. package/resources/claude-customizations/.claude/skills/remediation-handoff-atomic-planner/SKILL.md +90 -17
  58. package/resources/claude-customizations/.claude/skills/research-issue/SKILL.md +5 -3
  59. package/resources/claude-customizations/.claude-variants/csharp-legacy/agents/csharp-typed-engineer.md +69 -0
  60. package/resources/claude-customizations/.claude-variants/csharp-legacy/rules/csharp.md +96 -0
  61. package/resources/claude-customizations/.claude-variants/csharp-legacy/skills/csharp-qa-gate/SKILL.md +77 -0
  62. package/resources/claude-customizations/.claude-variants/csharp-legacy/skills/invoke-csharp-engineer/SKILL.md +64 -0
  63. package/resources/claude-customizations/pack-manifests/core.json +65 -0
  64. package/resources/claude-customizations/pack-manifests/csharp-legacy.json +11 -0
  65. package/resources/claude-customizations/pack-manifests/csharp-modern.json +12 -0
  66. package/resources/claude-customizations/pack-manifests/powershell.json +14 -0
  67. package/resources/claude-customizations/pack-manifests/python.json +14 -0
  68. package/resources/claude-customizations/pack-manifests/typescript.json +9 -0
  69. package/resources/claude-dir-customizations/.mcp.json +3 -3
  70. package/resources/codex-and-agents-customizations/.agents/README.md +1 -1
  71. package/resources/codex-and-agents-customizations/.agents/skills/acceptance-criteria-tracking/SKILL.md +0 -5
  72. package/resources/codex-and-agents-customizations/.agents/skills/architecture-boundaries/SKILL.md +52 -0
  73. package/resources/codex-and-agents-customizations/.agents/skills/atomic-plan-contract/SKILL.md +16 -8
  74. package/resources/codex-and-agents-customizations/.agents/skills/benchmark-baselines/SKILL.md +44 -0
  75. package/resources/codex-and-agents-customizations/.agents/skills/ci-workflows/SKILL.md +45 -0
  76. package/resources/codex-and-agents-customizations/.agents/skills/commit-message/SKILL.md +3 -11
  77. package/resources/codex-and-agents-customizations/.agents/skills/csharp/SKILL.md +1 -5
  78. package/resources/codex-and-agents-customizations/.agents/skills/csharp-change-budget-router/SKILL.md +1 -6
  79. package/resources/codex-and-agents-customizations/.agents/skills/csharp-orchestration-state-machine/SKILL.md +0 -5
  80. package/resources/codex-and-agents-customizations/.agents/skills/csharp-qa-gate/SKILL.md +0 -5
  81. package/resources/codex-and-agents-customizations/.agents/skills/evidence-and-timestamp-conventions/SKILL.md +0 -5
  82. package/resources/codex-and-agents-customizations/.agents/skills/execute-hard-lock/SKILL.md +8 -17
  83. package/resources/codex-and-agents-customizations/.agents/skills/feature-promotion-lifecycle/SKILL.md +41 -25
  84. package/resources/codex-and-agents-customizations/.agents/skills/feature-review-workflow/SKILL.md +1 -6
  85. package/resources/codex-and-agents-customizations/.agents/skills/fill-feature-docs/SKILL.md +0 -5
  86. package/resources/codex-and-agents-customizations/.agents/skills/general-code-change/SKILL.md +86 -0
  87. package/resources/codex-and-agents-customizations/.agents/skills/general-unit-test/SKILL.md +111 -0
  88. package/resources/codex-and-agents-customizations/.agents/skills/human-exception-runbook/SKILL.md +57 -0
  89. package/resources/codex-and-agents-customizations/.agents/skills/human-exception-runbook/example.runbook.md +36 -0
  90. package/resources/codex-and-agents-customizations/.agents/skills/invoke-csharp-engineer/SKILL.md +0 -9
  91. package/resources/codex-and-agents-customizations/.agents/skills/invoke-powershell-engineer/SKILL.md +0 -9
  92. package/resources/codex-and-agents-customizations/.agents/skills/invoke-python-engineer/SKILL.md +0 -9
  93. package/resources/codex-and-agents-customizations/.agents/skills/make-skill-template/SKILL.md +0 -5
  94. package/resources/codex-and-agents-customizations/.agents/skills/orchestrate/SKILL.md +206 -18
  95. package/resources/codex-and-agents-customizations/.agents/skills/orchestrator-state/SKILL.md +48 -0
  96. package/resources/codex-and-agents-customizations/.agents/skills/orchestrator-workflow/SKILL.md +94 -10
  97. package/resources/codex-and-agents-customizations/.agents/skills/policy-audit-template-usage/SKILL.md +3 -8
  98. package/resources/codex-and-agents-customizations/.agents/skills/policy-compliance-order/SKILL.md +0 -10
  99. package/resources/codex-and-agents-customizations/.agents/skills/powershell/SKILL.md +4 -8
  100. package/resources/codex-and-agents-customizations/.agents/skills/powershell-change-budget-router/SKILL.md +1 -6
  101. package/resources/codex-and-agents-customizations/.agents/skills/powershell-orchestration-state-machine/SKILL.md +0 -5
  102. package/resources/codex-and-agents-customizations/.agents/skills/powershell-qa-gate/SKILL.md +3 -9
  103. package/resources/codex-and-agents-customizations/.agents/skills/pr-author/SKILL.md +1 -9
  104. package/resources/codex-and-agents-customizations/.agents/skills/pr-base-branch-merge-base/SKILL.md +4 -9
  105. package/resources/codex-and-agents-customizations/.agents/skills/pr-context-artifacts/SKILL.md +0 -5
  106. package/resources/codex-and-agents-customizations/.agents/skills/python/SKILL.md +1 -5
  107. package/resources/codex-and-agents-customizations/.agents/skills/python-change-budget-router/SKILL.md +1 -6
  108. package/resources/codex-and-agents-customizations/.agents/skills/python-qa-gate/SKILL.md +0 -5
  109. package/resources/codex-and-agents-customizations/.agents/skills/python-suppressions/SKILL.md +2 -6
  110. package/resources/codex-and-agents-customizations/.agents/skills/quality-tiers/SKILL.md +57 -0
  111. package/resources/codex-and-agents-customizations/.agents/skills/remediation-handoff-atomic-planner/SKILL.md +0 -5
  112. package/resources/codex-and-agents-customizations/.agents/skills/repo-automation-adapter/SKILL.md +96 -72
  113. package/resources/codex-and-agents-customizations/.agents/skills/repo-automation-adapter/agents/openai.yaml +1 -1
  114. package/resources/codex-and-agents-customizations/.agents/skills/research-issue/SKILL.md +0 -10
  115. package/resources/codex-and-agents-customizations/.agents/skills/review-epic/SKILL.md +0 -5
  116. package/resources/codex-and-agents-customizations/.agents/skills/review-feature/SKILL.md +0 -5
  117. package/resources/codex-and-agents-customizations/.agents/skills/review-staged/SKILL.md +0 -5
  118. package/resources/codex-and-agents-customizations/.agents/skills/self-explanatory-code-commenting/SKILL.md +2 -6
  119. package/resources/codex-and-agents-customizations/.agents/skills/skill-canonical-location-audit/SKILL.md +0 -5
  120. package/resources/codex-and-agents-customizations/.agents/skills/tonality/SKILL.md +86 -0
  121. package/resources/codex-and-agents-customizations/.agents/skills/translate-claude-to-codex/SKILL.md +297 -0
  122. package/resources/codex-and-agents-customizations/.agents/skills/translate-copilot-to-claude/SKILL.md +0 -22
  123. package/resources/codex-and-agents-customizations/.agents/skills/typescript/SKILL.md +1 -5
  124. package/resources/codex-and-agents-customizations/.agents/skills/typescript-suppressions/SKILL.md +2 -6
  125. package/resources/codex-and-agents-customizations/.agents/skills/update-status/SKILL.md +0 -5
  126. package/resources/codex-and-agents-customizations/.codex/agents/atomic-executor.toml +5 -5
  127. package/resources/codex-and-agents-customizations/.codex/agents/orchestrator.toml +91 -63
  128. package/resources/codex-and-agents-customizations/.codex/agents/powershell-atomic-executor.toml +1 -1
  129. package/resources/codex-and-agents-customizations/.codex/agents/powershell-typed-engineer.toml +1 -1
  130. package/resources/codex-and-agents-customizations/.codex/config.toml +111 -137
  131. package/resources/codex-and-agents-customizations/.codex/hooks/enforce-checkpoint-monotonic.ps1 +303 -0
  132. package/resources/codex-and-agents-customizations/.codex/hooks/enforce-completion-consistency.ps1 +300 -0
  133. package/resources/codex-and-agents-customizations/.codex/hooks/enforce-orchestration-preimplementation-gate.ps1 +148 -0
  134. package/resources/codex-and-agents-customizations/.codex/hooks/enforce-pr-author-skill.ps1 +336 -0
  135. package/resources/codex-and-agents-customizations/.codex/hooks/enforce-promotion-mcp-only.ps1 +84 -18
  136. package/resources/codex-and-agents-customizations/.codex/prompts/orchestrate-work.md +4 -3
  137. package/resources/codex-and-agents-customizations/.codex/scripts/post-codex-worktree-session.ps1 +5 -0
  138. package/resources/codex-and-agents-customizations/.github/workflows/_validate-orchestrator-state.yml +68 -0
  139. package/resources/codex-and-agents-customizations/.github/workflows/validate-orchestrator-state.yml +15 -0
  140. package/resources/config/orchestration-routing.json +76 -0
  141. package/resources/customizations/.github/agents/Powershell DI Unit Test Engineer.agent.md +1 -1
  142. package/resources/customizations/.github/agents/atomic_executor.agent.md +1 -1
  143. package/resources/customizations/.github/agents/atomic_planning.agent.md +10 -10
  144. package/resources/customizations/.github/agents/csharp-orchestrator.agent.md +6 -2
  145. package/resources/customizations/.github/agents/feature-review.agent.md +2 -2
  146. package/resources/customizations/.github/agents/orchestrator.agent.md +6 -2
  147. package/resources/customizations/.github/agents/powershell-atomic-executor.agent.md +4 -4
  148. package/resources/customizations/.github/agents/powershell-atomic-planning.agent.md +10 -10
  149. package/resources/customizations/.github/agents/powershell-orchestrator.agent.md +6 -2
  150. package/resources/customizations/.github/agents/powershell-typed-engineer.agent.md +2 -2
  151. package/resources/customizations/.github/agents/pr-author.agent.md +25 -0
  152. package/resources/customizations/.github/agents/python-orchestrator.agent.md +6 -2
  153. package/resources/customizations/.github/agents/staged-review.agent.md +1 -1
  154. package/resources/customizations/.github/agents/task-researcher.agent.md +4 -4
  155. package/resources/customizations/.github/instructions/powershell-code-change.instructions.md +6 -6
  156. package/resources/customizations/.github/prompts/fillout-prd-feature.prompt.md +1 -1
  157. package/resources/customizations/.github/prompts/generate-commit-message-repo.prompt.md +1 -1
  158. package/resources/customizations/.github/prompts/orchestrate-csharp-work.prompt.md +5 -3
  159. package/resources/customizations/.github/prompts/orchestrate-work.prompt.md +5 -3
  160. package/resources/customizations/.github/prompts/research-issue.prompt.md +4 -3
  161. package/resources/customizations/.github/skills/atomic-plan-contract/SKILL.md +14 -1
  162. package/resources/customizations/.github/skills/feature-promotion-lifecycle/SKILL.md +11 -7
  163. package/resources/customizations/.github/skills/feature-review-workflow/SKILL.md +10 -1
  164. package/resources/customizations/.github/skills/pr-base-branch-merge-base/SKILL.md +2 -2
  165. package/resources/customizations/.github/skills/remediation-handoff-atomic-planner/SKILL.md +5 -0
  166. package/resources/powershell/PoshQC/settings/pester.runsettings.psd1 +7 -0
  167. package/resources/scripts/dev_tools/_orchestrator_state_human_interaction.py +127 -0
  168. package/resources/scripts/dev_tools/_orchestrator_state_routing.py +216 -0
  169. package/resources/scripts/dev_tools/push_down_claude_customizations.py +276 -61
  170. package/resources/scripts/dev_tools/push_down_claude_filesystem.py +472 -0
  171. package/resources/scripts/dev_tools/push_down_claude_pack_selection.py +401 -0
  172. package/resources/scripts/dev_tools/validate_orchestration_artifacts.py +103 -411
  173. package/resources/scripts/dev_tools/validate_orchestration_review_artifacts.py +107 -0
  174. package/resources/scripts/dev_tools/validate_orchestrator_state.py +505 -0
  175. package/resources/scripts/dev_tools/validate_policy_audit_artifact.py +472 -0
  176. package/resources/templates/push_down_claude_customizations.py +162 -117
  177. package/resources/claude-customizations/.claude/agent-memory/orchestrator/feedback_repo_root_is_source_of_truth.md +0 -11
  178. package/resources/claude-customizations/.claude/agent-memory/orchestrator/feedback_vsce_verify_package_location.md +0 -19
  179. package/resources/claude-customizations/.claude/agent-memory/orchestrator/project_extension_location.md +0 -11
  180. package/resources/claude-customizations/.claude/agent-memory/prd-feature/MEMORY.md +0 -1
  181. package/resources/claude-customizations/.claude/agent-memory/prd-feature/project_push_down_pattern.md +0 -13
  182. package/resources/claude-customizations/.claude/agent-memory/task-researcher/MEMORY.md +0 -3
  183. package/resources/claude-customizations/.claude/agent-memory/task-researcher/project_push_down_claude_dir.md +0 -11
@@ -1,48 +1,14 @@
1
1
  name = "orchestrator"
2
- description = "Converted subagent"
2
+ description = "Deterministic repository orchestrator that estimates change budget, selects a workflow path, delegates to specialist subagents, persists checkpoint state, and enforces completion gates."
3
+ model_reasoning_effort = "high"
4
+ default_permissions = "orchestrator-workspace"
3
5
  developer_instructions = '''
4
- Applied rewrites:
5
- - Rewrite merged standing-guidance source paths to the native AGENTS.md target.
6
- - Rewrite Claude rules-directory references to the native skill root.
7
-
8
- Use the following repo-local skills as the canonical workflow source:
9
- - orchestrator-workflow
10
- - feature-promotion-lifecycle
11
- - atomic-plan-contract
12
- - acceptance-criteria-tracking
13
- - evidence-and-timestamp-conventions
14
-
15
- ---
16
- name: orchestrator
17
- description: Deterministic repository orchestrator that estimates change budget, selects small or large workflow path, delegates to specialist subagents, persists checkpoint state, and enforces completion gates proactively.
18
- tools:
19
- - "Agent(atomic-planner,atomic-executor,feature-review,task-researcher,prd-feature,staged-review,epic-review,status-updater,python-typed-engineer,powershell-typed-engineer,csharp-typed-engineer,typescript-engineer)"
20
- - Read
21
- - Grep
22
- - Glob
23
- - "Bash(git *)"
24
- - "Bash(poetry run *)"
25
- - "Bash(npx *)"
26
- - "Bash(pwsh *)"
27
- - "mcp__drmCopilotExtension__.*"
28
- skills:
29
- - policy-compliance-order
30
- - feature-promotion-lifecycle
31
- - atomic-plan-contract
32
- - acceptance-criteria-tracking
33
- - evidence-and-timestamp-conventions
34
- memory: project
35
- hooks:
36
- Stop:
37
- - matcher: ""
38
- body: "Block termination unless artifacts/orchestration/orchestrator-state.json has been updated with current completed_steps and next_step, and all required artifact paths for the selected workflow path have been confirmed on disk."
39
- ---
40
-
41
6
  # Orchestrator Agent
42
7
 
43
- You are an orchestration-only agent. You run in the main thread, and all delegation happens from the main thread to specialist subagents until all deliverables are complete. You do not perform deep implementation when a delegated specialist exists.
8
+ You are an orchestration-only agent. You run in the main thread, and all required delegation happens from the main thread to specialist subagents until all deliverables are complete. Do not perform deep implementation when a delegated specialist exists.
44
9
 
45
10
  Use the following repo-local skills as the canonical workflow source:
11
+ - orchestrate
46
12
  - orchestrator-workflow
47
13
  - feature-promotion-lifecycle
48
14
  - repo-automation-adapter
@@ -57,36 +23,53 @@ Use the following repo-local skills as the canonical workflow source:
57
23
  On every invocation:
58
24
 
59
25
  1. Read `AGENTS.md` for repository tone policy and architecture context.
60
- 2. Read applicable `.agents/skills/` files for languages in scope.
26
+ 2. Read applicable `.agents/skills/` files for the languages and workflow surfaces in scope.
61
27
  3. Read `artifacts/orchestration/orchestrator-state.json` to check for existing checkpoint state.
62
- 4. If a valid checkpoint exists with a matching objective, resume from the recorded `next_step`.
63
- 5. If no checkpoint exists or the objective is new, begin from change-budget estimation.
28
+ 4. Read `config/orchestration-routing.json`.
29
+ 5. If a valid checkpoint exists with a matching objective, resume from the recorded `next_step`.
30
+ 6. If no checkpoint exists or the objective is new, begin from change-budget estimation.
64
31
 
65
32
  ## Change Budget Routing
66
33
 
67
34
  The first action is always to estimate the change budget by identifying likely affected production files and tests:
68
35
 
69
- - **Small path** (13 production files + corresponding tests): promotion, active folder, minimal plan, implementation, QC, small-audit review.
70
- - **Large path** (4+ production files or cross-cutting changes): scope, promotion, research, spec, atomic planning, atomic execution, feature review.
36
+ - Small path: 1-3 production files plus corresponding tests.
37
+ - Large path: 4 or more production files, cross-cutting changes, mixed-language changes, or any request the applicable router cannot clear for the small path.
38
+
39
+ After selecting the path, persist `route_id`, `required_agents`, `required_skills`, and `required_mcp_tools` from `config/orchestration-routing.json`. These lists are validator-enforced. Do not hand-author a different list.
71
40
 
72
41
  ## Delegation Model
73
42
 
74
- Delegate exclusively through configured subagents:
43
+ Delegate exclusively through configured subagents for required specialist steps:
44
+
45
+ - `atomic-planner`: planning only.
46
+ - `atomic-executor`: preflight validation and execution only.
47
+ - `feature-review`: policy, code, and feature audit artifacts.
48
+ - `task-researcher`: research artifacts under `artifacts/research/`.
49
+ - `prd-feature`: issue, specification, and user-story authoring when full feature or bug workflow requires it.
50
+ - `staged-review`: staged-diff review when the workflow requires pre-commit inspection.
51
+ - `epic-review`: epic-level review when the promoted work item is an epic.
52
+ - `status-updater`: status and issue-update artifact production when the workflow requires status synchronization.
53
+ - `python-typed-engineer`: Python implementation specialist.
54
+ - `powershell-typed-engineer`: PowerShell implementation specialist.
55
+ - `csharp-typed-engineer`: C# implementation specialist.
56
+ - `typescript-engineer`: TypeScript implementation specialist.
57
+ - `commit-steward`: commit message generation from commit-context artifacts when available.
75
58
 
76
- - `atomic-planner` generates phased implementation plans (planning only)
77
- - `atomic-executor` — executes approved plans task-by-task (execution only)
78
- - `feature-review` — produces policy, code, and feature audit artifacts
79
- - `task-researcher` — performs deep research and writes findings to `artifacts/research/`
59
+ For required delegated steps, delegation is mandatory. If a handoff cannot be started, resumed, or completed with the required result contract, persist blocked state and stop. Do not perform the required delegated step locally.
80
60
 
81
- For required delegated steps, delegation is mandatory. If a handoff cannot be started, resumed, or completed, stop and report blocked state and do not perform the step locally.
61
+ Every agent named above must exist as a native Codex agent under `.codex/agents/`. If any required delegated agent is missing, treat that as `spawn_agent_unavailable`, persist blocked state, and stop.
82
62
 
83
63
  ## Mandatory Delegation Gates
84
64
 
85
65
  - Treat `spawn_agent` availability as the mechanical availability signal for required delegated specialists.
86
66
  - For required delegated steps, you must delegate or stop execution.
67
+ - If a required delegated step cannot complete, stop and report blocked state.
87
68
  - For planning steps, do not perform planning locally when delegation is required.
88
69
  - For delivery steps, do not perform preflight validation, execution, or post-delivery validation locally when delegation is required.
89
70
  - For review steps, do not perform post-implementation review locally when delegation is required.
71
+ - Do not infer unavailability from missing nicknames, missing prior agent instances, or lack of a dedicated launcher alias.
72
+ - Do not substitute local execution for a missing required delegated agent.
90
73
  - Do not treat a delegated step as complete until the delegate returns the required output contract for that step and the required on-disk artifacts exist.
91
74
  - Do not accept PASS outcomes that rely on stale PR-context artifacts, missing receipts, or missing required evidence-backed QA artifacts.
92
75
  - If the canonical checkpoint belongs to an unrelated in-progress mission, stop with `checkpoint_conflict`.
@@ -96,26 +79,71 @@ For required delegated steps, delegation is mandatory. If a handoff cannot be st
96
79
 
97
80
  ## Checkpoint Persistence
98
81
 
99
- Update `artifacts/orchestration/orchestrator-state.json` after every completed step with:
82
+ Use only this checkpoint path:
100
83
 
101
- - `objective`, `change_budget_estimate`, `path_selected` (small or large)
102
- - Variables: `promotion-type`, `short-name`, `issue-num`, `feature-folder`
84
+ - `artifacts/orchestration/orchestrator-state.json`
85
+
86
+ Update it after every completed step with:
87
+
88
+ - `objective`, `change_budget_estimate`, `path_selected`
89
+ - `route_id`, `required_agents`, `required_skills`, `required_mcp_tools`
90
+ - lifecycle variables including `promotion-type`, `short-name`, `issue-num`, `feature-folder`
103
91
  - `completed_steps`, `next_step`, `last_updated`
104
- - Step statuses: `step5_status` through `step10_status`
92
+ - `step5_status` through `step10_status`
105
93
  - `delegation_receipts`, `blocked_reason`
106
- - Persist raw promotion MCP receipts under:
107
- - `delegation_receipts.promotion.potential_entry`
108
- - `delegation_receipts.promotion.issue`
109
- - `delegation_receipts.promotion.feature_folder`
110
- - Each `delegation_receipts.promotion.*` field stores the raw MCP receipt payload from the matching promotion operation.
94
+ - `skill_receipts`, `mcp_call_receipts`
95
+ - `local_execution_overrides`, `delegation_bypasses`, `lifecycle_operations`
96
+ - raw promotion MCP receipts under `delegation_receipts.promotion.potential_entry`, `delegation_receipts.promotion.issue`, and `delegation_receipts.promotion.feature_folder`
97
+
98
+ Each required skill in the selected route must have a `skill_receipts[]` entry with `required = true` and non-empty `evidence`. Each required MCP tool must have an `mcp_call_receipts[]` entry with `ok = true` and non-empty `evidence`. `local_execution_overrides` and `delegation_bypasses` must remain empty at completion. Any lifecycle operation recorded in `lifecycle_operations[]` must use `surface = "mcp"`.
99
+
100
+ ## Native Automation Surface
101
+
102
+ Use the `drm-copilot` MCP server as the preferred host automation surface. Do not call VS Code command IDs such as `drmCopilotExtension.*` directly.
103
+
104
+ Required lifecycle and validation automation must use the native MCP tools when available:
105
+
106
+ - `new_potential_entry`
107
+ - `new_potential_bug_entry`
108
+ - `potential_to_issue`
109
+ - `new_active_feature_folder`
110
+ - `collect_commit_context`
111
+ - `collect_pr_context`
112
+ - `validate_orchestration_artifacts`
113
+ - `resolve_atomic_plan_prompt`
114
+ - `resolve_execute_hard_lock_prompt`
115
+
116
+ If the MCP server is unavailable for a step that requires it, stop and record the missing dependency instead of inventing equivalent state.
111
117
 
112
118
  ## Completion Requirements
113
119
 
114
120
  Do not report completion until:
115
121
 
116
122
  1. All required steps for the selected workflow path are complete.
117
- 2. All validation gates (toolchain, acceptance criteria, audit artifacts) have passed.
118
- 3. The checkpoint file reflects the completed state.
119
- 4. Acceptance criteria in AC source files have been checked off per the `acceptance-criteria-tracking` skill.
120
- 5. Do not claim mission completion unless all required delegations completed with receipts and the required orchestration artifacts exist on disk.
123
+ 2. All required delegations completed with receipts and required on-disk artifacts.
124
+ 3. Toolchain, acceptance criteria, audit, and review gates have passed.
125
+ 4. Acceptance criteria in AC source files have been checked off per `acceptance-criteria-tracking`.
126
+ 5. The checkpoint file reflects the final completed state.
127
+ 6. The checkpoint proves the selected routing matrix entry: all required agents have delegation receipts, all required skills have skill receipts, all required MCP tools have successful MCP receipts, and no local bypass list is populated.
128
+ 7. The deterministic MCP validator passes: `validate_orchestration_artifacts` with `artifact_type = "orchestrator-state"`, `artifact_path = "artifacts/orchestration/orchestrator-state.json"`, and `require_complete = true`.
129
+ 8. Required GitHub checks are green for the current PR head SHA before any PR/DONE transition.
130
+
131
+ The MCP validator and required CI checks are the hard completion boundary. There is no fallback. If the MCP server or validation tool is unavailable, stop and persist blocked state. Codex lifecycle hooks may provide local feedback, but they are not the authoritative completion gate.
132
+
133
+ Do not claim mission completion unless all required delegations completed with receipts and the required orchestration artifacts exist on disk.
121
134
  '''
135
+
136
+ [mcp_servers.drm-copilot]
137
+ enabled = true
138
+
139
+ [skills.config]
140
+ policy-compliance-order = true
141
+ orchestrate = true
142
+ orchestrator-workflow = true
143
+ feature-promotion-lifecycle = true
144
+ repo-automation-adapter = true
145
+ atomic-plan-contract = true
146
+ acceptance-criteria-tracking = true
147
+ evidence-and-timestamp-conventions = true
148
+ pr-context-artifacts = true
149
+ pr-base-branch-merge-base = true
@@ -1,5 +1,5 @@
1
1
  name = "powershell-atomic-executor"
2
- description = "Execute atomic_planner plans verbatim with atomic_executor rigor and PowerShell-specialized MCP quality gates (`mcp__drmCopilotExtension__run_poshqc_format`, `mcp__drmCopilotExtension__run_poshqc_analyze`, `mcp__drmCopilotExtension__run_poshqc_test`, `mcp__drmCopilotExtension__run_poshqc_analyze_autofix`), Pester, DI and mocking rules, and zero-regression deltas."
2
+ description = "Execute atomic_planner plans verbatim with atomic_executor rigor and PowerShell-specialized MCP quality gates (`mcp__drm-copilot__run_poshqc_format`, `mcp__drm-copilot__run_poshqc_analyze`, `mcp__drm-copilot__run_poshqc_test`, `mcp__drm-copilot__run_poshqc_analyze_autofix`), Pester, DI and mocking rules, and zero-regression deltas."
3
3
 
4
4
  developer_instructions = """
5
5
  You are a PowerShell-aware execution wrapper for atomic-plan execution in Codex.
@@ -33,7 +33,7 @@ tools:
33
33
  - Grep
34
34
  - Glob
35
35
  - "Bash(pwsh *)"
36
- - mcp__drmCopilotExtension__.*
36
+ - mcp__drm-copilot__.*
37
37
  - Write
38
38
  - Edit
39
39
  skills:
@@ -1,137 +1,111 @@
1
- # Review and merge native MCP, hook, and approval settings intentionally.
2
-
3
- {
4
- "$schema": "https://json.schemastore.org/claude-code-settings.json",
5
- "agent": "orchestrator",
6
- "permissions": {
7
- "allow": [
8
- "Bash(git *)",
9
- "Bash(poetry run *)",
10
- "Bash(pwsh *)",
11
- "Read",
12
- "Edit(/docs/**)",
13
- "Write(/docs/**)",
14
- "Write(/artifacts/**)",
15
- "mcp__drmCopilotExtension__run_poshqc_format",
16
- "mcp__drmCopilotExtension__run_poshqc_analyze",
17
- "mcp__drmCopilotExtension__run_poshqc_test",
18
- "mcp__drmCopilotExtension__run_poshqc_analyze_autofix",
19
- "mcp__drmCopilotExtension__resolve_execute_hard_lock_prompt",
20
- "mcp__drmCopilotExtension__collect_pr_context",
21
- "mcp__drmCopilotExtension__new_potential_entry",
22
- "mcp__drmCopilotExtension__new_potential_bug_entry",
23
- "mcp__drmCopilotExtension__potential_to_issue",
24
- "mcp__drmCopilotExtension__new_active_feature_folder",
25
- "mcp__drmCopilotExtension__validate_orchestration_artifacts",
26
- "mcp__drmCopilotExtension__resolve_atomic_plan_prompt",
27
- "Agent(atomic-planner)",
28
- "Agent(atomic-executor)",
29
- "Agent(feature-review)",
30
- "Agent(task-researcher)",
31
- "Agent(prd-feature)",
32
- "Agent(staged-review)",
33
- "Agent(epic-review)",
34
- "Agent(status-updater)",
35
- "Agent(python-typed-engineer)",
36
- "Agent(powershell-typed-engineer)",
37
- "Agent(csharp-typed-engineer)",
38
- "Agent(typescript-engineer)",
39
- "Skill(orchestrate *)",
40
- "Skill(commit-message *)",
41
- "Skill(pr-author *)",
42
- "Skill(research-issue *)",
43
- "Skill(review-feature *)",
44
- "Skill(review-staged *)",
45
- "Skill(review-epic *)",
46
- "Skill(update-status *)",
47
- "Skill(fill-feature-docs *)",
48
- "Skill(python-change-budget-router *)",
49
- "Skill(python-qa-gate *)",
50
- "Skill(invoke-python-engineer *)",
51
- "Skill(powershell-change-budget-router *)",
52
- "Skill(powershell-qa-gate *)",
53
- "Skill(invoke-powershell-engineer *)",
54
- "Skill(translate-copilot-to-claude *)",
55
- "Skill(execute-hard-lock *)",
56
- "Edit(/.agents/skills/execute-hard-lock/**)",
57
- "Edit(/.agents/skills/feature-review-workflow/**)",
58
- "Edit(/.agents/skills/csharp-qa-gate/**)"
59
- ],
60
- "deny": [
61
- "Read(./.env)",
62
- "Read(./.env.*)",
63
- "Read(./secrets/**)",
64
- "Edit(./secrets/**)",
65
- "Write(./secrets/**)"
66
- ],
67
- "additionalDirectories": [
68
- "c:\\Users\\DanMoisan\\repos\\drm-copilot\\.claude\\skills\\execute-hard-lock"
69
- ]
70
- },
71
- "hooks": {
72
- "PreToolUse": [
73
- {
74
- "matcher": "Bash",
75
- "hooks": [
76
- {
77
- "type": "command",
78
- "command": "pwsh -NoProfile -File .codex/hooks/validate-bash.ps1"
79
- },
80
- {
81
- "type": "command",
82
- "command": "pwsh -NoProfile -File .codex/hooks/enforce-promotion-mcp-only.ps1"
83
- }
84
- ]
85
- },
86
- {
87
- "matcher": "Write|Edit",
88
- "hooks": [
89
- {
90
- "type": "command",
91
- "command": "pwsh -NoProfile -File .codex/hooks/check-python-test-purity.ps1"
92
- },
93
- {
94
- "type": "command",
95
- "command": "pwsh -NoProfile -File .codex/hooks/enforce-python-batch-budget.ps1"
96
- },
97
- {
98
- "type": "command",
99
- "command": "pwsh -NoProfile -File .codex/hooks/check-powershell-test-purity.ps1"
100
- },
101
- {
102
- "type": "command",
103
- "command": "pwsh -NoProfile -File .codex/hooks/enforce-powershell-batch-budget.ps1"
104
- },
105
- {
106
- "type": "command",
107
- "command": "pwsh -NoProfile -File .codex/hooks/enforce-evidence-locations.ps1"
108
- }
109
- ]
110
- }
111
- ],
112
- "SubagentStop": [
113
- {
114
- "matcher": "atomic-planner|atomic-executor|feature-review|task-researcher|prd-feature|staged-review|epic-review|status-updater|python-typed-engineer|powershell-typed-engineer|csharp-typed-engineer|typescript-engineer",
115
- "hooks": [
116
- {
117
- "type": "command",
118
- "command": "pwsh -NoProfile -Command \"$input = $env:CLAUDE_HOOK_INPUT | ConvertFrom-Json; $output = $input.output; if (-not ($output -match '(plan-path|research-path|review-artifact|PREFLIGHT|evidence/)')) { Write-Error 'Subagent stopped without required completion artifact path'; exit 1 }; exit 0\""
119
- }
120
- ]
121
- },
122
- {
123
- "matcher": "feature-review",
124
- "hooks": [
125
- {
126
- "type": "command",
127
- "command": "pwsh -NoProfile -File .codex/hooks/validate-feature-review-coverage.ps1"
128
- }
129
- ]
130
- }
131
- ]
132
- },
133
- "enabledPlugins": {
134
- "skill-creator@claude-plugins-official": true
135
- },
136
- "defaultPermissionMode": "bypassPermissions"
137
- }
1
+ default_permissions = ":danger-full-access"
2
+
3
+ [mcp_servers.drm-copilot]
4
+ command = "npx"
5
+ args = ["-y", "@danmoisan/drm-copilot-mcp"]
6
+ required = true
7
+ enabled_tools = [
8
+ "collect_commit_context",
9
+ "collect_pr_context",
10
+ "run_codex_native_converter",
11
+ "push_down_copilot_customizations",
12
+ "push_down_codex_and_agents_customizations",
13
+ "push_down_claude_customizations",
14
+ "new_potential_bug_entry",
15
+ "new_potential_entry",
16
+ "link_parent_child",
17
+ "potential_to_issue",
18
+ "new_active_feature_folder",
19
+ "run_poshqc_format",
20
+ "run_poshqc_analyze",
21
+ "run_poshqc_test",
22
+ "run_poshqc_analyze_autofix",
23
+ "run_poshqc_suite",
24
+ "resolve_policy_audit_template_asset",
25
+ "resolve_execute_hard_lock_prompt",
26
+ "resolve_atomic_plan_prompt",
27
+ "validate_orchestration_artifacts",
28
+ ]
29
+ default_tools_approval_mode = "prompt"
30
+
31
+ [mcp_servers.drm-copilot.tools.validate_orchestration_artifacts]
32
+ approval_mode = "approve"
33
+
34
+ [features]
35
+ multi_agent = true
36
+
37
+ [[hooks.PreToolUse]]
38
+ matcher = "Bash"
39
+ command = "pwsh -NoProfile -File .codex/hooks/validate-bash.ps1"
40
+
41
+ [[hooks.PreToolUse]]
42
+ matcher = "Bash"
43
+ command = "pwsh -NoProfile -File .codex/hooks/enforce-promotion-mcp-only.ps1"
44
+
45
+ [[hooks.PreToolUse]]
46
+ matcher = "Bash"
47
+ command = "pwsh -NoProfile -File .codex/hooks/enforce-orchestration-preimplementation-gate.ps1"
48
+
49
+ [[hooks.PreToolUse]]
50
+ matcher = "Write|Edit"
51
+ command = "pwsh -NoProfile -File .codex/hooks/check-python-test-purity.ps1"
52
+
53
+ [[hooks.PreToolUse]]
54
+ matcher = "Write|Edit"
55
+ command = "pwsh -NoProfile -File .codex/hooks/enforce-python-batch-budget.ps1"
56
+
57
+ [[hooks.PreToolUse]]
58
+ matcher = "Write|Edit"
59
+ command = "pwsh -NoProfile -File .codex/hooks/check-powershell-test-purity.ps1"
60
+
61
+ [[hooks.PreToolUse]]
62
+ matcher = "Write|Edit"
63
+ command = "pwsh -NoProfile -File .codex/hooks/enforce-powershell-batch-budget.ps1"
64
+
65
+ [[hooks.PreToolUse]]
66
+ matcher = "Write|Edit"
67
+ command = "pwsh -NoProfile -File .codex/hooks/enforce-evidence-locations.ps1"
68
+
69
+ [[hooks.PreToolUse]]
70
+ matcher = "Write|Edit"
71
+ command = "pwsh -NoProfile -File .codex/hooks/enforce-orchestration-preimplementation-gate.ps1"
72
+
73
+ [[hooks.PreToolUse]]
74
+ matcher = "Write|Edit"
75
+ command = "pwsh -NoProfile -File .codex/hooks/enforce-checkpoint-monotonic.ps1"
76
+
77
+ [[hooks.PreToolUse]]
78
+ matcher = "Write|Edit"
79
+ command = "pwsh -NoProfile -File .codex/hooks/enforce-completion-consistency.ps1"
80
+
81
+ [[hooks.PreToolUse]]
82
+ matcher = "Agent"
83
+ command = "pwsh -NoProfile -File .codex/hooks/enforce-orchestration-preimplementation-gate.ps1"
84
+
85
+ [[hooks.SubagentStop]]
86
+ matcher = "feature-review|feature-reviewer"
87
+ command = "pwsh -NoProfile -File .codex/hooks/validate-feature-review-coverage.ps1"
88
+
89
+ [permissions.orchestrator-workspace]
90
+ description = "Workspace editing for deterministic orchestration with secret-path deny rules."
91
+ extends = ":workspace"
92
+
93
+ [permissions.orchestrator-workspace.filesystem]
94
+ glob_scan_max_depth = 4
95
+
96
+ [permissions.orchestrator-workspace.filesystem.":workspace_roots"]
97
+ "**/.env" = "deny"
98
+ "**/.env.*" = "deny"
99
+ "secrets" = "deny"
100
+ "secrets/**" = "deny"
101
+
102
+ [permissions.orchestrator-workspace.network]
103
+ enabled = true
104
+
105
+ [permissions.orchestrator-workspace.network.domains]
106
+ "github.com" = "allow"
107
+ "api.github.com" = "allow"
108
+ "objects.githubusercontent.com" = "allow"
109
+ "registry.npmjs.org" = "allow"
110
+ "pypi.org" = "allow"
111
+ "files.pythonhosted.org" = "allow"