@danmoisan/drm-copilot-mcp 1.1.14 → 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/lib/ci-gate/Invoke-CiGateParser.ps1 +330 -0
- package/resources/claude-customizations/.claude/rules/powershell.md +3 -3
- package/resources/claude-customizations/.claude/rules/shell.md +8 -7
- package/resources/claude-customizations/.claude/skills/cleanup-merged-worktrees/SKILL.md +8 -8
- package/resources/claude-customizations/.claude/skills/cleanup-merged-worktrees/scripts/cleanup-worktrees.sh +234 -0
- package/resources/claude-customizations/.claude/skills/cleanup-merged-worktrees/scripts/cleanup_worktrees_actions_lib.sh +451 -0
- package/resources/claude-customizations/.claude/skills/cleanup-merged-worktrees/scripts/cleanup_worktrees_detached_lib.sh +301 -0
- package/resources/claude-customizations/.claude/skills/cleanup-merged-worktrees/scripts/cleanup_worktrees_dirt_lib.sh +495 -0
- package/resources/claude-customizations/.claude/skills/cleanup-merged-worktrees/scripts/cleanup_worktrees_enumerate_lib.sh +252 -0
- package/resources/claude-customizations/.claude/skills/cleanup-merged-worktrees/scripts/cleanup_worktrees_lib.sh +496 -0
- package/resources/claude-customizations/.claude/skills/cleanup-merged-worktrees/scripts/cleanup_worktrees_preserve_eol_lib.sh +212 -0
- package/resources/claude-customizations/.claude/skills/cleanup-merged-worktrees/scripts/cleanup_worktrees_preserve_lib.sh +492 -0
- package/resources/claude-customizations/.claude/skills/cleanup-merged-worktrees/scripts/cleanup_worktrees_report_records_lib.sh +476 -0
- package/resources/claude-customizations/.claude/skills/cleanup-merged-worktrees/scripts/cleanup_worktrees_scan_helper.sh +182 -0
- package/resources/claude-customizations/.claude/skills/epic-orchestrate/SKILL.md +1 -1
- package/resources/claude-customizations/.claude/skills/invoke-powershell-engineer/SKILL.md +3 -4
- package/resources/claude-customizations/.claude/skills/orchestrate/SKILL.md +1 -1
- package/resources/claude-customizations/.claude/skills/powershell-change-budget-router/SKILL.md +6 -6
- package/resources/claude-customizations/pack-manifests/core.json +11 -0
- 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 +6 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: invoke-powershell-engineer
|
|
3
|
-
description: Invoke the powershell-typed-engineer worker to design, implement, and verify PowerShell changes within typed repository boundaries. Applies PoshQC format -> analyze -> test toolchain, the 1-
|
|
3
|
+
description: Invoke the powershell-typed-engineer worker to design, implement, and verify PowerShell changes within typed repository boundaries. Applies PoshQC format -> analyze -> test toolchain, the 1-3 production-file direct-mode budget with routing to the orchestrated large path above it, and zero-regression quality gates.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Implement PowerShell Skill
|
|
@@ -12,10 +12,10 @@ This direct-use wrapper delegates PowerShell implementation work to the `powersh
|
|
|
12
12
|
Use this skill when:
|
|
13
13
|
|
|
14
14
|
- The user requests a PowerShell code change, bug fix, refactor, or test addition.
|
|
15
|
-
- Estimated scope fits the direct-mode path (1-
|
|
15
|
+
- Estimated scope fits the direct-mode path (1-3 production PowerShell files plus corresponding tests).
|
|
16
16
|
- The toolchain (PoshQC format, PSScriptAnalyzer, Pester with coverage where enforced) can be run in the current environment, or the user has explicitly authorized an unverified plan-only response.
|
|
17
17
|
|
|
18
|
-
If the estimated scope exceeds the direct-mode budget, this skill defers to the orchestrated
|
|
18
|
+
If the estimated scope exceeds the direct-mode budget, this skill defers to the orchestrated large path (`/orchestrate`) via `powershell-change-budget-router` instead of proceeding directly.
|
|
19
19
|
|
|
20
20
|
## Inputs
|
|
21
21
|
|
|
@@ -23,7 +23,6 @@ If the estimated scope exceeds the direct-mode budget, this skill defers to the
|
|
|
23
23
|
- Files or entrypoints in scope (exact script or module paths and corresponding `*.Tests.ps1` paths).
|
|
24
24
|
- Constraints, including public function or module contracts that must be preserved.
|
|
25
25
|
- Optional approved plan. If none is supplied, the worker delegates plan authoring to `atomic_planner` before any edits.
|
|
26
|
-
- Optional budget override in the form `budget: prod=<N>, test=<M>` subject to repo policy compliance.
|
|
27
26
|
|
|
28
27
|
## Output Paths
|
|
29
28
|
|
|
@@ -272,7 +272,7 @@ S9 procedure:
|
|
|
272
272
|
|
|
273
273
|
1. Resolve the live PR head SHA for the feature branch (`gh pr view --json headRefOid` or equivalent).
|
|
274
274
|
2. Invoke `gh pr checks --required --json bucket,name,state,link,workflow` (or an equivalent JSON-emitting command) against that head SHA. `gh` is the only sanctioned channel for querying GitHub Actions state.
|
|
275
|
-
3. Parse the JSON
|
|
275
|
+
3. Parse the JSON by running `pwsh -NoProfile -File .claude/lib/ci-gate/Invoke-CiGateParser.ps1 -ChecksJson <checks-json> -HeadSha <head-sha>`, which emits the `ci_gate` object defined below and derives `ci_gate.conclusion` as `success` when all required checks pass, `failure` when any required check failed, and `pending` when any required check is still in progress.
|
|
276
276
|
4. Poll with a bounded interval and a documented total timeout while `conclusion == "pending"`. When the timeout is exhausted, set `step9_status: "failed_remediation_required"` and enter the remediation-loop CI-failure handling below with a timeout log.
|
|
277
277
|
5. Write the `ci_gate` object and `last_verified_ci_sha` to the checkpoint, and set `step9_status` to `passed` only when `ci_gate.conclusion == "success"` AND `ci_gate.head_sha` equals the current PR head SHA.
|
|
278
278
|
6. If the checkpoint's `epic_mode` is `true`, execute `gh pr merge --merge <PR>` merging the feature branch into `epic_context.integration_branch` (already the PR's base branch per the epic-mode `--base` override applied at S8). On success, record `epic_merge: { merge_commit_sha, target_branch, merged_at }` in the checkpoint. On failure due to merge conflict (non-mergeable PR), do not retry blindly: convert the conflict into a synthetic Blocking finding per "Merge-Conflict Remediation" below and re-enter the standard R1–R5 remediation loop; do not proceed to DONE.
|
package/resources/claude-customizations/.claude/skills/powershell-change-budget-router/SKILL.md
CHANGED
|
@@ -5,7 +5,7 @@ description: Budget-first routing contract for PowerShell work: estimate product
|
|
|
5
5
|
|
|
6
6
|
# PowerShell Change Budget Router
|
|
7
7
|
|
|
8
|
-
Canonical guidance for deciding whether work should execute directly in `powershell-typed-engineer` or be escalated to `
|
|
8
|
+
Canonical guidance for deciding whether work should execute directly in `powershell-typed-engineer` or be escalated to the orchestrated large path through `/orchestrate` (the `orchestrator` agent).
|
|
9
9
|
|
|
10
10
|
## When to Use This Skill
|
|
11
11
|
|
|
@@ -18,12 +18,12 @@ 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** (`/orchestrate`, the `orchestrator` agent). The large path has no production-file cap.
|
|
23
23
|
|
|
24
24
|
## Orchestrated Small-Path Requirements
|
|
25
25
|
|
|
26
|
-
When routed through
|
|
26
|
+
When routed through `/orchestrate`, small path still requires lifecycle scaffolding before implementation:
|
|
27
27
|
- 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,
|
|
28
28
|
- promote potential item to GitHub issue with `--work-mode minor-audit`,
|
|
29
29
|
- create active feature folder with `--work-mode minor-audit`,
|
|
@@ -36,9 +36,9 @@ 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
|
-
- Return explicit routing instruction to invoke
|
|
41
|
+
- Return explicit routing instruction to invoke `/orchestrate`.
|
|
42
42
|
|
|
43
43
|
## Documentation Expectations
|
|
44
44
|
|
|
@@ -74,6 +74,16 @@
|
|
|
74
74
|
".claude/skills/acceptance-criteria-tracking/SKILL.md",
|
|
75
75
|
".claude/skills/atomic-plan-contract/SKILL.md",
|
|
76
76
|
".claude/skills/cleanup-merged-worktrees/SKILL.md",
|
|
77
|
+
".claude/skills/cleanup-merged-worktrees/scripts/cleanup-worktrees.sh",
|
|
78
|
+
".claude/skills/cleanup-merged-worktrees/scripts/cleanup_worktrees_actions_lib.sh",
|
|
79
|
+
".claude/skills/cleanup-merged-worktrees/scripts/cleanup_worktrees_detached_lib.sh",
|
|
80
|
+
".claude/skills/cleanup-merged-worktrees/scripts/cleanup_worktrees_dirt_lib.sh",
|
|
81
|
+
".claude/skills/cleanup-merged-worktrees/scripts/cleanup_worktrees_enumerate_lib.sh",
|
|
82
|
+
".claude/skills/cleanup-merged-worktrees/scripts/cleanup_worktrees_lib.sh",
|
|
83
|
+
".claude/skills/cleanup-merged-worktrees/scripts/cleanup_worktrees_preserve_eol_lib.sh",
|
|
84
|
+
".claude/skills/cleanup-merged-worktrees/scripts/cleanup_worktrees_preserve_lib.sh",
|
|
85
|
+
".claude/skills/cleanup-merged-worktrees/scripts/cleanup_worktrees_report_records_lib.sh",
|
|
86
|
+
".claude/skills/cleanup-merged-worktrees/scripts/cleanup_worktrees_scan_helper.sh",
|
|
77
87
|
".claude/skills/commit-message/SKILL.md",
|
|
78
88
|
".claude/skills/discovery-behavior-reconciliation/SKILL.md",
|
|
79
89
|
".claude/skills/discovery-coverage-ledger/SKILL.md",
|
|
@@ -147,6 +157,7 @@
|
|
|
147
157
|
".claude/lib/project-file-merge/ProjectFileMergeGrammar.psm1",
|
|
148
158
|
".claude/lib/project-file-merge/ProjectFileMerge.psm1",
|
|
149
159
|
".claude/lib/project-file-merge/Resolve-MergeableConflict.ps1",
|
|
160
|
+
".claude/lib/ci-gate/Invoke-CiGateParser.ps1",
|
|
150
161
|
".claude/rules/parallel-orchestration.md",
|
|
151
162
|
".claude/rules/shell.md",
|
|
152
163
|
".claude/lib/bash/compute-cohorts.sh",
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
".claude/agents/powershell-typed-engineer.md",
|
|
7
7
|
".claude/hooks/check-powershell-test-purity.ps1",
|
|
8
8
|
".claude/hooks/enforce-powershell-batch-budget.ps1",
|
|
9
|
+
".claude/hooks/enforce-powershell-batch-budget-route.ps1",
|
|
9
10
|
".claude/skills/invoke-powershell-engineer/SKILL.md",
|
|
10
11
|
".claude/skills/powershell-change-budget-router/SKILL.md",
|
|
11
12
|
".claude/skills/powershell-orchestration-state-machine/SKILL.md",
|
package/resources/codex-and-agents-customizations/.agents/skills/invoke-powershell-engineer/SKILL.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: invoke-powershell-engineer
|
|
3
|
-
description: Invoke the powershell-typed-engineer worker to design, implement, and verify PowerShell changes within typed repository boundaries. Applies PoshQC formatting, analysis, and testing with a one-to-two production-file direct-mode budget
|
|
3
|
+
description: Invoke the powershell-typed-engineer worker to design, implement, and verify PowerShell changes within typed repository boundaries. Applies PoshQC formatting, analysis, and testing with a one-to-two production-file direct-mode budget and zero-regression quality gates.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Implement PowerShell Skill
|
|
@@ -34,8 +34,7 @@ Run the toolchain in order: format → analyze → test. Restart from step 1 if
|
|
|
34
34
|
## Change Budget
|
|
35
35
|
|
|
36
36
|
- Direct-mode overall scope: up to 2 production PowerShell files (plus corresponding tests). Requests exceeding this must be routed to `powershell-orchestrator` per `powershell-change-budget-router`.
|
|
37
|
-
-
|
|
38
|
-
- If a batch would exceed the cap, split the work into smaller batches.
|
|
37
|
+
- The orchestrated large path has no production-file cap, and test files are not counted toward the routing threshold.
|
|
39
38
|
|
|
40
39
|
## Design Seams (Minimal DI)
|
|
41
40
|
|
package/resources/codex-and-agents-customizations/.codex/agents/powershell-typed-engineer-c1.toml
CHANGED
|
@@ -29,7 +29,7 @@ Migration contract:
|
|
|
29
29
|
|
|
30
30
|
---
|
|
31
31
|
name: powershell-typed-engineer
|
|
32
|
-
description: Project-scoped worker that implements and verifies PowerShell changes within typed repository boundaries. Applies PoshQC format -> PSScriptAnalyzer -> Pester toolchain, the 1-2 production-file direct-mode budget,
|
|
32
|
+
description: Project-scoped worker that implements and verifies PowerShell changes within typed repository boundaries. Applies PoshQC format -> PSScriptAnalyzer -> Pester toolchain, the 1-2 production-file direct-mode budget, and zero-regression quality gates.
|
|
33
33
|
tools:
|
|
34
34
|
- Read
|
|
35
35
|
- Grep
|
|
@@ -64,7 +64,7 @@ Language standards and toolchain are defined in `.agents/skills/powershell/SKILL
|
|
|
64
64
|
Follow the phased workflow defined by the preloaded skills:
|
|
65
65
|
|
|
66
66
|
1. **Policy compliance** — apply `policy-compliance-order` to load mandatory repo policies before any change.
|
|
67
|
-
2. **Routing and scope** — apply `powershell-change-budget-router` to estimate scope and select direct mode (1-2 production files) vs `powershell-orchestrator` escalation.
|
|
67
|
+
2. **Routing and scope** — apply `powershell-change-budget-router` to estimate scope and select direct mode (1-2 production files) vs `powershell-orchestrator` escalation. The large path has no production-file cap.
|
|
68
68
|
3. **Plan and baseline** — apply `atomic-plan-contract` for Phase 0 baseline capture and atomic plan structure. Delegate plan authoring to `atomic_planner` when no plan is supplied. Plans must include the proposed script or module structure, minimal DI seams (wrapper > delegate > adapter), Pester scenario-level test strategy, and the external executable wrapper mock strategy.
|
|
69
69
|
4. **Implement in batches** — apply the approved plan. After each batch, run targeted PSScriptAnalyzer on touched files plus targeted Pester, and confirm per-file coverage.
|
|
70
70
|
5. **Final QA gate** — apply `powershell-qa-gate` to run the full toolchain, enforce zero-regression deltas against the baseline, and produce the required reporting block before declaring completion.
|
|
@@ -93,7 +93,6 @@ If the marker is missing or malformed, fail closed to `full-feature`.
|
|
|
93
93
|
Stop implementation and return to the user when:
|
|
94
94
|
|
|
95
95
|
- the scope estimate exceeds the 2-production-file cap in direct mode,
|
|
96
|
-
- an in-flight batch would exceed the 3-production-file or 3-test-file per-batch cap,
|
|
97
96
|
- a file is near or would exceed the 500-line limit,
|
|
98
97
|
- any QA gate delta is non-zero after self-correction,
|
|
99
98
|
- the toolchain cannot be executed in the current environment (mark the change **unverified**),
|
package/resources/codex-and-agents-customizations/.codex/agents/powershell-typed-engineer-c2.toml
CHANGED
|
@@ -29,7 +29,7 @@ Migration contract:
|
|
|
29
29
|
|
|
30
30
|
---
|
|
31
31
|
name: powershell-typed-engineer
|
|
32
|
-
description: Project-scoped worker that implements and verifies PowerShell changes within typed repository boundaries. Applies PoshQC format -> PSScriptAnalyzer -> Pester toolchain, the 1-2 production-file direct-mode budget,
|
|
32
|
+
description: Project-scoped worker that implements and verifies PowerShell changes within typed repository boundaries. Applies PoshQC format -> PSScriptAnalyzer -> Pester toolchain, the 1-2 production-file direct-mode budget, and zero-regression quality gates.
|
|
33
33
|
tools:
|
|
34
34
|
- Read
|
|
35
35
|
- Grep
|
|
@@ -64,7 +64,7 @@ Language standards and toolchain are defined in `.agents/skills/powershell/SKILL
|
|
|
64
64
|
Follow the phased workflow defined by the preloaded skills:
|
|
65
65
|
|
|
66
66
|
1. **Policy compliance** — apply `policy-compliance-order` to load mandatory repo policies before any change.
|
|
67
|
-
2. **Routing and scope** — apply `powershell-change-budget-router` to estimate scope and select direct mode (1-2 production files) vs `powershell-orchestrator` escalation.
|
|
67
|
+
2. **Routing and scope** — apply `powershell-change-budget-router` to estimate scope and select direct mode (1-2 production files) vs `powershell-orchestrator` escalation. The large path has no production-file cap.
|
|
68
68
|
3. **Plan and baseline** — apply `atomic-plan-contract` for Phase 0 baseline capture and atomic plan structure. Delegate plan authoring to `atomic_planner` when no plan is supplied. Plans must include the proposed script or module structure, minimal DI seams (wrapper > delegate > adapter), Pester scenario-level test strategy, and the external executable wrapper mock strategy.
|
|
69
69
|
4. **Implement in batches** — apply the approved plan. After each batch, run targeted PSScriptAnalyzer on touched files plus targeted Pester, and confirm per-file coverage.
|
|
70
70
|
5. **Final QA gate** — apply `powershell-qa-gate` to run the full toolchain, enforce zero-regression deltas against the baseline, and produce the required reporting block before declaring completion.
|
|
@@ -93,7 +93,6 @@ If the marker is missing or malformed, fail closed to `full-feature`.
|
|
|
93
93
|
Stop implementation and return to the user when:
|
|
94
94
|
|
|
95
95
|
- the scope estimate exceeds the 2-production-file cap in direct mode,
|
|
96
|
-
- an in-flight batch would exceed the 3-production-file or 3-test-file per-batch cap,
|
|
97
96
|
- a file is near or would exceed the 500-line limit,
|
|
98
97
|
- any QA gate delta is non-zero after self-correction,
|
|
99
98
|
- the toolchain cannot be executed in the current environment (mark the change **unverified**),
|
|
@@ -29,7 +29,7 @@ Migration contract:
|
|
|
29
29
|
|
|
30
30
|
---
|
|
31
31
|
name: powershell-typed-engineer
|
|
32
|
-
description: Project-scoped worker that implements and verifies PowerShell changes within typed repository boundaries. Applies PoshQC format -> PSScriptAnalyzer -> Pester toolchain, the 1-2 production-file direct-mode budget,
|
|
32
|
+
description: Project-scoped worker that implements and verifies PowerShell changes within typed repository boundaries. Applies PoshQC format -> PSScriptAnalyzer -> Pester toolchain, the 1-2 production-file direct-mode budget, and zero-regression quality gates.
|
|
33
33
|
tools:
|
|
34
34
|
- Read
|
|
35
35
|
- Grep
|
|
@@ -64,7 +64,7 @@ Language standards and toolchain are defined in `.agents/skills/powershell/SKILL
|
|
|
64
64
|
Follow the phased workflow defined by the preloaded skills:
|
|
65
65
|
|
|
66
66
|
1. **Policy compliance** — apply `policy-compliance-order` to load mandatory repo policies before any change.
|
|
67
|
-
2. **Routing and scope** — apply `powershell-change-budget-router` to estimate scope and select direct mode (1-2 production files) vs `powershell-orchestrator` escalation.
|
|
67
|
+
2. **Routing and scope** — apply `powershell-change-budget-router` to estimate scope and select direct mode (1-2 production files) vs `powershell-orchestrator` escalation. The large path has no production-file cap.
|
|
68
68
|
3. **Plan and baseline** — apply `atomic-plan-contract` for Phase 0 baseline capture and atomic plan structure. Delegate plan authoring to `atomic_planner` when no plan is supplied. Plans must include the proposed script or module structure, minimal DI seams (wrapper > delegate > adapter), Pester scenario-level test strategy, and the external executable wrapper mock strategy.
|
|
69
69
|
4. **Implement in batches** — apply the approved plan. After each batch, run targeted PSScriptAnalyzer on touched files plus targeted Pester, and confirm per-file coverage.
|
|
70
70
|
5. **Final QA gate** — apply `powershell-qa-gate` to run the full toolchain, enforce zero-regression deltas against the baseline, and produce the required reporting block before declaring completion.
|
|
@@ -93,7 +93,6 @@ If the marker is missing or malformed, fail closed to `full-feature`.
|
|
|
93
93
|
Stop implementation and return to the user when:
|
|
94
94
|
|
|
95
95
|
- the scope estimate exceeds the 2-production-file cap in direct mode,
|
|
96
|
-
- an in-flight batch would exceed the 3-production-file or 3-test-file per-batch cap,
|
|
97
96
|
- a file is near or would exceed the 500-line limit,
|
|
98
97
|
- any QA gate delta is non-zero after self-correction,
|
|
99
98
|
- the toolchain cannot be executed in the current environment (mark the change **unverified**),
|
package/resources/codex-and-agents-customizations/.codex/agents/powershell-typed-engineer-c3.toml
CHANGED
|
@@ -29,7 +29,7 @@ Migration contract:
|
|
|
29
29
|
|
|
30
30
|
---
|
|
31
31
|
name: powershell-typed-engineer
|
|
32
|
-
description: Project-scoped worker that implements and verifies PowerShell changes within typed repository boundaries. Applies PoshQC format -> PSScriptAnalyzer -> Pester toolchain, the 1-2 production-file direct-mode budget,
|
|
32
|
+
description: Project-scoped worker that implements and verifies PowerShell changes within typed repository boundaries. Applies PoshQC format -> PSScriptAnalyzer -> Pester toolchain, the 1-2 production-file direct-mode budget, and zero-regression quality gates.
|
|
33
33
|
tools:
|
|
34
34
|
- Read
|
|
35
35
|
- Grep
|
|
@@ -64,7 +64,7 @@ Language standards and toolchain are defined in `.agents/skills/powershell/SKILL
|
|
|
64
64
|
Follow the phased workflow defined by the preloaded skills:
|
|
65
65
|
|
|
66
66
|
1. **Policy compliance** — apply `policy-compliance-order` to load mandatory repo policies before any change.
|
|
67
|
-
2. **Routing and scope** — apply `powershell-change-budget-router` to estimate scope and select direct mode (1-2 production files) vs `powershell-orchestrator` escalation.
|
|
67
|
+
2. **Routing and scope** — apply `powershell-change-budget-router` to estimate scope and select direct mode (1-2 production files) vs `powershell-orchestrator` escalation. The large path has no production-file cap.
|
|
68
68
|
3. **Plan and baseline** — apply `atomic-plan-contract` for Phase 0 baseline capture and atomic plan structure. Delegate plan authoring to `atomic_planner` when no plan is supplied. Plans must include the proposed script or module structure, minimal DI seams (wrapper > delegate > adapter), Pester scenario-level test strategy, and the external executable wrapper mock strategy.
|
|
69
69
|
4. **Implement in batches** — apply the approved plan. After each batch, run targeted PSScriptAnalyzer on touched files plus targeted Pester, and confirm per-file coverage.
|
|
70
70
|
5. **Final QA gate** — apply `powershell-qa-gate` to run the full toolchain, enforce zero-regression deltas against the baseline, and produce the required reporting block before declaring completion.
|
|
@@ -93,7 +93,6 @@ If the marker is missing or malformed, fail closed to `full-feature`.
|
|
|
93
93
|
Stop implementation and return to the user when:
|
|
94
94
|
|
|
95
95
|
- the scope estimate exceeds the 2-production-file cap in direct mode,
|
|
96
|
-
- an in-flight batch would exceed the 3-production-file or 3-test-file per-batch cap,
|
|
97
96
|
- a file is near or would exceed the 500-line limit,
|
|
98
97
|
- any QA gate delta is non-zero after self-correction,
|
|
99
98
|
- the toolchain cannot be executed in the current environment (mark the change **unverified**),
|
package/resources/codex-and-agents-customizations/.codex/agents/powershell-typed-engineer-c4.toml
CHANGED
|
@@ -29,7 +29,7 @@ Migration contract:
|
|
|
29
29
|
|
|
30
30
|
---
|
|
31
31
|
name: powershell-typed-engineer
|
|
32
|
-
description: Project-scoped worker that implements and verifies PowerShell changes within typed repository boundaries. Applies PoshQC format -> PSScriptAnalyzer -> Pester toolchain, the 1-2 production-file direct-mode budget,
|
|
32
|
+
description: Project-scoped worker that implements and verifies PowerShell changes within typed repository boundaries. Applies PoshQC format -> PSScriptAnalyzer -> Pester toolchain, the 1-2 production-file direct-mode budget, and zero-regression quality gates.
|
|
33
33
|
tools:
|
|
34
34
|
- Read
|
|
35
35
|
- Grep
|
|
@@ -64,7 +64,7 @@ Language standards and toolchain are defined in `.agents/skills/powershell/SKILL
|
|
|
64
64
|
Follow the phased workflow defined by the preloaded skills:
|
|
65
65
|
|
|
66
66
|
1. **Policy compliance** — apply `policy-compliance-order` to load mandatory repo policies before any change.
|
|
67
|
-
2. **Routing and scope** — apply `powershell-change-budget-router` to estimate scope and select direct mode (1-2 production files) vs `powershell-orchestrator` escalation.
|
|
67
|
+
2. **Routing and scope** — apply `powershell-change-budget-router` to estimate scope and select direct mode (1-2 production files) vs `powershell-orchestrator` escalation. The large path has no production-file cap.
|
|
68
68
|
3. **Plan and baseline** — apply `atomic-plan-contract` for Phase 0 baseline capture and atomic plan structure. Delegate plan authoring to `atomic_planner` when no plan is supplied. Plans must include the proposed script or module structure, minimal DI seams (wrapper > delegate > adapter), Pester scenario-level test strategy, and the external executable wrapper mock strategy.
|
|
69
69
|
4. **Implement in batches** — apply the approved plan. After each batch, run targeted PSScriptAnalyzer on touched files plus targeted Pester, and confirm per-file coverage.
|
|
70
70
|
5. **Final QA gate** — apply `powershell-qa-gate` to run the full toolchain, enforce zero-regression deltas against the baseline, and produce the required reporting block before declaring completion.
|
|
@@ -93,7 +93,6 @@ If the marker is missing or malformed, fail closed to `full-feature`.
|
|
|
93
93
|
Stop implementation and return to the user when:
|
|
94
94
|
|
|
95
95
|
- the scope estimate exceeds the 2-production-file cap in direct mode,
|
|
96
|
-
- an in-flight batch would exceed the 3-production-file or 3-test-file per-batch cap,
|
|
97
96
|
- a file is near or would exceed the 500-line limit,
|
|
98
97
|
- any QA gate delta is non-zero after self-correction,
|
|
99
98
|
- the toolchain cannot be executed in the current environment (mark the change **unverified**),
|
package/resources/codex-and-agents-customizations/.codex/agents/powershell-typed-engineer.toml
CHANGED
|
@@ -29,7 +29,7 @@ Migration contract:
|
|
|
29
29
|
|
|
30
30
|
---
|
|
31
31
|
name: powershell-typed-engineer
|
|
32
|
-
description: Project-scoped worker that implements and verifies PowerShell changes within typed repository boundaries. Applies PoshQC format -> PSScriptAnalyzer -> Pester toolchain, the 1-2 production-file direct-mode budget,
|
|
32
|
+
description: Project-scoped worker that implements and verifies PowerShell changes within typed repository boundaries. Applies PoshQC format -> PSScriptAnalyzer -> Pester toolchain, the 1-2 production-file direct-mode budget, and zero-regression quality gates.
|
|
33
33
|
tools:
|
|
34
34
|
- Read
|
|
35
35
|
- Grep
|
|
@@ -64,7 +64,7 @@ Language standards and toolchain are defined in `.agents/skills/powershell/SKILL
|
|
|
64
64
|
Follow the phased workflow defined by the preloaded skills:
|
|
65
65
|
|
|
66
66
|
1. **Policy compliance** — apply `policy-compliance-order` to load mandatory repo policies before any change.
|
|
67
|
-
2. **Routing and scope** — apply `powershell-change-budget-router` to estimate scope and select direct mode (1-2 production files) vs `powershell-orchestrator` escalation.
|
|
67
|
+
2. **Routing and scope** — apply `powershell-change-budget-router` to estimate scope and select direct mode (1-2 production files) vs `powershell-orchestrator` escalation. The large path has no production-file cap.
|
|
68
68
|
3. **Plan and baseline** — apply `atomic-plan-contract` for Phase 0 baseline capture and atomic plan structure. Delegate plan authoring to `atomic_planner` when no plan is supplied. Plans must include the proposed script or module structure, minimal DI seams (wrapper > delegate > adapter), Pester scenario-level test strategy, and the external executable wrapper mock strategy.
|
|
69
69
|
4. **Implement in batches** — apply the approved plan. After each batch, run targeted PSScriptAnalyzer on touched files plus targeted Pester, and confirm per-file coverage.
|
|
70
70
|
5. **Final QA gate** — apply `powershell-qa-gate` to run the full toolchain, enforce zero-regression deltas against the baseline, and produce the required reporting block before declaring completion.
|
|
@@ -93,7 +93,6 @@ If the marker is missing or malformed, fail closed to `full-feature`.
|
|
|
93
93
|
Stop implementation and return to the user when:
|
|
94
94
|
|
|
95
95
|
- the scope estimate exceeds the 2-production-file cap in direct mode,
|
|
96
|
-
- an in-flight batch would exceed the 3-production-file or 3-test-file per-batch cap,
|
|
97
96
|
- a file is near or would exceed the 500-line limit,
|
|
98
97
|
- any QA gate delta is non-zero after self-correction,
|
|
99
98
|
- the toolchain cannot be executed in the current environment (mark the change **unverified**),
|