@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.
- package/out/mcp-server.js +98 -21
- package/package.json +21 -5
- package/resources/claude-customizations/.claude/agent-memory/orchestrator/MEMORY.md +15 -3
- package/resources/claude-customizations/.claude/agent-memory/orchestrator/feedback_branch_base_check_unmerged_pr_deps.md +16 -0
- package/resources/claude-customizations/.claude/agent-memory/orchestrator/feedback_every_change_through_lifecycle.md +15 -0
- package/resources/claude-customizations/.claude/agent-memory/orchestrator/feedback_policy_compliance_not_optional.md +18 -0
- package/resources/claude-customizations/.claude/agent-memory/orchestrator/feedback_potential_to_issue_creates_github_issue.md +13 -0
- package/resources/claude-customizations/.claude/agent-memory/orchestrator/feedback_remediation_plan_em_dash_required.md +13 -0
- package/resources/claude-customizations/.claude/agent-memory/orchestrator/feedback_small_bug_uses_minor_audit.md +13 -0
- package/resources/claude-customizations/.claude/agent-memory/orchestrator/feedback_test_files_count_against_500_cap.md +13 -0
- package/resources/claude-customizations/.claude/agents/atomic-executor.md +7 -7
- package/resources/claude-customizations/.claude/agents/csharp-typed-engineer.md +4 -5
- package/resources/claude-customizations/.claude/agents/feature-review.md +7 -3
- package/resources/claude-customizations/.claude/agents/orchestrator.md +22 -3
- package/resources/claude-customizations/.claude/agents/powershell-typed-engineer.md +1 -1
- package/resources/claude-customizations/.claude/agents/pr-author.md +78 -0
- package/resources/claude-customizations/.claude/agents/task-researcher.md +10 -6
- package/resources/claude-customizations/.claude/hooks/enforce-checkpoint-monotonic.ps1 +303 -0
- package/resources/claude-customizations/.claude/hooks/enforce-completion-consistency.ps1 +300 -0
- package/resources/claude-customizations/.claude/hooks/enforce-evidence-locations.ps1 +40 -14
- package/resources/claude-customizations/.claude/hooks/enforce-feature-folder-order.ps1 +148 -0
- package/resources/claude-customizations/.claude/hooks/enforce-orchestration-preimplementation-gate.ps1 +210 -0
- package/resources/claude-customizations/.claude/hooks/enforce-pr-author-skill.ps1 +333 -0
- package/resources/claude-customizations/.claude/hooks/enforce-prd-feature-before-planner.ps1 +216 -0
- package/resources/claude-customizations/.claude/hooks/enforce-promotion-mcp-only.ps1 +84 -15
- package/resources/claude-customizations/.claude/hooks/validate-executor-output.ps1 +1 -1
- package/resources/claude-customizations/.claude/hooks/validate-feature-review-coverage.ps1 +75 -5
- package/resources/claude-customizations/.claude/hooks/validate-orchestrator-output.ps1 +93 -0
- package/resources/claude-customizations/.claude/hooks/validate-pr-author-output.ps1 +136 -0
- package/resources/claude-customizations/.claude/hooks/validate-task-researcher-output.ps1 +90 -6
- package/resources/claude-customizations/.claude/rules/architecture-boundaries.md +46 -0
- package/resources/claude-customizations/.claude/rules/benchmark-baselines.md +35 -0
- package/resources/claude-customizations/.claude/rules/ci-workflows.md +36 -0
- package/resources/claude-customizations/.claude/rules/csharp.md +62 -16
- package/resources/claude-customizations/.claude/rules/general-code-change.md +12 -3
- package/resources/claude-customizations/.claude/rules/general-unit-test.md +47 -2
- package/resources/claude-customizations/.claude/rules/orchestrator-state.md +39 -0
- package/resources/claude-customizations/.claude/rules/powershell.md +5 -5
- package/resources/claude-customizations/.claude/rules/python.md +4 -3
- package/resources/claude-customizations/.claude/rules/quality-tiers.md +51 -0
- package/resources/claude-customizations/.claude/rules/typescript.md +37 -8
- package/resources/claude-customizations/.claude/settings.json +59 -12
- package/resources/claude-customizations/.claude/skills/atomic-plan-contract/SKILL.md +2 -2
- package/resources/claude-customizations/.claude/skills/csharp-qa-gate/SKILL.md +25 -10
- package/resources/claude-customizations/.claude/skills/evidence-and-timestamp-conventions/SKILL.md +0 -1
- package/resources/claude-customizations/.claude/skills/execute-hard-lock/SKILL.md +6 -6
- package/resources/claude-customizations/.claude/skills/feature-promotion-lifecycle/SKILL.md +8 -8
- package/resources/claude-customizations/.claude/skills/feature-review-workflow/SKILL.md +17 -6
- package/resources/claude-customizations/.claude/skills/human-exception-runbook/SKILL.md +52 -0
- package/resources/claude-customizations/.claude/skills/human-exception-runbook/example.runbook.md +36 -0
- package/resources/claude-customizations/.claude/skills/invoke-csharp-engineer/SKILL.md +4 -4
- package/resources/claude-customizations/.claude/skills/orchestrate/SKILL.md +172 -5
- package/resources/claude-customizations/.claude/skills/policy-audit-template-usage/SKILL.md +3 -3
- package/resources/claude-customizations/.claude/skills/powershell-qa-gate/SKILL.md +4 -4
- package/resources/claude-customizations/.claude/skills/pr-base-branch-merge-base/SKILL.md +3 -3
- package/resources/claude-customizations/.claude/skills/python-qa-gate/SKILL.md +1 -1
- package/resources/claude-customizations/.claude/skills/remediation-handoff-atomic-planner/SKILL.md +90 -17
- package/resources/claude-customizations/.claude/skills/research-issue/SKILL.md +5 -3
- package/resources/claude-customizations/.claude-variants/csharp-legacy/agents/csharp-typed-engineer.md +69 -0
- package/resources/claude-customizations/.claude-variants/csharp-legacy/rules/csharp.md +96 -0
- package/resources/claude-customizations/.claude-variants/csharp-legacy/skills/csharp-qa-gate/SKILL.md +77 -0
- package/resources/claude-customizations/.claude-variants/csharp-legacy/skills/invoke-csharp-engineer/SKILL.md +64 -0
- package/resources/claude-customizations/pack-manifests/core.json +65 -0
- package/resources/claude-customizations/pack-manifests/csharp-legacy.json +11 -0
- package/resources/claude-customizations/pack-manifests/csharp-modern.json +12 -0
- package/resources/claude-customizations/pack-manifests/powershell.json +14 -0
- package/resources/claude-customizations/pack-manifests/python.json +14 -0
- package/resources/claude-customizations/pack-manifests/typescript.json +9 -0
- package/resources/claude-dir-customizations/.mcp.json +3 -3
- package/resources/codex-and-agents-customizations/.agents/README.md +1 -1
- package/resources/codex-and-agents-customizations/.agents/skills/acceptance-criteria-tracking/SKILL.md +0 -5
- package/resources/codex-and-agents-customizations/.agents/skills/architecture-boundaries/SKILL.md +52 -0
- package/resources/codex-and-agents-customizations/.agents/skills/atomic-plan-contract/SKILL.md +16 -8
- package/resources/codex-and-agents-customizations/.agents/skills/benchmark-baselines/SKILL.md +44 -0
- package/resources/codex-and-agents-customizations/.agents/skills/ci-workflows/SKILL.md +45 -0
- package/resources/codex-and-agents-customizations/.agents/skills/commit-message/SKILL.md +3 -11
- package/resources/codex-and-agents-customizations/.agents/skills/csharp/SKILL.md +1 -5
- package/resources/codex-and-agents-customizations/.agents/skills/csharp-change-budget-router/SKILL.md +1 -6
- package/resources/codex-and-agents-customizations/.agents/skills/csharp-orchestration-state-machine/SKILL.md +0 -5
- package/resources/codex-and-agents-customizations/.agents/skills/csharp-qa-gate/SKILL.md +0 -5
- package/resources/codex-and-agents-customizations/.agents/skills/evidence-and-timestamp-conventions/SKILL.md +0 -5
- package/resources/codex-and-agents-customizations/.agents/skills/execute-hard-lock/SKILL.md +8 -17
- package/resources/codex-and-agents-customizations/.agents/skills/feature-promotion-lifecycle/SKILL.md +41 -25
- package/resources/codex-and-agents-customizations/.agents/skills/feature-review-workflow/SKILL.md +1 -6
- package/resources/codex-and-agents-customizations/.agents/skills/fill-feature-docs/SKILL.md +0 -5
- package/resources/codex-and-agents-customizations/.agents/skills/general-code-change/SKILL.md +86 -0
- package/resources/codex-and-agents-customizations/.agents/skills/general-unit-test/SKILL.md +111 -0
- package/resources/codex-and-agents-customizations/.agents/skills/human-exception-runbook/SKILL.md +57 -0
- package/resources/codex-and-agents-customizations/.agents/skills/human-exception-runbook/example.runbook.md +36 -0
- package/resources/codex-and-agents-customizations/.agents/skills/invoke-csharp-engineer/SKILL.md +0 -9
- package/resources/codex-and-agents-customizations/.agents/skills/invoke-powershell-engineer/SKILL.md +0 -9
- package/resources/codex-and-agents-customizations/.agents/skills/invoke-python-engineer/SKILL.md +0 -9
- package/resources/codex-and-agents-customizations/.agents/skills/make-skill-template/SKILL.md +0 -5
- package/resources/codex-and-agents-customizations/.agents/skills/orchestrate/SKILL.md +206 -18
- package/resources/codex-and-agents-customizations/.agents/skills/orchestrator-state/SKILL.md +48 -0
- package/resources/codex-and-agents-customizations/.agents/skills/orchestrator-workflow/SKILL.md +94 -10
- package/resources/codex-and-agents-customizations/.agents/skills/policy-audit-template-usage/SKILL.md +3 -8
- package/resources/codex-and-agents-customizations/.agents/skills/policy-compliance-order/SKILL.md +0 -10
- package/resources/codex-and-agents-customizations/.agents/skills/powershell/SKILL.md +4 -8
- package/resources/codex-and-agents-customizations/.agents/skills/powershell-change-budget-router/SKILL.md +1 -6
- package/resources/codex-and-agents-customizations/.agents/skills/powershell-orchestration-state-machine/SKILL.md +0 -5
- package/resources/codex-and-agents-customizations/.agents/skills/powershell-qa-gate/SKILL.md +3 -9
- package/resources/codex-and-agents-customizations/.agents/skills/pr-author/SKILL.md +1 -9
- package/resources/codex-and-agents-customizations/.agents/skills/pr-base-branch-merge-base/SKILL.md +4 -9
- package/resources/codex-and-agents-customizations/.agents/skills/pr-context-artifacts/SKILL.md +0 -5
- package/resources/codex-and-agents-customizations/.agents/skills/python/SKILL.md +1 -5
- package/resources/codex-and-agents-customizations/.agents/skills/python-change-budget-router/SKILL.md +1 -6
- package/resources/codex-and-agents-customizations/.agents/skills/python-qa-gate/SKILL.md +0 -5
- package/resources/codex-and-agents-customizations/.agents/skills/python-suppressions/SKILL.md +2 -6
- package/resources/codex-and-agents-customizations/.agents/skills/quality-tiers/SKILL.md +57 -0
- package/resources/codex-and-agents-customizations/.agents/skills/remediation-handoff-atomic-planner/SKILL.md +0 -5
- package/resources/codex-and-agents-customizations/.agents/skills/repo-automation-adapter/SKILL.md +96 -72
- package/resources/codex-and-agents-customizations/.agents/skills/repo-automation-adapter/agents/openai.yaml +1 -1
- package/resources/codex-and-agents-customizations/.agents/skills/research-issue/SKILL.md +0 -10
- package/resources/codex-and-agents-customizations/.agents/skills/review-epic/SKILL.md +0 -5
- package/resources/codex-and-agents-customizations/.agents/skills/review-feature/SKILL.md +0 -5
- package/resources/codex-and-agents-customizations/.agents/skills/review-staged/SKILL.md +0 -5
- package/resources/codex-and-agents-customizations/.agents/skills/self-explanatory-code-commenting/SKILL.md +2 -6
- package/resources/codex-and-agents-customizations/.agents/skills/skill-canonical-location-audit/SKILL.md +0 -5
- package/resources/codex-and-agents-customizations/.agents/skills/tonality/SKILL.md +86 -0
- package/resources/codex-and-agents-customizations/.agents/skills/translate-claude-to-codex/SKILL.md +297 -0
- package/resources/codex-and-agents-customizations/.agents/skills/translate-copilot-to-claude/SKILL.md +0 -22
- package/resources/codex-and-agents-customizations/.agents/skills/typescript/SKILL.md +1 -5
- package/resources/codex-and-agents-customizations/.agents/skills/typescript-suppressions/SKILL.md +2 -6
- package/resources/codex-and-agents-customizations/.agents/skills/update-status/SKILL.md +0 -5
- package/resources/codex-and-agents-customizations/.codex/agents/atomic-executor.toml +5 -5
- package/resources/codex-and-agents-customizations/.codex/agents/orchestrator.toml +91 -63
- package/resources/codex-and-agents-customizations/.codex/agents/powershell-atomic-executor.toml +1 -1
- package/resources/codex-and-agents-customizations/.codex/agents/powershell-typed-engineer.toml +1 -1
- package/resources/codex-and-agents-customizations/.codex/config.toml +111 -137
- package/resources/codex-and-agents-customizations/.codex/hooks/enforce-checkpoint-monotonic.ps1 +303 -0
- package/resources/codex-and-agents-customizations/.codex/hooks/enforce-completion-consistency.ps1 +300 -0
- package/resources/codex-and-agents-customizations/.codex/hooks/enforce-orchestration-preimplementation-gate.ps1 +148 -0
- package/resources/codex-and-agents-customizations/.codex/hooks/enforce-pr-author-skill.ps1 +336 -0
- package/resources/codex-and-agents-customizations/.codex/hooks/enforce-promotion-mcp-only.ps1 +84 -18
- package/resources/codex-and-agents-customizations/.codex/prompts/orchestrate-work.md +4 -3
- package/resources/codex-and-agents-customizations/.codex/scripts/post-codex-worktree-session.ps1 +5 -0
- package/resources/codex-and-agents-customizations/.github/workflows/_validate-orchestrator-state.yml +68 -0
- package/resources/codex-and-agents-customizations/.github/workflows/validate-orchestrator-state.yml +15 -0
- package/resources/config/orchestration-routing.json +76 -0
- package/resources/customizations/.github/agents/Powershell DI Unit Test Engineer.agent.md +1 -1
- package/resources/customizations/.github/agents/atomic_executor.agent.md +1 -1
- package/resources/customizations/.github/agents/atomic_planning.agent.md +10 -10
- package/resources/customizations/.github/agents/csharp-orchestrator.agent.md +6 -2
- package/resources/customizations/.github/agents/feature-review.agent.md +2 -2
- package/resources/customizations/.github/agents/orchestrator.agent.md +6 -2
- package/resources/customizations/.github/agents/powershell-atomic-executor.agent.md +4 -4
- package/resources/customizations/.github/agents/powershell-atomic-planning.agent.md +10 -10
- package/resources/customizations/.github/agents/powershell-orchestrator.agent.md +6 -2
- package/resources/customizations/.github/agents/powershell-typed-engineer.agent.md +2 -2
- package/resources/customizations/.github/agents/pr-author.agent.md +25 -0
- package/resources/customizations/.github/agents/python-orchestrator.agent.md +6 -2
- package/resources/customizations/.github/agents/staged-review.agent.md +1 -1
- package/resources/customizations/.github/agents/task-researcher.agent.md +4 -4
- package/resources/customizations/.github/instructions/powershell-code-change.instructions.md +6 -6
- package/resources/customizations/.github/prompts/fillout-prd-feature.prompt.md +1 -1
- package/resources/customizations/.github/prompts/generate-commit-message-repo.prompt.md +1 -1
- package/resources/customizations/.github/prompts/orchestrate-csharp-work.prompt.md +5 -3
- package/resources/customizations/.github/prompts/orchestrate-work.prompt.md +5 -3
- package/resources/customizations/.github/prompts/research-issue.prompt.md +4 -3
- package/resources/customizations/.github/skills/atomic-plan-contract/SKILL.md +14 -1
- package/resources/customizations/.github/skills/feature-promotion-lifecycle/SKILL.md +11 -7
- package/resources/customizations/.github/skills/feature-review-workflow/SKILL.md +10 -1
- package/resources/customizations/.github/skills/pr-base-branch-merge-base/SKILL.md +2 -2
- package/resources/customizations/.github/skills/remediation-handoff-atomic-planner/SKILL.md +5 -0
- package/resources/powershell/PoshQC/settings/pester.runsettings.psd1 +7 -0
- package/resources/scripts/dev_tools/_orchestrator_state_human_interaction.py +127 -0
- package/resources/scripts/dev_tools/_orchestrator_state_routing.py +216 -0
- package/resources/scripts/dev_tools/push_down_claude_customizations.py +276 -61
- package/resources/scripts/dev_tools/push_down_claude_filesystem.py +472 -0
- package/resources/scripts/dev_tools/push_down_claude_pack_selection.py +401 -0
- package/resources/scripts/dev_tools/validate_orchestration_artifacts.py +103 -411
- package/resources/scripts/dev_tools/validate_orchestration_review_artifacts.py +107 -0
- package/resources/scripts/dev_tools/validate_orchestrator_state.py +505 -0
- package/resources/scripts/dev_tools/validate_policy_audit_artifact.py +472 -0
- package/resources/templates/push_down_claude_customizations.py +162 -117
- package/resources/claude-customizations/.claude/agent-memory/orchestrator/feedback_repo_root_is_source_of_truth.md +0 -11
- package/resources/claude-customizations/.claude/agent-memory/orchestrator/feedback_vsce_verify_package_location.md +0 -19
- package/resources/claude-customizations/.claude/agent-memory/orchestrator/project_extension_location.md +0 -11
- package/resources/claude-customizations/.claude/agent-memory/prd-feature/MEMORY.md +0 -1
- package/resources/claude-customizations/.claude/agent-memory/prd-feature/project_push_down_pattern.md +0 -13
- package/resources/claude-customizations/.claude/agent-memory/task-researcher/MEMORY.md +0 -3
- package/resources/claude-customizations/.claude/agent-memory/task-researcher/project_push_down_claude_dir.md +0 -11
package/resources/codex-and-agents-customizations/.github/workflows/_validate-orchestrator-state.yml
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
name: Validate Orchestrator State
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_call:
|
|
5
|
+
inputs:
|
|
6
|
+
state-path:
|
|
7
|
+
description: Repository-relative orchestrator checkpoint path.
|
|
8
|
+
required: false
|
|
9
|
+
type: string
|
|
10
|
+
default: artifacts/orchestration/orchestrator-state.json
|
|
11
|
+
require-checkpoint:
|
|
12
|
+
description: Fail when the checkpoint file is absent.
|
|
13
|
+
required: false
|
|
14
|
+
type: boolean
|
|
15
|
+
default: true
|
|
16
|
+
workflow_dispatch:
|
|
17
|
+
inputs:
|
|
18
|
+
state-path:
|
|
19
|
+
description: Repository-relative orchestrator checkpoint path.
|
|
20
|
+
required: false
|
|
21
|
+
type: string
|
|
22
|
+
default: artifacts/orchestration/orchestrator-state.json
|
|
23
|
+
require-checkpoint:
|
|
24
|
+
description: Fail when the checkpoint file is absent.
|
|
25
|
+
required: false
|
|
26
|
+
type: boolean
|
|
27
|
+
default: true
|
|
28
|
+
|
|
29
|
+
jobs:
|
|
30
|
+
validate-orchestrator-state:
|
|
31
|
+
name: Validate orchestrator checkpoint
|
|
32
|
+
runs-on: ubuntu-latest
|
|
33
|
+
|
|
34
|
+
steps:
|
|
35
|
+
- name: Check out repository
|
|
36
|
+
uses: actions/checkout@v4
|
|
37
|
+
|
|
38
|
+
- name: Set up Python
|
|
39
|
+
uses: actions/setup-python@v5
|
|
40
|
+
with:
|
|
41
|
+
python-version: "3.13"
|
|
42
|
+
|
|
43
|
+
- name: Install Poetry
|
|
44
|
+
uses: snok/install-poetry@v1
|
|
45
|
+
with:
|
|
46
|
+
version: latest
|
|
47
|
+
virtualenvs-create: true
|
|
48
|
+
virtualenvs-in-project: true
|
|
49
|
+
|
|
50
|
+
- name: Install dependencies
|
|
51
|
+
run: poetry install --no-interaction
|
|
52
|
+
|
|
53
|
+
- name: Validate checkpoint
|
|
54
|
+
env:
|
|
55
|
+
STATE_PATH: ${{ inputs.state-path }}
|
|
56
|
+
REQUIRE_CHECKPOINT: ${{ inputs.require-checkpoint }}
|
|
57
|
+
run: |
|
|
58
|
+
if [ ! -f "$STATE_PATH" ]; then
|
|
59
|
+
if [ "$REQUIRE_CHECKPOINT" = "true" ]; then
|
|
60
|
+
echo "ERROR: orchestrator checkpoint is required but was not found: $STATE_PATH" >&2
|
|
61
|
+
exit 1
|
|
62
|
+
fi
|
|
63
|
+
echo "No orchestrator checkpoint found at $STATE_PATH; validation skipped."
|
|
64
|
+
exit 0
|
|
65
|
+
fi
|
|
66
|
+
|
|
67
|
+
poetry run python -m scripts.dev_tools.validate_orchestration_artifacts \
|
|
68
|
+
orchestrator-state "$STATE_PATH" --require-complete
|
package/resources/codex-and-agents-customizations/.github/workflows/validate-orchestrator-state.yml
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
name: Orchestrator State Gate
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
branches: [main, development]
|
|
6
|
+
push:
|
|
7
|
+
branches: [main, development]
|
|
8
|
+
workflow_dispatch:
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
validate-orchestrator-state:
|
|
12
|
+
uses: ./.github/workflows/_validate-orchestrator-state.yml
|
|
13
|
+
with:
|
|
14
|
+
state-path: artifacts/orchestration/orchestrator-state.json
|
|
15
|
+
require-checkpoint: false
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"version": 1,
|
|
4
|
+
"routes": {
|
|
5
|
+
"small": {
|
|
6
|
+
"description": "Minor-audit path for work inside the applicable language budget.",
|
|
7
|
+
"required_agents": [
|
|
8
|
+
"atomic-planner",
|
|
9
|
+
"atomic-executor",
|
|
10
|
+
"feature-review"
|
|
11
|
+
],
|
|
12
|
+
"required_skills": [
|
|
13
|
+
"orchestrate",
|
|
14
|
+
"feature-promotion-lifecycle",
|
|
15
|
+
"atomic-plan-contract",
|
|
16
|
+
"acceptance-criteria-tracking",
|
|
17
|
+
"pr-context-artifacts",
|
|
18
|
+
"pr-base-branch-merge-base"
|
|
19
|
+
],
|
|
20
|
+
"required_mcp_tools": [
|
|
21
|
+
"new_potential_entry",
|
|
22
|
+
"potential_to_issue",
|
|
23
|
+
"new_active_feature_folder",
|
|
24
|
+
"collect_pr_context",
|
|
25
|
+
"validate_orchestration_artifacts"
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
"large": {
|
|
29
|
+
"description": "Full feature or bug path for work outside small-path budget.",
|
|
30
|
+
"required_agents": [
|
|
31
|
+
"task-researcher",
|
|
32
|
+
"prd-feature",
|
|
33
|
+
"atomic-planner",
|
|
34
|
+
"atomic-executor",
|
|
35
|
+
"feature-reviewer",
|
|
36
|
+
"commit-steward"
|
|
37
|
+
],
|
|
38
|
+
"required_skills": [
|
|
39
|
+
"orchestrate",
|
|
40
|
+
"orchestrator-workflow",
|
|
41
|
+
"feature-promotion-lifecycle",
|
|
42
|
+
"repo-automation-adapter",
|
|
43
|
+
"atomic-plan-contract",
|
|
44
|
+
"acceptance-criteria-tracking",
|
|
45
|
+
"pr-context-artifacts",
|
|
46
|
+
"pr-base-branch-merge-base"
|
|
47
|
+
],
|
|
48
|
+
"required_mcp_tools": [
|
|
49
|
+
"new_potential_entry",
|
|
50
|
+
"potential_to_issue",
|
|
51
|
+
"new_active_feature_folder",
|
|
52
|
+
"collect_commit_context",
|
|
53
|
+
"collect_pr_context",
|
|
54
|
+
"validate_orchestration_artifacts"
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
"remediation": {
|
|
58
|
+
"description": "Review-triggered remediation loop.",
|
|
59
|
+
"required_agents": [
|
|
60
|
+
"atomic-planner",
|
|
61
|
+
"atomic-executor",
|
|
62
|
+
"feature-review"
|
|
63
|
+
],
|
|
64
|
+
"required_skills": [
|
|
65
|
+
"orchestrate",
|
|
66
|
+
"atomic-plan-contract",
|
|
67
|
+
"acceptance-criteria-tracking",
|
|
68
|
+
"pr-context-artifacts"
|
|
69
|
+
],
|
|
70
|
+
"required_mcp_tools": [
|
|
71
|
+
"collect_pr_context",
|
|
72
|
+
"validate_orchestration_artifacts"
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -91,7 +91,7 @@ If any gate fails:
|
|
|
91
91
|
You must run the repo toolchain via `#tool:terminal`.
|
|
92
92
|
|
|
93
93
|
### Baseline runs (required before edits)
|
|
94
|
-
- Analyzer baseline (repo standard): `
|
|
94
|
+
- Analyzer baseline (repo standard): `mcp__drm-copilot__run_poshqc_analyze`
|
|
95
95
|
- Test baseline (targeted): run only the relevant Pester file(s) or tag/filter used by the repo
|
|
96
96
|
- Coverage baseline: capture per-file coverage for the touched file(s), and overall if applicable
|
|
97
97
|
|
|
@@ -242,7 +242,7 @@ If the user says “resume”, “continue”, or “try again”:
|
|
|
242
242
|
- When completing a task or a plan, report the toolchain status explicitly:
|
|
243
243
|
- For python, this is Black, Ruff, Pyright, Pytest, and coverage.
|
|
244
244
|
- For bash, this is shell QC and bats testing.
|
|
245
|
-
- For powershell, this is `
|
|
245
|
+
- For powershell, this is `mcp__drm-copilot__run_poshqc_format`, `mcp__drm-copilot__run_poshqc_analyze`, and `mcp_drmcopilotext_run_poshqc_test`.
|
|
246
246
|
- For json, this is json formatting and json linting.
|
|
247
247
|
- Always end with the updated checklist so the user can see progress.
|
|
248
248
|
|
|
@@ -361,13 +361,13 @@ When the work involves tests:
|
|
|
361
361
|
|
|
362
362
|
**Bad:**
|
|
363
363
|
|
|
364
|
-
* [ ] [P3-T1] Implement tests for `
|
|
365
|
-
* [ ] [P3-T2] Write unit tests for `
|
|
364
|
+
* [ ] [P3-T1] Implement tests for `mcp__drm-copilot__run_poshqc_format`
|
|
365
|
+
* [ ] [P3-T2] Write unit tests for `mcp__drm-copilot__run_poshqc_analyze`
|
|
366
366
|
|
|
367
367
|
**Good:**
|
|
368
368
|
|
|
369
|
-
* [ ] [P3-T1] Add regression test for `
|
|
370
|
-
* [ ] [P3-T2] Add regression test for `
|
|
369
|
+
* [ ] [P3-T1] Add regression test for `mcp__drm-copilot__run_poshqc_format` forwarding selected `scan_folders`
|
|
370
|
+
* [ ] [P3-T2] Add regression test for `mcp__drm-copilot__run_poshqc_analyze` rejecting invalid scan-folder input
|
|
371
371
|
* [ ] [P3-T3] Add regression test for `mcp_drmcopilotext_run_poshqc_test` preserving the selected workspace scope
|
|
372
372
|
|
|
373
373
|
### 5.4.1 TDD Red regression tests must be tagged (MANDATORY)
|
|
@@ -422,15 +422,15 @@ When refactoring is required (e.g., to enable dependency injection, improve test
|
|
|
422
422
|
|
|
423
423
|
**Bad:**
|
|
424
424
|
|
|
425
|
-
* [ ] [P1-T1] Refactor `
|
|
425
|
+
* [ ] [P1-T1] Refactor `mcp__drm-copilot__run_poshqc_analyze_autofix` integration for testability
|
|
426
426
|
|
|
427
427
|
**Good:**
|
|
428
428
|
|
|
429
|
-
* [ ] [P1-T1] Identify external dependencies used by `
|
|
430
|
-
* [ ] [P1-T2] Extract the autofix invocation seam behind `
|
|
431
|
-
* [ ] [P1-T3] Add an injectable execution seam for `
|
|
432
|
-
* [ ] [P1-T4] Update all call sites of `
|
|
433
|
-
* [ ] [P1-T5] Verify that `
|
|
429
|
+
* [ ] [P1-T1] Identify external dependencies used by `mcp__drm-copilot__run_poshqc_analyze_autofix` and list them in an internal note
|
|
430
|
+
* [ ] [P1-T2] Extract the autofix invocation seam behind `mcp__drm-copilot__run_poshqc_analyze_autofix` into helper functions
|
|
431
|
+
* [ ] [P1-T3] Add an injectable execution seam for `mcp__drm-copilot__run_poshqc_analyze_autofix` with a production default
|
|
432
|
+
* [ ] [P1-T4] Update all call sites of `mcp__drm-copilot__run_poshqc_analyze_autofix` to use the default seam
|
|
433
|
+
* [ ] [P1-T5] Verify that `mcp__drm-copilot__run_poshqc_analyze_autofix` is mockable via the new helper functions in tests
|
|
434
434
|
|
|
435
435
|
3. **No umbrella refactor tasks**
|
|
436
436
|
You MUST NOT use a single task that says “Refactor X for testability.” Always decompose into multiple atomic slices as above.
|
|
@@ -111,6 +111,10 @@ Use these reusable skills to avoid duplicating shared operations:
|
|
|
111
111
|
- `${feature-folder}`: created active feature folder path
|
|
112
112
|
- `${plan-path}`: workspace-relative path to the single plan file that must be updated in-place across all planning/preflight iterations
|
|
113
113
|
|
|
114
|
+
5) **No manual steps by default**
|
|
115
|
+
- Do not introduce manual bootstrap, human-operator validation, user-performed repro steps, or any other manual handoff unless the initial user request explicitly asked for manual orchestration from the beginning.
|
|
116
|
+
- If a delegated plan, review, or remediation flow proposes a new manual step without that explicit initial opt-in, reject it, request a revision, or record blocked automated state instead of asking the user to perform the step.
|
|
117
|
+
|
|
114
118
|
# Workflow router
|
|
115
119
|
|
|
116
120
|
## Phase 0 — Intake and budget estimate (mandatory)
|
|
@@ -198,11 +202,11 @@ Hard enforcement for S4:
|
|
|
198
202
|
|
|
199
203
|
### Step S5 — Branch by bootstrap mode
|
|
200
204
|
|
|
201
|
-
S5.1
|
|
205
|
+
S5.1 Only if the initial user request explicitly requested `manual bootstrap` from the beginning:
|
|
202
206
|
- Save checkpoint with `next_step` at Phase 1 resume point.
|
|
203
207
|
- Stop execution and return resume instructions.
|
|
204
208
|
|
|
205
|
-
S5.2
|
|
209
|
+
S5.2 Otherwise continue automated small development:
|
|
206
210
|
- Continue to Step S6.
|
|
207
211
|
|
|
208
212
|
### Step S6 — Delegate constrained small-path development
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: feature_code_review_agent
|
|
3
|
-
description: Review an entire feature branch relative to a base branch (PR-style). Read pr_context.summary.txt thoroughly, use pr_context.appendix.txt for full baseline diff evidence, and produce PolicyAudit + CodeReview + FeatureAudit (Acceptance Criteria). If remediation is needed, generate remediation inputs and delegate plan creation to atomic_planner to write remediation-plan.md in the active feature folder. No user questions.
|
|
4
|
-
argument-hint: "Checkout the feature branch. Provide PRBaseBranch (e.g., development). Run this agent to (re)generate the PR context artifacts (summary + appendix) per `pr-context-artifacts` via MCP server `
|
|
3
|
+
description: Review an entire feature branch relative to a base branch (PR-style). Read pr_context.summary.txt thoroughly, use pr_context.appendix.txt for full baseline diff evidence, and produce PolicyAudit + CodeReview + FeatureAudit (Acceptance Criteria). If remediation is needed, generate remediation inputs and delegate plan creation to atomic_planner to write remediation-plan.md in the active feature folder. End with exact review-status and artifact-path lines so orchestration can gate deterministically. No user questions.
|
|
4
|
+
argument-hint: "Checkout the feature branch. Provide PRBaseBranch (e.g., development). Run this agent to (re)generate the PR context artifacts (summary + appendix) per `pr-context-artifacts` via MCP server `drm-copilot` tool `collect_pr_context` with `base: ${input:PRBaseBranch}` when needed, then produce: (1) docs/features/active/<feature>/policy-audit.<timestamp>.md, (2) docs/features/active/<feature>/code-review.<timestamp>.md, (3) docs/features/active/<feature>/feature-audit.<timestamp>.md (acceptance criteria), and (4) if needed, docs/features/active/<feature>/remediation-inputs.<timestamp>.md AND AUTOMATICALLY DELEGATE to atomic_planner to write docs/features/active/<feature>/remediation-plan.<timestamp>.md in the same folder. Timestamps use ISO-8601 format yyyy-MM-ddTHH-mm. The final report MUST include exact `REVIEW_STATUS`, `FEATURE_FOLDER`, `POLICY_AUDIT`, `CODE_REVIEW`, `FEATURE_AUDIT`, `REMEDIATION_INPUTS`, and `REMEDIATION_PLAN` lines."
|
|
5
5
|
tools:
|
|
6
6
|
['execute/getTerminalOutput', 'execute/runTask', 'execute/runTests', 'execute/runInTerminal', 'read/terminalSelection', 'read/terminalLastCommand', 'read/getTaskOutput', 'read/problems', 'read/readFile', 'agent', 'edit/createDirectory', 'edit/createFile', 'edit/editFiles', 'search', 'drmcopilotextension/*', 'web', 'todo']
|
|
7
7
|
handoffs:
|
|
@@ -147,6 +147,10 @@ Use exact gate signals and exact path fields. Do not infer loop transitions from
|
|
|
147
147
|
|
|
148
148
|
If any required signal or required path field is missing, stop and record blocked state instead of inferring success.
|
|
149
149
|
|
|
150
|
+
5) **No manual steps by default**
|
|
151
|
+
- Do not introduce manual bootstrap, human-operator validation, user-performed repro steps, or any other manual handoff unless the initial user request explicitly asked for manual orchestration from the beginning.
|
|
152
|
+
- If a delegated plan, review, or remediation flow proposes a new manual step without that explicit initial opt-in, reject it, request a revision, or record blocked automated state instead of asking the user to perform the step.
|
|
153
|
+
|
|
150
154
|
# Workflow router
|
|
151
155
|
|
|
152
156
|
## Phase 0 — Intake and budget estimate (mandatory)
|
|
@@ -234,11 +238,11 @@ Hard enforcement for S4:
|
|
|
234
238
|
|
|
235
239
|
### Step S5 — Branch by bootstrap mode
|
|
236
240
|
|
|
237
|
-
S5.1
|
|
241
|
+
S5.1 Only if the initial user request explicitly requested `manual bootstrap` from the beginning:
|
|
238
242
|
- Save checkpoint with `next_step` at Phase 1 resume point.
|
|
239
243
|
- Stop execution and return resume instructions.
|
|
240
244
|
|
|
241
|
-
S5.2
|
|
245
|
+
S5.2 Otherwise continue automated small development:
|
|
242
246
|
- Continue to Step S6.
|
|
243
247
|
|
|
244
248
|
### Step S6 — Delegate constrained small-path development
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: powershell_atomic_executor
|
|
3
|
-
description: Execute atomic_planner plans verbatim with atomic_executor rigor and PowerShell-specialized MCP quality gates (`
|
|
3
|
+
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_drmcopilotext_run_poshqc_test`, `mcp__drm-copilot__run_poshqc_analyze_autofix`), Pester, DI/mocking rules, and zero-regression deltas.
|
|
4
4
|
argument-hint: "Provide the approved atomic plan text or path. I will run preflight validation, then execute tasks in order with strict acceptance checks and PowerShell-specific QA gates."
|
|
5
5
|
tools: [vscode, execute/testFailure, execute/getTerminalOutput, execute/killTerminal, execute/runTask, execute/createAndRunTask, execute/runInTerminal, execute/runTests, read/problems, read/readFile, read/terminalSelection, read/terminalLastCommand, agent, edit/createDirectory, edit/createFile, edit/editFiles, search, web, 'drmcopilotextension/*', todo]
|
|
6
6
|
---
|
|
@@ -239,7 +239,7 @@ If the user says "resume", "continue", or "try again":
|
|
|
239
239
|
- Be concise but exact.
|
|
240
240
|
- Do not paste large code blocks unless the user asks.
|
|
241
241
|
- Always show the commands/tasks you run and summarize results (pass/fail, key errors).
|
|
242
|
-
- When completing a task or a plan, report the toolchain status explicitly: `
|
|
242
|
+
- When completing a task or a plan, report the toolchain status explicitly: `mcp__drm-copilot__run_poshqc_format`, `mcp__drm-copilot__run_poshqc_analyze`, and `mcp_drmcopilotext_run_poshqc_test`.
|
|
243
243
|
- Always end with the updated checklist so the user can see progress.
|
|
244
244
|
|
|
245
245
|
---
|
|
@@ -255,8 +255,8 @@ Always enforce repo policy order:
|
|
|
255
255
|
5) `.github/instructions/powershell-unit-test.instructions.md`
|
|
256
256
|
|
|
257
257
|
Required toolchain for PowerShell tasks:
|
|
258
|
-
1) Format (`
|
|
259
|
-
2) Analyze (`
|
|
258
|
+
1) Format (`mcp__drm-copilot__run_poshqc_format`)
|
|
259
|
+
2) Analyze (`mcp__drm-copilot__run_poshqc_analyze`)
|
|
260
260
|
3) Test (`mcp_drmcopilotext_run_poshqc_test`)
|
|
261
261
|
4) Coverage (when enforced)
|
|
262
262
|
|
|
@@ -362,13 +362,13 @@ When the work involves tests:
|
|
|
362
362
|
|
|
363
363
|
**Bad:**
|
|
364
364
|
|
|
365
|
-
* [ ] [P3-T1] Implement tests for `
|
|
366
|
-
* [ ] [P3-T2] Write unit tests for `
|
|
365
|
+
* [ ] [P3-T1] Implement tests for `mcp__drm-copilot__run_poshqc_format`
|
|
366
|
+
* [ ] [P3-T2] Write unit tests for `mcp__drm-copilot__run_poshqc_analyze`
|
|
367
367
|
|
|
368
368
|
**Good:**
|
|
369
369
|
|
|
370
|
-
* [ ] [P3-T1] Add regression test for `
|
|
371
|
-
* [ ] [P3-T2] Add regression test for `
|
|
370
|
+
* [ ] [P3-T1] Add regression test for `mcp__drm-copilot__run_poshqc_format` forwarding selected `scan_folders`
|
|
371
|
+
* [ ] [P3-T2] Add regression test for `mcp__drm-copilot__run_poshqc_analyze` rejecting invalid scan-folder input
|
|
372
372
|
* [ ] [P3-T3] Add regression test for `mcp_drmcopilotext_run_poshqc_test` preserving the selected workspace scope
|
|
373
373
|
|
|
374
374
|
### 5.4.1 TDD Red regression tests must be tagged (MANDATORY)
|
|
@@ -423,15 +423,15 @@ When refactoring is required (e.g., to enable dependency injection, improve test
|
|
|
423
423
|
|
|
424
424
|
**Bad:**
|
|
425
425
|
|
|
426
|
-
* [ ] [P1-T1] Refactor `
|
|
426
|
+
* [ ] [P1-T1] Refactor `mcp__drm-copilot__run_poshqc_analyze_autofix` integration for testability
|
|
427
427
|
|
|
428
428
|
**Good:**
|
|
429
429
|
|
|
430
|
-
* [ ] [P1-T1] Identify external dependencies used by `
|
|
431
|
-
* [ ] [P1-T2] Extract the autofix invocation seam behind `
|
|
432
|
-
* [ ] [P1-T3] Add an injectable execution seam for `
|
|
433
|
-
* [ ] [P1-T4] Update all call sites of `
|
|
434
|
-
* [ ] [P1-T5] Verify that `
|
|
430
|
+
* [ ] [P1-T1] Identify external dependencies used by `mcp__drm-copilot__run_poshqc_analyze_autofix` and list them in an internal note
|
|
431
|
+
* [ ] [P1-T2] Extract the autofix invocation seam behind `mcp__drm-copilot__run_poshqc_analyze_autofix` into helper functions
|
|
432
|
+
* [ ] [P1-T3] Add an injectable execution seam for `mcp__drm-copilot__run_poshqc_analyze_autofix` with a production default
|
|
433
|
+
* [ ] [P1-T4] Update all call sites of `mcp__drm-copilot__run_poshqc_analyze_autofix` to use the default seam
|
|
434
|
+
* [ ] [P1-T5] Verify that `mcp__drm-copilot__run_poshqc_analyze_autofix` is mockable via the new helper functions in tests
|
|
435
435
|
|
|
436
436
|
3. **No umbrella refactor tasks**
|
|
437
437
|
You MUST NOT use a single task that says “Refactor X for testability.” Always decompose into multiple atomic slices as above.
|
|
@@ -111,6 +111,10 @@ Use these reusable skills to avoid duplicating shared operations:
|
|
|
111
111
|
- `${feature-folder}`: created active feature folder path
|
|
112
112
|
- `${plan-path}`: workspace-relative path to the single plan file that must be updated in-place across all planning/preflight iterations
|
|
113
113
|
|
|
114
|
+
5) **No manual steps by default**
|
|
115
|
+
- Do not introduce manual bootstrap, human-operator validation, user-performed repro steps, or any other manual handoff unless the initial user request explicitly asked for manual orchestration from the beginning.
|
|
116
|
+
- If a delegated plan, review, or remediation flow proposes a new manual step without that explicit initial opt-in, reject it, request a revision, or record blocked automated state instead of asking the user to perform the step.
|
|
117
|
+
|
|
114
118
|
# Workflow router
|
|
115
119
|
|
|
116
120
|
## Phase 0 — Intake and budget estimate (mandatory)
|
|
@@ -198,11 +202,11 @@ Hard enforcement for S4:
|
|
|
198
202
|
|
|
199
203
|
### Step S5 — Branch by bootstrap mode
|
|
200
204
|
|
|
201
|
-
S5.1
|
|
205
|
+
S5.1 Only if the initial user request explicitly requested `manual bootstrap` from the beginning:
|
|
202
206
|
- Save checkpoint with `next_step` at Phase 1 resume point.
|
|
203
207
|
- Stop execution and return resume instructions.
|
|
204
208
|
|
|
205
|
-
S5.2
|
|
209
|
+
S5.2 Otherwise continue automated small development:
|
|
206
210
|
- Continue to Step S6.
|
|
207
211
|
|
|
208
212
|
### Step S6 — Delegate constrained small-path development
|
|
@@ -175,8 +175,8 @@ If any gate fails, revert/fix immediately before proceeding.
|
|
|
175
175
|
|
|
176
176
|
Run the repo-standard PowerShell toolchain in this order:
|
|
177
177
|
|
|
178
|
-
1) **Format** (`
|
|
179
|
-
2) **Analyze** (`
|
|
178
|
+
1) **Format** (`mcp__drm-copilot__run_poshqc_format`)
|
|
179
|
+
2) **Analyze** (`mcp__drm-copilot__run_poshqc_analyze`)
|
|
180
180
|
3) **Test** (`mcp_drmcopilotext_run_poshqc_test`)
|
|
181
181
|
4) **Coverage** (when enforced by task/repo flow)
|
|
182
182
|
|
|
@@ -136,3 +136,28 @@ Use these sections, in this order:
|
|
|
136
136
|
- No hallucinated issue/PR numbers.
|
|
137
137
|
|
|
138
138
|
That’s it. Produce the PR body.
|
|
139
|
+
|
|
140
|
+
## Authorization Sentinel Protocol (Documentation-Only in This Ecosystem)
|
|
141
|
+
|
|
142
|
+
When this agent opens or updates a pull request via `gh pr create` or `gh pr edit --body*`, it follows
|
|
143
|
+
the cross-ecosystem authorization sentinel protocol:
|
|
144
|
+
|
|
145
|
+
1. Run `git rev-parse HEAD` to obtain `head_sha`.
|
|
146
|
+
2. Write `artifacts/pr_author_authorization.json` with exactly: `issued_by` set to `"pr-author"`,
|
|
147
|
+
`issued_at` as a UTC ISO-8601 timestamp, `head_sha` from step 1, and `ttl_seconds` set to `120`.
|
|
148
|
+
3. Issue the `gh pr create` / `gh pr edit --body-file ...` command immediately, within the 120-second
|
|
149
|
+
TTL. Pass the PR body via `--body-file`; inline `--body` is not used.
|
|
150
|
+
4. Delete `artifacts/pr_author_authorization.json` after the command completes (success or failure).
|
|
151
|
+
|
|
152
|
+
After opening or updating the PR, report the resulting PR URL or PR number.
|
|
153
|
+
|
|
154
|
+
Enforcement in the GitHub Copilot ecosystem is **documentation-only**: the Copilot ecosystem has no
|
|
155
|
+
PreToolUse hook surface, so the sentinel protocol cannot be mechanically enforced here. The protocol
|
|
156
|
+
is documented for consistency with the Claude and Codex ecosystems, where a PreToolUse hook verifies
|
|
157
|
+
the sentinel.
|
|
158
|
+
|
|
159
|
+
The authorization sentinel is a **policy guardrail, not a cryptographic or security control.** Any
|
|
160
|
+
actor with write access to `artifacts/` can forge `artifacts/pr_author_authorization.json`, because
|
|
161
|
+
all agents share the same filesystem and the runtime exposes no native agent-identity signal at tool
|
|
162
|
+
pre-use time. The mechanism prevents accidental bypass and requires a deliberate, documented act to
|
|
163
|
+
circumvent. It is not tamper-proof and is not a security boundary.
|
|
@@ -109,6 +109,10 @@ Use these reusable skills to avoid duplicating shared operations:
|
|
|
109
109
|
- `${feature-folder}`: created active feature folder path
|
|
110
110
|
- `${plan-path}`: workspace-relative path to the single plan file that must be updated in-place across all planning/preflight iterations
|
|
111
111
|
|
|
112
|
+
5) **No manual steps by default**
|
|
113
|
+
- Do not introduce manual bootstrap, human-operator validation, user-performed repro steps, or any other manual handoff unless the initial user request explicitly asked for manual orchestration from the beginning.
|
|
114
|
+
- If a delegated plan, review, or remediation flow proposes a new manual step without that explicit initial opt-in, reject it, request a revision, or record blocked automated state instead of asking the user to perform the step.
|
|
115
|
+
|
|
112
116
|
# Workflow router
|
|
113
117
|
|
|
114
118
|
## Phase 0 — Intake and budget estimate (mandatory)
|
|
@@ -196,11 +200,11 @@ Hard enforcement for S4:
|
|
|
196
200
|
|
|
197
201
|
### Step S5 — Branch by bootstrap mode
|
|
198
202
|
|
|
199
|
-
S5.1
|
|
203
|
+
S5.1 Only if the initial user request explicitly requested `manual bootstrap` from the beginning:
|
|
200
204
|
- Save checkpoint with `next_step` at Phase 1 resume point.
|
|
201
205
|
- Stop execution and return resume instructions.
|
|
202
206
|
|
|
203
|
-
S5.2
|
|
207
|
+
S5.2 Otherwise continue automated small development:
|
|
204
208
|
- Continue to Step S6.
|
|
205
209
|
|
|
206
210
|
### Step S6 — Delegate constrained small-path development
|
|
@@ -48,7 +48,7 @@ You MUST read and follow, in priority order:
|
|
|
48
48
|
|
|
49
49
|
Policy Audit templates:
|
|
50
50
|
- If and only if the user asked for a Policy Audit (this agent invocation counts), you MUST also follow:
|
|
51
|
-
- MCP server `
|
|
51
|
+
- MCP server `drm-copilot` tool `resolve_policy_audit_template_asset` with the selector appropriate to the needed artifact:
|
|
52
52
|
- `asset: template` for `policy-audit.yyyy-MM-ddTHH-mm.md`
|
|
53
53
|
- `asset: code-review-template` for `code-review.yyyy-MM-ddTHH-mm.md`
|
|
54
54
|
- `asset: feature-audit-template` for `feature-audit.yyyy-MM-ddTHH-mm.md`
|
|
@@ -8,13 +8,13 @@ tools: [vscode/getProjectSetupInfo, vscode/installExtension, vscode/newWorkspace
|
|
|
8
8
|
|
|
9
9
|
## Role Definition
|
|
10
10
|
|
|
11
|
-
You are a research-only specialist who performs deep, comprehensive analysis for task planning. Your sole responsibility is to write
|
|
11
|
+
You are a research-only specialist who performs deep, comprehensive analysis for task planning. Your sole responsibility is to write research notes to one of the two tracked research roots: `docs/features/<feature>/research/` for feature-associated research, or `docs/research/` for one-off research not tied to a feature. The orchestrator resolves which root to use and supplies the path; do not infer the feature folder independently. You MUST NOT make changes to any other files, code, or configurations.
|
|
12
12
|
|
|
13
13
|
## Core Research Principles
|
|
14
14
|
|
|
15
15
|
You MUST operate under these constraints:
|
|
16
16
|
|
|
17
|
-
- You WILL ONLY do deep research using ALL available tools and create/edit files in `
|
|
17
|
+
- You WILL ONLY do deep research using ALL available tools and create/edit files in the orchestrator-supplied research root (`docs/features/<feature>/research/` for feature-associated research, or `docs/research/` for one-off research) without modifying source code or configurations
|
|
18
18
|
- You WILL document ONLY verified findings from actual tool usage, never assumptions, ensuring all research is backed by concrete evidence
|
|
19
19
|
- You MUST cross-reference findings across multiple authoritative sources to validate accuracy
|
|
20
20
|
- You WILL understand underlying principles and implementation rationale beyond surface-level patterns
|
|
@@ -71,7 +71,7 @@ In the final research document, "remove alternatives" means:
|
|
|
71
71
|
|
|
72
72
|
## Operational Constraints
|
|
73
73
|
|
|
74
|
-
You WILL use read tools throughout the entire workspace and external sources. You MUST create and edit files ONLY in `
|
|
74
|
+
You WILL use read tools throughout the entire workspace and external sources. You MUST create and edit files ONLY in the orchestrator-supplied research root: `docs/features/<feature>/research/` (feature-associated) or `docs/research/` (one-off). You MUST NOT modify any source code, configurations, or other project files.
|
|
75
75
|
|
|
76
76
|
You WILL provide brief, focused updates without overwhelming details. You WILL present discoveries and guide user toward single solution selection. You WILL keep all conversation focused on research activities and findings. You WILL NEVER repeat information already documented in research files.
|
|
77
77
|
|
|
@@ -205,7 +205,7 @@ For each research activity, you MUST:
|
|
|
205
205
|
|
|
206
206
|
You MUST maintain research files as living documents:
|
|
207
207
|
|
|
208
|
-
1. Search for existing research files in `
|
|
208
|
+
1. Search for existing research files in the orchestrator-supplied research root (`docs/features/<feature>/research/` for feature-associated research, or `docs/research/` for one-off research)
|
|
209
209
|
2. Create new research file if none exists for the topic
|
|
210
210
|
3. Initialize with comprehensive research template structure
|
|
211
211
|
|
package/resources/customizations/.github/instructions/powershell-code-change.instructions.md
CHANGED
|
@@ -21,20 +21,20 @@ If you encounter any conflicting instructions, **halt and notify the user.**
|
|
|
21
21
|
|
|
22
22
|
**Agent execution requirement (explicit):**
|
|
23
23
|
|
|
24
|
-
- Agents must use the MCP server functions: `
|
|
24
|
+
- Agents must use the MCP server functions: `mcp__drm-copilot__run_poshqc_format`, `mcp__drm-copilot__run_poshqc_analyze`, `mcp_drmcopilotext_run_poshqc_test`, and `mcp__drm-copilot__run_poshqc_analyze_autofix`.
|
|
25
25
|
- Agents must **not** use VS Code task wrappers as a substitute.
|
|
26
26
|
|
|
27
27
|
1) **Formatting - Invoke-Formatter**
|
|
28
28
|
|
|
29
29
|
- Format all PowerShell files using the PoshQC formatter (Invoke-Formatter).
|
|
30
|
-
- **Agent execution:** `
|
|
30
|
+
- **Agent execution:** `mcp__drm-copilot__run_poshqc_format`
|
|
31
31
|
- Do not hand-format; re-run the formatter whenever PSScriptAnalyzer would change whitespace/indentation.
|
|
32
32
|
|
|
33
33
|
2) **Linting - PSScriptAnalyzer**
|
|
34
34
|
|
|
35
35
|
- Run the PoshQC analyzer (PSScriptAnalyzer) with repo settings.
|
|
36
|
-
- **Agent execution:** `
|
|
37
|
-
- Optional autofix: `
|
|
36
|
+
- **Agent execution:** `mcp__drm-copilot__run_poshqc_analyze`
|
|
37
|
+
- Optional autofix: `mcp__drm-copilot__run_poshqc_analyze_autofix`; review diffs after running.
|
|
38
38
|
- Fix **all** findings (Error/Warning/Information). No rule suppressions unless strictly necessary and localized with a comment.
|
|
39
39
|
|
|
40
40
|
3) **Compatibility**
|
|
@@ -69,8 +69,8 @@ If you encounter any conflicting instructions, **halt and notify the user.**
|
|
|
69
69
|
|
|
70
70
|
When PowerShell code changes, your toolchain loop must include:
|
|
71
71
|
|
|
72
|
-
1. Format: `
|
|
73
|
-
2. Analyze: `
|
|
72
|
+
1. Format: `mcp__drm-copilot__run_poshqc_format`
|
|
73
|
+
2. Analyze: `mcp__drm-copilot__run_poshqc_analyze`
|
|
74
74
|
3. (Type checking is not applicable for PowerShell; skip to testing.)
|
|
75
75
|
4. Test: `mcp_drmcopilotext_run_poshqc_test`
|
|
76
76
|
|
|
@@ -18,7 +18,7 @@ Use this prompt when invoking the prd_feature agent via `/fillout-prd-feature <p
|
|
|
18
18
|
|
|
19
19
|
1. Load each supplied path in order; note missing or unreadable files explicitly.
|
|
20
20
|
2. Extract available details (issue number, owner, status, story statements, constraints, inputs/outputs, CLI flags, personas, risks, acceptance criteria, non-goals).
|
|
21
|
-
3. If research exists under `
|
|
21
|
+
3. If research exists under `docs/features/<feature>/research/` (feature-associated) or `docs/research/` (one-off), the caller must include the specific research file paths in the `/fillout-prd-feature` command; the agent must read each provided research file before writing.
|
|
22
22
|
4. Identify gaps; if the research document is insufficient to populate required sections, delegate additional research to the Task Researcher Agent and pause drafting until that research is complete.
|
|
23
23
|
5. Before writing, run a technical completeness check: confirm Proposed Fix, Assumptions, Data/Config Impact, Test Strategy, and Acceptance Criteria can be filled with domain-specific, testable details (no placeholders).
|
|
24
24
|
6. Apply the prd_feature agent’s section guidance when filling content:
|
|
@@ -5,7 +5,7 @@ description: 'Standard loading prompt for completing partially filled user-story
|
|
|
5
5
|
|
|
6
6
|
You are an expert Git commit message author operating in a professional, policy-driven repository.
|
|
7
7
|
|
|
8
|
-
Your task is to generate **high-signal, conventional commit messages** based strictly on the supplied context
|
|
8
|
+
Your task is to generate **high-signal, conventional commit messages** based strictly on the supplied commit-context artifact path or pasted commit-context content provided by the caller.
|
|
9
9
|
Assume no prior conversation history beyond what is explicitly provided.
|
|
10
10
|
|
|
11
11
|
---
|
|
@@ -17,6 +17,7 @@ Coordinate the user request from intake to completion using the correct path bas
|
|
|
17
17
|
- **Likely affected files (optional):** any known production/test files
|
|
18
18
|
- **Initial classification hint (optional):** `feature` or `bug`
|
|
19
19
|
- **Constraints (optional):** APIs/paths/behavior that must remain unchanged
|
|
20
|
+
- **Manual orchestration opt-in (optional):** allowed only when the initial user request explicitly asked from the beginning for a manual bootstrap pause
|
|
20
21
|
|
|
21
22
|
## Required orchestration behavior
|
|
22
23
|
|
|
@@ -29,8 +30,8 @@ Coordinate the user request from intake to completion using the correct path bas
|
|
|
29
30
|
4) Require `atomic_executor` preflight until `PREFLIGHT: ALL CLEAR`
|
|
30
31
|
5) Delegate to `atomic_executor` to execute **Phase 0 only**
|
|
31
32
|
6) Branch behavior:
|
|
32
|
-
- manual bootstrap: save state and stop for manual resume
|
|
33
|
-
-
|
|
33
|
+
- explicit initial manual bootstrap opt-in: save state and stop for manual resume
|
|
34
|
+
- otherwise continue automated small development and delegate constrained implementation to `csharp-typed-engineer`
|
|
34
35
|
7) Delegate post-delivery validation to `atomic_executor` for validation against issue.md, using only the explicit `## Acceptance Criteria` section for minor-audit acceptance validation, and persist checklist/doc updates
|
|
35
36
|
8) Run reduced small-path audit and remediation loop until ready-to-merge
|
|
36
37
|
3. If budget is **>3 production C# files** or **>3 test C# files**:
|
|
@@ -48,6 +49,7 @@ Coordinate the user request from intake to completion using the correct path bas
|
|
|
48
49
|
- Maintain orchestration state in `artifacts/orchestration/csharp-orchestrator-state.json`.
|
|
49
50
|
- Resume from the next incomplete step if interrupted.
|
|
50
51
|
- Do not end early while required downstream steps remain.
|
|
52
|
+
- Do not introduce manual validation or other human-operator steps later in the workflow unless the initial user request explicitly opted in from the beginning.
|
|
51
53
|
|
|
52
54
|
## Output expectations
|
|
53
55
|
|
|
@@ -62,5 +64,5 @@ On completion, report:
|
|
|
62
64
|
For small path also report:
|
|
63
65
|
- approved `plan-path`
|
|
64
66
|
- preflight result (`PREFLIGHT: ALL CLEAR`)
|
|
65
|
-
- whether
|
|
67
|
+
- whether an explicit initial manual-bootstrap opt-in was present and used
|
|
66
68
|
- Phase 0 execution evidence and stored `next_step` for resume
|
|
@@ -17,6 +17,7 @@ Coordinate the user request from intake to completion using the correct path bas
|
|
|
17
17
|
- **Likely affected files (optional):** any known production/test files
|
|
18
18
|
- **Initial classification hint (optional):** `feature` or `bug`
|
|
19
19
|
- **Constraints (optional):** APIs/paths/behavior that must remain unchanged
|
|
20
|
+
- **Manual orchestration opt-in (optional):** allowed only when the initial user request explicitly asked from the beginning for a manual bootstrap pause
|
|
20
21
|
|
|
21
22
|
## Required orchestration behavior
|
|
22
23
|
|
|
@@ -29,8 +30,8 @@ Coordinate the user request from intake to completion using the correct path bas
|
|
|
29
30
|
4) Require `atomic_executor` preflight until `PREFLIGHT: ALL CLEAR`
|
|
30
31
|
5) Delegate to `atomic_executor` to execute **Phase 0 only**
|
|
31
32
|
6) Branch behavior:
|
|
32
|
-
- manual bootstrap: save state and stop for manual resume
|
|
33
|
-
-
|
|
33
|
+
- explicit initial manual bootstrap opt-in: save state and stop for manual resume
|
|
34
|
+
- otherwise continue automated small development and delegate constrained implementation to the small-path engineer
|
|
34
35
|
7) Delegate post-delivery validation to `atomic_executor` against `issue.md`, using only the explicit `## Acceptance Criteria` section for minor-audit acceptance validation, and persist checklist/doc updates
|
|
35
36
|
8) Run reduced small-path audit and remediation loop until ready-to-merge
|
|
36
37
|
3. If budget is **>3 production files** or **>3 test files**:
|
|
@@ -48,6 +49,7 @@ Coordinate the user request from intake to completion using the correct path bas
|
|
|
48
49
|
- Maintain orchestration state in `artifacts/orchestration/orchestrator-state.json`.
|
|
49
50
|
- Resume from the next incomplete step if interrupted.
|
|
50
51
|
- Do not end early while required downstream steps remain.
|
|
52
|
+
- Do not introduce manual validation or other human-operator steps later in the workflow unless the initial user request explicitly opted in from the beginning.
|
|
51
53
|
|
|
52
54
|
## Output expectations
|
|
53
55
|
|
|
@@ -62,5 +64,5 @@ On completion, report:
|
|
|
62
64
|
For small path also report:
|
|
63
65
|
- approved `plan-path`
|
|
64
66
|
- preflight result (`PREFLIGHT: ALL CLEAR`)
|
|
65
|
-
- whether
|
|
67
|
+
- whether an explicit initial manual-bootstrap opt-in was present and used
|
|
66
68
|
- Phase 0 execution evidence and stored `next_step` for resume
|