@danmoisan/drm-copilot-mcp 1.1.15 → 1.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/resources/claude-customizations/.claude/agents/powershell-typed-engineer.md +4 -5
- package/resources/claude-customizations/.claude/hooks/enforce-powershell-batch-budget-route.ps1 +137 -0
- package/resources/claude-customizations/.claude/hooks/enforce-powershell-batch-budget.ps1 +95 -66
- package/resources/claude-customizations/.claude/rules/powershell.md +3 -3
- package/resources/claude-customizations/.claude/skills/invoke-powershell-engineer/SKILL.md +3 -4
- package/resources/claude-customizations/.claude/skills/powershell-change-budget-router/SKILL.md +6 -6
- package/resources/claude-customizations/pack-manifests/powershell.json +1 -0
- package/resources/codex-and-agents-customizations/.agents/skills/invoke-powershell-engineer/SKILL.md +1 -1
- package/resources/codex-and-agents-customizations/.agents/skills/powershell/SKILL.md +1 -2
- package/resources/codex-and-agents-customizations/.codex/agents/powershell-typed-engineer-c1.toml +2 -3
- package/resources/codex-and-agents-customizations/.codex/agents/powershell-typed-engineer-c2.toml +2 -3
- package/resources/codex-and-agents-customizations/.codex/agents/powershell-typed-engineer-c3-elevated.toml +2 -3
- package/resources/codex-and-agents-customizations/.codex/agents/powershell-typed-engineer-c3.toml +2 -3
- package/resources/codex-and-agents-customizations/.codex/agents/powershell-typed-engineer-c4.toml +2 -3
- package/resources/codex-and-agents-customizations/.codex/agents/powershell-typed-engineer.toml +2 -3
- package/resources/codex-and-agents-customizations/.codex/config.toml +1 -1
- package/resources/codex-and-agents-customizations/.codex/hooks/enforce-powershell-batch-budget.ps1 +285 -80
- package/resources/customizations/.github/agents/powershell-orchestrator.agent.md +7 -7
- package/resources/customizations/.github/agents/powershell-typed-engineer.agent.md +8 -10
- package/resources/customizations/.github/prompts/orchestrate-powershell-work.prompt.md +2 -2
- package/resources/customizations/.github/skills/powershell-change-budget-router/SKILL.md +3 -3
- package/resources/powershell/PoshQC/settings/pester.runsettings.psd1 +1 -0
|
@@ -14,7 +14,7 @@ handoffs:
|
|
|
14
14
|
send: true
|
|
15
15
|
- label: Small-scope implementation path
|
|
16
16
|
agent: powershell-typed-engineer
|
|
17
|
-
prompt: "Estimate and confirm scope (1-
|
|
17
|
+
prompt: "Estimate and confirm scope (1-3 production PowerShell files + corresponding tests). If confirmed, execute the constrained short-path implementation phase from the approved minimal-audit plan and return analyzer/test/coverage deltas."
|
|
18
18
|
send: true
|
|
19
19
|
- label: Validate small-path delivery and post-QC docs
|
|
20
20
|
agent: atomic_executor
|
|
@@ -98,8 +98,8 @@ Use these reusable skills to avoid duplicating shared operations:
|
|
|
98
98
|
|
|
99
99
|
3) **Single source of routing truth = change budget**
|
|
100
100
|
- First action is always to estimate rough change budget by identifying likely affected production PowerShell files.
|
|
101
|
-
- If estimate is `1-
|
|
102
|
-
- If estimate is `>
|
|
101
|
+
- If estimate is `1-3` production PowerShell files (+ corresponding tests), use **small path**.
|
|
102
|
+
- If estimate is more than 3 (`>3`) production PowerShell files, use **large path**. The large path has no production-file cap.
|
|
103
103
|
|
|
104
104
|
4) **Deterministic variable handling**
|
|
105
105
|
- Persist and reuse these variables exactly as names:
|
|
@@ -123,12 +123,12 @@ Use these reusable skills to avoid duplicating shared operations:
|
|
|
123
123
|
2. Estimate rough change budget.
|
|
124
124
|
3. Write/update orchestration checkpoint.
|
|
125
125
|
4. Route to one of two paths:
|
|
126
|
-
- **Small path**: budget `1-
|
|
127
|
-
- **Large path**: budget `>
|
|
126
|
+
- **Small path**: budget `1-3`
|
|
127
|
+
- **Large path**: budget `>3`
|
|
128
128
|
|
|
129
129
|
---
|
|
130
130
|
|
|
131
|
-
## Small path (budget 1-
|
|
131
|
+
## Small path (budget 1-3 production PowerShell files)
|
|
132
132
|
|
|
133
133
|
Follow this exact sequence.
|
|
134
134
|
|
|
@@ -245,7 +245,7 @@ Hard enforcement for S8:
|
|
|
245
245
|
|
|
246
246
|
---
|
|
247
247
|
|
|
248
|
-
## Large path (budget >
|
|
248
|
+
## Large path (budget >3 production PowerShell files)
|
|
249
249
|
|
|
250
250
|
Follow this exact sequence.
|
|
251
251
|
|
|
@@ -49,8 +49,8 @@ Use these reusable skills to avoid duplicating shared operations:
|
|
|
49
49
|
|
|
50
50
|
- **Direct mode (default)**
|
|
51
51
|
- Trigger: no directive line present.
|
|
52
|
-
- Intended scope:
|
|
53
|
-
- If estimated scope is
|
|
52
|
+
- Intended scope: 1-3 production PowerShell files (+ corresponding tests).
|
|
53
|
+
- If estimated scope is more than 3 production files: stop and instruct caller to use `powershell-orchestrator` (or `.github/prompts/orchestrate-powershell-work.prompt.md`).
|
|
54
54
|
|
|
55
55
|
- **Orchestrator handoff mode**
|
|
56
56
|
- Trigger: request includes exact line `DIRECTIVE: ORCHESTRATOR HANDOFF MODE`.
|
|
@@ -115,9 +115,9 @@ Blocking rules in orchestrator mode:
|
|
|
115
115
|
|
|
116
116
|
## 1) Scope control (NO scope creep)
|
|
117
117
|
|
|
118
|
-
- **Direct mode** default scope is one small feature/bug slice (typically **1
|
|
119
|
-
- In **Direct mode**, if estimated scope exceeds **
|
|
120
|
-
- In **Orchestrator handoff mode**, overall scope may exceed
|
|
118
|
+
- **Direct mode** default scope is one small feature/bug slice (typically **1-3 production PowerShell files**) plus corresponding test file(s).
|
|
119
|
+
- In **Direct mode**, if estimated scope exceeds **3 production PowerShell files**, do not continue implementation; instruct the user to invoke `powershell-orchestrator` (or `.github/prompts/orchestrate-powershell-work.prompt.md`) and stop.
|
|
120
|
+
- In **Orchestrator handoff mode**, overall scope may exceed 3 production files when supported by provided context package and approved plan artifacts.
|
|
121
121
|
- In all modes, avoid unrelated files and preserve minimal, targeted changes.
|
|
122
122
|
- If scope expansion is required, STOP and provide:
|
|
123
123
|
- a one-paragraph justification,
|
|
@@ -127,11 +127,9 @@ Blocking rules in orchestrator mode:
|
|
|
127
127
|
|
|
128
128
|
## 2) Change budget (hard gate)
|
|
129
129
|
|
|
130
|
-
- **Direct mode** overall budget:
|
|
130
|
+
- **Direct mode** overall budget: **1-3 production PowerShell files** (+ corresponding tests).
|
|
131
131
|
- **Orchestrator handoff mode**: no strict overall production-file budget, provided required documentation package is present.
|
|
132
|
-
-
|
|
133
|
-
- If no override is provided, the 3/3 per-batch limit applies.
|
|
134
|
-
- If a batch would exceed budget, split it into smaller batches.
|
|
132
|
+
- Test files are not counted toward the routing threshold in any mode, and the large path has no production-file cap.
|
|
135
133
|
|
|
136
134
|
## 3) Deterministic unit tests only (no external dependency coupling)
|
|
137
135
|
|
|
@@ -195,7 +193,7 @@ If tools cannot run in the environment, STOP implementation and provide plan + p
|
|
|
195
193
|
- if `DIRECTIVE: ORCHESTRATOR HANDOFF MODE` is present, use orchestrator handoff mode and validate full context package.
|
|
196
194
|
- otherwise use direct mode.
|
|
197
195
|
4) Enforce budget routing:
|
|
198
|
-
- in direct mode, if estimated scope is
|
|
196
|
+
- in direct mode, if estimated scope is more than 3 production PowerShell files, STOP and instruct user to invoke `powershell-orchestrator` for orchestration.
|
|
199
197
|
5) Summarize root cause/design constraint in one paragraph.
|
|
200
198
|
|
|
201
199
|
## Phase B — Design + plan (no edits)
|
|
@@ -21,9 +21,9 @@ Coordinate the user request from intake to completion using the correct path bas
|
|
|
21
21
|
## Required orchestration behavior
|
|
22
22
|
|
|
23
23
|
1. Estimate rough change budget first (production PowerShell files).
|
|
24
|
-
2. If budget is **1
|
|
24
|
+
2. If budget is **1-3 production PowerShell files** (+ corresponding tests):
|
|
25
25
|
- Delegate directly to `powershell-typed-engineer` for plan + implementation + QA closure.
|
|
26
|
-
3. If budget is
|
|
26
|
+
3. If budget is **more than 3 production PowerShell files**:
|
|
27
27
|
- Execute full large-path lifecycle:
|
|
28
28
|
1) Scope and create potential entry (`feature` vs `bug`, short-name creation)
|
|
29
29
|
2) Promote to GitHub issue and capture issue metadata
|
|
@@ -18,8 +18,8 @@ Use this skill when:
|
|
|
18
18
|
|
|
19
19
|
1) Estimate rough change budget first based on likely **production PowerShell files** touched.
|
|
20
20
|
2) Route:
|
|
21
|
-
- `1-
|
|
22
|
-
-
|
|
21
|
+
- `1-3` production files (+ corresponding tests) → **small path** (`powershell-typed-engineer` direct mode).
|
|
22
|
+
- More than 3 production files → **large path** (`powershell-orchestrator`). The large path has no production-file cap.
|
|
23
23
|
|
|
24
24
|
## Orchestrated Small-Path Requirements
|
|
25
25
|
|
|
@@ -36,7 +36,7 @@ Direct invocation of `powershell-typed-engineer` remains implementation-focused
|
|
|
36
36
|
|
|
37
37
|
## Direct-Mode Rejection Rule
|
|
38
38
|
|
|
39
|
-
If `powershell-typed-engineer` is invoked directly and estimated scope is
|
|
39
|
+
If `powershell-typed-engineer` is invoked directly and estimated scope is more than 3 production files:
|
|
40
40
|
- Stop before implementation.
|
|
41
41
|
- Return explicit routing instruction to invoke `powershell-orchestrator` (or `.github/prompts/orchestrate-powershell-work.prompt.md`).
|
|
42
42
|
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
'.claude/hooks/check-powershell-test-purity.ps1'
|
|
30
30
|
'.claude/hooks/enforce-python-batch-budget.ps1'
|
|
31
31
|
'.claude/hooks/enforce-powershell-batch-budget.ps1'
|
|
32
|
+
'.claude/hooks/enforce-powershell-batch-budget-route.ps1'
|
|
32
33
|
# Issue #272 hardened this PreToolUse hook with a new orchestrator-state preflight
|
|
33
34
|
# check; measured here so the change produces real per-file coverage evidence.
|
|
34
35
|
'.claude/hooks/enforce-pr-author-skill.ps1'
|