@danmoisan/drm-copilot-mcp 0.0.1 → 0.0.5

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 (156) hide show
  1. package/out/mcp-server.js +5 -1
  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 +16 -1
  15. package/resources/claude-customizations/.claude/agents/powershell-typed-engineer.md +1 -1
  16. package/resources/claude-customizations/.claude/hooks/enforce-checkpoint-monotonic.ps1 +245 -0
  17. package/resources/claude-customizations/.claude/hooks/enforce-completion-consistency.ps1 +273 -0
  18. package/resources/claude-customizations/.claude/hooks/enforce-feature-folder-order.ps1 +148 -0
  19. package/resources/claude-customizations/.claude/hooks/enforce-pr-author-skill.ps1 +190 -0
  20. package/resources/claude-customizations/.claude/hooks/enforce-prd-feature-before-planner.ps1 +216 -0
  21. package/resources/claude-customizations/.claude/hooks/enforce-promotion-mcp-only.ps1 +84 -15
  22. package/resources/claude-customizations/.claude/hooks/validate-executor-output.ps1 +1 -1
  23. package/resources/claude-customizations/.claude/hooks/validate-feature-review-coverage.ps1 +75 -5
  24. package/resources/claude-customizations/.claude/hooks/validate-orchestrator-output.ps1 +93 -0
  25. package/resources/claude-customizations/.claude/hooks/validate-task-researcher-output.ps1 +68 -0
  26. package/resources/claude-customizations/.claude/rules/architecture-boundaries.md +46 -0
  27. package/resources/claude-customizations/.claude/rules/benchmark-baselines.md +35 -0
  28. package/resources/claude-customizations/.claude/rules/ci-workflows.md +36 -0
  29. package/resources/claude-customizations/.claude/rules/csharp.md +62 -16
  30. package/resources/claude-customizations/.claude/rules/general-code-change.md +12 -3
  31. package/resources/claude-customizations/.claude/rules/general-unit-test.md +47 -2
  32. package/resources/claude-customizations/.claude/rules/orchestrator-state.md +39 -0
  33. package/resources/claude-customizations/.claude/rules/powershell.md +5 -5
  34. package/resources/claude-customizations/.claude/rules/python.md +4 -3
  35. package/resources/claude-customizations/.claude/rules/quality-tiers.md +51 -0
  36. package/resources/claude-customizations/.claude/rules/typescript.md +37 -8
  37. package/resources/claude-customizations/.claude/settings.json +37 -12
  38. package/resources/claude-customizations/.claude/skills/atomic-plan-contract/SKILL.md +2 -2
  39. package/resources/claude-customizations/.claude/skills/csharp-qa-gate/SKILL.md +25 -10
  40. package/resources/claude-customizations/.claude/skills/execute-hard-lock/SKILL.md +6 -6
  41. package/resources/claude-customizations/.claude/skills/feature-promotion-lifecycle/SKILL.md +8 -8
  42. package/resources/claude-customizations/.claude/skills/feature-review-workflow/SKILL.md +17 -6
  43. package/resources/claude-customizations/.claude/skills/human-exception-runbook/SKILL.md +52 -0
  44. package/resources/claude-customizations/.claude/skills/human-exception-runbook/example.runbook.md +36 -0
  45. package/resources/claude-customizations/.claude/skills/invoke-csharp-engineer/SKILL.md +4 -4
  46. package/resources/claude-customizations/.claude/skills/orchestrate/SKILL.md +96 -3
  47. package/resources/claude-customizations/.claude/skills/policy-audit-template-usage/SKILL.md +3 -3
  48. package/resources/claude-customizations/.claude/skills/powershell-qa-gate/SKILL.md +4 -4
  49. package/resources/claude-customizations/.claude/skills/pr-base-branch-merge-base/SKILL.md +3 -3
  50. package/resources/claude-customizations/.claude/skills/python-qa-gate/SKILL.md +1 -1
  51. package/resources/claude-customizations/.claude/skills/remediation-handoff-atomic-planner/SKILL.md +90 -17
  52. package/resources/claude-dir-customizations/.mcp.json +3 -3
  53. package/resources/codex-and-agents-customizations/.agents/README.md +1 -1
  54. package/resources/codex-and-agents-customizations/.agents/skills/acceptance-criteria-tracking/SKILL.md +0 -5
  55. package/resources/codex-and-agents-customizations/.agents/skills/architecture-boundaries/SKILL.md +52 -0
  56. package/resources/codex-and-agents-customizations/.agents/skills/atomic-plan-contract/SKILL.md +16 -8
  57. package/resources/codex-and-agents-customizations/.agents/skills/benchmark-baselines/SKILL.md +44 -0
  58. package/resources/codex-and-agents-customizations/.agents/skills/ci-workflows/SKILL.md +45 -0
  59. package/resources/codex-and-agents-customizations/.agents/skills/commit-message/SKILL.md +3 -11
  60. package/resources/codex-and-agents-customizations/.agents/skills/csharp/SKILL.md +1 -5
  61. package/resources/codex-and-agents-customizations/.agents/skills/csharp-change-budget-router/SKILL.md +1 -6
  62. package/resources/codex-and-agents-customizations/.agents/skills/csharp-orchestration-state-machine/SKILL.md +0 -5
  63. package/resources/codex-and-agents-customizations/.agents/skills/csharp-qa-gate/SKILL.md +0 -5
  64. package/resources/codex-and-agents-customizations/.agents/skills/evidence-and-timestamp-conventions/SKILL.md +0 -5
  65. package/resources/codex-and-agents-customizations/.agents/skills/execute-hard-lock/SKILL.md +8 -17
  66. package/resources/codex-and-agents-customizations/.agents/skills/feature-promotion-lifecycle/SKILL.md +13 -14
  67. package/resources/codex-and-agents-customizations/.agents/skills/feature-review-workflow/SKILL.md +1 -6
  68. package/resources/codex-and-agents-customizations/.agents/skills/fill-feature-docs/SKILL.md +0 -5
  69. package/resources/codex-and-agents-customizations/.agents/skills/general-code-change/SKILL.md +86 -0
  70. package/resources/codex-and-agents-customizations/.agents/skills/general-unit-test/SKILL.md +111 -0
  71. package/resources/codex-and-agents-customizations/.agents/skills/human-exception-runbook/SKILL.md +57 -0
  72. package/resources/codex-and-agents-customizations/.agents/skills/human-exception-runbook/example.runbook.md +36 -0
  73. package/resources/codex-and-agents-customizations/.agents/skills/invoke-csharp-engineer/SKILL.md +0 -9
  74. package/resources/codex-and-agents-customizations/.agents/skills/invoke-powershell-engineer/SKILL.md +0 -9
  75. package/resources/codex-and-agents-customizations/.agents/skills/invoke-python-engineer/SKILL.md +0 -9
  76. package/resources/codex-and-agents-customizations/.agents/skills/make-skill-template/SKILL.md +0 -5
  77. package/resources/codex-and-agents-customizations/.agents/skills/orchestrate/SKILL.md +93 -8
  78. package/resources/codex-and-agents-customizations/.agents/skills/orchestrator-state/SKILL.md +48 -0
  79. package/resources/codex-and-agents-customizations/.agents/skills/orchestrator-workflow/SKILL.md +61 -2
  80. package/resources/codex-and-agents-customizations/.agents/skills/policy-audit-template-usage/SKILL.md +3 -8
  81. package/resources/codex-and-agents-customizations/.agents/skills/policy-compliance-order/SKILL.md +0 -10
  82. package/resources/codex-and-agents-customizations/.agents/skills/powershell/SKILL.md +4 -8
  83. package/resources/codex-and-agents-customizations/.agents/skills/powershell-change-budget-router/SKILL.md +1 -6
  84. package/resources/codex-and-agents-customizations/.agents/skills/powershell-orchestration-state-machine/SKILL.md +0 -5
  85. package/resources/codex-and-agents-customizations/.agents/skills/powershell-qa-gate/SKILL.md +3 -9
  86. package/resources/codex-and-agents-customizations/.agents/skills/pr-author/SKILL.md +1 -9
  87. package/resources/codex-and-agents-customizations/.agents/skills/pr-base-branch-merge-base/SKILL.md +4 -9
  88. package/resources/codex-and-agents-customizations/.agents/skills/pr-context-artifacts/SKILL.md +0 -5
  89. package/resources/codex-and-agents-customizations/.agents/skills/python/SKILL.md +1 -5
  90. package/resources/codex-and-agents-customizations/.agents/skills/python-change-budget-router/SKILL.md +1 -6
  91. package/resources/codex-and-agents-customizations/.agents/skills/python-qa-gate/SKILL.md +0 -5
  92. package/resources/codex-and-agents-customizations/.agents/skills/python-suppressions/SKILL.md +2 -6
  93. package/resources/codex-and-agents-customizations/.agents/skills/quality-tiers/SKILL.md +57 -0
  94. package/resources/codex-and-agents-customizations/.agents/skills/remediation-handoff-atomic-planner/SKILL.md +0 -5
  95. package/resources/codex-and-agents-customizations/.agents/skills/repo-automation-adapter/SKILL.md +91 -72
  96. package/resources/codex-and-agents-customizations/.agents/skills/repo-automation-adapter/agents/openai.yaml +1 -1
  97. package/resources/codex-and-agents-customizations/.agents/skills/research-issue/SKILL.md +0 -10
  98. package/resources/codex-and-agents-customizations/.agents/skills/review-epic/SKILL.md +0 -5
  99. package/resources/codex-and-agents-customizations/.agents/skills/review-feature/SKILL.md +0 -5
  100. package/resources/codex-and-agents-customizations/.agents/skills/review-staged/SKILL.md +0 -5
  101. package/resources/codex-and-agents-customizations/.agents/skills/self-explanatory-code-commenting/SKILL.md +2 -6
  102. package/resources/codex-and-agents-customizations/.agents/skills/skill-canonical-location-audit/SKILL.md +0 -5
  103. package/resources/codex-and-agents-customizations/.agents/skills/tonality/SKILL.md +86 -0
  104. package/resources/codex-and-agents-customizations/.agents/skills/translate-claude-to-codex/SKILL.md +297 -0
  105. package/resources/codex-and-agents-customizations/.agents/skills/translate-copilot-to-claude/SKILL.md +0 -22
  106. package/resources/codex-and-agents-customizations/.agents/skills/typescript/SKILL.md +1 -5
  107. package/resources/codex-and-agents-customizations/.agents/skills/typescript-suppressions/SKILL.md +2 -6
  108. package/resources/codex-and-agents-customizations/.agents/skills/update-status/SKILL.md +0 -5
  109. package/resources/codex-and-agents-customizations/.codex/agents/atomic-executor.toml +5 -5
  110. package/resources/codex-and-agents-customizations/.codex/agents/orchestrator.toml +91 -63
  111. package/resources/codex-and-agents-customizations/.codex/agents/powershell-atomic-executor.toml +1 -1
  112. package/resources/codex-and-agents-customizations/.codex/agents/powershell-typed-engineer.toml +1 -1
  113. package/resources/codex-and-agents-customizations/.codex/config.toml +51 -136
  114. package/resources/codex-and-agents-customizations/.codex/hooks/enforce-promotion-mcp-only.ps1 +1 -1
  115. package/resources/codex-and-agents-customizations/.codex/prompts/orchestrate-work.md +4 -3
  116. package/resources/codex-and-agents-customizations/.codex/scripts/post-codex-worktree-session.ps1 +5 -0
  117. package/resources/codex-and-agents-customizations/.github/workflows/_validate-orchestrator-state.yml +68 -0
  118. package/resources/codex-and-agents-customizations/.github/workflows/validate-orchestrator-state.yml +15 -0
  119. package/resources/config/orchestration-routing.json +84 -0
  120. package/resources/customizations/.github/agents/Powershell DI Unit Test Engineer.agent.md +1 -1
  121. package/resources/customizations/.github/agents/atomic_executor.agent.md +1 -1
  122. package/resources/customizations/.github/agents/atomic_planning.agent.md +10 -10
  123. package/resources/customizations/.github/agents/csharp-orchestrator.agent.md +6 -2
  124. package/resources/customizations/.github/agents/feature-review.agent.md +2 -2
  125. package/resources/customizations/.github/agents/orchestrator.agent.md +6 -2
  126. package/resources/customizations/.github/agents/powershell-atomic-executor.agent.md +4 -4
  127. package/resources/customizations/.github/agents/powershell-atomic-planning.agent.md +10 -10
  128. package/resources/customizations/.github/agents/powershell-orchestrator.agent.md +6 -2
  129. package/resources/customizations/.github/agents/powershell-typed-engineer.agent.md +2 -2
  130. package/resources/customizations/.github/agents/python-orchestrator.agent.md +6 -2
  131. package/resources/customizations/.github/agents/staged-review.agent.md +1 -1
  132. package/resources/customizations/.github/instructions/powershell-code-change.instructions.md +6 -6
  133. package/resources/customizations/.github/prompts/generate-commit-message-repo.prompt.md +1 -1
  134. package/resources/customizations/.github/prompts/orchestrate-csharp-work.prompt.md +5 -3
  135. package/resources/customizations/.github/prompts/orchestrate-work.prompt.md +5 -3
  136. package/resources/customizations/.github/skills/atomic-plan-contract/SKILL.md +14 -1
  137. package/resources/customizations/.github/skills/feature-promotion-lifecycle/SKILL.md +11 -7
  138. package/resources/customizations/.github/skills/feature-review-workflow/SKILL.md +10 -1
  139. package/resources/customizations/.github/skills/pr-base-branch-merge-base/SKILL.md +2 -2
  140. package/resources/customizations/.github/skills/remediation-handoff-atomic-planner/SKILL.md +5 -0
  141. package/resources/powershell/PoshQC/settings/pester.runsettings.psd1 +7 -0
  142. package/resources/scripts/dev_tools/_orchestrator_state_human_interaction.py +127 -0
  143. package/resources/scripts/dev_tools/_orchestrator_state_routing.py +216 -0
  144. package/resources/scripts/dev_tools/push_down_claude_customizations.py +191 -5
  145. package/resources/scripts/dev_tools/validate_orchestration_artifacts.py +103 -411
  146. package/resources/scripts/dev_tools/validate_orchestration_review_artifacts.py +107 -0
  147. package/resources/scripts/dev_tools/validate_orchestrator_state.py +428 -0
  148. package/resources/scripts/dev_tools/validate_policy_audit_artifact.py +448 -0
  149. package/resources/templates/push_down_claude_customizations.py +227 -6
  150. package/resources/claude-customizations/.claude/agent-memory/orchestrator/feedback_repo_root_is_source_of_truth.md +0 -11
  151. package/resources/claude-customizations/.claude/agent-memory/orchestrator/feedback_vsce_verify_package_location.md +0 -19
  152. package/resources/claude-customizations/.claude/agent-memory/orchestrator/project_extension_location.md +0 -11
  153. package/resources/claude-customizations/.claude/agent-memory/prd-feature/MEMORY.md +0 -1
  154. package/resources/claude-customizations/.claude/agent-memory/prd-feature/project_push_down_pattern.md +0 -13
  155. package/resources/claude-customizations/.claude/agent-memory/task-researcher/MEMORY.md +0 -3
  156. package/resources/claude-customizations/.claude/agent-memory/task-researcher/project_push_down_claude_dir.md +0 -11
@@ -30,11 +30,22 @@ Use as needed:
30
30
  - Required delegated specialists:
31
31
  - `atomic-planner`
32
32
  - `atomic-executor`
33
+ - `feature-review`
33
34
  - `feature-reviewer`
35
+ - `task-researcher`
36
+ - `prd-feature`
37
+ - `staged-review`
38
+ - `epic-review`
39
+ - `status-updater`
40
+ - `python-typed-engineer`
41
+ - `powershell-typed-engineer`
42
+ - `csharp-typed-engineer`
43
+ - `typescript-engineer`
34
44
  - `commit-steward`
35
45
  - Deterministic availability rule:
36
- - if the host exposes `spawn_agent`, treat all four required delegated specialists as available,
46
+ - if the host exposes `spawn_agent` and the required `.codex/agents/<name>.toml` file exists, treat that delegated specialist as available,
37
47
  - do not infer unavailability from missing nicknames, missing prior agent instances, or lack of a dedicated launcher alias.
48
+ - Every required delegated specialist must exist as a native Codex agent under `.codex/agents/`. If a required agent file is missing, set `blocked_reason` to `spawn_agent_unavailable` and stop.
38
49
  - Required delegated steps MUST delegate or stop execution.
39
50
  - If a required delegated handoff cannot be started, resumed, or completed with a receipt, persist blocked state and stop. Do not perform that step directly.
40
51
  - Direct local execution is allowed only for workflow steps that are not designated below as required delegated handoffs.
@@ -44,6 +55,9 @@ Use as needed:
44
55
  Canonical checkpoint path:
45
56
  - `artifacts/orchestration/orchestrator-state.json`
46
57
 
58
+ Canonical route matrix:
59
+ - `config/orchestration-routing.json`
60
+
47
61
  Persist and reuse these fields exactly:
48
62
  - `objective`
49
63
  - `change_budget_estimate`
@@ -73,6 +87,15 @@ Persist and reuse these fields exactly:
73
87
  - `step10_status`
74
88
  - `delegation_receipts`
75
89
  - `blocked_reason`
90
+ - `route_id`
91
+ - `required_agents`
92
+ - `required_skills`
93
+ - `required_mcp_tools`
94
+ - `skill_receipts`
95
+ - `mcp_call_receipts`
96
+ - `local_execution_overrides`
97
+ - `delegation_bypasses`
98
+ - `lifecycle_operations`
76
99
 
77
100
  For small-path runs, also persist:
78
101
  - `bootstrap_mode`
@@ -115,6 +138,32 @@ Delegation receipt schema:
115
138
  - `result_signal`
116
139
  - `artifact_paths`
117
140
 
141
+ Skill receipt schema:
142
+ - `skill_receipts` MUST be a list of objects with:
143
+ - `skill`
144
+ - `required`
145
+ - `acknowledged_at_phase`
146
+ - `evidence`
147
+
148
+ MCP receipt schema:
149
+ - `mcp_call_receipts` MUST be a list of objects with:
150
+ - `tool`
151
+ - `ok`
152
+ - `evidence`
153
+
154
+ Completion-state invariants:
155
+ - `route_id` MUST identify an entry in `config/orchestration-routing.json`.
156
+ - `required_agents`, `required_skills`, and `required_mcp_tools` MUST exactly
157
+ match the selected route matrix entry.
158
+ - every required agent MUST have a matching `delegation_receipts[].agent_name`.
159
+ - every required skill MUST have a matching required `skill_receipts[].skill`
160
+ with non-empty evidence.
161
+ - every required MCP tool MUST have a successful `mcp_call_receipts[].tool`
162
+ receipt with non-empty evidence.
163
+ - `local_execution_overrides` and `delegation_bypasses` MUST be empty lists at
164
+ completion.
165
+ - every recorded `lifecycle_operations[]` item MUST use `surface: "mcp"`.
166
+
118
167
  Required-delegation step map:
119
168
  - small path:
120
169
  - Step 5 -> `atomic-planner`
@@ -170,6 +219,9 @@ If an exact signal or required path field is missing, set the relevant step to `
170
219
  4. If the scope is primarily PowerShell, use `powershell-change-budget-router`.
171
220
  5. If the scope is mixed-language, ambiguous, or unsupported by an existing change-budget router, fail closed to the large path.
172
221
  6. Treat any request outside the applicable small-path budget as large path.
222
+ 7. Select `route_id` from `config/orchestration-routing.json` and persist the
223
+ exact required agent, skill, and MCP lists from the matrix before starting
224
+ lifecycle automation.
173
225
 
174
226
  ## Small Path
175
227
 
@@ -199,7 +251,8 @@ Required behavior:
199
251
  7. Spawn `atomic-executor` to execute Phase 0 only.
200
252
  - Record a delegation receipt and set `step6_status` to `verified` before branching
201
253
  - If the handoff cannot be started or does not return a receipt, set `step6_status` to `blocked`, set `blocked_reason`, and stop
202
- 8. If the request is manual bootstrap, persist the resume checkpoint and stop after Phase 0.
254
+ 8. If and only if the initial user request explicitly opted into manual orchestration from the beginning, persist the resume checkpoint and stop after Phase 0.
255
+ - Otherwise manual bootstrap is prohibited; continue automated execution.
203
256
  9. Otherwise continue with constrained implementation:
204
257
  - steps that are not modeled as required delegated handoffs may execute directly while staying within the approved plan and applicable repo policy
205
258
  10. Validate the delivered work against `${feature-folder}/issue.md` and persist plan or acceptance-criteria checkoffs before review.
@@ -287,6 +340,9 @@ Do not claim mission completion until all of the following are true:
287
340
 
288
341
  - the selected path completed end to end
289
342
  - all required delegations completed with receipts
343
+ - all required skills have `skill_receipts` with evidence
344
+ - all required MCP tools have successful `mcp_call_receipts`
345
+ - no local execution override or delegation bypass is recorded
290
346
  - the checkpoint is updated with the final state
291
347
  - the canonical checkpoint path was used without sidecar replacement or backup substitution
292
348
  - `${relativeFile}` is a real promoted-input path and `${issue-num}` is numeric when lifecycle setup was required
@@ -299,6 +355,8 @@ Do not claim mission completion until all of the following are true:
299
355
  - any required remediation artifacts exist on disk and the latest re-review is clean
300
356
  - any required remediation loop run also includes a remediation execution receipt, a remediation commit receipt, and a final `REVIEW_STATUS: PASS`
301
357
  - validator-backed checks for the approved plan, policy audit, code review, feature audit, and checkpoint state pass
358
+ - the canonical checkpoint passes `validate_orchestration_artifacts` with `artifact_type: "orchestrator-state"` and `require_complete: true`
359
+ - required GitHub checks pass for the current PR head SHA before PR/DONE completion
302
360
 
303
361
  ## Hard Constraints
304
362
 
@@ -314,4 +372,5 @@ Do not claim mission completion until all of the following are true:
314
372
  - Do not create replacement audit artifacts yourself for any required delegated review step.
315
373
  - Do not execute required delegated steps locally as a fallback.
316
374
  - Do not accept stale PR-context artifacts, unsupported checklist checkoffs, or missing required evidence as PASS outcomes.
375
+ - Do not treat Codex lifecycle hooks as the hard completion boundary; use deterministic validator and CI gates for completion enforcement.
317
376
  - Do not claim completion without reporting the checkpoint path and the created or updated artifact paths.
@@ -1,8 +1,3 @@
1
- # Converted skill
2
-
3
- Applied rewrites:
4
- - None
5
-
6
1
  ---
7
2
  name: policy-audit-template-usage
8
3
  description: 'Policy audit template usage and output requirements. Use when creating policy-audit.<timestamp>.md artifacts from the repo templates.'
@@ -20,13 +15,13 @@ Use this skill when:
20
15
 
21
16
  ## Template Source
22
17
 
23
- - Required template source: the MCP server tool `mcp__drmCopilotExtension__resolve_policy_audit_template_asset` with asset selector `template`.
18
+ - Required template source: the MCP server tool `mcp__drm-copilot__resolve_policy_audit_template_asset` with asset selector `template`.
24
19
  - The resolved MCP asset is authoritative even when a matching repo file also exists.
25
20
  - If MCP asset resolution fails, create a minimal policy audit artifact marked BLOCKED and document the missing template resolution.
26
21
 
27
22
  ## Required Steps
28
23
 
29
- 1) Resolve the policy-audit template through the MCP server tool `mcp__drmCopilotExtension__resolve_policy_audit_template_asset` with asset `template`, then copy the resolved asset to the target location using an ISO-8601 timestamp.
24
+ 1) Resolve the policy-audit template through the MCP server tool `mcp__drm-copilot__resolve_policy_audit_template_asset` with asset `template`, then copy the resolved asset to the target location using an ISO-8601 timestamp.
30
25
  2) Replace placeholders with actual values (component, date, files under test, commits).
31
26
  3) Remove any template usage instructions per template guidance.
32
27
  4) Mark each section PASS/FAIL/N/A using the template’s expected conventions.
@@ -44,7 +39,7 @@ Use this skill when:
44
39
  - `## 10. Compliance Verdict`
45
40
  - `## Appendix A: Test Inventory`
46
41
  - `## Appendix B: Toolchain Commands Reference`
47
- 6) Run the `mcp__drmCopilotExtension__validate_orchestration_artifacts` MCP tool with `artifact_type: "policy-audit"` and `artifact_path: <path>` and fail closed on any non-zero result.
42
+ 6) Run the `mcp__drm-copilot__validate_orchestration_artifacts` MCP tool with `artifact_type: "policy-audit"` and `artifact_path: <path>` and fail closed on any non-zero result.
48
43
 
49
44
  ## Invalid Outputs
50
45
 
@@ -1,13 +1,3 @@
1
- # Converted skill
2
-
3
- Applied rewrites:
4
- - Rewrite merged standing-guidance source paths to the native AGENTS.md target.
5
- - Rewrite merged standing-guidance source paths to the native AGENTS.md target.
6
- - Rewrite merged standing-guidance source paths to the native AGENTS.md target.
7
- - Rewrite GitHub Copilot instruction-directory references to the native skill root.
8
- - Rewrite Claude rule paths to shared skill paths.
9
- - Rewrite Claude rules-directory references to the native skill root.
10
-
11
1
  ---
12
2
  name: policy-compliance-order
13
3
  description: 'Repository policy compliance order and hard constraints. Use when an agent must read mandatory policy files, apply repo-wide constraints, or restate policy precedence without duplicating blocks across agents.'
@@ -1,9 +1,5 @@
1
- # Converted skill
2
-
3
- Applied rewrites:
4
- - None
5
-
6
1
  ---
2
+ name: powershell
7
3
  paths:
8
4
  - "**/*.ps1"
9
5
  - "**/*.psm1"
@@ -17,10 +13,10 @@ This rule file summarizes the PowerShell-specific policies for this repository.
17
13
 
18
14
  ## Toolchain
19
15
 
20
- 1. **Formatting — Invoke-Formatter**: Format all PowerShell files via PoshQC. MCP command: `mcp__drmCopilotExtension__run_poshqc_format`
21
- 2. **Linting — PSScriptAnalyzer**: Run PoshQC analyzer with repo settings. MCP command: `mcp__drmCopilotExtension__run_poshqc_analyze`. Optional autofix: `mcp__drmCopilotExtension__run_poshqc_analyze_autofix`
16
+ 1. **Formatting — Invoke-Formatter**: Format all PowerShell files via PoshQC. MCP command: `mcp__drm-copilot__run_poshqc_format`
17
+ 2. **Linting — PSScriptAnalyzer**: Run PoshQC analyzer with repo settings. MCP command: `mcp__drm-copilot__run_poshqc_analyze`. Optional autofix: `mcp__drm-copilot__run_poshqc_analyze_autofix`
22
18
  3. **Type checking**: Not applicable for PowerShell; skip to testing.
23
- 4. **Testing — Pester (v5.x)**: Run tests via MCP. MCP command: `mcp__drmCopilotExtension__run_poshqc_test`. Use repo config at `scripts/powershell/PoshQC/settings/pester.runsettings.psd1`.
19
+ 4. **Testing — Pester (v5.x)**: Run tests via MCP. MCP command: `mcp__drm-copilot__run_poshqc_test`. Use repo config at `scripts/powershell/PoshQC/settings/pester.runsettings.psd1`.
24
20
 
25
21
  Run the toolchain in order: format → analyze → test. Restart from step 1 if any step fails or changes files. Use the MCP server functions; do not substitute VS Code task wrappers.
26
22
 
@@ -1,8 +1,3 @@
1
- # Converted skill
2
-
3
- Applied rewrites:
4
- - None
5
-
6
1
  ---
7
2
  name: powershell-change-budget-router
8
3
  description: Budget-first routing contract for PowerShell work: estimate production-file scope, choose small vs large path, enforce direct-mode escalation to orchestrator, and use the VS Code extension command surface for promotion lifecycle steps when available.
@@ -29,7 +24,7 @@ Use this skill when:
29
24
  ## Orchestrated Small-Path Requirements
30
25
 
31
26
  When routed through `powershell-orchestrator`, small path still requires lifecycle scaffolding before implementation:
32
- - invoke promotion/folder lifecycle steps through `vscode/runCommand` + extension access per `feature-promotion-lifecycle` when available; use script/CLI fallback only when direct extension command execution is unavailable,
27
+ - invoke promotion/folder lifecycle steps through the `drm-copilot` MCP tools required by `repo-automation-adapter`. If the MCP server or required tool is unavailable, stop before promotion,
33
28
  - promote potential item to GitHub issue with `--work-mode minor-audit`,
34
29
  - create active feature folder with `--work-mode minor-audit`,
35
30
  - delegate minimal-audit plan creation to `atomic_planner` with `DIRECTIVE: MINIMAL-AUDIT PLAN REQUIRED`,
@@ -1,8 +1,3 @@
1
- # Converted skill
2
-
3
- Applied rewrites:
4
- - None
5
-
6
1
  ---
7
2
  name: powershell-orchestration-state-machine
8
3
  description: Checkpoint schema and resume protocol for long-running PowerShell orchestration workflows.
@@ -1,9 +1,3 @@
1
- # Converted skill
2
-
3
- Applied rewrites:
4
- - Rewrite Claude skill paths to shared skill paths.
5
- - Rewrite Claude rule paths to shared skill paths.
6
-
7
1
  ---
8
2
  name: powershell-qa-gate
9
3
  description: Final QA gate for PowerShell changes. Executes the full PoshQC format -> analyze -> test toolchain (with coverage where enforced), compares against a captured baseline, enforces zero-regression deltas, and produces the required reporting block before the agent declares the change complete.
@@ -33,9 +27,9 @@ Before invoking this gate, the agent must have:
33
27
 
34
28
  Run the full toolchain in this exact order. If any step fails or modifies files, fix the issue and restart from step 1. Do not stop the loop until all steps complete without errors in a single pass.
35
29
 
36
- 1. `mcp__drmCopilotExtension__run_poshqc_format`
37
- 2. `mcp__drmCopilotExtension__run_poshqc_analyze`
38
- 3. `mcp__drmCopilotExtension__run_poshqc_test`
30
+ 1. `mcp__drm-copilot__run_poshqc_format`
31
+ 2. `mcp__drm-copilot__run_poshqc_analyze`
32
+ 3. `mcp__drm-copilot__run_poshqc_test`
39
33
  4. Coverage check (when enforced by task/repo flow) — use the Pester coverage output from step 3 or the repo coverage task.
40
34
 
41
35
  If the environment prevents running any tool, stop and report the change as **unverified**. Do not declare completion.
@@ -1,14 +1,6 @@
1
- # Converted skill
2
-
3
- Applied rewrites:
4
- - None
5
-
6
1
  ---
7
2
  name: pr-author
8
3
  description: Write a GitHub-ready pull request body from the canonical PR-context bundle with strict verification and auto-close rules.
9
- allowed-tools:
10
- - Read
11
- - "Bash(git log *)"
12
4
  ---
13
5
 
14
6
  # PR Author Skill
@@ -52,4 +44,4 @@ Use these sections in this order:
52
44
  - Only mention an issue/PR number if it appears verbatim in the provided context.
53
45
  - Do not treat PR numbers as issues.
54
46
  - Auto-close bullets must use exactly `- Closes #NNN` format, sourced only from "Issues to autoclose" or "Author-asserted autoclose issues."
55
- - If GitHub validation is unavailable/unverified, do not emit `Closes`; use the fallback `None` bullet.
47
+ - If GitHub validation is unavailable or unverified, do not emit `Closes`; use the `None` bullet.
@@ -1,11 +1,6 @@
1
- # Converted skill
2
-
3
- Applied rewrites:
4
- - None
5
-
6
1
  ---
7
2
  name: pr-base-branch-merge-base
8
- description: 'Resolve PRBaseBranch for mcp__drmCopilotExtension__collect_pr_context using merge-base ancestry. Use when orchestrators or review workflows need the correct comparison base branch and must select the branch with the most recent common ancestor commit with HEAD.'
3
+ description: 'Resolve PRBaseBranch for mcp__drm-copilot__collect_pr_context using merge-base ancestry. Use when orchestrators or review workflows need the correct comparison base branch and must select the branch with the most recent common ancestor commit with HEAD.'
9
4
  ---
10
5
 
11
6
  # PR Base Branch (Merge-Base)
@@ -15,7 +10,7 @@ Deterministic branch-selection rules for PR context collection.
15
10
  ## When to Use This Skill
16
11
 
17
12
  Use this skill when:
18
- - running `mcp__drmCopilotExtension__collect_pr_context`,
13
+ - running `mcp__drm-copilot__collect_pr_context`,
19
14
  - delegating post-implementation review that depends on `PRBaseBranch`,
20
15
  - constructing PR context artifacts where the base must not be hard-coded.
21
16
 
@@ -42,14 +37,14 @@ Definition of correct base:
42
37
  ## Guardrails
43
38
 
44
39
  - Do not default to `main` unless merge-base resolution fails for all candidates.
45
- - If all candidates fail, surface explicit error context and use repository default branch only as last-resort fallback.
40
+ - If all candidates fail, surface explicit error context and stop unless repository metadata directly identifies the default branch.
46
41
  - Persist chosen `PRBaseBranch` in orchestration state and reuse it within the same run.
47
42
 
48
43
  ## Collector Invocation Rule
49
44
 
50
45
  When invoking PR context collection, pass the resolved base explicitly:
51
46
 
52
- - `mcp__drmCopilotExtension__collect_pr_context` with `base=<resolved-PRBaseBranch>`
47
+ - `mcp__drm-copilot__collect_pr_context` with `base=<resolved-PRBaseBranch>`
53
48
 
54
49
  ## Evidence Recommendation
55
50
 
@@ -1,8 +1,3 @@
1
- # Converted skill
2
-
3
- Applied rewrites:
4
- - None
5
-
6
1
  ---
7
2
  name: pr-context-artifacts
8
3
  description: 'PR context artifact locations and refresh rules. Use when generating, reading, or inlining pr_context summary/appendix artifacts.'
@@ -1,9 +1,5 @@
1
- # Converted skill
2
-
3
- Applied rewrites:
4
- - None
5
-
6
1
  ---
2
+ name: python
7
3
  paths:
8
4
  - "**/*.py"
9
5
  description: Python-specific toolchain and coding standards.
@@ -1,8 +1,3 @@
1
- # Converted skill
2
-
3
- Applied rewrites:
4
- - None
5
-
6
1
  ---
7
2
  name: python-change-budget-router
8
3
  description: Budget-first routing and batch-scope contract for Python work. Estimate production-file scope, choose small vs large path, enforce the 3 production + 3 test per-batch cap, and halt the agent for scope expansion approval when the estimate exceeds the budget.
@@ -64,7 +59,7 @@ If `python-typed-engineer` is invoked directly and estimated scope is `>3` produ
64
59
 
65
60
  When routed through the orchestrator, the small path still requires lifecycle scaffolding before implementation:
66
61
 
67
- - invoke promotion and folder lifecycle steps through `vscode/runCommand` and extension access per `feature-promotion-lifecycle` when available. Use script or CLI fallback only when direct extension command execution is unavailable.
62
+ - invoke promotion and folder lifecycle steps through the `drm-copilot` MCP tools required by `repo-automation-adapter`. If the MCP server or required tool is unavailable, stop before promotion.
68
63
  - promote the potential item to a GitHub issue with `--work-mode minor-audit`,
69
64
  - create the active feature folder with `--work-mode minor-audit`,
70
65
  - delegate minimal-audit plan creation to `atomic_planner` with `DIRECTIVE: MINIMAL-AUDIT PLAN REQUIRED`,
@@ -1,8 +1,3 @@
1
- # Converted skill
2
-
3
- Applied rewrites:
4
- - Rewrite Claude skill paths to shared skill paths.
5
-
6
1
  ---
7
2
  name: python-qa-gate
8
3
  description: Final QA gate for Python changes. Executes the full Black -> Ruff -> Pyright -> Pytest toolchain, compares against a captured baseline, enforces zero-regression deltas, and produces the required reporting block before the agent declares the change complete.
@@ -1,12 +1,8 @@
1
- # Converted skill
2
-
3
- Applied rewrites:
4
- - None
5
-
6
1
  ---
2
+ name: python-suppressions
7
3
  paths:
8
4
  - "**/*.py"
9
- description: Pre-authorized Python Ruff and Pyright suppression patterns. Applies to Python files.
5
+ description: Python suppression policy for linting and type-checking exceptions.
10
6
  ---
11
7
 
12
8
  # Python Suppression Policy
@@ -0,0 +1,57 @@
1
+ ---
2
+ name: quality-tiers
3
+ description: Module rigor tier system and uniform coverage thresholds.
4
+ paths:
5
+ - "**"
6
+ description: Module rigor tier system and uniform coverage thresholds.
7
+ ---
8
+
9
+ # Converted rule
10
+
11
+ Source: legacy Claude rule `quality-tiers`.
12
+
13
+ # Module Rigor Tiers
14
+
15
+ This rule defines the T1–T4 module rigor tier system used by all CI gates in this repository. The tier system source of truth is `docs/ci.research.md` section 1; the file `quality-tiers.yml` at the repository root maps every project to a tier. Adding a project without a tier classification fails CI.
16
+
17
+ ## Tiers
18
+
19
+ - **T1 — Critical.** Behavior bugs cause silent data loss, model drift, or security holes. Examples (No-COM architecture): classifier engines (SpamBayes, Triage), ToDo ID allocator and hierarchy operations, Graph extended-properties adapter, auth/token handling, host-agnostic command bus.
20
+ - **T2 — Core.** Bugs cause feature regressions but not data loss. Examples: `TaskMaster.Domain`, `TaskMaster.Application`, mail-item DTOs, settings store abstraction, schema definitions.
21
+ - **T3 — Adapters & UI.** Glue around APIs the team does not own. Examples: Outlook task pane UI, Office.js wrappers, Microsoft Graph SDK wrappers, persistence I/O.
22
+ - **T4 — Scaffolding.** Examples: DI wiring, bootstrap, build scripts, dev tooling, generated code, manifests.
23
+
24
+ ## Source of Truth
25
+
26
+ - `quality-tiers.yml` at repo root maps every project to one tier.
27
+ - The CI pipeline's `tier-classification` stage validates that every project entry has a tier and that no unclassified project exists. Adding a project without a tier classification fails CI.
28
+
29
+ ## Uniform-vs-Tier-Dependent Gate Matrix
30
+
31
+ Per Authoritative Decision #2, line and branch coverage thresholds are uniform across all tiers. Other gates remain tier-dependent.
32
+
33
+ ### Uniform across all tiers (T1–T4)
34
+
35
+ - Format check: 100% pass.
36
+ - Lint errors: 0.
37
+ - Type errors: 0.
38
+ - Architecture violations: 0.
39
+ - Line coverage: >= 85%.
40
+ - Branch coverage: >= 75%.
41
+ - No regression on changed lines.
42
+
43
+ ### Tier-dependent
44
+
45
+ | Gate | T1 | T2 | T3 | T4 |
46
+ |---|---|---|---|---|
47
+ | Untyped escape hatches (`any`/`dynamic`) | 0 | 0 | <= 5 per file, justified | unlimited |
48
+ | Property test density | >= 1 per pure function | >= 1 per pure function | none | none |
49
+ | Mutation score | >= 75% | trend-only | none | none |
50
+ | Contract breaking changes | major bump required | major bump required | n/a | n/a |
51
+ | Determinism (retry rate) | < 0.5% | < 1% | < 2% | n/a |
52
+ | Golden tests | required for classifier-output modules | optional | none | none |
53
+ | Full E2E suite scope | all critical paths | core paths | adapter smoke | none |
54
+
55
+ ## Rationale (uniform coverage thresholds)
56
+
57
+ High test coverage is a fundamental quality-control design choice that enables autonomous agentic development and trust in the work product. For that reason, line coverage >= 85% and branch coverage >= 75% apply uniformly across T1–T4; tier-specific lower coverage floors are not used in this repository.
@@ -1,8 +1,3 @@
1
- # Converted skill
2
-
3
- Applied rewrites:
4
- - None
5
-
6
1
  ---
7
2
  name: remediation-handoff-atomic-planner
8
3
  description: 'Reusable remediation trigger and atomic_planner handoff steps. Use when audits require remediation inputs and a delegated remediation plan.'