@danmoisan/drm-copilot-mcp 1.1.22 → 1.1.24

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 (261) hide show
  1. package/out/mcp-server.js +18758 -12030
  2. package/package.json +1 -1
  3. package/resources/claude-customizations/.claude/agent-memory/orchestrator/MEMORY.md +1 -1
  4. package/resources/claude-customizations/.claude/agent-memory/orchestrator/feedback_test_files_count_against_500_cap.md +4 -4
  5. package/resources/claude-customizations/.claude/agents/csharp-typed-engineer.md +1 -1
  6. package/resources/claude-customizations/.claude/agents/discovery-capability-sentinel.md +34 -0
  7. package/resources/claude-customizations/.claude/agents/feature-review.md +8 -0
  8. package/resources/claude-customizations/.claude/agents/legacy-parity-analyst.md +101 -43
  9. package/resources/claude-customizations/.claude/agents/migration-coverage-reviewer.md +107 -43
  10. package/resources/claude-customizations/.claude/agents/orchestrator.md +1 -1
  11. package/resources/claude-customizations/.claude/agents/parallel-orchestrator.md +60 -6
  12. package/resources/claude-customizations/.claude/agents/parallel-planner.md +21 -1
  13. package/resources/claude-customizations/.claude/agents/powershell-typed-engineer.md +1 -1
  14. package/resources/claude-customizations/.claude/agents/pr-author.md +48 -7
  15. package/resources/claude-customizations/.claude/agents/python-typed-engineer.md +1 -1
  16. package/resources/claude-customizations/.claude/agents/requirements-reconciler.md +117 -42
  17. package/resources/claude-customizations/.claude/agents/runtime-characterization-analyst.md +103 -43
  18. package/resources/claude-customizations/.claude/hooks/discovery-capability-probe.ps1 +102 -0
  19. package/resources/claude-customizations/.claude/hooks/enforce-discovery-artifact-gate.ps1 +69 -194
  20. package/resources/claude-customizations/.claude/hooks/enforce-discovery-planning-gate.ps1 +87 -0
  21. package/resources/claude-customizations/.claude/hooks/enforce-epic-merge-gate-green-ci.ps1 +325 -0
  22. package/resources/claude-customizations/.claude/hooks/enforce-epic-merge-gate.ps1 +29 -7
  23. package/resources/claude-customizations/.claude/hooks/enforce-epic-worktree-removal-gate-resolution.ps1 +23 -10
  24. package/resources/claude-customizations/.claude/hooks/enforce-epic-worktree-removal-gate.ps1 +29 -21
  25. package/resources/claude-customizations/.claude/hooks/enforce-file-size-limit.ps1 +244 -0
  26. package/resources/claude-customizations/.claude/hooks/enforce-model-routing-receipt.ps1 +51 -0
  27. package/resources/claude-customizations/.claude/hooks/enforce-orchestration-preimplementation-gate-epic-scope.ps1 +168 -48
  28. package/resources/claude-customizations/.claude/hooks/enforce-orchestration-preimplementation-gate.ps1 +1 -1
  29. package/resources/claude-customizations/.claude/hooks/enforce-parallel-worktree-removal-gate.ps1 +22 -11
  30. package/resources/claude-customizations/.claude/hooks/enforce-powershell-batch-budget.ps1 +59 -20
  31. package/resources/claude-customizations/.claude/hooks/enforce-pr-author-command-allowlist.ps1 +51 -4
  32. package/resources/claude-customizations/.claude/hooks/enforce-pr-author-skill-helpers.ps1 +72 -11
  33. package/resources/claude-customizations/.claude/hooks/enforce-pr-author-skill.current-branch.ps1 +149 -0
  34. package/resources/claude-customizations/.claude/hooks/enforce-pr-author-skill.epic-base-branch.ps1 +4 -2
  35. package/resources/claude-customizations/.claude/hooks/enforce-python-batch-budget.ps1 +59 -20
  36. package/resources/claude-customizations/.claude/hooks/record-discovery-agent-start.ps1 +132 -0
  37. package/resources/claude-customizations/.claude/hooks/validate-discovery-artifact-gate.ps1 +56 -212
  38. package/resources/claude-customizations/.claude/hooks/validate-orchestrator-output-feature-folder.ps1 +146 -0
  39. package/resources/claude-customizations/.claude/hooks/validate-orchestrator-output-rejection.ps1 +172 -0
  40. package/resources/claude-customizations/.claude/hooks/validate-orchestrator-output.ps1 +34 -4
  41. package/resources/claude-customizations/.claude/lib/blast-radius/BlastRadius.psm1 +9 -3
  42. package/resources/claude-customizations/.claude/lib/blast-radius/BlastRadiusAggregate.psm1 +154 -0
  43. package/resources/claude-customizations/.claude/lib/blast-radius/BlastRadiusCombination.psm1 +228 -0
  44. package/resources/claude-customizations/.claude/lib/blast-radius/BlastRadiusExtraction.psm1 +1 -0
  45. package/resources/claude-customizations/.claude/lib/blast-radius/BlastRadiusNormalization.psm1 +4 -2
  46. package/resources/claude-customizations/.claude/lib/blast-radius/BlastRadiusScheduling.psm1 +63 -16
  47. package/resources/claude-customizations/.claude/lib/blast-radius/BlastRadiusTokenShape.psm1 +56 -1
  48. package/resources/claude-customizations/.claude/lib/blast-radius/BlastRadiusWriteIntent.psm1 +4 -1
  49. package/resources/claude-customizations/.claude/lib/cleanup-manifest/CleanupWorktreeManifest.psm1 +33 -6
  50. package/resources/claude-customizations/.claude/lib/codex-routing/CodexDeployment.psm1 +5 -1
  51. package/resources/claude-customizations/.claude/lib/codex-routing/CodexDiscoveryRouting.psm1 +161 -0
  52. package/resources/claude-customizations/.claude/lib/codex-routing/CodexTopology.psm1 +25 -2
  53. package/resources/claude-customizations/.claude/lib/discovery-validation/DiscoveryAuthority.psd1 +90 -0
  54. package/resources/claude-customizations/.claude/lib/discovery-validation/DiscoveryAuthority.psm1 +493 -0
  55. package/resources/claude-customizations/.claude/lib/discovery-validation/DiscoveryAuthorization.psm1 +479 -0
  56. package/resources/claude-customizations/.claude/lib/discovery-validation/DiscoveryCapability.psm1 +468 -0
  57. package/resources/claude-customizations/.claude/lib/discovery-validation/DiscoveryEncoding.psm1 +156 -0
  58. package/resources/claude-customizations/.claude/lib/discovery-validation/DiscoveryManifest.psm1 +384 -0
  59. package/resources/claude-customizations/.claude/lib/discovery-validation/DiscoveryObservation.psm1 +217 -0
  60. package/resources/claude-customizations/.claude/lib/discovery-validation/DiscoveryPayload.psm1 +276 -0
  61. package/resources/claude-customizations/.claude/lib/discovery-validation/DiscoveryPlanning.psm1 +336 -0
  62. package/resources/claude-customizations/.claude/lib/discovery-validation/DiscoveryRootGrant.psm1 +164 -0
  63. package/resources/claude-customizations/.claude/lib/discovery-validation/DiscoveryStart.psm1 +440 -0
  64. package/resources/claude-customizations/.claude/lib/discovery-validation/DiscoveryStartRecord.psm1 +296 -0
  65. package/resources/claude-customizations/.claude/lib/discovery-validation/DiscoveryStop.psm1 +336 -0
  66. package/resources/claude-customizations/.claude/lib/discovery-validation/DiscoveryToolRouting.psm1 +228 -0
  67. package/resources/claude-customizations/.claude/lib/discovery-validation/DiscoveryValidation.psm1 +188 -341
  68. package/resources/claude-customizations/.claude/lib/file-size-policy/FileSizePolicy.psm1 +434 -0
  69. package/resources/claude-customizations/.claude/lib/orchestrator-state/OrchestratorStateFeatureFolderRecord.psm1 +166 -0
  70. package/resources/claude-customizations/.claude/lib/orchestrator-state/OrchestratorStateIssueAdoption.psm1 +8 -3
  71. package/resources/claude-customizations/.claude/lib/worktree-resolution/HookTargetWorktree.psm1 +391 -0
  72. package/resources/claude-customizations/.claude/lib/worktree-resolution/WorktreeRunRecordPath.psm1 +185 -0
  73. package/resources/claude-customizations/.claude/lib/worktree-resolution/WorktreeRunResolution.psm1 +11 -21
  74. package/resources/claude-customizations/.claude/rules/general-code-change.md +4 -1
  75. package/resources/claude-customizations/.claude/rules/orchestrator-state.md +29 -5
  76. package/resources/claude-customizations/.claude/rules/parallel-orchestration.md +152 -20
  77. package/resources/claude-customizations/.claude/rules/powershell.md +1 -1
  78. package/resources/claude-customizations/.claude/rules/shell.md +1 -1
  79. package/resources/claude-customizations/.claude/settings.json +36 -3
  80. package/resources/claude-customizations/.claude/skills/adjudicate-unspecified-behavior/SKILL.md +135 -0
  81. package/resources/claude-customizations/.claude/skills/characterize-runtime-behavior/SKILL.md +134 -0
  82. package/resources/claude-customizations/.claude/skills/cleanup-merged-worktrees/SKILL.md +2 -2
  83. package/resources/claude-customizations/.claude/skills/discovery-behavior-reconciliation/SKILL.md +28 -47
  84. package/resources/claude-customizations/.claude/skills/discovery-coverage-ledger/SKILL.md +32 -48
  85. package/resources/claude-customizations/.claude/skills/discovery-parity-matrix/SKILL.md +28 -45
  86. package/resources/claude-customizations/.claude/skills/discovery-repo-inventory/SKILL.md +28 -62
  87. package/resources/claude-customizations/.claude/skills/discovery-runtime-characterization/SKILL.md +28 -45
  88. package/resources/claude-customizations/.claude/skills/discovery-validate-artifacts/SKILL.md +28 -61
  89. package/resources/claude-customizations/.claude/skills/discovery-workflow/SKILL.md +55 -139
  90. package/resources/claude-customizations/.claude/skills/execution-environment/SKILL.md +25 -10
  91. package/resources/claude-customizations/.claude/skills/extract-feature-contract/SKILL.md +133 -0
  92. package/resources/claude-customizations/.claude/skills/feature-promotion-lifecycle/SKILL.md +1 -0
  93. package/resources/claude-customizations/.claude/skills/generate-acceptance-scenarios/SKILL.md +132 -0
  94. package/resources/claude-customizations/.claude/skills/initialize-discovery-workspace/SKILL.md +131 -0
  95. package/resources/claude-customizations/.claude/skills/inventory-legacy-system/SKILL.md +131 -0
  96. package/resources/claude-customizations/.claude/skills/orchestrate/SKILL.md +15 -7
  97. package/resources/claude-customizations/.claude/skills/parallel-add/SKILL.md +25 -2
  98. package/resources/claude-customizations/.claude/skills/parallel-close/SKILL.md +11 -1
  99. package/resources/claude-customizations/.claude/skills/parallel-orchestrate/SKILL.md +124 -14
  100. package/resources/claude-customizations/.claude/skills/parallel-plan/SKILL.md +72 -7
  101. package/resources/claude-customizations/.claude/skills/parallel-remove/SKILL.md +15 -0
  102. package/resources/claude-customizations/.claude/skills/parallel-run/SKILL.md +6 -0
  103. package/resources/claude-customizations/.claude/skills/pr-author/SKILL.md +56 -9
  104. package/resources/claude-customizations/.claude/skills/reconcile-parity-matrix/SKILL.md +131 -0
  105. package/resources/claude-customizations/.claude/skills/review-discovery-coverage/SKILL.md +129 -0
  106. package/resources/claude-customizations/.claude/skills/validate-discovery-artifacts/SKILL.md +127 -0
  107. package/resources/claude-customizations/.claude-variants/csharp-legacy/agents/csharp-typed-engineer.md +1 -1
  108. package/resources/claude-customizations/config/blast-radius.json +6 -5
  109. package/resources/claude-customizations/config/orchestration-routing.json +61 -1
  110. package/resources/claude-customizations/pack-manifests/core.json +40 -1
  111. package/resources/codex-and-agents-customizations/.agents/skills/adjudicate-unspecified-behavior/SKILL.md +135 -0
  112. package/resources/codex-and-agents-customizations/.agents/skills/atomic-planner/SKILL.md +7 -0
  113. package/resources/codex-and-agents-customizations/.agents/skills/characterize-runtime-behavior/SKILL.md +134 -0
  114. package/resources/codex-and-agents-customizations/.agents/skills/discovery-behavior-reconciliation/SKILL.md +46 -0
  115. package/resources/codex-and-agents-customizations/.agents/skills/discovery-coverage-ledger/SKILL.md +50 -0
  116. package/resources/codex-and-agents-customizations/.agents/skills/discovery-parity-matrix/SKILL.md +46 -0
  117. package/resources/codex-and-agents-customizations/.agents/skills/discovery-repo-inventory/SKILL.md +46 -0
  118. package/resources/codex-and-agents-customizations/.agents/skills/discovery-runtime-characterization/SKILL.md +46 -0
  119. package/resources/codex-and-agents-customizations/.agents/skills/discovery-validate-artifacts/SKILL.md +46 -0
  120. package/resources/codex-and-agents-customizations/.agents/skills/discovery-workflow/SKILL.md +62 -0
  121. package/resources/codex-and-agents-customizations/.agents/skills/execution-environment/SKILL.md +25 -10
  122. package/resources/codex-and-agents-customizations/.agents/skills/extract-feature-contract/SKILL.md +133 -0
  123. package/resources/codex-and-agents-customizations/.agents/skills/feature-promotion-lifecycle/SKILL.md +1 -1
  124. package/resources/codex-and-agents-customizations/.agents/skills/feature-review/SKILL.md +8 -0
  125. package/resources/codex-and-agents-customizations/.agents/skills/general-code-change/SKILL.md +4 -1
  126. package/resources/codex-and-agents-customizations/.agents/skills/generate-acceptance-scenarios/SKILL.md +132 -0
  127. package/resources/codex-and-agents-customizations/.agents/skills/initialize-discovery-workspace/SKILL.md +131 -0
  128. package/resources/codex-and-agents-customizations/.agents/skills/inventory-legacy-system/SKILL.md +131 -0
  129. package/resources/codex-and-agents-customizations/.agents/skills/orchestrator-workflow/SKILL.md +8 -0
  130. package/resources/codex-and-agents-customizations/.agents/skills/powershell/SKILL.md +1 -1
  131. package/resources/codex-and-agents-customizations/.agents/skills/reconcile-parity-matrix/SKILL.md +131 -0
  132. package/resources/codex-and-agents-customizations/.agents/skills/review-discovery-coverage/SKILL.md +129 -0
  133. package/resources/codex-and-agents-customizations/.agents/skills/validate-discovery-artifacts/SKILL.md +127 -0
  134. package/resources/codex-and-agents-customizations/.codex/agents/csharp-typed-engineer-c1.toml +1 -1
  135. package/resources/codex-and-agents-customizations/.codex/agents/csharp-typed-engineer-c2.toml +1 -1
  136. package/resources/codex-and-agents-customizations/.codex/agents/csharp-typed-engineer-c3-elevated.toml +1 -1
  137. package/resources/codex-and-agents-customizations/.codex/agents/csharp-typed-engineer-c3.toml +1 -1
  138. package/resources/codex-and-agents-customizations/.codex/agents/csharp-typed-engineer-c4.toml +1 -1
  139. package/resources/codex-and-agents-customizations/.codex/agents/csharp-typed-engineer.toml +1 -1
  140. package/resources/codex-and-agents-customizations/.codex/agents/discovery-capability-sentinel.toml +51 -0
  141. package/resources/codex-and-agents-customizations/.codex/agents/feature-review.toml +8 -0
  142. package/resources/codex-and-agents-customizations/.codex/agents/legacy-parity-analyst-c1.toml +148 -0
  143. package/resources/codex-and-agents-customizations/.codex/agents/legacy-parity-analyst-c2.toml +148 -0
  144. package/resources/codex-and-agents-customizations/.codex/agents/legacy-parity-analyst-c3-elevated.toml +148 -0
  145. package/resources/codex-and-agents-customizations/.codex/agents/legacy-parity-analyst-c3.toml +148 -0
  146. package/resources/codex-and-agents-customizations/.codex/agents/legacy-parity-analyst-c4.toml +148 -0
  147. package/resources/codex-and-agents-customizations/.codex/agents/legacy-parity-analyst.toml +148 -0
  148. package/resources/codex-and-agents-customizations/.codex/agents/migration-coverage-reviewer-c1.toml +154 -0
  149. package/resources/codex-and-agents-customizations/.codex/agents/migration-coverage-reviewer-c2.toml +154 -0
  150. package/resources/codex-and-agents-customizations/.codex/agents/migration-coverage-reviewer-c3-elevated.toml +154 -0
  151. package/resources/codex-and-agents-customizations/.codex/agents/migration-coverage-reviewer-c3.toml +154 -0
  152. package/resources/codex-and-agents-customizations/.codex/agents/migration-coverage-reviewer-c4.toml +154 -0
  153. package/resources/codex-and-agents-customizations/.codex/agents/migration-coverage-reviewer.toml +154 -0
  154. package/resources/codex-and-agents-customizations/.codex/agents/powershell-typed-engineer-c1.toml +1 -1
  155. package/resources/codex-and-agents-customizations/.codex/agents/powershell-typed-engineer-c2.toml +1 -1
  156. package/resources/codex-and-agents-customizations/.codex/agents/powershell-typed-engineer-c3-elevated.toml +1 -1
  157. package/resources/codex-and-agents-customizations/.codex/agents/powershell-typed-engineer-c3.toml +1 -1
  158. package/resources/codex-and-agents-customizations/.codex/agents/powershell-typed-engineer-c4.toml +1 -1
  159. package/resources/codex-and-agents-customizations/.codex/agents/powershell-typed-engineer.toml +1 -1
  160. package/resources/codex-and-agents-customizations/.codex/agents/python-typed-engineer-c1.toml +1 -1
  161. package/resources/codex-and-agents-customizations/.codex/agents/python-typed-engineer-c2.toml +1 -1
  162. package/resources/codex-and-agents-customizations/.codex/agents/python-typed-engineer-c3-elevated.toml +1 -1
  163. package/resources/codex-and-agents-customizations/.codex/agents/python-typed-engineer-c3.toml +1 -1
  164. package/resources/codex-and-agents-customizations/.codex/agents/python-typed-engineer-c4.toml +1 -1
  165. package/resources/codex-and-agents-customizations/.codex/agents/python-typed-engineer.toml +1 -1
  166. package/resources/codex-and-agents-customizations/.codex/agents/requirements-reconciler-c1.toml +164 -0
  167. package/resources/codex-and-agents-customizations/.codex/agents/requirements-reconciler-c2.toml +164 -0
  168. package/resources/codex-and-agents-customizations/.codex/agents/requirements-reconciler-c3-elevated.toml +164 -0
  169. package/resources/codex-and-agents-customizations/.codex/agents/requirements-reconciler-c3.toml +164 -0
  170. package/resources/codex-and-agents-customizations/.codex/agents/requirements-reconciler-c4.toml +164 -0
  171. package/resources/codex-and-agents-customizations/.codex/agents/requirements-reconciler.toml +164 -0
  172. package/resources/codex-and-agents-customizations/.codex/agents/runtime-characterization-analyst-c1.toml +150 -0
  173. package/resources/codex-and-agents-customizations/.codex/agents/runtime-characterization-analyst-c2.toml +150 -0
  174. package/resources/codex-and-agents-customizations/.codex/agents/runtime-characterization-analyst-c3-elevated.toml +150 -0
  175. package/resources/codex-and-agents-customizations/.codex/agents/runtime-characterization-analyst-c3.toml +150 -0
  176. package/resources/codex-and-agents-customizations/.codex/agents/runtime-characterization-analyst-c4.toml +150 -0
  177. package/resources/codex-and-agents-customizations/.codex/agents/runtime-characterization-analyst.toml +150 -0
  178. package/resources/codex-and-agents-customizations/.codex/config.toml +39 -3
  179. package/resources/codex-and-agents-customizations/.codex/hooks/codex-agent-profile-attestation.ps1 +22 -0
  180. package/resources/codex-and-agents-customizations/.codex/hooks/discovery-capability-probe.ps1 +97 -0
  181. package/resources/codex-and-agents-customizations/.codex/hooks/discovery-start-attestation.ps1 +171 -0
  182. package/resources/codex-and-agents-customizations/.codex/hooks/enforce-codex-model-routing.ps1 +4 -1
  183. package/resources/codex-and-agents-customizations/.codex/hooks/enforce-discovery-artifact-gate.ps1 +187 -0
  184. package/resources/codex-and-agents-customizations/.codex/hooks/enforce-discovery-planning-gate.ps1 +149 -0
  185. package/resources/codex-and-agents-customizations/.codex/hooks/enforce-file-size-limit.ps1 +282 -0
  186. package/resources/codex-and-agents-customizations/.codex/hooks/enforce-orchestration-preimplementation-gate-epic-scope.ps1 +239 -2
  187. package/resources/codex-and-agents-customizations/.codex/hooks/enforce-orchestration-preimplementation-gate.ps1 +6 -15
  188. package/resources/codex-and-agents-customizations/.codex/hooks/enforce-powershell-batch-budget.ps1 +54 -15
  189. package/resources/codex-and-agents-customizations/.codex/hooks/enforce-python-batch-budget.ps1 +54 -15
  190. package/resources/codex-and-agents-customizations/.codex/hooks/file-size-policy.ps1 +421 -0
  191. package/resources/codex-and-agents-customizations/.codex/hooks/hook-target-worktree.ps1 +369 -0
  192. package/resources/codex-and-agents-customizations/.codex/hooks/record-subagent-routing-attestation.ps1 +8 -0
  193. package/resources/codex-and-agents-customizations/.codex/hooks/validate-codex-subagent-routing.ps1 +22 -1
  194. package/resources/codex-and-agents-customizations/.codex/hooks/validate-discovery-agent-output.ps1 +178 -0
  195. package/resources/codex-and-agents-customizations/.codex/scripts/Resolve-CodexTopology.ps1 +11 -1
  196. package/resources/codex-and-agents-customizations/.codex-variants/csharp-legacy/agents/csharp-typed-engineer.toml +1 -1
  197. package/resources/codex-and-agents-customizations/AGENTS.md +4 -1
  198. package/resources/codex-and-agents-customizations/pack-manifests/core.json +65 -1
  199. package/resources/config/orchestration-routing.json +61 -1
  200. package/resources/customizations/.github/agents/commentary-remediation.agent.md +1 -1
  201. package/resources/customizations/.github/agents/discovery-capability-sentinel.agent.md +34 -0
  202. package/resources/customizations/.github/agents/legacy-parity-analyst.agent.md +122 -0
  203. package/resources/customizations/.github/agents/migration-coverage-reviewer.agent.md +128 -0
  204. package/resources/customizations/.github/agents/python-execution-only-typed.agent.md +1 -1
  205. package/resources/customizations/.github/agents/python-typed-engineer.agent.md +1 -1
  206. package/resources/customizations/.github/agents/requirements-reconciler.agent.md +138 -0
  207. package/resources/customizations/.github/agents/runtime-characterization-analyst.agent.md +124 -0
  208. package/resources/customizations/.github/hooks/discovery-agent-start.ps1 +139 -0
  209. package/resources/customizations/.github/hooks/discovery-agent-stop.ps1 +123 -0
  210. package/resources/customizations/.github/hooks/discovery-capability-probe.ps1 +98 -0
  211. package/resources/customizations/.github/hooks/discovery-planning.ps1 +91 -0
  212. package/resources/customizations/.github/hooks/discovery-pre-tool.ps1 +123 -0
  213. package/resources/customizations/.github/hooks/discovery.json +35 -0
  214. package/resources/customizations/.github/instructions/general-code-change.instructions.md +5 -2
  215. package/resources/customizations/.github/instructions/mermaid.instructions.md +85 -0
  216. package/resources/customizations/.github/instructions/powershell-code-change.instructions.md +1 -1
  217. package/resources/customizations/.github/prompts/execute-hard-lock.prompt.md +105 -0
  218. package/resources/customizations/.github/prompts/remediate-comments.prompt.md +1 -1
  219. package/resources/customizations/.github/skills/adjudicate-unspecified-behavior/SKILL.md +135 -0
  220. package/resources/customizations/.github/skills/characterize-runtime-behavior/SKILL.md +134 -0
  221. package/resources/customizations/.github/skills/discovery-behavior-reconciliation/SKILL.md +46 -0
  222. package/resources/customizations/.github/skills/discovery-coverage-ledger/SKILL.md +50 -0
  223. package/resources/customizations/.github/skills/discovery-parity-matrix/SKILL.md +46 -0
  224. package/resources/customizations/.github/skills/discovery-repo-inventory/SKILL.md +46 -0
  225. package/resources/customizations/.github/skills/discovery-runtime-characterization/SKILL.md +46 -0
  226. package/resources/customizations/.github/skills/discovery-validate-artifacts/SKILL.md +46 -0
  227. package/resources/customizations/.github/skills/discovery-workflow/SKILL.md +62 -0
  228. package/resources/customizations/.github/skills/execution-environment/SKILL.md +25 -10
  229. package/resources/customizations/.github/skills/extract-feature-contract/SKILL.md +133 -0
  230. package/resources/customizations/.github/skills/feature-review-workflow/SKILL.md +8 -0
  231. package/resources/customizations/.github/skills/generate-acceptance-scenarios/SKILL.md +132 -0
  232. package/resources/customizations/.github/skills/initialize-discovery-workspace/SKILL.md +131 -0
  233. package/resources/customizations/.github/skills/inventory-legacy-system/SKILL.md +131 -0
  234. package/resources/customizations/.github/skills/reconcile-parity-matrix/SKILL.md +131 -0
  235. package/resources/customizations/.github/skills/review-discovery-coverage/SKILL.md +129 -0
  236. package/resources/customizations/.github/skills/validate-discovery-artifacts/SKILL.md +127 -0
  237. package/resources/lib/codex-routing/CodexDeployment.psm1 +5 -1
  238. package/resources/lib/codex-routing/CodexDiscoveryRouting.psm1 +161 -0
  239. package/resources/lib/codex-routing/CodexTopology.psm1 +25 -2
  240. package/resources/lib/discovery-validation/DiscoveryAuthority.psd1 +90 -0
  241. package/resources/lib/discovery-validation/DiscoveryAuthority.psm1 +493 -0
  242. package/resources/lib/discovery-validation/DiscoveryAuthorization.psm1 +479 -0
  243. package/resources/lib/discovery-validation/DiscoveryCapability.psm1 +468 -0
  244. package/resources/lib/discovery-validation/DiscoveryEncoding.psm1 +156 -0
  245. package/resources/lib/discovery-validation/DiscoveryManifest.psm1 +384 -0
  246. package/resources/lib/discovery-validation/DiscoveryObservation.psm1 +217 -0
  247. package/resources/lib/discovery-validation/DiscoveryPayload.psm1 +276 -0
  248. package/resources/lib/discovery-validation/DiscoveryPlanning.psm1 +336 -0
  249. package/resources/lib/discovery-validation/DiscoveryRootGrant.psm1 +164 -0
  250. package/resources/lib/discovery-validation/DiscoveryStart.psm1 +440 -0
  251. package/resources/lib/discovery-validation/DiscoveryStartRecord.psm1 +296 -0
  252. package/resources/lib/discovery-validation/DiscoveryStop.psm1 +336 -0
  253. package/resources/lib/discovery-validation/DiscoveryToolRouting.psm1 +228 -0
  254. package/resources/powershell/PoshQC/PoshQC.Parallel.psm1 +452 -0
  255. package/resources/powershell/PoshQC/PoshQC.Shard.psm1 +106 -8
  256. package/resources/powershell/PoshQC/PoshQC.Testing.psm1 +12 -0
  257. package/resources/powershell/PoshQC/PoshQC.psd1 +6 -1
  258. package/resources/powershell/PoshQC/PoshQC.psm1 +7 -1
  259. package/resources/powershell/PoshQC/README.md +20 -1
  260. package/resources/templates/policy_audit/code-review.yyyy-MM-ddTHH-mm.md +4 -4
  261. package/resources/templates/policy_audit/policy-audit.yyyy-MM-ddTHH-mm.md +4 -4
@@ -0,0 +1,133 @@
1
+ ---
2
+ name: extract-feature-contract
3
+ description: 'Extract evidence-backed feature contracts for selected legacy components and record unresolved behavior. Use when asked to document a feature contract from source, tests, documentation and supplied evidence.'
4
+ ---
5
+
6
+ # Extract Feature Contract
7
+
8
+ ## When to Use This Skill
9
+
10
+ Use for selected component or feature extraction after scope and source references are supplied. This workflow records source behavior without approving a target design.
11
+
12
+ ## Inputs
13
+
14
+ These are human-facing workflow selections, not additional service-request fields.
15
+ Supply explicit selections; neither omitted inputs nor profile roots create authority.
16
+
17
+ | Input | Required contract |
18
+ | --- | --- |
19
+ | profile | Required validated profile and trusted workspace binding. |
20
+ | component_ids | Required explicit selected components; preserve unrelated coverage members. |
21
+ | feature_ids | Required explicit feature IDs, including IDs for proposed new contracts. |
22
+ | source_refs | Required selected source references with revision/content identity. |
23
+ | test_refs | Required explicit selection or honest empty set of relevant test references. |
24
+ | documentation_refs | Required explicit selection or honest empty set of documentation references. |
25
+ | evidence_refs | Required explicit selection or honest empty set of supplied evidence references. |
26
+
27
+ ## Routing
28
+
29
+ Logical role: `legacy-parity-analyst`.
30
+ The root owns preparation and launch; this skill never auto-launches a logical
31
+ role through frontmatter. The existing resolver selects the exact deployment,
32
+ model, effort and profile hash under the existing C1-C4 ceiling and execution
33
+ context. Do not choose a model, self-launch, create another scheduler or promote
34
+ an ordinary discovery action into an issue. The production-write count is zero.
35
+
36
+ ## Exact output boundary
37
+
38
+ These rows are maximum workflow caps, not instructions to create every kind.
39
+ Only the prepared required outputs may be created or replaced.
40
+
41
+ | Artifact kind | Profile key | Constraint |
42
+ | --- | --- | --- |
43
+ | feature-contract | feature_contracts | Selected feature IDs only |
44
+ | coverage-ledger | coverage_ledger | Selected component dispositions only |
45
+ | evidence-reference | evidence | Explicitly granted supporting evidence only |
46
+ | unspecified-behavior | unspecified_behaviors | Selected unresolved IDs only |
47
+ | unspecified-behavior-collection | unspecified_behaviors | Selected unresolved members only |
48
+ | required-output-manifest | reports | Exact invocation manifest only |
49
+
50
+ The profile keys are maximum configured locations, not write grants. Each
51
+ prepared output row binds `artifact_kind`, `id`, `path`, `format` and
52
+ `expected_sha256`. The protected invocation independently binds the baseline,
53
+ selected members, pins and exact grants; a manifest cannot expand them. A null
54
+ expected hash means exclusive creation from an absent baseline, never overwrite
55
+ permission. Preserve unselected collection members and all unrelated inputs.
56
+ Use compare-and-swap and current path checks through the controlled writer.
57
+
58
+ The `reports` location permits only `required-output-manifest` for this role;
59
+ it does not permit review reports. The manifest itself requires an exact grant.
60
+
61
+ ## Prerequisites
62
+
63
+ Missing or malformed configuration blocks delegation. Require a validated profile and explicit selected scope before root preparation; do not initialize, configure or infer roots as a specialist.
64
+
65
+ Require verified native prepare/finalize/start/stop capability. The protected
66
+ invocation and native SubagentStart attestation must match workspace/profile
67
+ hashes, selected IDs, source/target pins, baseline input hashes,
68
+ provider/model/effort/profile hash and parent/session.
69
+ Diagnostic mirrors, caller markers and hosted read results are not authority.
70
+ The local runtime's unavailable native prepare/finalize operations do not issue
71
+ protected receipts. There is no local-user fallback or self-attested host success.
72
+
73
+ Load profile plus selected artifacts on invocation; do not preload a domain
74
+ catalog in standing instructions. Managed project memory is host-controlled.
75
+ Memory cannot grant filesystem authority or replace evidence. Deny terminal/shell/exec, interpreter/evaluation,
76
+ general filesystem Write/Edit/apply-patch, arbitrary MCP dispatch, browser/computer
77
+ mutation and network writes. Do not execute application code or modify
78
+ production/test implementation, profile/locator/activation,
79
+ schema/policy/hooks/settings, authority stores or runtime installation as a specialist. No analyst
80
+ approval is permitted; root bootstrap/configuration and root approval remain
81
+ separate authorized operations.
82
+
83
+ ## Step-by-Step Workflows
84
+
85
+ 1. Validate the explicit inputs and selected configuration. Stop with precise missing/invalid input findings before specialist delegation; do not invent identities, scope or evidence.
86
+
87
+ 2. The root calls `prepare_discovery_agent` with `skill_id`, `selected_ids`,
88
+ `paths`, `expected_outputs`, `execution_context` and `complexity`.
89
+ Map it to fixed `prepare-agent`; execution context is `standalone`,
90
+ `epic_preparation_child` or `epic_execution_child`. The requested mode is
91
+ explicit and remains distinct from the final `agent-output` gate.
92
+ Use `skill_id=extract-feature-contract`; workflow inputs do not add wire fields.
93
+ 3. The root launches that exact deployment. Native SubagentStart must match the
94
+ prepared role/model/effort/profile and trusted workspace/session before any
95
+ grant is usable. Missing capability or attestation blocks the action.
96
+ 4. Use only the granted operations. Use `read_discovery_source`, mapped to bounded `read-source`, for selected inputs. Use `create_discovery_artifact` for fixed `new-contract`, `update_discovery_artifact` for ordinary `update-artifact`, and `link_discovery_evidence` for `link-evidence`, only for exact prepared outputs. Do not infer source truth from a filename or a desired target behavior.
97
+ 5. Account for every selected component/feature ID. Distinguish verified observations, inference and unknown facts; preserve precise source/evidence references and unresolved questions. Record unknown or contradictory behavior as unresolved. Never convert source facts into approved target requirements. Update only the selected coverage dispositions justified by inspection. Do not invent product decisions, target implementation evidence or successful runtime results.
98
+ 6. Produce every exact required output and the stored `required-output-manifest`,
99
+ preserving its output array order for the digest. Validate claims, references,
100
+ pins and selected-ID accounting. Purpose-built tools supply authorized proposal
101
+ inputs for `input_path`/`evidence_path`; never invent a generic Write staging
102
+ step. Server-side role checks, exact one-use authorization and prospective
103
+ validation remain mandatory. Bounded source reads preserve content identity
104
+ and line ranges; truncation requires a narrower selection, not a completeness
105
+ claim or filesystem fallback.
106
+ 7. Call `finalize_discovery_agent` as the specialist, mapped to `finalize-agent`
107
+ with `mode=agent-output`, non-null `invocation_ref` and no operation inputs.
108
+ It validates the protected invocation's outputs, not final-message paths.
109
+ Native SubagentStop then verifies current output authority.
110
+ Missing final text cannot skip native stop validation.
111
+ 8. After native stop, the root records the explicit result, content-addressed artifact references,
112
+ selected-ID accounting and all findings. A successful tool call or generated
113
+ path alone is not evidence of completed discovery.
114
+
115
+ ## Stop and result
116
+
117
+ Return selected contract IDs and evidence digests with unresolved work. A structurally valid draft may be useful incremental output without satisfying discovery or planning completion.
118
+
119
+ Structural success is not discovery, parity or planning completion.
120
+ Missing prepare/finalize/start/stop capability, missing outputs, invalid claims,
121
+ unresolved required work, wrong role/model/start context or a stale/missing
122
+ receipt blocks successful completion. Return explicit
123
+ PASS, FAIL or BLOCKED, distinguishing valid incremental outputs from a passing
124
+ completion gate. Missing native enforcement remains BLOCKED even when ordinary
125
+ local-user operations can run; do not substitute CLI success for native authority.
126
+
127
+ ## References
128
+
129
+ - [Canonical legacy-parity-analyst contract](../../agents/legacy-parity-analyst.agent.md)
130
+ - Installed v2 `service-request` and `required-output-manifest` schema contracts;
131
+ consume them through the authoritative runtime, with no checkout-schema fallback.
132
+ - The selected profile and pinned local artifacts supplied for this invocation;
133
+ references do not preload catalogs or grant access to unselected paths.
@@ -154,6 +154,14 @@ Always apply:
154
154
  - `feature-audit.<timestamp>.md`
155
155
  - contains the five required major sections listed above
156
156
 
157
+ ## File Size Advisory
158
+
159
+ The tiered file-size policy (section 4, Module & File Structure, in `.github/instructions/general-code-change.instructions.md`) sets a 500-line guidance tier, a 700-line advisory tier, and an 800-line hard limit. Measure the logical line count of every added or modified covered file in the branch diff. Covered files have one of the extensions `.py`, `.ps1`, `.psm1`, `.ts`, `.tsx`, `.js`, `.cjs`, `.mjs`, `.cs`, `.sh`, or `.bats` and are not under a build, cache, dependency, virtual-environment, or `docs` directory. A logical line count splits the content on line terminators, and a trailing terminator does not add a line; it equals `@(Get-Content -LiteralPath <path>).Count`. Do not use `wc -l` or `Measure-Object -Line`.
160
+
161
+ - Report each covered file at or above 700 lines as a non-blocking `Warning` row in the Findings Table of `code-review.<timestamp>.md`, naming the file and its line count. Do not write the Warning to `remediation-inputs.<timestamp>.md`, and do not give it a remediation severity label.
162
+ - Report a covered file above 800 lines that has no entry in `config/file-size-baseline.json`, and any added or increased entry in `config/file-size-baseline.json`, as a blocking policy finding.
163
+ - Produce no finding for the 500-line guidance tier.
164
+
157
165
  ## Constraints
158
166
 
159
167
  - Prefer check-only commands.
@@ -0,0 +1,132 @@
1
+ ---
2
+ name: generate-acceptance-scenarios
3
+ description: 'Generate traceable acceptance specifications, eligible views and explicit pending material. Use when asked to derive acceptance scenarios from confirmed contracts and approved decisions.'
4
+ ---
5
+
6
+ # Generate Acceptance Scenarios
7
+
8
+ ## When to Use This Skill
9
+
10
+ Use for an explicit acceptance selection and requested render format. Generated specifications define requirements; they do not prove implementation.
11
+
12
+ ## Inputs
13
+
14
+ These are human-facing workflow selections, not additional service-request fields.
15
+ Supply explicit selections; neither omitted inputs nor profile roots create authority.
16
+
17
+ | Input | Required contract |
18
+ | --- | --- |
19
+ | profile | Required validated profile and trusted workspace binding. |
20
+ | contract_refs | Required confirmed contract references and source pins. |
21
+ | approved_decision_refs | Required applicable approved decisions or an explicit empty selection. |
22
+ | kind | Required supported acceptance kind. |
23
+ | feature_filter | Optional explicit selected features; absence uses only the prepared selection. |
24
+ | client_filter | Optional explicit selected clients; absence uses only the prepared selection. |
25
+ | platform_filter | Optional explicit selected platforms; preserve platform identity. |
26
+ | mode_filter | Optional explicit selected modes; preserve declared mode identity. |
27
+ | format | Required explicit supported render format; expected outputs bind each actual serialization format. |
28
+
29
+ ## Routing
30
+
31
+ Logical role: `requirements-reconciler`.
32
+ The root owns preparation and launch; this skill never auto-launches a logical
33
+ role through frontmatter. The existing resolver selects the exact deployment,
34
+ model, effort and profile hash under the existing C1-C4 ceiling and execution
35
+ context. Do not choose a model, self-launch, create another scheduler or promote
36
+ an ordinary discovery action into an issue. The production-write count is zero.
37
+
38
+ ## Exact output boundary
39
+
40
+ These rows are maximum workflow caps, not instructions to create every kind.
41
+ Only the prepared required outputs may be created or replaced.
42
+
43
+ | Artifact kind | Profile key | Constraint |
44
+ | --- | --- | --- |
45
+ | acceptance-specification | acceptance | Selected structured specifications and pending records |
46
+ | acceptance-view | acceptance | Selected eligible Markdown/Gherkin views or pending material |
47
+ | required-output-manifest | reports | Exact invocation manifest only |
48
+
49
+ The profile keys are maximum configured locations, not write grants. Each
50
+ prepared output row binds `artifact_kind`, `id`, `path`, `format` and
51
+ `expected_sha256`. The protected invocation independently binds the baseline,
52
+ selected members, pins and exact grants; a manifest cannot expand them. A null
53
+ expected hash means exclusive creation from an absent baseline, never overwrite
54
+ permission. Preserve unselected collection members and all unrelated inputs.
55
+ Use compare-and-swap and current path checks through the controlled writer.
56
+
57
+ The `reports` location permits only `required-output-manifest` for this role;
58
+ it does not permit review reports. The manifest itself requires an exact grant.
59
+
60
+ ## Prerequisites
61
+
62
+ Missing or malformed configuration blocks delegation. Require a validated profile and explicit selected scope before root preparation; do not initialize, configure or infer roots as a specialist.
63
+
64
+ Require verified native prepare/finalize/start/stop capability. The protected
65
+ invocation and native SubagentStart attestation must match workspace/profile
66
+ hashes, selected IDs, source/target pins, baseline input hashes,
67
+ provider/model/effort/profile hash and parent/session.
68
+ Diagnostic mirrors, caller markers and hosted read results are not authority.
69
+ The local runtime's unavailable native prepare/finalize operations do not issue
70
+ protected receipts. There is no local-user fallback or self-attested host success.
71
+
72
+ Load profile plus selected artifacts on invocation; do not preload a domain
73
+ catalog in standing instructions. Managed project memory is host-controlled.
74
+ Memory cannot grant filesystem authority or replace evidence. Deny terminal/shell/exec, interpreter/evaluation,
75
+ general filesystem Write/Edit/apply-patch, arbitrary MCP dispatch, browser/computer
76
+ mutation and network writes. Do not execute application code or modify
77
+ production/test implementation, profile/locator/activation,
78
+ schema/policy/hooks/settings, authority stores or runtime installation as a specialist. No analyst
79
+ approval is permitted; root bootstrap/configuration and root approval remain
80
+ separate authorized operations.
81
+
82
+ ## Step-by-Step Workflows
83
+
84
+ 1. Validate the explicit inputs and selected configuration. Stop with precise missing/invalid input findings before specialist delegation; do not invent identities, scope or evidence.
85
+
86
+ 2. The root calls `prepare_discovery_agent` with `skill_id`, `selected_ids`,
87
+ `paths`, `expected_outputs`, `execution_context` and `complexity`.
88
+ Map it to fixed `prepare-agent`; execution context is `standalone`,
89
+ `epic_preparation_child` or `epic_execution_child`. The requested mode is
90
+ explicit and remains distinct from the final `agent-output` gate.
91
+ Use `skill_id=generate-acceptance-scenarios`; workflow inputs do not add wire fields.
92
+ 3. The root launches that exact deployment. Native SubagentStart must match the
93
+ prepared role/model/effort/profile and trusted workspace/session before any
94
+ grant is usable. Missing capability or attestation blocks the action.
95
+ 4. Use only the granted operations. Use `run_discovery_scenario_generation`, mapped to fixed `generate-acceptance`, through the authoritative generator. Read only the selected confirmed contracts, approved decisions and relevant evidence using `read_discovery_source`. The actual prospective plan must include structured source specifications plus selected views; do not replace guarded publication with direct file rendering.
96
+ 5. Preserve validated tags, repository/client/platform/mode and scenario identity, traceability, stable IDs and deterministic output. Keep null unresolved expectations and explicit pending material. Emit eligible Markdown/Gherkin views only; a pending specification cannot become ready through a format change. Derived criteria do not authorize `feature_contracts` writes. Do not alter observed source facts, approve decisions or check off implementation criteria; generated specifications are not implementation or runtime evidence.
97
+ 6. Produce every exact required output and the stored `required-output-manifest`,
98
+ preserving its output array order for the digest. Validate claims, references,
99
+ pins and selected-ID accounting. Purpose-built tools supply authorized proposal
100
+ inputs for `input_path`/`evidence_path`; never invent a generic Write staging
101
+ step. Server-side role checks, exact one-use authorization and prospective
102
+ validation remain mandatory. Bounded source reads preserve content identity
103
+ and line ranges; truncation requires a narrower selection, not a completeness
104
+ claim or filesystem fallback.
105
+ 7. Call `finalize_discovery_agent` as the specialist, mapped to `finalize-agent`
106
+ with `mode=agent-output`, non-null `invocation_ref` and no operation inputs.
107
+ It validates the protected invocation's outputs, not final-message paths.
108
+ Native SubagentStop then verifies current output authority.
109
+ Missing final text cannot skip native stop validation.
110
+ 8. After native stop, the root records the explicit result, content-addressed artifact references,
111
+ selected-ID accounting and all findings. A successful tool call or generated
112
+ path alone is not evidence of completed discovery.
113
+
114
+ ## Stop and result
115
+
116
+ Return structured ready and pending counts, content-addressed records/views and findings. Generated acceptance specifications are not implementation or runtime evidence and do not satisfy completion by themselves.
117
+
118
+ Structural success is not discovery, parity or planning completion.
119
+ Missing prepare/finalize/start/stop capability, missing outputs, invalid claims,
120
+ unresolved required work, wrong role/model/start context or a stale/missing
121
+ receipt blocks successful completion. Return explicit
122
+ PASS, FAIL or BLOCKED, distinguishing valid incremental outputs from a passing
123
+ completion gate. Missing native enforcement remains BLOCKED even when ordinary
124
+ local-user operations can run; do not substitute CLI success for native authority.
125
+
126
+ ## References
127
+
128
+ - [Canonical requirements-reconciler contract](../../agents/requirements-reconciler.agent.md)
129
+ - Installed v2 `service-request` and `required-output-manifest` schema contracts;
130
+ consume them through the authoritative runtime, with no checkout-schema fallback.
131
+ - The selected profile and pinned local artifacts supplied for this invocation;
132
+ references do not preload catalogs or grant access to unselected paths.
@@ -0,0 +1,131 @@
1
+ ---
2
+ name: initialize-discovery-workspace
3
+ description: 'Initialize or explicitly configure a discovery workspace through root-owned operations before constrained review. Use when asked to bootstrap a discovery workspace or preview its initial structure.'
4
+ ---
5
+
6
+ # Initialize Discovery Workspace
7
+
8
+ ## When to Use This Skill
9
+
10
+ Use when a workspace needs explicit bootstrap inputs or controlled configuration. Missing initial configuration is allowed only for the root bootstrap stage.
11
+
12
+ ## Inputs
13
+
14
+ These are human-facing workflow selections, not additional service-request fields.
15
+ Supply explicit selections; neither omitted inputs nor profile roots create authority.
16
+
17
+ | Input | Required contract |
18
+ | --- | --- |
19
+ | system_id | Required explicit system identity, independently of system_name. |
20
+ | system_name | Required explicit display name; do not infer it from repository paths. |
21
+ | repository_id | Required explicit repository identity. |
22
+ | repository_role | Required explicit supported repository role. |
23
+ | roots | Required explicit source/test/documentation and other applicable roots, or honest draft choices. |
24
+ | draft_inputs | Optional explicit draft/unknown inputs when completeness is not established. |
25
+ | dry_run | Required explicit preview intent; dry-run creates no configuration or authority. |
26
+ | profile_selection | Optional explicit profile selection for root configure; no ancestor or checkout inference. |
27
+
28
+ ## Routing
29
+
30
+ Logical role: `migration-coverage-reviewer`.
31
+ The root owns preparation and launch; this skill never auto-launches a logical
32
+ role through frontmatter. The existing resolver selects the exact deployment,
33
+ model, effort and profile hash under the existing C1-C4 ceiling and execution
34
+ context. Do not choose a model, self-launch, create another scheduler or promote
35
+ an ordinary discovery action into an issue. The production-write count is zero.
36
+
37
+ ## Exact output boundary
38
+
39
+ These rows are maximum workflow caps, not instructions to create every kind.
40
+ Only the prepared required outputs may be created or replaced.
41
+
42
+ | Artifact kind | Profile key | Constraint |
43
+ | --- | --- | --- |
44
+ | validation-report | reports | Exact projected/resulting structural review |
45
+ | coverage-report | reports | Exact projected/resulting structural review |
46
+ | required-output-manifest | reports | Exact invocation manifest only |
47
+
48
+ The profile keys are maximum configured locations, not write grants. Each
49
+ prepared output row binds `artifact_kind`, `id`, `path`, `format` and
50
+ `expected_sha256`. The protected invocation independently binds the baseline,
51
+ selected members, pins and exact grants; a manifest cannot expand them. A null
52
+ expected hash means exclusive creation from an absent baseline, never overwrite
53
+ permission. Preserve unselected collection members and all unrelated inputs.
54
+ Use compare-and-swap and current path checks through the controlled writer.
55
+
56
+ Only exact selected reports and the invocation manifest may be written. A profile
57
+ report root and a validation report pair never grant report-root-wide writes.
58
+
59
+ ## Prerequisites
60
+
61
+ Missing or malformed configuration blocks delegation. This is the sole missing-profile bootstrap exception: only the root may call `run_discovery_init`/`configure_discovery_workspace` with explicit inputs. Validate any existing configuration; do not bypass malformed state. Root configuration outputs are outside the reviewer's output table and grants. A missing valid projected/resulting context blocks reviewer preparation.
62
+
63
+ Require verified native prepare/finalize/start/stop capability. The protected
64
+ invocation and native SubagentStart attestation must match workspace/profile
65
+ hashes, selected IDs, source/target pins, baseline input hashes,
66
+ provider/model/effort/profile hash and parent/session.
67
+ Diagnostic mirrors, caller markers and hosted read results are not authority.
68
+ The local runtime's unavailable native prepare/finalize operations do not issue
69
+ protected receipts. There is no local-user fallback or self-attested host success.
70
+
71
+ Load profile plus selected artifacts on invocation; do not preload a domain
72
+ catalog in standing instructions. Managed project memory is host-controlled.
73
+ Memory cannot grant filesystem authority or replace evidence. Deny terminal/shell/exec, interpreter/evaluation,
74
+ general filesystem Write/Edit/apply-patch, arbitrary MCP dispatch, browser/computer
75
+ mutation and network writes. Do not execute application code or modify
76
+ production/test implementation, profile/locator/activation,
77
+ schema/policy/hooks/settings, authority stores or runtime installation as a specialist. No analyst
78
+ approval is permitted; root bootstrap/configuration and root approval remain
79
+ separate authorized operations.
80
+
81
+ ## Step-by-Step Workflows
82
+
83
+ 1. The root validates explicit bootstrap inputs, calls `run_discovery_init` mapped to `init`, and uses `configure_discovery_workspace` mapped to `configure` only for explicit profile selection/activation. Preserve no-overwrite conflict/skip behavior and dry-run no-effects semantics. Do not inspect ancestors or read arbitrary templates. Obtain a valid projected/resulting configuration before preparing the reviewer; a dry-run projection is not an activated workspace or host authority.
84
+
85
+ 2. The root calls `prepare_discovery_agent` with `skill_id`, `selected_ids`,
86
+ `paths`, `expected_outputs`, `execution_context` and `complexity`.
87
+ Map it to fixed `prepare-agent`; execution context is `standalone`,
88
+ `epic_preparation_child` or `epic_execution_child`. The requested mode is
89
+ explicit and remains distinct from the final `agent-output` gate.
90
+ Use `skill_id=initialize-discovery-workspace`; workflow inputs do not add wire fields.
91
+ 3. The root launches that exact deployment. Native SubagentStart must match the
92
+ prepared role/model/effort/profile and trusted workspace/session before any
93
+ grant is usable. Missing capability or attestation blocks the action.
94
+ 4. Use only the granted operations. After root bootstrap, the reviewer uses `validate_discovery_artifacts` for the exact projected/resulting structural review and its selected report pair. The reviewer writes exact reports, never configuration, and never receives profile, locator, activation, authority or installation writes. If the native provider cannot prepare a review for the valid projected context, return BLOCKED instead of inventing a persisted profile.
95
+ 5. A truthful initialized draft may pass structural validation while discovery-complete, parity-complete and planning remain blocked. Review only root-supplied projected/resulting inputs and exact reports; preserve draft/unknown markers and empty-scope distinctions. Root local-user CLI success cannot serve as a native reviewer invocation or protected receipt.
96
+ 6. Produce every exact required output and the stored `required-output-manifest`,
97
+ preserving its output array order for the digest. Validate claims, references,
98
+ pins and selected-ID accounting. Purpose-built tools supply authorized proposal
99
+ inputs for `input_path`/`evidence_path`; never invent a generic Write staging
100
+ step. Server-side role checks, exact one-use authorization and prospective
101
+ validation remain mandatory. Bounded source reads preserve content identity
102
+ and line ranges; truncation requires a narrower selection, not a completeness
103
+ claim or filesystem fallback.
104
+ 7. Call `finalize_discovery_agent` as the specialist, mapped to `finalize-agent`
105
+ with `mode=agent-output`, non-null `invocation_ref` and no operation inputs.
106
+ It validates the protected invocation's outputs, not final-message paths.
107
+ Native SubagentStop then verifies current output authority.
108
+ Missing final text cannot skip native stop validation.
109
+ 8. After native stop, the root records the explicit result, content-addressed artifact references,
110
+ selected-ID accounting and all findings. A successful tool call or generated
111
+ path alone is not evidence of completed discovery.
112
+
113
+ ## Stop and result
114
+
115
+ Return root initialization/configuration results and the separately authorized reviewer result. If a preview leaves required stored outputs absent, finalization remains blocked; never fabricate writes or receipts. A dry-run or draft structure is not completed discovery; unavailable reviewer capability remains an explicit block even if root bootstrap succeeded.
116
+
117
+ Structural success is not discovery, parity or planning completion.
118
+ Missing prepare/finalize/start/stop capability, missing outputs, invalid claims,
119
+ unresolved required work, wrong role/model/start context or a stale/missing
120
+ receipt blocks successful completion. Return explicit
121
+ PASS, FAIL or BLOCKED, distinguishing valid incremental outputs from a passing
122
+ completion gate. Missing native enforcement remains BLOCKED even when ordinary
123
+ local-user operations can run; do not substitute CLI success for native authority.
124
+
125
+ ## References
126
+
127
+ - [Canonical migration-coverage-reviewer contract](../../agents/migration-coverage-reviewer.agent.md)
128
+ - Installed v2 `service-request` and `required-output-manifest` schema contracts;
129
+ consume them through the authoritative runtime, with no checkout-schema fallback.
130
+ - The selected profile and pinned local artifacts supplied for this invocation;
131
+ references do not preload catalogs or grant access to unselected paths.
@@ -0,0 +1,131 @@
1
+ ---
2
+ name: inventory-legacy-system
3
+ description: 'Inventory selected legacy repository surfaces with explicit analyzer scope and truthful coverage dispositions. Use when asked to inventory a legacy system or refresh selected discovery coverage.'
4
+ ---
5
+
6
+ # Inventory Legacy System
7
+
8
+ ## When to Use This Skill
9
+
10
+ Use for an explicit selected repository inventory or an incremental inventory refresh. Detection identifies candidates; it does not establish inspected behavior.
11
+
12
+ ## Inputs
13
+
14
+ These are human-facing workflow selections, not additional service-request fields.
15
+ Supply explicit selections; neither omitted inputs nor profile roots create authority.
16
+
17
+ | Input | Required contract |
18
+ | --- | --- |
19
+ | profile | Required validated profile and trusted workspace binding. |
20
+ | scope | Required confirmed or draft scope with selected component IDs and roots. |
21
+ | analyzer_ids | Required explicit supported analyzer selection; no arbitrary plugin or module. |
22
+ | write | Required explicit publication intent; it grants no paths by itself. |
23
+ | dry_run | Required explicit preview intent; preserve the request's no-write result. |
24
+
25
+ ## Routing
26
+
27
+ Logical role: `legacy-parity-analyst`.
28
+ The root owns preparation and launch; this skill never auto-launches a logical
29
+ role through frontmatter. The existing resolver selects the exact deployment,
30
+ model, effort and profile hash under the existing C1-C4 ceiling and execution
31
+ context. Do not choose a model, self-launch, create another scheduler or promote
32
+ an ordinary discovery action into an issue. The production-write count is zero.
33
+
34
+ ## Exact output boundary
35
+
36
+ These rows are maximum workflow caps, not instructions to create every kind.
37
+ Only the prepared required outputs may be created or replaced.
38
+
39
+ | Artifact kind | Profile key | Constraint |
40
+ | --- | --- | --- |
41
+ | inventory-snapshot | inventory | Requested inventory scope only |
42
+ | coverage-ledger | coverage_ledger | Selected component members only |
43
+ | evidence-reference | evidence | Explicitly granted observations only |
44
+ | unspecified-behavior | unspecified_behaviors | Selected unresolved IDs only |
45
+ | unspecified-behavior-collection | unspecified_behaviors | Selected unresolved members only |
46
+ | required-output-manifest | reports | Exact invocation manifest only |
47
+
48
+ The profile keys are maximum configured locations, not write grants. Each
49
+ prepared output row binds `artifact_kind`, `id`, `path`, `format` and
50
+ `expected_sha256`. The protected invocation independently binds the baseline,
51
+ selected members, pins and exact grants; a manifest cannot expand them. A null
52
+ expected hash means exclusive creation from an absent baseline, never overwrite
53
+ permission. Preserve unselected collection members and all unrelated inputs.
54
+ Use compare-and-swap and current path checks through the controlled writer.
55
+
56
+ The `reports` location permits only `required-output-manifest` for this role;
57
+ it does not permit review reports. The manifest itself requires an exact grant.
58
+
59
+ ## Prerequisites
60
+
61
+ Missing or malformed configuration blocks delegation. Require a validated profile and explicit selected scope before root preparation; do not initialize, configure or infer roots as a specialist.
62
+
63
+ Require verified native prepare/finalize/start/stop capability. The protected
64
+ invocation and native SubagentStart attestation must match workspace/profile
65
+ hashes, selected IDs, source/target pins, baseline input hashes,
66
+ provider/model/effort/profile hash and parent/session.
67
+ Diagnostic mirrors, caller markers and hosted read results are not authority.
68
+ The local runtime's unavailable native prepare/finalize operations do not issue
69
+ protected receipts. There is no local-user fallback or self-attested host success.
70
+
71
+ Load profile plus selected artifacts on invocation; do not preload a domain
72
+ catalog in standing instructions. Managed project memory is host-controlled.
73
+ Memory cannot grant filesystem authority or replace evidence. Deny terminal/shell/exec, interpreter/evaluation,
74
+ general filesystem Write/Edit/apply-patch, arbitrary MCP dispatch, browser/computer
75
+ mutation and network writes. Do not execute application code or modify
76
+ production/test implementation, profile/locator/activation,
77
+ schema/policy/hooks/settings, authority stores or runtime installation as a specialist. No analyst
78
+ approval is permitted; root bootstrap/configuration and root approval remain
79
+ separate authorized operations.
80
+
81
+ ## Step-by-Step Workflows
82
+
83
+ 1. Validate the explicit inputs and selected configuration. Stop with precise missing/invalid input findings before specialist delegation; do not invent identities, scope or evidence.
84
+
85
+ 2. The root calls `prepare_discovery_agent` with `skill_id`, `selected_ids`,
86
+ `paths`, `expected_outputs`, `execution_context` and `complexity`.
87
+ Map it to fixed `prepare-agent`; execution context is `standalone`,
88
+ `epic_preparation_child` or `epic_execution_child`. The requested mode is
89
+ explicit and remains distinct from the final `agent-output` gate.
90
+ Use `skill_id=inventory-legacy-system`; workflow inputs do not add wire fields.
91
+ 3. The root launches that exact deployment. Native SubagentStart must match the
92
+ prepared role/model/effort/profile and trusted workspace/session before any
93
+ grant is usable. Missing capability or attestation blocks the action.
94
+ 4. Use only the granted operations. Use `run_discovery_repo_inventory`, mapped to fixed `inventory`, with the explicit analyzer selection and write/dry-run intent. Use bounded `read_discovery_source` only for selected supporting inspection, and ordinary controlled updates or evidence links only for the listed granted outputs. Do not run application code, compiler evaluation, package restore or an arbitrary analyzer.
95
+ 5. Record detected paths, hashes, classifications and explicit analyzer limitations. Detection alone never marks a component inspected or dispositioned. Preserve unselected coverage members; do not silently shrink scope or infer a confirmed-empty inventory from a failed read. Missing facts or contradictory evidence become unresolved records. Inventory and coverage observations do not approve target requirements.
96
+ 6. Produce every exact required output and the stored `required-output-manifest`,
97
+ preserving its output array order for the digest. Validate claims, references,
98
+ pins and selected-ID accounting. Purpose-built tools supply authorized proposal
99
+ inputs for `input_path`/`evidence_path`; never invent a generic Write staging
100
+ step. Server-side role checks, exact one-use authorization and prospective
101
+ validation remain mandatory. Bounded source reads preserve content identity
102
+ and line ranges; truncation requires a narrower selection, not a completeness
103
+ claim or filesystem fallback.
104
+ 7. Call `finalize_discovery_agent` as the specialist, mapped to `finalize-agent`
105
+ with `mode=agent-output`, non-null `invocation_ref` and no operation inputs.
106
+ It validates the protected invocation's outputs, not final-message paths.
107
+ Native SubagentStop then verifies current output authority.
108
+ Missing final text cannot skip native stop validation.
109
+ 8. After native stop, the root records the explicit result, content-addressed artifact references,
110
+ selected-ID accounting and all findings. A successful tool call or generated
111
+ path alone is not evidence of completed discovery.
112
+
113
+ ## Stop and result
114
+
115
+ Account for each selected component and requested analyzer. If a dry-run leaves required stored outputs absent, finalization remains blocked; never fabricate writes or receipts. A valid incremental inventory is not discovery-complete, parity-complete or planning authority.
116
+
117
+ Structural success is not discovery, parity or planning completion.
118
+ Missing prepare/finalize/start/stop capability, missing outputs, invalid claims,
119
+ unresolved required work, wrong role/model/start context or a stale/missing
120
+ receipt blocks successful completion. Return explicit
121
+ PASS, FAIL or BLOCKED, distinguishing valid incremental outputs from a passing
122
+ completion gate. Missing native enforcement remains BLOCKED even when ordinary
123
+ local-user operations can run; do not substitute CLI success for native authority.
124
+
125
+ ## References
126
+
127
+ - [Canonical legacy-parity-analyst contract](../../agents/legacy-parity-analyst.agent.md)
128
+ - Installed v2 `service-request` and `required-output-manifest` schema contracts;
129
+ consume them through the authoritative runtime, with no checkout-schema fallback.
130
+ - The selected profile and pinned local artifacts supplied for this invocation;
131
+ references do not preload catalogs or grant access to unselected paths.