@danmoisan/drm-copilot-mcp 1.1.4 → 1.1.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.
Files changed (38) hide show
  1. package/out/mcp-server.js +335 -24
  2. package/package.json +1 -1
  3. package/resources/claude-customizations/.claude/hooks/enforce-epic-worktree-removal-gate.ps1 +163 -18
  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/lib/blast-radius/BlastRadius.psm1 +11 -0
  7. package/resources/claude-customizations/.claude/rules/parallel-orchestration.md +1 -0
  8. package/resources/claude-customizations/.claude/rules/plan-acceptance-gates.md +131 -2
  9. package/resources/claude-customizations/.claude/skills/atomic-plan-contract/SKILL.md +37 -0
  10. package/resources/claude-customizations/.claude/skills/cleanup-merged-worktrees/SKILL.md +136 -4
  11. package/resources/claude-customizations/.claude/skills/parallel-add/SKILL.md +3 -1
  12. package/resources/claude-customizations/.claude/skills/parallel-orchestrate/SKILL.md +18 -9
  13. package/resources/claude-customizations/.claude/skills/parallel-plan/SKILL.md +8 -1
  14. package/resources/claude-customizations/.claude/skills/pr-context-artifacts/SKILL.md +22 -0
  15. package/resources/claude-customizations/.claude/skills/remediation-handoff-atomic-planner/SKILL.md +10 -0
  16. package/resources/claude-customizations/config/orchestration-routing.json +1 -0
  17. package/resources/claude-customizations/pack-manifests/core.json +1 -0
  18. package/resources/codex-and-agents-customizations/.agents/skills/codex-model-routing/SKILL.md +10 -0
  19. package/resources/codex-and-agents-customizations/.agents/skills/pr-context-artifacts/SKILL.md +22 -0
  20. package/resources/codex-and-agents-customizations/.codex/agents/commit-steward-c1.toml +22 -0
  21. package/resources/codex-and-agents-customizations/.codex/agents/commit-steward-c2.toml +22 -0
  22. package/resources/codex-and-agents-customizations/.codex/agents/commit-steward-c3-elevated.toml +22 -0
  23. package/resources/codex-and-agents-customizations/.codex/agents/commit-steward-c3.toml +22 -0
  24. package/resources/codex-and-agents-customizations/.codex/agents/commit-steward-c4.toml +22 -0
  25. package/resources/codex-and-agents-customizations/.codex/agents/commit-steward.toml +2 -0
  26. package/resources/codex-and-agents-customizations/.codex/agents/orchestrator-c1.toml +7 -0
  27. package/resources/codex-and-agents-customizations/.codex/agents/orchestrator-c2.toml +7 -0
  28. package/resources/codex-and-agents-customizations/.codex/agents/orchestrator-c3-elevated.toml +7 -0
  29. package/resources/codex-and-agents-customizations/.codex/agents/orchestrator-c3.toml +7 -0
  30. package/resources/codex-and-agents-customizations/.codex/agents/orchestrator-c4.toml +7 -0
  31. package/resources/codex-and-agents-customizations/.codex/agents/orchestrator.toml +7 -0
  32. package/resources/codex-and-agents-customizations/.codex/config.toml +1 -1
  33. package/resources/codex-and-agents-customizations/.codex/hooks/enforce-orchestration-preimplementation-gate-modes.ps1 +477 -0
  34. package/resources/codex-and-agents-customizations/.codex/hooks/enforce-orchestration-preimplementation-gate.ps1 +125 -12
  35. package/resources/codex-and-agents-customizations/pack-manifests/core.json +8 -1
  36. package/resources/config/orchestration-routing.json +1 -0
  37. package/resources/customizations/.github/skills/pr-context-artifacts/SKILL.md +22 -0
  38. package/resources/powershell/PoshQC/settings/pester.runsettings.psd1 +10 -2
@@ -38,6 +38,7 @@
38
38
  ".codex/hooks/enforce-epic-wave-barrier.ps1",
39
39
  ".codex/hooks/enforce-epic-worktree-removal-gate.ps1",
40
40
  ".codex/hooks/enforce-orchestration-preimplementation-gate-helpers.ps1",
41
+ ".codex/hooks/enforce-orchestration-preimplementation-gate-modes.ps1",
41
42
  ".codex/hooks/record-subagent-routing-attestation.ps1",
42
43
  ".codex/hooks/validate-codex-subagent-routing.ps1",
43
44
  ".codex/scripts/epic-child-launch-contract.ps1",
@@ -86,6 +87,12 @@
86
87
  ".codex/agents/pr-author-c2.toml",
87
88
  ".codex/agents/pr-author-c3.toml",
88
89
  ".codex/agents/pr-author-c3-elevated.toml",
89
- ".codex/agents/pr-author-c4.toml"
90
+ ".codex/agents/pr-author-c4.toml",
91
+ ".codex/agents/commit-steward.toml",
92
+ ".codex/agents/commit-steward-c1.toml",
93
+ ".codex/agents/commit-steward-c2.toml",
94
+ ".codex/agents/commit-steward-c3.toml",
95
+ ".codex/agents/commit-steward-c3-elevated.toml",
96
+ ".codex/agents/commit-steward-c4.toml"
90
97
  ]
91
98
  }
@@ -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",
@@ -27,3 +27,25 @@ If the artifacts are missing or stale relative to the current branch state, re-g
27
27
  - When `PRBaseBranch` is missing or ambiguous, resolve it first with `pr-base-branch-merge-base` before running the collector.
28
28
  - Do not infer the refresh base from the repository default branch unless merge-base resolution fails for all candidates.
29
29
  - Treat an already-fresh artifact pair as authoritative; do not refresh solely because no explicit `PRBaseBranch` input was provided.
30
+
31
+ ### Freshness Cross-Check
32
+
33
+ Both artifacts open with a `Context generated` section carrying the generation timestamp and a
34
+ `Head SHA:` line. Decide freshness from those two values in two steps, and from nothing else.
35
+
36
+ 1. **Pair identity.** The generated-context timestamp must be byte-identical in the summary and in
37
+ the appendix. A mismatch proves the two files came from different invocations — a summary
38
+ refreshed while a stale appendix persists, or the reverse — so the pair does not describe one
39
+ run and must be regenerated.
40
+ 2. **Head binding.** The head SHA recorded in both files must equal the current head of the branch
41
+ under review. A mismatch proves the pair predates the current head, so it describes a different
42
+ diff than the one being reviewed and must be regenerated.
43
+
44
+ File existence and file modification time are not freshness signals. A file left at the expected
45
+ path by a previous invocation satisfies an existence check, and a stale file that was copied or
46
+ touched satisfies a modification-time check. Both operands of the cross-check above are read from
47
+ the artifacts themselves and from git, so the check is deterministic and does not depend on a wall
48
+ clock.
49
+
50
+ When the head SHA renders the `(unknown)` token, the collected context carried no head SHA. Head
51
+ binding cannot be established in that case, so treat the pair as unverified and regenerate it.
@@ -133,6 +133,10 @@
133
133
  # dot-sourced sibling for headroom; registered so the new production file stays
134
134
  # in the coverage denominator per the Coverage Exclusion Policy.
135
135
  '.codex/hooks/enforce-orchestration-preimplementation-gate-helpers.ps1'
136
+ # Issue #554 added this pure dot-sourced modes sibling, holding the mode dispatch
137
+ # table and the epic and parallel readiness predicates; registered so the new
138
+ # production file stays in the coverage denominator per the Coverage Exclusion Policy.
139
+ '.codex/hooks/enforce-orchestration-preimplementation-gate-modes.ps1'
136
140
  # Issue #415 remediation cycle 2 (R-COV): the detached-HEAD null-guard fix changed
137
141
  # these two Codex PreToolUse hooks. Both were absent from this list, so the changed
138
142
  # production surface was outside the coverage denominator. Measured here so the
@@ -204,6 +208,10 @@
204
208
  # dot-sourced sibling for headroom; registered so the new production file stays
205
209
  # in the coverage denominator per the Coverage Exclusion Policy.
206
210
  '.claude/hooks/enforce-orchestration-preimplementation-gate-helpers.ps1'
211
+ # Issue #554 added this pure dot-sourced modes sibling, holding the mode dispatch
212
+ # table and the epic and parallel readiness predicates; registered so the new
213
+ # production file stays in the coverage denominator per the Coverage Exclusion Policy.
214
+ '.claude/hooks/enforce-orchestration-preimplementation-gate-modes.ps1'
207
215
  '.claude/hooks/enforce-evidence-locations.ps1'
208
216
  '.claude/hooks/enforce-feature-folder-order.ps1'
209
217
  '.claude/hooks/enforce-checkpoint-monotonic.ps1'
@@ -232,6 +240,8 @@
232
240
  # forbids. Its Pester suite dot-sources the file (guarded entry-point body), so
233
241
  # line attribution is valid.
234
242
  'scripts/dev-tools/Invoke-ReleaseReconciliation.ps1'
243
+ # Issue #552 validates start-time routing attestation coverage for this hook.
244
+ '.codex/hooks/record-subagent-routing-attestation.ps1'
235
245
  )
236
246
  # Optional: don't fail the run on coverage percentage
237
247
  CoveragePercentTarget = 0
@@ -243,5 +253,3 @@
243
253
 
244
254
 
245
255
 
246
-
247
-