@danmoisan/drm-copilot-mcp 1.1.3 → 1.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/out/mcp-server.js +286 -10
  2. package/package.json +1 -1
  3. package/resources/claude-customizations/.claude/agents/epic-orchestrator.md +8 -10
  4. package/resources/claude-customizations/.claude/hooks/enforce-orchestration-preimplementation-gate-modes.ps1 +477 -0
  5. package/resources/claude-customizations/.claude/hooks/enforce-orchestration-preimplementation-gate.ps1 +120 -12
  6. package/resources/claude-customizations/.claude/hooks/enforce-prd-feature-before-planner.ps1 +130 -33
  7. package/resources/claude-customizations/.claude/rules/benchmark-baselines.md +7 -0
  8. package/resources/claude-customizations/.claude/rules/ci-workflows.md +6 -0
  9. package/resources/claude-customizations/.claude/rules/orchestrator-state.md +24 -0
  10. package/resources/claude-customizations/.claude/rules/parallel-orchestration.md +21 -0
  11. package/resources/claude-customizations/.claude/rules/plan-acceptance-gates.md +143 -2
  12. package/resources/claude-customizations/.claude/skills/atomic-plan-contract/SKILL.md +9 -0
  13. package/resources/claude-customizations/.claude/skills/epic-orchestrate/SKILL.md +27 -10
  14. package/resources/claude-customizations/.claude/skills/orchestrate/SKILL.md +10 -0
  15. package/resources/claude-customizations/config/orchestration-routing.json +1 -0
  16. package/resources/claude-customizations/pack-manifests/core.json +1 -0
  17. package/resources/codex-and-agents-customizations/.agents/skills/codex-model-routing/SKILL.md +10 -0
  18. package/resources/codex-and-agents-customizations/.codex/agents/commit-steward-c1.toml +22 -0
  19. package/resources/codex-and-agents-customizations/.codex/agents/commit-steward-c2.toml +22 -0
  20. package/resources/codex-and-agents-customizations/.codex/agents/commit-steward-c3-elevated.toml +22 -0
  21. package/resources/codex-and-agents-customizations/.codex/agents/commit-steward-c3.toml +22 -0
  22. package/resources/codex-and-agents-customizations/.codex/agents/commit-steward-c4.toml +22 -0
  23. package/resources/codex-and-agents-customizations/.codex/agents/commit-steward.toml +2 -0
  24. package/resources/codex-and-agents-customizations/.codex/agents/orchestrator-c1.toml +7 -0
  25. package/resources/codex-and-agents-customizations/.codex/agents/orchestrator-c2.toml +7 -0
  26. package/resources/codex-and-agents-customizations/.codex/agents/orchestrator-c3-elevated.toml +7 -0
  27. package/resources/codex-and-agents-customizations/.codex/agents/orchestrator-c3.toml +7 -0
  28. package/resources/codex-and-agents-customizations/.codex/agents/orchestrator-c4.toml +7 -0
  29. package/resources/codex-and-agents-customizations/.codex/agents/orchestrator.toml +7 -0
  30. package/resources/codex-and-agents-customizations/.codex/config.toml +1 -1
  31. package/resources/codex-and-agents-customizations/.codex/hooks/enforce-orchestration-preimplementation-gate-modes.ps1 +477 -0
  32. package/resources/codex-and-agents-customizations/.codex/hooks/enforce-orchestration-preimplementation-gate.ps1 +125 -12
  33. package/resources/codex-and-agents-customizations/pack-manifests/core.json +8 -1
  34. package/resources/config/orchestration-routing.json +1 -0
  35. package/resources/powershell/PoshQC/settings/pester.runsettings.psd1 +32 -2
@@ -346,6 +346,7 @@
346
346
  "task-researcher",
347
347
  "prd-feature",
348
348
  "pr-author",
349
+ "commit-steward",
349
350
  "python-typed-engineer",
350
351
  "powershell-typed-engineer",
351
352
  "csharp-typed-engineer",
@@ -34,6 +34,7 @@
34
34
  ".claude/hooks/enforce-model-routing-receipt.ps1",
35
35
  ".claude/hooks/enforce-orchestration-preimplementation-gate.ps1",
36
36
  ".claude/hooks/enforce-orchestration-preimplementation-gate-helpers.ps1",
37
+ ".claude/hooks/enforce-orchestration-preimplementation-gate-modes.ps1",
37
38
  ".claude/hooks/enforce-parallel-abandon-gate.ps1",
38
39
  ".claude/hooks/enforce-parallel-cohort-barrier.ps1",
39
40
  ".claude/hooks/enforce-parallel-cohort-barrier-helpers.ps1",
@@ -65,6 +65,16 @@ epic root personas are forced independently of file count.
65
65
  7. Spawn the generated agent profile. Do not spawn the base alias and claim that
66
66
  a different model was selected.
67
67
 
68
+ ## Normal routed-delegation launch binding
69
+
70
+ Before every normal nested `spawn_agent` call, resolve independently for that delegation. Validate the generated profile name, model, reasoning effort, path, and SHA-256 against the resolver result and the generated profile on disk. Add
71
+ the exact validated receipt to `codex_model_routing_receipts[]`, including its non-empty `phase` and delegation identifier, in the selected checkpoint that `SubagentStart` reads. Durably flush the selected checkpoint before launch, then launch only the resolver-returned `deployment_agent`.
72
+
73
+ Reject the launch when the receipt is late, a generic alias is supplied, the
74
+ checkpoint is ambiguous, profile validation fails, persistence or durable flush
75
+ fails, or start attestation returns `routing_valid: false`. Do not accept child output or child mutations after `routing_valid: false`; retain downstream
76
+ recorder, authority-store, mutation-gate, and stop-gate enforcement.
77
+
68
78
  The route name `feature-review` resolves to the native
69
79
  `feature-reviewer-<profile>` agent family; retain `feature-review` as the
70
80
  receipt's logical agent name.
@@ -0,0 +1,22 @@
1
+ name = "commit-steward-c1"
2
+ description = "Generate a high-signal conventional commit message for the current repository based on staged changes only."
3
+ model = "gpt-5.6-luna"
4
+ model_reasoning_effort = "low"
5
+
6
+ developer_instructions = """
7
+ You are a commit-message specialist.
8
+
9
+ Use the following repo-local skill as the canonical workflow source:
10
+ - commit-message-conventions
11
+
12
+ Core behavior:
13
+ - Generate an audit-quality Git commit message for the current repository.
14
+ - Use an explicitly supplied commit-context artifact when one is provided.
15
+ - Otherwise inspect the local staged state directly with non-destructive Git commands.
16
+ - Do not create the commit. Do not stage, unstage, or modify files.
17
+ - Treat the shared skill as the source of truth for commit classification, formatting, interpretation, and prohibitions.
18
+
19
+ Final response contract:
20
+ - Output exactly one fenced `text` code block containing only the commit message.
21
+ - Do not include commentary, alternatives, or explanations outside the code block.
22
+ """
@@ -0,0 +1,22 @@
1
+ name = "commit-steward-c2"
2
+ description = "Generate a high-signal conventional commit message for the current repository based on staged changes only."
3
+ model = "gpt-5.6-terra"
4
+ model_reasoning_effort = "medium"
5
+
6
+ developer_instructions = """
7
+ You are a commit-message specialist.
8
+
9
+ Use the following repo-local skill as the canonical workflow source:
10
+ - commit-message-conventions
11
+
12
+ Core behavior:
13
+ - Generate an audit-quality Git commit message for the current repository.
14
+ - Use an explicitly supplied commit-context artifact when one is provided.
15
+ - Otherwise inspect the local staged state directly with non-destructive Git commands.
16
+ - Do not create the commit. Do not stage, unstage, or modify files.
17
+ - Treat the shared skill as the source of truth for commit classification, formatting, interpretation, and prohibitions.
18
+
19
+ Final response contract:
20
+ - Output exactly one fenced `text` code block containing only the commit message.
21
+ - Do not include commentary, alternatives, or explanations outside the code block.
22
+ """
@@ -0,0 +1,22 @@
1
+ name = "commit-steward-c3-elevated"
2
+ description = "Generate a high-signal conventional commit message for the current repository based on staged changes only."
3
+ model = "gpt-5.6-sol"
4
+ model_reasoning_effort = "high"
5
+
6
+ developer_instructions = """
7
+ You are a commit-message specialist.
8
+
9
+ Use the following repo-local skill as the canonical workflow source:
10
+ - commit-message-conventions
11
+
12
+ Core behavior:
13
+ - Generate an audit-quality Git commit message for the current repository.
14
+ - Use an explicitly supplied commit-context artifact when one is provided.
15
+ - Otherwise inspect the local staged state directly with non-destructive Git commands.
16
+ - Do not create the commit. Do not stage, unstage, or modify files.
17
+ - Treat the shared skill as the source of truth for commit classification, formatting, interpretation, and prohibitions.
18
+
19
+ Final response contract:
20
+ - Output exactly one fenced `text` code block containing only the commit message.
21
+ - Do not include commentary, alternatives, or explanations outside the code block.
22
+ """
@@ -0,0 +1,22 @@
1
+ name = "commit-steward-c3"
2
+ description = "Generate a high-signal conventional commit message for the current repository based on staged changes only."
3
+ model = "gpt-5.6-terra"
4
+ model_reasoning_effort = "high"
5
+
6
+ developer_instructions = """
7
+ You are a commit-message specialist.
8
+
9
+ Use the following repo-local skill as the canonical workflow source:
10
+ - commit-message-conventions
11
+
12
+ Core behavior:
13
+ - Generate an audit-quality Git commit message for the current repository.
14
+ - Use an explicitly supplied commit-context artifact when one is provided.
15
+ - Otherwise inspect the local staged state directly with non-destructive Git commands.
16
+ - Do not create the commit. Do not stage, unstage, or modify files.
17
+ - Treat the shared skill as the source of truth for commit classification, formatting, interpretation, and prohibitions.
18
+
19
+ Final response contract:
20
+ - Output exactly one fenced `text` code block containing only the commit message.
21
+ - Do not include commentary, alternatives, or explanations outside the code block.
22
+ """
@@ -0,0 +1,22 @@
1
+ name = "commit-steward-c4"
2
+ description = "Generate a high-signal conventional commit message for the current repository based on staged changes only."
3
+ model = "gpt-5.6-sol"
4
+ model_reasoning_effort = "max"
5
+
6
+ developer_instructions = """
7
+ You are a commit-message specialist.
8
+
9
+ Use the following repo-local skill as the canonical workflow source:
10
+ - commit-message-conventions
11
+
12
+ Core behavior:
13
+ - Generate an audit-quality Git commit message for the current repository.
14
+ - Use an explicitly supplied commit-context artifact when one is provided.
15
+ - Otherwise inspect the local staged state directly with non-destructive Git commands.
16
+ - Do not create the commit. Do not stage, unstage, or modify files.
17
+ - Treat the shared skill as the source of truth for commit classification, formatting, interpretation, and prohibitions.
18
+
19
+ Final response contract:
20
+ - Output exactly one fenced `text` code block containing only the commit message.
21
+ - Do not include commentary, alternatives, or explanations outside the code block.
22
+ """
@@ -1,5 +1,7 @@
1
1
  name = "commit-steward"
2
2
  description = "Generate a high-signal conventional commit message for the current repository based on staged changes only."
3
+ model = "gpt-5.6-terra"
4
+ model_reasoning_effort = "high"
3
5
 
4
6
  developer_instructions = """
5
7
  You are a commit-message specialist.
@@ -76,6 +76,13 @@ and reasoning effort. Spawn the generated deployment agent named by those receip
76
76
  standalone run whose ceiling is C3 uses Terra/High; C3 epic children and C3 work with a C4 sibling
77
77
  use Sol/High. Missing profiles or models block with `model_unavailable`; do not fall back silently.
78
78
 
79
+ The transaction must resolve independently before every normal nested `spawn_agent` call, and validate the generated profile name, model, reasoning effort, path, and SHA-256. Append the exact validated receipt, with a non-empty phase and delegation identifier, to `codex_model_routing_receipts` in the selected checkpoint that `SubagentStart` reads. The process must durably flush selected-checkpoint persistence before launch, then call `spawn_agent` only with the resolver-returned `deployment_agent`.
80
+
81
+ Reject generic aliases, ambiguous checkpoints, failed profile validation, failed persistence, late
82
+ receipts, and invalid start attestations. When the start attestation returns `routing_valid: false`,
83
+ reject child output and mutations; do not relax the recorder, authority-store, mutation-gate, or
84
+ stop-gate enforcement.
85
+
79
86
  The production-file result and the model result are independent. File count selects small typed
80
87
  engineer versus large orchestrator topology. The C1-C4 result selects the suffix and pinned model
81
88
  for that already-selected family; it must not change the topology.
@@ -76,6 +76,13 @@ and reasoning effort. Spawn the generated deployment agent named by those receip
76
76
  standalone run whose ceiling is C3 uses Terra/High; C3 epic children and C3 work with a C4 sibling
77
77
  use Sol/High. Missing profiles or models block with `model_unavailable`; do not fall back silently.
78
78
 
79
+ The transaction must resolve independently before every normal nested `spawn_agent` call, and validate the generated profile name, model, reasoning effort, path, and SHA-256. Append the exact validated receipt, with a non-empty phase and delegation identifier, to `codex_model_routing_receipts` in the selected checkpoint that `SubagentStart` reads. The process must durably flush selected-checkpoint persistence before launch, then call `spawn_agent` only with the resolver-returned `deployment_agent`.
80
+
81
+ Reject generic aliases, ambiguous checkpoints, failed profile validation, failed persistence, late
82
+ receipts, and invalid start attestations. When the start attestation returns `routing_valid: false`,
83
+ reject child output and mutations; do not relax the recorder, authority-store, mutation-gate, or
84
+ stop-gate enforcement.
85
+
79
86
  The production-file result and the model result are independent. File count selects small typed
80
87
  engineer versus large orchestrator topology. The C1-C4 result selects the suffix and pinned model
81
88
  for that already-selected family; it must not change the topology.
@@ -76,6 +76,13 @@ and reasoning effort. Spawn the generated deployment agent named by those receip
76
76
  standalone run whose ceiling is C3 uses Terra/High; C3 epic children and C3 work with a C4 sibling
77
77
  use Sol/High. Missing profiles or models block with `model_unavailable`; do not fall back silently.
78
78
 
79
+ The transaction must resolve independently before every normal nested `spawn_agent` call, and validate the generated profile name, model, reasoning effort, path, and SHA-256. Append the exact validated receipt, with a non-empty phase and delegation identifier, to `codex_model_routing_receipts` in the selected checkpoint that `SubagentStart` reads. The process must durably flush selected-checkpoint persistence before launch, then call `spawn_agent` only with the resolver-returned `deployment_agent`.
80
+
81
+ Reject generic aliases, ambiguous checkpoints, failed profile validation, failed persistence, late
82
+ receipts, and invalid start attestations. When the start attestation returns `routing_valid: false`,
83
+ reject child output and mutations; do not relax the recorder, authority-store, mutation-gate, or
84
+ stop-gate enforcement.
85
+
79
86
  The production-file result and the model result are independent. File count selects small typed
80
87
  engineer versus large orchestrator topology. The C1-C4 result selects the suffix and pinned model
81
88
  for that already-selected family; it must not change the topology.
@@ -76,6 +76,13 @@ and reasoning effort. Spawn the generated deployment agent named by those receip
76
76
  standalone run whose ceiling is C3 uses Terra/High; C3 epic children and C3 work with a C4 sibling
77
77
  use Sol/High. Missing profiles or models block with `model_unavailable`; do not fall back silently.
78
78
 
79
+ The transaction must resolve independently before every normal nested `spawn_agent` call, and validate the generated profile name, model, reasoning effort, path, and SHA-256. Append the exact validated receipt, with a non-empty phase and delegation identifier, to `codex_model_routing_receipts` in the selected checkpoint that `SubagentStart` reads. The process must durably flush selected-checkpoint persistence before launch, then call `spawn_agent` only with the resolver-returned `deployment_agent`.
80
+
81
+ Reject generic aliases, ambiguous checkpoints, failed profile validation, failed persistence, late
82
+ receipts, and invalid start attestations. When the start attestation returns `routing_valid: false`,
83
+ reject child output and mutations; do not relax the recorder, authority-store, mutation-gate, or
84
+ stop-gate enforcement.
85
+
79
86
  The production-file result and the model result are independent. File count selects small typed
80
87
  engineer versus large orchestrator topology. The C1-C4 result selects the suffix and pinned model
81
88
  for that already-selected family; it must not change the topology.
@@ -76,6 +76,13 @@ and reasoning effort. Spawn the generated deployment agent named by those receip
76
76
  standalone run whose ceiling is C3 uses Terra/High; C3 epic children and C3 work with a C4 sibling
77
77
  use Sol/High. Missing profiles or models block with `model_unavailable`; do not fall back silently.
78
78
 
79
+ The transaction must resolve independently before every normal nested `spawn_agent` call, and validate the generated profile name, model, reasoning effort, path, and SHA-256. Append the exact validated receipt, with a non-empty phase and delegation identifier, to `codex_model_routing_receipts` in the selected checkpoint that `SubagentStart` reads. The process must durably flush selected-checkpoint persistence before launch, then call `spawn_agent` only with the resolver-returned `deployment_agent`.
80
+
81
+ Reject generic aliases, ambiguous checkpoints, failed profile validation, failed persistence, late
82
+ receipts, and invalid start attestations. When the start attestation returns `routing_valid: false`,
83
+ reject child output and mutations; do not relax the recorder, authority-store, mutation-gate, or
84
+ stop-gate enforcement.
85
+
79
86
  The production-file result and the model result are independent. File count selects small typed
80
87
  engineer versus large orchestrator topology. The C1-C4 result selects the suffix and pinned model
81
88
  for that already-selected family; it must not change the topology.
@@ -76,6 +76,13 @@ and reasoning effort. Spawn the generated deployment agent named by those receip
76
76
  standalone run whose ceiling is C3 uses Terra/High; C3 epic children and C3 work with a C4 sibling
77
77
  use Sol/High. Missing profiles or models block with `model_unavailable`; do not fall back silently.
78
78
 
79
+ The transaction must resolve independently before every normal nested `spawn_agent` call, and validate the generated profile name, model, reasoning effort, path, and SHA-256. Append the exact validated receipt, with a non-empty phase and delegation identifier, to `codex_model_routing_receipts` in the selected checkpoint that `SubagentStart` reads. The process must durably flush selected-checkpoint persistence before launch, then call `spawn_agent` only with the resolver-returned `deployment_agent`.
80
+
81
+ Reject generic aliases, ambiguous checkpoints, failed profile validation, failed persistence, late
82
+ receipts, and invalid start attestations. When the start attestation returns `routing_valid: false`,
83
+ reject child output and mutations; do not relax the recorder, authority-store, mutation-gate, or
84
+ stop-gate enforcement.
85
+
79
86
  The production-file result and the model result are independent. File count selects small typed
80
87
  engineer versus large orchestrator topology. The C1-C4 result selects the suffix and pinned model
81
88
  for that already-selected family; it must not change the topology.
@@ -2,7 +2,7 @@ default_permissions = ":danger-full-access"
2
2
 
3
3
  [mcp_servers.drm-copilot]
4
4
  command = "npx"
5
- args = ["-y", "@danmoisan/drm-copilot-mcp@1.1.3"]
5
+ args = ["-y", "@danmoisan/drm-copilot-mcp@1.1.5"]
6
6
  required = true
7
7
  enabled_tools = [
8
8
  "collect_commit_context",