@c4a/context-cli 0.6.18 → 0.7.0

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 (297) hide show
  1. package/README.md +73 -8
  2. package/README.zh-CN.md +47 -7
  3. package/cli.js +89881 -53821
  4. package/docs/document-optimization.md +35 -11
  5. package/docs/document-optimization.zh-CN.md +29 -9
  6. package/indexers/bundles/context-code-indexer/SKILL.md +20 -0
  7. package/indexers/bundles/context-code-indexer/context-indexer.yaml +230 -0
  8. package/indexers/bundles/context-code-indexer/references/composers/contracts-and-chains.md +23 -0
  9. package/indexers/bundles/context-code-indexer/references/composers/cross-module-chain.md +22 -0
  10. package/indexers/bundles/context-code-indexer/references/composers/development-and-delivery.md +22 -0
  11. package/indexers/bundles/context-code-indexer/references/composers/event-flow.md +21 -0
  12. package/indexers/bundles/context-code-indexer/references/composers/examples-and-documentation.md +22 -0
  13. package/indexers/bundles/context-code-indexer/references/composers/persistence-boundary.md +21 -0
  14. package/indexers/bundles/context-code-indexer/references/composers/protocol-boundary.md +22 -0
  15. package/indexers/bundles/context-code-indexer/references/composers/public-contract.md +23 -0
  16. package/indexers/bundles/context-code-indexer/references/indexer.md +49 -0
  17. package/indexers/bundles/context-code-indexer/references/metrics.md +201 -0
  18. package/indexers/bundles/context-code-indexer/templates/adapter-integration.md +119 -0
  19. package/indexers/bundles/context-code-indexer/templates/api-service.md +118 -0
  20. package/indexers/bundles/context-code-indexer/templates/background-runtime.md +109 -0
  21. package/indexers/bundles/context-code-indexer/templates/cli-tool.md +129 -0
  22. package/indexers/bundles/context-code-indexer/templates/component-library.md +99 -0
  23. package/indexers/bundles/context-code-indexer/templates/contract-source.md +73 -0
  24. package/indexers/bundles/context-code-indexer/templates/data-sync-reconciliation.md +77 -0
  25. package/indexers/bundles/context-code-indexer/templates/derived-generated-source.md +117 -0
  26. package/indexers/bundles/context-code-indexer/templates/domain-service.md +109 -0
  27. package/indexers/bundles/context-code-indexer/templates/event-consumer.md +62 -0
  28. package/indexers/bundles/context-code-indexer/templates/gateway-facade.md +89 -0
  29. package/indexers/bundles/context-code-indexer/templates/monorepo-container.md +124 -0
  30. package/indexers/bundles/context-code-indexer/templates/plugin-extension.md +52 -0
  31. package/indexers/bundles/context-code-indexer/templates/sdk-library.md +132 -0
  32. package/indexers/bundles/context-code-indexer/templates/storage-repository.md +56 -0
  33. package/indexers/bundles/context-code-indexer/templates/web-application.md +146 -0
  34. package/indexers/bundles/context-code-indexer/tests/fixtures/chapters.json +226 -0
  35. package/indexers/bundles/context-code-indexer/tests/fixtures/composers.json +82 -0
  36. package/indexers/bundles/context-code-indexer/tests/fixtures/profiles.json +210 -0
  37. package/indexers/bundles/context-code-indexer/tests/fixtures/scenarios.json +122 -0
  38. package/indexers/bundles/context-markdown-indexer/SKILL.md +20 -0
  39. package/indexers/bundles/context-markdown-indexer/context-indexer.yaml +147 -0
  40. package/indexers/bundles/context-markdown-indexer/references/classification.md +63 -0
  41. package/indexers/bundles/context-markdown-indexer/references/editorial-policy.md +106 -0
  42. package/indexers/bundles/context-markdown-indexer/references/indexer.md +23 -0
  43. package/indexers/bundles/context-markdown-indexer/references/semantic-planning.md +146 -0
  44. package/indexers/bundles/context-markdown-indexer/references/structure-and-artifacts.md +109 -0
  45. package/indexers/bundles/context-markdown-indexer/tests/fixtures/anonymous.json +31 -0
  46. package/indexers/bundles/context-markdown-indexer/tests/fixtures/editorial.json +309 -0
  47. package/indexers/bundles/context-markdown-indexer/tests/fixtures/migration-equivalence.json +186 -0
  48. package/indexers/bundles/context-markdown-indexer/tests/fixtures/profiles.json +171 -0
  49. package/indexers/bundles/context-markdown-indexer/tests/fixtures/routing.json +151 -0
  50. package/indexers/capability-manifest.json +40 -0
  51. package/indexers/contracts/hard-rule-conformance.json +2644 -0
  52. package/indexers/contracts/operator-contract.json +35 -0
  53. package/indexers/contracts/profile-contract.json +10162 -0
  54. package/indexers/release-manifest.json +208 -0
  55. package/package.json +5 -4
  56. package/plugins/README.md +17 -109
  57. package/plugins/README_CN.md +11 -89
  58. package/plugins/VERSION +1 -1
  59. package/plugins/claude/.claude-plugin/plugin.json +3 -11
  60. package/plugins/claude/CLAUDE.md +1 -1
  61. package/plugins/claude/README.md +1 -1
  62. package/plugins/claude/commands/context.md +112 -7
  63. package/plugins/codex/.codex-plugin/plugin.json +6 -17
  64. package/plugins/codex/AGENTS.md +1 -1
  65. package/plugins/codex/README.md +1 -1
  66. package/plugins/codex/skills/context/SKILL.md +113 -19
  67. package/plugins/cursor/.cursor-plugin/plugin.json +4 -17
  68. package/plugins/cursor/AGENTS.md +1 -1
  69. package/plugins/cursor/README.md +3 -2
  70. package/plugins/cursor/commands/c4a-context.md +112 -9
  71. package/plugins/skills/{c4a-context → context}/SKILL.md +114 -20
  72. package/plugins/skills/context-code-indexer/SKILL.md +20 -0
  73. package/plugins/skills/context-code-indexer/context-indexer.yaml +230 -0
  74. package/plugins/skills/context-code-indexer/references/composers/contracts-and-chains.md +23 -0
  75. package/plugins/skills/context-code-indexer/references/composers/cross-module-chain.md +22 -0
  76. package/plugins/skills/context-code-indexer/references/composers/development-and-delivery.md +22 -0
  77. package/plugins/skills/context-code-indexer/references/composers/event-flow.md +21 -0
  78. package/plugins/skills/context-code-indexer/references/composers/examples-and-documentation.md +22 -0
  79. package/plugins/skills/context-code-indexer/references/composers/persistence-boundary.md +21 -0
  80. package/plugins/skills/context-code-indexer/references/composers/protocol-boundary.md +22 -0
  81. package/plugins/skills/context-code-indexer/references/composers/public-contract.md +23 -0
  82. package/plugins/skills/context-code-indexer/references/indexer.md +49 -0
  83. package/plugins/skills/context-code-indexer/references/metrics.md +201 -0
  84. package/plugins/skills/context-code-indexer/templates/adapter-integration.md +119 -0
  85. package/plugins/skills/context-code-indexer/templates/api-service.md +118 -0
  86. package/plugins/skills/context-code-indexer/templates/background-runtime.md +109 -0
  87. package/plugins/skills/context-code-indexer/templates/cli-tool.md +129 -0
  88. package/plugins/skills/context-code-indexer/templates/component-library.md +99 -0
  89. package/plugins/skills/context-code-indexer/templates/contract-source.md +73 -0
  90. package/plugins/skills/context-code-indexer/templates/data-sync-reconciliation.md +77 -0
  91. package/plugins/skills/context-code-indexer/templates/derived-generated-source.md +117 -0
  92. package/plugins/skills/context-code-indexer/templates/domain-service.md +109 -0
  93. package/plugins/skills/context-code-indexer/templates/event-consumer.md +62 -0
  94. package/plugins/skills/context-code-indexer/templates/gateway-facade.md +89 -0
  95. package/plugins/skills/context-code-indexer/templates/monorepo-container.md +124 -0
  96. package/plugins/skills/context-code-indexer/templates/plugin-extension.md +52 -0
  97. package/plugins/skills/context-code-indexer/templates/sdk-library.md +132 -0
  98. package/plugins/skills/context-code-indexer/templates/storage-repository.md +56 -0
  99. package/plugins/skills/context-code-indexer/templates/web-application.md +146 -0
  100. package/plugins/skills/context-code-indexer/tests/fixtures/chapters.json +226 -0
  101. package/plugins/skills/context-code-indexer/tests/fixtures/composers.json +82 -0
  102. package/plugins/skills/context-code-indexer/tests/fixtures/profiles.json +210 -0
  103. package/plugins/skills/context-code-indexer/tests/fixtures/scenarios.json +122 -0
  104. package/plugins/skills/context-markdown-indexer/SKILL.md +20 -0
  105. package/plugins/skills/context-markdown-indexer/context-indexer.yaml +147 -0
  106. package/plugins/skills/context-markdown-indexer/references/classification.md +63 -0
  107. package/plugins/skills/context-markdown-indexer/references/editorial-policy.md +106 -0
  108. package/plugins/skills/context-markdown-indexer/references/indexer.md +23 -0
  109. package/plugins/skills/context-markdown-indexer/references/semantic-planning.md +146 -0
  110. package/plugins/skills/context-markdown-indexer/references/structure-and-artifacts.md +109 -0
  111. package/plugins/skills/context-markdown-indexer/tests/fixtures/anonymous.json +31 -0
  112. package/plugins/skills/context-markdown-indexer/tests/fixtures/editorial.json +309 -0
  113. package/plugins/skills/context-markdown-indexer/tests/fixtures/migration-equivalence.json +186 -0
  114. package/plugins/skills/context-markdown-indexer/tests/fixtures/profiles.json +171 -0
  115. package/plugins/skills/context-markdown-indexer/tests/fixtures/routing.json +151 -0
  116. package/providers/context/actions/accept-main-index-run.yaml +7 -0
  117. package/providers/context/actions/accept-material-answer-run.yaml +7 -0
  118. package/providers/context/actions/accept-post-author-composer-run.yaml +7 -0
  119. package/providers/context/actions/actualize-material-answer-bindings.yaml +8 -0
  120. package/providers/context/actions/apply-code-index-guidance.yaml +5 -0
  121. package/providers/context/actions/apply-document-optimization-guidance.yaml +5 -0
  122. package/providers/context/actions/apply-indexer-project.yaml +7 -0
  123. package/providers/context/actions/audit-material-gap-state.yaml +8 -0
  124. package/providers/context/actions/audit-projected-artifact-fan-out.yaml +8 -0
  125. package/providers/context/actions/authorize-indexer-contract-overlay.yaml +7 -0
  126. package/providers/context/actions/authorize-indexer-dependencies.yaml +7 -0
  127. package/providers/context/actions/authorize-indexer-program-execution.yaml +7 -0
  128. package/providers/context/actions/build-main-index-author-worksets.yaml +7 -0
  129. package/providers/context/actions/build-main-index-catalog-fallback.yaml +7 -0
  130. package/providers/context/actions/build-main-index-partition-worksets.yaml +7 -0
  131. package/providers/context/actions/build-material-question-workset.yaml +7 -0
  132. package/providers/context/actions/build-post-author-composer-worksets.yaml +7 -0
  133. package/providers/context/actions/build-question-target-inventory.yaml +7 -0
  134. package/providers/context/actions/build-subject-catalog.yaml +7 -0
  135. package/providers/context/actions/build-target-resolution-views.yaml +7 -0
  136. package/providers/context/actions/checkpoint-material-answer-review.yaml +8 -0
  137. package/providers/context/actions/checkpoint-material-gaps.yaml +8 -0
  138. package/providers/context/actions/close-indexer-approved-knowledge.yaml +8 -0
  139. package/providers/context/actions/compile-indexer-candidates.yaml +8 -0
  140. package/providers/context/actions/compose-indexer-post-author-fragments.yaml +7 -0
  141. package/providers/context/actions/configure-community-indexer-fallback.yaml +6 -0
  142. package/providers/context/actions/configure-indexer-providers.yaml +6 -0
  143. package/providers/context/actions/confirm-index-requirement-workset.yaml +8 -0
  144. package/providers/context/actions/confirm-subject-reidentification.yaml +8 -0
  145. package/providers/context/actions/converge-main-index-partition-run.yaml +7 -0
  146. package/providers/context/actions/discover-markdown-indexer-providers.yaml +6 -0
  147. package/providers/context/actions/evaluate-material-gaps.yaml +8 -0
  148. package/providers/context/actions/fail-main-index-run.yaml +7 -0
  149. package/providers/context/actions/fail-material-answer-run.yaml +7 -0
  150. package/providers/context/actions/fail-post-author-composer-run.yaml +7 -0
  151. package/providers/context/actions/inspect-index-candidate-review-readiness.yaml +8 -0
  152. package/providers/context/actions/inspect-index-profile-failure.yaml +7 -0
  153. package/providers/context/actions/inspect-indexer-dependencies.yaml +7 -0
  154. package/providers/context/actions/inspect-indexer-program-execution.yaml +7 -0
  155. package/providers/context/actions/inspect-indexer-project-proposal.yaml +7 -0
  156. package/providers/context/actions/inspect-markdown-provider-capture.yaml +7 -0
  157. package/providers/context/actions/inspect-material-answer-review.yaml +8 -0
  158. package/providers/context/actions/maintain-evidence.yaml +1 -1
  159. package/providers/context/actions/materialize-indexer-instructions.yaml +7 -0
  160. package/providers/context/actions/migrate-codeindex.yaml +5 -0
  161. package/providers/context/actions/observe-indexer-project.yaml +7 -0
  162. package/providers/context/actions/observe-main-index-run-ledger.yaml +7 -0
  163. package/providers/context/actions/observe-material-answer-runs.yaml +7 -0
  164. package/providers/context/actions/observe-post-author-composer-worksets.yaml +7 -0
  165. package/providers/context/actions/override-index-profile-audit.yaml +7 -0
  166. package/providers/context/actions/prepare-indexer-customization-project.yaml +7 -0
  167. package/providers/context/actions/prepare-main-index-run-ledger.yaml +7 -0
  168. package/providers/context/actions/prepare-material-answer-runs.yaml +7 -0
  169. package/providers/context/actions/propose-indexer-customization.yaml +7 -0
  170. package/providers/context/actions/propose-overlay-question-amendment.yaml +7 -0
  171. package/providers/context/actions/rebind-indexer-selection-to-requirement.yaml +7 -0
  172. package/providers/context/actions/reconcile-indexer-results.yaml +7 -0
  173. package/providers/context/actions/record-index-profile-revision.yaml +7 -0
  174. package/providers/context/actions/register-source-batch.yaml +1 -1
  175. package/providers/context/actions/report-index-profile-failure.yaml +7 -0
  176. package/providers/context/actions/report-indexer-incremental-impact.yaml +8 -0
  177. package/providers/context/actions/resolve-effective-composers.yaml +7 -0
  178. package/providers/context/actions/restore-repository-sources.yaml +1 -1
  179. package/providers/context/actions/review-material-answer-candidate.yaml +8 -0
  180. package/providers/context/actions/revise-index-output.yaml +7 -0
  181. package/providers/context/actions/route-index-requirement-confirmation.yaml +8 -0
  182. package/providers/context/actions/route-indexer-provider-selection.yaml +7 -0
  183. package/providers/context/actions/run-indexer-agent-step.yaml +7 -0
  184. package/providers/context/actions/run-indexer-post-author-composer.yaml +7 -0
  185. package/providers/context/actions/run-material-answer-indexers.yaml +7 -0
  186. package/providers/context/actions/start-main-index-run.yaml +7 -0
  187. package/providers/context/actions/start-material-answer-run.yaml +7 -0
  188. package/providers/context/actions/start-post-author-composer-run.yaml +7 -0
  189. package/providers/context/actions/validate-indexer-contract-overlays.yaml +7 -0
  190. package/providers/context/actions/validate-indexer-customization.yaml +7 -0
  191. package/providers/context/actions/validate-indexer-selection-proposal.yaml +7 -0
  192. package/providers/context/actions/validate-main-index-run.yaml +7 -0
  193. package/providers/context/actions/validate-markdown-provider-selection.yaml +7 -0
  194. package/providers/context/actions/validate-subject-key-schemas.yaml +8 -0
  195. package/providers/context/codes.yaml +72 -0
  196. package/providers/context/graphs/indexer.yaml +1068 -0
  197. package/providers/context/graphs/workspace.yaml +52 -3
  198. package/providers/context/manifest.json +1487 -157
  199. package/providers/context/provider.yaml +3 -2
  200. package/providers/context/resources/dialogue/code-extraction.md +12 -0
  201. package/providers/context/resources/dialogue/document-classification.md +1 -1
  202. package/providers/context/resources/dialogue/knowledge-review.md +7 -1
  203. package/providers/context/resources/dialogue/source-boundary.md +9 -1
  204. package/providers/context/resources/dialogue/workflow-mode-after-capture.md +11 -8
  205. package/providers/context/resources/dialogue/workflow-mode-after-creation.md +6 -4
  206. package/providers/context/resources/manuals/guides/lark-resources.md +7 -0
  207. package/providers/context/resources/manuals/guides/package-outputs.md +3 -3
  208. package/providers/context/resources/manuals/reference/code-extractors.md +7 -6
  209. package/providers/context/resources/manuals/reference/package-templates.md +18 -10
  210. package/providers/context/resources/manuals/reference/project-api.md +49 -24
  211. package/providers/context/resources/procedures/close-and-build.md +24 -9
  212. package/providers/context/resources/procedures/code-extraction.md +41 -13
  213. package/providers/context/resources/procedures/code-index-audit.md +83 -13
  214. package/providers/context/resources/procedures/document-capture.md +9 -0
  215. package/providers/context/resources/procedures/document-optimization.md +88 -21
  216. package/providers/context/resources/procedures/document-revision.md +11 -6
  217. package/providers/context/resources/procedures/knowledge-review.md +4 -1
  218. package/providers/context/resources/procedures/source-boundary.md +20 -8
  219. package/providers/context/resources/semantic/align/structure-planning.md +4 -4
  220. package/providers/context/resources/semantic/code-index/classification.md +8 -5
  221. package/providers/context/resources/semantic/code-index/templates/adapter.md +9 -0
  222. package/providers/context/resources/semantic/code-index/templates/contracts-and-chains.md +81 -0
  223. package/providers/context/resources/views/resolved-indexer-instructions.yaml +23 -0
  224. package/providers/context/schemas/document-optimization-decisions.schema.json +29 -6
  225. package/providers/context/schemas/indexer-agent-step-input.schema.json +30 -0
  226. package/providers/context/schemas/indexer-agent-step-result.schema.json +47 -0
  227. package/providers/context/schemas/indexer-candidate-compile-input.schema.json +57 -0
  228. package/providers/context/schemas/indexer-candidate-compile-output.schema.json +38 -0
  229. package/providers/context/schemas/indexer-candidate-review-readiness-input.schema.json +46 -0
  230. package/providers/context/schemas/indexer-candidate-review-readiness-output.schema.json +104 -0
  231. package/providers/context/schemas/indexer-contract-overlay-authorization-input.schema.json +32 -0
  232. package/providers/context/schemas/indexer-contract-overlay-authorization-result.schema.json +121 -0
  233. package/providers/context/schemas/indexer-contract-overlay-validation-input.schema.json +90 -0
  234. package/providers/context/schemas/indexer-contract-overlay-validation-result.schema.json +158 -0
  235. package/providers/context/schemas/indexer-customization-project-preparation-result.schema.json +44 -0
  236. package/providers/context/schemas/indexer-customization-proposal-draft.schema.json +83 -0
  237. package/providers/context/schemas/indexer-customization-validation-result.schema.json +36 -0
  238. package/providers/context/schemas/indexer-dependency-authorization-input.schema.json +71 -0
  239. package/providers/context/schemas/indexer-dependency-authorization-result.schema.json +138 -0
  240. package/providers/context/schemas/indexer-incremental-impact-input.schema.json +31 -0
  241. package/providers/context/schemas/indexer-incremental-impact-output.schema.json +52 -0
  242. package/providers/context/schemas/indexer-main-lifecycle-input.schema.json +187 -0
  243. package/providers/context/schemas/indexer-main-lifecycle-output.schema.json +180 -0
  244. package/providers/context/schemas/indexer-markdown-provider-capture-input.schema.json +17 -0
  245. package/providers/context/schemas/indexer-markdown-provider-capture-output.schema.json +54 -0
  246. package/providers/context/schemas/indexer-markdown-provider-validation-input.schema.json +34 -0
  247. package/providers/context/schemas/indexer-markdown-provider-validation-output.schema.json +75 -0
  248. package/providers/context/schemas/indexer-material-answer-lifecycle-input.schema.json +90 -0
  249. package/providers/context/schemas/indexer-material-answer-lifecycle-output.schema.json +80 -0
  250. package/providers/context/schemas/indexer-material-answer-review-inspection-input.schema.json +32 -0
  251. package/providers/context/schemas/indexer-material-answer-review-inspection-output.schema.json +32 -0
  252. package/providers/context/schemas/indexer-material-answer-review-resolution-input.schema.json +19 -0
  253. package/providers/context/schemas/indexer-material-answer-review-resolution-output.schema.json +87 -0
  254. package/providers/context/schemas/indexer-material-gap-lifecycle-input.schema.json +86 -0
  255. package/providers/context/schemas/indexer-material-gap-lifecycle-output.schema.json +19 -0
  256. package/providers/context/schemas/indexer-materialize-request.schema.json +53 -0
  257. package/providers/context/schemas/indexer-materialized-resource.schema.json +57 -0
  258. package/providers/context/schemas/indexer-overlay-question-amendment.schema.json +13 -0
  259. package/providers/context/schemas/indexer-overlay-question-proposal-input.schema.json +40 -0
  260. package/providers/context/schemas/indexer-overlay-question-rebind-input.schema.json +35 -0
  261. package/providers/context/schemas/indexer-overlay-question-rebind-result.schema.json +25 -0
  262. package/providers/context/schemas/indexer-post-author-fragment-request.schema.json +26 -0
  263. package/providers/context/schemas/indexer-post-author-fragment-result.schema.json +18 -0
  264. package/providers/context/schemas/indexer-post-author-lifecycle-input.schema.json +94 -0
  265. package/providers/context/schemas/indexer-post-author-lifecycle-output.schema.json +72 -0
  266. package/providers/context/schemas/indexer-profile-failure-inspection-input.schema.json +13 -0
  267. package/providers/context/schemas/indexer-profile-failure-inspection-result.schema.json +19 -0
  268. package/providers/context/schemas/indexer-profile-failure-report-input.schema.json +22 -0
  269. package/providers/context/schemas/indexer-profile-failure-report-result.schema.json +49 -0
  270. package/providers/context/schemas/indexer-profile-override-decision.schema.json +20 -0
  271. package/providers/context/schemas/indexer-profile-override-result.schema.json +49 -0
  272. package/providers/context/schemas/indexer-profile-revision-agent-input.schema.json +18 -0
  273. package/providers/context/schemas/indexer-profile-revision-record-input.schema.json +31 -0
  274. package/providers/context/schemas/indexer-profile-revision-record-result.schema.json +45 -0
  275. package/providers/context/schemas/indexer-program-execution-authorization-input.schema.json +145 -0
  276. package/providers/context/schemas/indexer-program-execution-authorization-result.schema.json +60 -0
  277. package/providers/context/schemas/indexer-project-action-result.schema.json +19 -0
  278. package/providers/context/schemas/indexer-project-gate-input.schema.json +100 -0
  279. package/providers/context/schemas/indexer-project-observation-input.schema.json +16 -0
  280. package/providers/context/schemas/indexer-project-observation-result.schema.json +42 -0
  281. package/providers/context/schemas/indexer-provider-route-input.schema.json +55 -0
  282. package/providers/context/schemas/indexer-provider-route-report.schema.json +188 -0
  283. package/providers/context/schemas/indexer-requirement-confirmation-input.schema.json +27 -0
  284. package/providers/context/schemas/indexer-requirement-confirmation-output.schema.json +24 -0
  285. package/providers/context/schemas/indexer-result-reconciliation-input.schema.json +59 -0
  286. package/providers/context/schemas/indexer-result-reconciliation-output.schema.json +43 -0
  287. package/providers/context/schemas/indexer-selection-proposal-input.schema.json +12 -0
  288. package/providers/context/schemas/indexer-selection-proposal-validation.schema.json +23 -0
  289. package/providers/context/schemas/indexer-subject-reidentification-input.schema.json +37 -0
  290. package/providers/context/schemas/indexer-subject-reidentification-output.schema.json +31 -0
  291. package/providers/context/schemas/source-batch-input.schema.json +18 -3
  292. package/providers/context/skills/configure-indexer-providers/SKILL.md +58 -0
  293. package/providers/context/skills/prepare-indexer-customization-project/SKILL.md +31 -0
  294. package/providers/context/skills/propose-indexer-customization/SKILL.md +40 -0
  295. package/providers/context/skills/revise-index-output/SKILL.md +12 -0
  296. package/providers/context/skills/run-indexer-agent-step/SKILL.md +20 -0
  297. package/providers/context/skills/run-indexer-post-author-composer/SKILL.md +21 -0
@@ -0,0 +1,2644 @@
1
+ {
2
+ "protocol": "context.indexer.hard-rule-conformance/v1",
3
+ "operator_contract_digest": "sha256:e539331543998a1f8f30ab56d6ec1dbbba5a41497f32d363a5e4dffc987e3bb0",
4
+ "profile_contract_digest": "sha256:21c18ad405f8f608c666bb6cc840c753a211b028de9776d823254bb41cf9fd7d",
5
+ "profiles": [
6
+ {
7
+ "profile_id": "adapter-integration",
8
+ "rules": [
9
+ {
10
+ "metric_id": "discretionary-artifacts-per-logical-unit",
11
+ "operator": "discretionary-artifact-count",
12
+ "aggregation": "max-count",
13
+ "input_authorities": [
14
+ "structured-artifact-candidate",
15
+ "structured-policy-eligibility"
16
+ ]
17
+ },
18
+ {
19
+ "metric_id": "duplicated-fact-target-ratio",
20
+ "operator": "duplicated-fact-ratio",
21
+ "aggregation": "sum-ratio",
22
+ "input_authorities": [
23
+ "canonical-fact-inventory",
24
+ "structured-candidate"
25
+ ]
26
+ },
27
+ {
28
+ "metric_id": "example-candidate-decision-coverage",
29
+ "operator": "example-candidate-decision-ratio",
30
+ "aggregation": "sum-ratio",
31
+ "input_authorities": [
32
+ "canonical-example-inventory",
33
+ "structured-example-decision"
34
+ ]
35
+ },
36
+ {
37
+ "metric_id": "example-public-target-linkage",
38
+ "operator": "example-public-target-linkage-ratio",
39
+ "aggregation": "sum-ratio",
40
+ "input_authorities": [
41
+ "canonical-example-inventory",
42
+ "structured-linkage-declaration"
43
+ ]
44
+ },
45
+ {
46
+ "metric_id": "example-representative-coverage",
47
+ "operator": "example-representative-ratio",
48
+ "aggregation": "sum-ratio",
49
+ "input_authorities": [
50
+ "canonical-example-inventory",
51
+ "structured-example-decision"
52
+ ]
53
+ },
54
+ {
55
+ "metric_id": "implementation-body-ratio",
56
+ "operator": "implementation-body-ratio",
57
+ "aggregation": "sum-ratio",
58
+ "input_authorities": [
59
+ "structured-candidate",
60
+ "structured-section-block"
61
+ ]
62
+ },
63
+ {
64
+ "metric_id": "inventory-disposition-coverage",
65
+ "operator": "disposition-ratio",
66
+ "aggregation": "sum-ratio",
67
+ "input_authorities": [
68
+ "canonical-inventory",
69
+ "structured-disposition-set"
70
+ ]
71
+ },
72
+ {
73
+ "metric_id": "narrative-enumeration-ratio",
74
+ "operator": "narrative-enumeration-ratio",
75
+ "aggregation": "sum-ratio",
76
+ "input_authorities": [
77
+ "structured-candidate"
78
+ ]
79
+ },
80
+ {
81
+ "metric_id": "normalized-template-repetition-ratio",
82
+ "operator": "template-repetition-ratio",
83
+ "aggregation": "sum-ratio",
84
+ "input_authorities": [
85
+ "structured-candidate",
86
+ "structured-template-projection"
87
+ ]
88
+ },
89
+ {
90
+ "metric_id": "reference-only-reader-targets",
91
+ "operator": "reference-only-count",
92
+ "aggregation": "sum-count",
93
+ "input_authorities": [
94
+ "canonical-identity-inventory",
95
+ "structured-reader-projection"
96
+ ]
97
+ },
98
+ {
99
+ "metric_id": "unresolved-ordinal-partitions",
100
+ "operator": "ordinal-partition-count",
101
+ "aggregation": "sum-count",
102
+ "input_authorities": [
103
+ "canonical-inventory",
104
+ "structured-partition-plan"
105
+ ]
106
+ }
107
+ ]
108
+ },
109
+ {
110
+ "profile_id": "api-service",
111
+ "rules": [
112
+ {
113
+ "metric_id": "discretionary-artifacts-per-logical-unit",
114
+ "operator": "discretionary-artifact-count",
115
+ "aggregation": "max-count",
116
+ "input_authorities": [
117
+ "structured-artifact-candidate",
118
+ "structured-policy-eligibility"
119
+ ]
120
+ },
121
+ {
122
+ "metric_id": "duplicated-fact-target-ratio",
123
+ "operator": "duplicated-fact-ratio",
124
+ "aggregation": "sum-ratio",
125
+ "input_authorities": [
126
+ "canonical-fact-inventory",
127
+ "structured-candidate"
128
+ ]
129
+ },
130
+ {
131
+ "metric_id": "example-candidate-decision-coverage",
132
+ "operator": "example-candidate-decision-ratio",
133
+ "aggregation": "sum-ratio",
134
+ "input_authorities": [
135
+ "canonical-example-inventory",
136
+ "structured-example-decision"
137
+ ]
138
+ },
139
+ {
140
+ "metric_id": "example-public-target-linkage",
141
+ "operator": "example-public-target-linkage-ratio",
142
+ "aggregation": "sum-ratio",
143
+ "input_authorities": [
144
+ "canonical-example-inventory",
145
+ "structured-linkage-declaration"
146
+ ]
147
+ },
148
+ {
149
+ "metric_id": "example-representative-coverage",
150
+ "operator": "example-representative-ratio",
151
+ "aggregation": "sum-ratio",
152
+ "input_authorities": [
153
+ "canonical-example-inventory",
154
+ "structured-example-decision"
155
+ ]
156
+ },
157
+ {
158
+ "metric_id": "implementation-body-ratio",
159
+ "operator": "implementation-body-ratio",
160
+ "aggregation": "sum-ratio",
161
+ "input_authorities": [
162
+ "structured-candidate",
163
+ "structured-section-block"
164
+ ]
165
+ },
166
+ {
167
+ "metric_id": "inventory-disposition-coverage",
168
+ "operator": "disposition-ratio",
169
+ "aggregation": "sum-ratio",
170
+ "input_authorities": [
171
+ "canonical-inventory",
172
+ "structured-disposition-set"
173
+ ]
174
+ },
175
+ {
176
+ "metric_id": "narrative-enumeration-ratio",
177
+ "operator": "narrative-enumeration-ratio",
178
+ "aggregation": "sum-ratio",
179
+ "input_authorities": [
180
+ "structured-candidate"
181
+ ]
182
+ },
183
+ {
184
+ "metric_id": "normalized-template-repetition-ratio",
185
+ "operator": "template-repetition-ratio",
186
+ "aggregation": "sum-ratio",
187
+ "input_authorities": [
188
+ "structured-candidate",
189
+ "structured-template-projection"
190
+ ]
191
+ },
192
+ {
193
+ "metric_id": "reference-only-reader-targets",
194
+ "operator": "reference-only-count",
195
+ "aggregation": "sum-count",
196
+ "input_authorities": [
197
+ "canonical-identity-inventory",
198
+ "structured-reader-projection"
199
+ ]
200
+ },
201
+ {
202
+ "metric_id": "unresolved-ordinal-partitions",
203
+ "operator": "ordinal-partition-count",
204
+ "aggregation": "sum-count",
205
+ "input_authorities": [
206
+ "canonical-inventory",
207
+ "structured-partition-plan"
208
+ ]
209
+ }
210
+ ]
211
+ },
212
+ {
213
+ "profile_id": "background-runtime",
214
+ "rules": [
215
+ {
216
+ "metric_id": "discretionary-artifacts-per-logical-unit",
217
+ "operator": "discretionary-artifact-count",
218
+ "aggregation": "max-count",
219
+ "input_authorities": [
220
+ "structured-artifact-candidate",
221
+ "structured-policy-eligibility"
222
+ ]
223
+ },
224
+ {
225
+ "metric_id": "duplicated-fact-target-ratio",
226
+ "operator": "duplicated-fact-ratio",
227
+ "aggregation": "sum-ratio",
228
+ "input_authorities": [
229
+ "canonical-fact-inventory",
230
+ "structured-candidate"
231
+ ]
232
+ },
233
+ {
234
+ "metric_id": "example-candidate-decision-coverage",
235
+ "operator": "example-candidate-decision-ratio",
236
+ "aggregation": "sum-ratio",
237
+ "input_authorities": [
238
+ "canonical-example-inventory",
239
+ "structured-example-decision"
240
+ ]
241
+ },
242
+ {
243
+ "metric_id": "example-public-target-linkage",
244
+ "operator": "example-public-target-linkage-ratio",
245
+ "aggregation": "sum-ratio",
246
+ "input_authorities": [
247
+ "canonical-example-inventory",
248
+ "structured-linkage-declaration"
249
+ ]
250
+ },
251
+ {
252
+ "metric_id": "example-representative-coverage",
253
+ "operator": "example-representative-ratio",
254
+ "aggregation": "sum-ratio",
255
+ "input_authorities": [
256
+ "canonical-example-inventory",
257
+ "structured-example-decision"
258
+ ]
259
+ },
260
+ {
261
+ "metric_id": "implementation-body-ratio",
262
+ "operator": "implementation-body-ratio",
263
+ "aggregation": "sum-ratio",
264
+ "input_authorities": [
265
+ "structured-candidate",
266
+ "structured-section-block"
267
+ ]
268
+ },
269
+ {
270
+ "metric_id": "inventory-disposition-coverage",
271
+ "operator": "disposition-ratio",
272
+ "aggregation": "sum-ratio",
273
+ "input_authorities": [
274
+ "canonical-inventory",
275
+ "structured-disposition-set"
276
+ ]
277
+ },
278
+ {
279
+ "metric_id": "narrative-enumeration-ratio",
280
+ "operator": "narrative-enumeration-ratio",
281
+ "aggregation": "sum-ratio",
282
+ "input_authorities": [
283
+ "structured-candidate"
284
+ ]
285
+ },
286
+ {
287
+ "metric_id": "normalized-template-repetition-ratio",
288
+ "operator": "template-repetition-ratio",
289
+ "aggregation": "sum-ratio",
290
+ "input_authorities": [
291
+ "structured-candidate",
292
+ "structured-template-projection"
293
+ ]
294
+ },
295
+ {
296
+ "metric_id": "reference-only-reader-targets",
297
+ "operator": "reference-only-count",
298
+ "aggregation": "sum-count",
299
+ "input_authorities": [
300
+ "canonical-identity-inventory",
301
+ "structured-reader-projection"
302
+ ]
303
+ },
304
+ {
305
+ "metric_id": "unresolved-ordinal-partitions",
306
+ "operator": "ordinal-partition-count",
307
+ "aggregation": "sum-count",
308
+ "input_authorities": [
309
+ "canonical-inventory",
310
+ "structured-partition-plan"
311
+ ]
312
+ }
313
+ ]
314
+ },
315
+ {
316
+ "profile_id": "cli-tool",
317
+ "rules": [
318
+ {
319
+ "metric_id": "discretionary-artifacts-per-logical-unit",
320
+ "operator": "discretionary-artifact-count",
321
+ "aggregation": "max-count",
322
+ "input_authorities": [
323
+ "structured-artifact-candidate",
324
+ "structured-policy-eligibility"
325
+ ]
326
+ },
327
+ {
328
+ "metric_id": "duplicated-fact-target-ratio",
329
+ "operator": "duplicated-fact-ratio",
330
+ "aggregation": "sum-ratio",
331
+ "input_authorities": [
332
+ "canonical-fact-inventory",
333
+ "structured-candidate"
334
+ ]
335
+ },
336
+ {
337
+ "metric_id": "example-candidate-decision-coverage",
338
+ "operator": "example-candidate-decision-ratio",
339
+ "aggregation": "sum-ratio",
340
+ "input_authorities": [
341
+ "canonical-example-inventory",
342
+ "structured-example-decision"
343
+ ]
344
+ },
345
+ {
346
+ "metric_id": "example-public-target-linkage",
347
+ "operator": "example-public-target-linkage-ratio",
348
+ "aggregation": "sum-ratio",
349
+ "input_authorities": [
350
+ "canonical-example-inventory",
351
+ "structured-linkage-declaration"
352
+ ]
353
+ },
354
+ {
355
+ "metric_id": "example-representative-coverage",
356
+ "operator": "example-representative-ratio",
357
+ "aggregation": "sum-ratio",
358
+ "input_authorities": [
359
+ "canonical-example-inventory",
360
+ "structured-example-decision"
361
+ ]
362
+ },
363
+ {
364
+ "metric_id": "implementation-body-ratio",
365
+ "operator": "implementation-body-ratio",
366
+ "aggregation": "sum-ratio",
367
+ "input_authorities": [
368
+ "structured-candidate",
369
+ "structured-section-block"
370
+ ]
371
+ },
372
+ {
373
+ "metric_id": "inventory-disposition-coverage",
374
+ "operator": "disposition-ratio",
375
+ "aggregation": "sum-ratio",
376
+ "input_authorities": [
377
+ "canonical-inventory",
378
+ "structured-disposition-set"
379
+ ]
380
+ },
381
+ {
382
+ "metric_id": "narrative-enumeration-ratio",
383
+ "operator": "narrative-enumeration-ratio",
384
+ "aggregation": "sum-ratio",
385
+ "input_authorities": [
386
+ "structured-candidate"
387
+ ]
388
+ },
389
+ {
390
+ "metric_id": "normalized-template-repetition-ratio",
391
+ "operator": "template-repetition-ratio",
392
+ "aggregation": "sum-ratio",
393
+ "input_authorities": [
394
+ "structured-candidate",
395
+ "structured-template-projection"
396
+ ]
397
+ },
398
+ {
399
+ "metric_id": "reference-only-reader-targets",
400
+ "operator": "reference-only-count",
401
+ "aggregation": "sum-count",
402
+ "input_authorities": [
403
+ "canonical-identity-inventory",
404
+ "structured-reader-projection"
405
+ ]
406
+ },
407
+ {
408
+ "metric_id": "unresolved-ordinal-partitions",
409
+ "operator": "ordinal-partition-count",
410
+ "aggregation": "sum-count",
411
+ "input_authorities": [
412
+ "canonical-inventory",
413
+ "structured-partition-plan"
414
+ ]
415
+ }
416
+ ]
417
+ },
418
+ {
419
+ "profile_id": "component-library",
420
+ "rules": [
421
+ {
422
+ "metric_id": "discretionary-artifacts-per-logical-unit",
423
+ "operator": "discretionary-artifact-count",
424
+ "aggregation": "max-count",
425
+ "input_authorities": [
426
+ "structured-artifact-candidate",
427
+ "structured-policy-eligibility"
428
+ ]
429
+ },
430
+ {
431
+ "metric_id": "duplicated-fact-target-ratio",
432
+ "operator": "duplicated-fact-ratio",
433
+ "aggregation": "sum-ratio",
434
+ "input_authorities": [
435
+ "canonical-fact-inventory",
436
+ "structured-candidate"
437
+ ]
438
+ },
439
+ {
440
+ "metric_id": "example-candidate-decision-coverage",
441
+ "operator": "example-candidate-decision-ratio",
442
+ "aggregation": "sum-ratio",
443
+ "input_authorities": [
444
+ "canonical-example-inventory",
445
+ "structured-example-decision"
446
+ ]
447
+ },
448
+ {
449
+ "metric_id": "example-public-target-linkage",
450
+ "operator": "example-public-target-linkage-ratio",
451
+ "aggregation": "sum-ratio",
452
+ "input_authorities": [
453
+ "canonical-example-inventory",
454
+ "structured-linkage-declaration"
455
+ ]
456
+ },
457
+ {
458
+ "metric_id": "example-representative-coverage",
459
+ "operator": "example-representative-ratio",
460
+ "aggregation": "sum-ratio",
461
+ "input_authorities": [
462
+ "canonical-example-inventory",
463
+ "structured-example-decision"
464
+ ]
465
+ },
466
+ {
467
+ "metric_id": "implementation-body-ratio",
468
+ "operator": "implementation-body-ratio",
469
+ "aggregation": "sum-ratio",
470
+ "input_authorities": [
471
+ "structured-candidate",
472
+ "structured-section-block"
473
+ ]
474
+ },
475
+ {
476
+ "metric_id": "inventory-disposition-coverage",
477
+ "operator": "disposition-ratio",
478
+ "aggregation": "sum-ratio",
479
+ "input_authorities": [
480
+ "canonical-inventory",
481
+ "structured-disposition-set"
482
+ ]
483
+ },
484
+ {
485
+ "metric_id": "narrative-enumeration-ratio",
486
+ "operator": "narrative-enumeration-ratio",
487
+ "aggregation": "sum-ratio",
488
+ "input_authorities": [
489
+ "structured-candidate"
490
+ ]
491
+ },
492
+ {
493
+ "metric_id": "normalized-template-repetition-ratio",
494
+ "operator": "template-repetition-ratio",
495
+ "aggregation": "sum-ratio",
496
+ "input_authorities": [
497
+ "structured-candidate",
498
+ "structured-template-projection"
499
+ ]
500
+ },
501
+ {
502
+ "metric_id": "reference-only-reader-targets",
503
+ "operator": "reference-only-count",
504
+ "aggregation": "sum-count",
505
+ "input_authorities": [
506
+ "canonical-identity-inventory",
507
+ "structured-reader-projection"
508
+ ]
509
+ },
510
+ {
511
+ "metric_id": "unresolved-ordinal-partitions",
512
+ "operator": "ordinal-partition-count",
513
+ "aggregation": "sum-count",
514
+ "input_authorities": [
515
+ "canonical-inventory",
516
+ "structured-partition-plan"
517
+ ]
518
+ }
519
+ ]
520
+ },
521
+ {
522
+ "profile_id": "contract-source",
523
+ "rules": [
524
+ {
525
+ "metric_id": "discretionary-artifacts-per-logical-unit",
526
+ "operator": "discretionary-artifact-count",
527
+ "aggregation": "max-count",
528
+ "input_authorities": [
529
+ "structured-artifact-candidate",
530
+ "structured-policy-eligibility"
531
+ ]
532
+ },
533
+ {
534
+ "metric_id": "duplicated-fact-target-ratio",
535
+ "operator": "duplicated-fact-ratio",
536
+ "aggregation": "sum-ratio",
537
+ "input_authorities": [
538
+ "canonical-fact-inventory",
539
+ "structured-candidate"
540
+ ]
541
+ },
542
+ {
543
+ "metric_id": "example-candidate-decision-coverage",
544
+ "operator": "example-candidate-decision-ratio",
545
+ "aggregation": "sum-ratio",
546
+ "input_authorities": [
547
+ "canonical-example-inventory",
548
+ "structured-example-decision"
549
+ ]
550
+ },
551
+ {
552
+ "metric_id": "example-public-target-linkage",
553
+ "operator": "example-public-target-linkage-ratio",
554
+ "aggregation": "sum-ratio",
555
+ "input_authorities": [
556
+ "canonical-example-inventory",
557
+ "structured-linkage-declaration"
558
+ ]
559
+ },
560
+ {
561
+ "metric_id": "example-representative-coverage",
562
+ "operator": "example-representative-ratio",
563
+ "aggregation": "sum-ratio",
564
+ "input_authorities": [
565
+ "canonical-example-inventory",
566
+ "structured-example-decision"
567
+ ]
568
+ },
569
+ {
570
+ "metric_id": "implementation-body-ratio",
571
+ "operator": "implementation-body-ratio",
572
+ "aggregation": "sum-ratio",
573
+ "input_authorities": [
574
+ "structured-candidate",
575
+ "structured-section-block"
576
+ ]
577
+ },
578
+ {
579
+ "metric_id": "inventory-disposition-coverage",
580
+ "operator": "disposition-ratio",
581
+ "aggregation": "sum-ratio",
582
+ "input_authorities": [
583
+ "canonical-inventory",
584
+ "structured-disposition-set"
585
+ ]
586
+ },
587
+ {
588
+ "metric_id": "narrative-enumeration-ratio",
589
+ "operator": "narrative-enumeration-ratio",
590
+ "aggregation": "sum-ratio",
591
+ "input_authorities": [
592
+ "structured-candidate"
593
+ ]
594
+ },
595
+ {
596
+ "metric_id": "normalized-template-repetition-ratio",
597
+ "operator": "template-repetition-ratio",
598
+ "aggregation": "sum-ratio",
599
+ "input_authorities": [
600
+ "structured-candidate",
601
+ "structured-template-projection"
602
+ ]
603
+ },
604
+ {
605
+ "metric_id": "reference-only-reader-targets",
606
+ "operator": "reference-only-count",
607
+ "aggregation": "sum-count",
608
+ "input_authorities": [
609
+ "canonical-identity-inventory",
610
+ "structured-reader-projection"
611
+ ]
612
+ },
613
+ {
614
+ "metric_id": "unresolved-ordinal-partitions",
615
+ "operator": "ordinal-partition-count",
616
+ "aggregation": "sum-count",
617
+ "input_authorities": [
618
+ "canonical-inventory",
619
+ "structured-partition-plan"
620
+ ]
621
+ }
622
+ ]
623
+ },
624
+ {
625
+ "profile_id": "data-sync-reconciliation",
626
+ "rules": [
627
+ {
628
+ "metric_id": "discretionary-artifacts-per-logical-unit",
629
+ "operator": "discretionary-artifact-count",
630
+ "aggregation": "max-count",
631
+ "input_authorities": [
632
+ "structured-artifact-candidate",
633
+ "structured-policy-eligibility"
634
+ ]
635
+ },
636
+ {
637
+ "metric_id": "duplicated-fact-target-ratio",
638
+ "operator": "duplicated-fact-ratio",
639
+ "aggregation": "sum-ratio",
640
+ "input_authorities": [
641
+ "canonical-fact-inventory",
642
+ "structured-candidate"
643
+ ]
644
+ },
645
+ {
646
+ "metric_id": "example-candidate-decision-coverage",
647
+ "operator": "example-candidate-decision-ratio",
648
+ "aggregation": "sum-ratio",
649
+ "input_authorities": [
650
+ "canonical-example-inventory",
651
+ "structured-example-decision"
652
+ ]
653
+ },
654
+ {
655
+ "metric_id": "example-public-target-linkage",
656
+ "operator": "example-public-target-linkage-ratio",
657
+ "aggregation": "sum-ratio",
658
+ "input_authorities": [
659
+ "canonical-example-inventory",
660
+ "structured-linkage-declaration"
661
+ ]
662
+ },
663
+ {
664
+ "metric_id": "example-representative-coverage",
665
+ "operator": "example-representative-ratio",
666
+ "aggregation": "sum-ratio",
667
+ "input_authorities": [
668
+ "canonical-example-inventory",
669
+ "structured-example-decision"
670
+ ]
671
+ },
672
+ {
673
+ "metric_id": "implementation-body-ratio",
674
+ "operator": "implementation-body-ratio",
675
+ "aggregation": "sum-ratio",
676
+ "input_authorities": [
677
+ "structured-candidate",
678
+ "structured-section-block"
679
+ ]
680
+ },
681
+ {
682
+ "metric_id": "inventory-disposition-coverage",
683
+ "operator": "disposition-ratio",
684
+ "aggregation": "sum-ratio",
685
+ "input_authorities": [
686
+ "canonical-inventory",
687
+ "structured-disposition-set"
688
+ ]
689
+ },
690
+ {
691
+ "metric_id": "narrative-enumeration-ratio",
692
+ "operator": "narrative-enumeration-ratio",
693
+ "aggregation": "sum-ratio",
694
+ "input_authorities": [
695
+ "structured-candidate"
696
+ ]
697
+ },
698
+ {
699
+ "metric_id": "normalized-template-repetition-ratio",
700
+ "operator": "template-repetition-ratio",
701
+ "aggregation": "sum-ratio",
702
+ "input_authorities": [
703
+ "structured-candidate",
704
+ "structured-template-projection"
705
+ ]
706
+ },
707
+ {
708
+ "metric_id": "reference-only-reader-targets",
709
+ "operator": "reference-only-count",
710
+ "aggregation": "sum-count",
711
+ "input_authorities": [
712
+ "canonical-identity-inventory",
713
+ "structured-reader-projection"
714
+ ]
715
+ },
716
+ {
717
+ "metric_id": "unresolved-ordinal-partitions",
718
+ "operator": "ordinal-partition-count",
719
+ "aggregation": "sum-count",
720
+ "input_authorities": [
721
+ "canonical-inventory",
722
+ "structured-partition-plan"
723
+ ]
724
+ }
725
+ ]
726
+ },
727
+ {
728
+ "profile_id": "decision-record",
729
+ "rules": [
730
+ {
731
+ "metric_id": "discretionary-artifacts-per-logical-unit",
732
+ "operator": "discretionary-artifact-count",
733
+ "aggregation": "max-count",
734
+ "input_authorities": [
735
+ "structured-artifact-candidate",
736
+ "structured-policy-eligibility"
737
+ ]
738
+ },
739
+ {
740
+ "metric_id": "duplicated-fact-target-ratio",
741
+ "operator": "duplicated-fact-ratio",
742
+ "aggregation": "sum-ratio",
743
+ "input_authorities": [
744
+ "canonical-fact-inventory",
745
+ "structured-candidate"
746
+ ]
747
+ },
748
+ {
749
+ "metric_id": "implementation-body-ratio",
750
+ "operator": "implementation-body-ratio",
751
+ "aggregation": "sum-ratio",
752
+ "input_authorities": [
753
+ "structured-candidate",
754
+ "structured-section-block"
755
+ ]
756
+ },
757
+ {
758
+ "metric_id": "inventory-disposition-coverage",
759
+ "operator": "disposition-ratio",
760
+ "aggregation": "sum-ratio",
761
+ "input_authorities": [
762
+ "canonical-inventory",
763
+ "structured-disposition-set"
764
+ ]
765
+ },
766
+ {
767
+ "metric_id": "narrative-enumeration-ratio",
768
+ "operator": "narrative-enumeration-ratio",
769
+ "aggregation": "sum-ratio",
770
+ "input_authorities": [
771
+ "structured-candidate"
772
+ ]
773
+ },
774
+ {
775
+ "metric_id": "normalized-template-repetition-ratio",
776
+ "operator": "template-repetition-ratio",
777
+ "aggregation": "sum-ratio",
778
+ "input_authorities": [
779
+ "structured-candidate",
780
+ "structured-template-projection"
781
+ ]
782
+ },
783
+ {
784
+ "metric_id": "reference-only-reader-targets",
785
+ "operator": "reference-only-count",
786
+ "aggregation": "sum-count",
787
+ "input_authorities": [
788
+ "canonical-identity-inventory",
789
+ "structured-reader-projection"
790
+ ]
791
+ },
792
+ {
793
+ "metric_id": "unresolved-ordinal-partitions",
794
+ "operator": "ordinal-partition-count",
795
+ "aggregation": "sum-count",
796
+ "input_authorities": [
797
+ "canonical-inventory",
798
+ "structured-partition-plan"
799
+ ]
800
+ }
801
+ ]
802
+ },
803
+ {
804
+ "profile_id": "derived-generated-source",
805
+ "rules": [
806
+ {
807
+ "metric_id": "discretionary-artifacts-per-logical-unit",
808
+ "operator": "discretionary-artifact-count",
809
+ "aggregation": "max-count",
810
+ "input_authorities": [
811
+ "structured-artifact-candidate",
812
+ "structured-policy-eligibility"
813
+ ]
814
+ },
815
+ {
816
+ "metric_id": "duplicated-fact-target-ratio",
817
+ "operator": "duplicated-fact-ratio",
818
+ "aggregation": "sum-ratio",
819
+ "input_authorities": [
820
+ "canonical-fact-inventory",
821
+ "structured-candidate"
822
+ ]
823
+ },
824
+ {
825
+ "metric_id": "example-candidate-decision-coverage",
826
+ "operator": "example-candidate-decision-ratio",
827
+ "aggregation": "sum-ratio",
828
+ "input_authorities": [
829
+ "canonical-example-inventory",
830
+ "structured-example-decision"
831
+ ]
832
+ },
833
+ {
834
+ "metric_id": "example-public-target-linkage",
835
+ "operator": "example-public-target-linkage-ratio",
836
+ "aggregation": "sum-ratio",
837
+ "input_authorities": [
838
+ "canonical-example-inventory",
839
+ "structured-linkage-declaration"
840
+ ]
841
+ },
842
+ {
843
+ "metric_id": "example-representative-coverage",
844
+ "operator": "example-representative-ratio",
845
+ "aggregation": "sum-ratio",
846
+ "input_authorities": [
847
+ "canonical-example-inventory",
848
+ "structured-example-decision"
849
+ ]
850
+ },
851
+ {
852
+ "metric_id": "implementation-body-ratio",
853
+ "operator": "implementation-body-ratio",
854
+ "aggregation": "sum-ratio",
855
+ "input_authorities": [
856
+ "structured-candidate",
857
+ "structured-section-block"
858
+ ]
859
+ },
860
+ {
861
+ "metric_id": "inventory-disposition-coverage",
862
+ "operator": "disposition-ratio",
863
+ "aggregation": "sum-ratio",
864
+ "input_authorities": [
865
+ "canonical-inventory",
866
+ "structured-disposition-set"
867
+ ]
868
+ },
869
+ {
870
+ "metric_id": "narrative-enumeration-ratio",
871
+ "operator": "narrative-enumeration-ratio",
872
+ "aggregation": "sum-ratio",
873
+ "input_authorities": [
874
+ "structured-candidate"
875
+ ]
876
+ },
877
+ {
878
+ "metric_id": "normalized-template-repetition-ratio",
879
+ "operator": "template-repetition-ratio",
880
+ "aggregation": "sum-ratio",
881
+ "input_authorities": [
882
+ "structured-candidate",
883
+ "structured-template-projection"
884
+ ]
885
+ },
886
+ {
887
+ "metric_id": "reference-only-reader-targets",
888
+ "operator": "reference-only-count",
889
+ "aggregation": "sum-count",
890
+ "input_authorities": [
891
+ "canonical-identity-inventory",
892
+ "structured-reader-projection"
893
+ ]
894
+ },
895
+ {
896
+ "metric_id": "unresolved-ordinal-partitions",
897
+ "operator": "ordinal-partition-count",
898
+ "aggregation": "sum-count",
899
+ "input_authorities": [
900
+ "canonical-inventory",
901
+ "structured-partition-plan"
902
+ ]
903
+ }
904
+ ]
905
+ },
906
+ {
907
+ "profile_id": "documentation-site",
908
+ "rules": [
909
+ {
910
+ "metric_id": "discretionary-artifacts-per-logical-unit",
911
+ "operator": "discretionary-artifact-count",
912
+ "aggregation": "max-count",
913
+ "input_authorities": [
914
+ "structured-artifact-candidate",
915
+ "structured-policy-eligibility"
916
+ ]
917
+ },
918
+ {
919
+ "metric_id": "duplicated-fact-target-ratio",
920
+ "operator": "duplicated-fact-ratio",
921
+ "aggregation": "sum-ratio",
922
+ "input_authorities": [
923
+ "canonical-fact-inventory",
924
+ "structured-candidate"
925
+ ]
926
+ },
927
+ {
928
+ "metric_id": "implementation-body-ratio",
929
+ "operator": "implementation-body-ratio",
930
+ "aggregation": "sum-ratio",
931
+ "input_authorities": [
932
+ "structured-candidate",
933
+ "structured-section-block"
934
+ ]
935
+ },
936
+ {
937
+ "metric_id": "inventory-disposition-coverage",
938
+ "operator": "disposition-ratio",
939
+ "aggregation": "sum-ratio",
940
+ "input_authorities": [
941
+ "canonical-inventory",
942
+ "structured-disposition-set"
943
+ ]
944
+ },
945
+ {
946
+ "metric_id": "narrative-enumeration-ratio",
947
+ "operator": "narrative-enumeration-ratio",
948
+ "aggregation": "sum-ratio",
949
+ "input_authorities": [
950
+ "structured-candidate"
951
+ ]
952
+ },
953
+ {
954
+ "metric_id": "normalized-template-repetition-ratio",
955
+ "operator": "template-repetition-ratio",
956
+ "aggregation": "sum-ratio",
957
+ "input_authorities": [
958
+ "structured-candidate",
959
+ "structured-template-projection"
960
+ ]
961
+ },
962
+ {
963
+ "metric_id": "reference-only-reader-targets",
964
+ "operator": "reference-only-count",
965
+ "aggregation": "sum-count",
966
+ "input_authorities": [
967
+ "canonical-identity-inventory",
968
+ "structured-reader-projection"
969
+ ]
970
+ },
971
+ {
972
+ "metric_id": "unresolved-ordinal-partitions",
973
+ "operator": "ordinal-partition-count",
974
+ "aggregation": "sum-count",
975
+ "input_authorities": [
976
+ "canonical-inventory",
977
+ "structured-partition-plan"
978
+ ]
979
+ }
980
+ ]
981
+ },
982
+ {
983
+ "profile_id": "domain-reference",
984
+ "rules": [
985
+ {
986
+ "metric_id": "discretionary-artifacts-per-logical-unit",
987
+ "operator": "discretionary-artifact-count",
988
+ "aggregation": "max-count",
989
+ "input_authorities": [
990
+ "structured-artifact-candidate",
991
+ "structured-policy-eligibility"
992
+ ]
993
+ },
994
+ {
995
+ "metric_id": "duplicated-fact-target-ratio",
996
+ "operator": "duplicated-fact-ratio",
997
+ "aggregation": "sum-ratio",
998
+ "input_authorities": [
999
+ "canonical-fact-inventory",
1000
+ "structured-candidate"
1001
+ ]
1002
+ },
1003
+ {
1004
+ "metric_id": "implementation-body-ratio",
1005
+ "operator": "implementation-body-ratio",
1006
+ "aggregation": "sum-ratio",
1007
+ "input_authorities": [
1008
+ "structured-candidate",
1009
+ "structured-section-block"
1010
+ ]
1011
+ },
1012
+ {
1013
+ "metric_id": "inventory-disposition-coverage",
1014
+ "operator": "disposition-ratio",
1015
+ "aggregation": "sum-ratio",
1016
+ "input_authorities": [
1017
+ "canonical-inventory",
1018
+ "structured-disposition-set"
1019
+ ]
1020
+ },
1021
+ {
1022
+ "metric_id": "narrative-enumeration-ratio",
1023
+ "operator": "narrative-enumeration-ratio",
1024
+ "aggregation": "sum-ratio",
1025
+ "input_authorities": [
1026
+ "structured-candidate"
1027
+ ]
1028
+ },
1029
+ {
1030
+ "metric_id": "normalized-template-repetition-ratio",
1031
+ "operator": "template-repetition-ratio",
1032
+ "aggregation": "sum-ratio",
1033
+ "input_authorities": [
1034
+ "structured-candidate",
1035
+ "structured-template-projection"
1036
+ ]
1037
+ },
1038
+ {
1039
+ "metric_id": "reference-only-reader-targets",
1040
+ "operator": "reference-only-count",
1041
+ "aggregation": "sum-count",
1042
+ "input_authorities": [
1043
+ "canonical-identity-inventory",
1044
+ "structured-reader-projection"
1045
+ ]
1046
+ },
1047
+ {
1048
+ "metric_id": "unresolved-ordinal-partitions",
1049
+ "operator": "ordinal-partition-count",
1050
+ "aggregation": "sum-count",
1051
+ "input_authorities": [
1052
+ "canonical-inventory",
1053
+ "structured-partition-plan"
1054
+ ]
1055
+ }
1056
+ ]
1057
+ },
1058
+ {
1059
+ "profile_id": "domain-service",
1060
+ "rules": [
1061
+ {
1062
+ "metric_id": "discretionary-artifacts-per-logical-unit",
1063
+ "operator": "discretionary-artifact-count",
1064
+ "aggregation": "max-count",
1065
+ "input_authorities": [
1066
+ "structured-artifact-candidate",
1067
+ "structured-policy-eligibility"
1068
+ ]
1069
+ },
1070
+ {
1071
+ "metric_id": "duplicated-fact-target-ratio",
1072
+ "operator": "duplicated-fact-ratio",
1073
+ "aggregation": "sum-ratio",
1074
+ "input_authorities": [
1075
+ "canonical-fact-inventory",
1076
+ "structured-candidate"
1077
+ ]
1078
+ },
1079
+ {
1080
+ "metric_id": "example-candidate-decision-coverage",
1081
+ "operator": "example-candidate-decision-ratio",
1082
+ "aggregation": "sum-ratio",
1083
+ "input_authorities": [
1084
+ "canonical-example-inventory",
1085
+ "structured-example-decision"
1086
+ ]
1087
+ },
1088
+ {
1089
+ "metric_id": "example-public-target-linkage",
1090
+ "operator": "example-public-target-linkage-ratio",
1091
+ "aggregation": "sum-ratio",
1092
+ "input_authorities": [
1093
+ "canonical-example-inventory",
1094
+ "structured-linkage-declaration"
1095
+ ]
1096
+ },
1097
+ {
1098
+ "metric_id": "example-representative-coverage",
1099
+ "operator": "example-representative-ratio",
1100
+ "aggregation": "sum-ratio",
1101
+ "input_authorities": [
1102
+ "canonical-example-inventory",
1103
+ "structured-example-decision"
1104
+ ]
1105
+ },
1106
+ {
1107
+ "metric_id": "implementation-body-ratio",
1108
+ "operator": "implementation-body-ratio",
1109
+ "aggregation": "sum-ratio",
1110
+ "input_authorities": [
1111
+ "structured-candidate",
1112
+ "structured-section-block"
1113
+ ]
1114
+ },
1115
+ {
1116
+ "metric_id": "inventory-disposition-coverage",
1117
+ "operator": "disposition-ratio",
1118
+ "aggregation": "sum-ratio",
1119
+ "input_authorities": [
1120
+ "canonical-inventory",
1121
+ "structured-disposition-set"
1122
+ ]
1123
+ },
1124
+ {
1125
+ "metric_id": "narrative-enumeration-ratio",
1126
+ "operator": "narrative-enumeration-ratio",
1127
+ "aggregation": "sum-ratio",
1128
+ "input_authorities": [
1129
+ "structured-candidate"
1130
+ ]
1131
+ },
1132
+ {
1133
+ "metric_id": "normalized-template-repetition-ratio",
1134
+ "operator": "template-repetition-ratio",
1135
+ "aggregation": "sum-ratio",
1136
+ "input_authorities": [
1137
+ "structured-candidate",
1138
+ "structured-template-projection"
1139
+ ]
1140
+ },
1141
+ {
1142
+ "metric_id": "reference-only-reader-targets",
1143
+ "operator": "reference-only-count",
1144
+ "aggregation": "sum-count",
1145
+ "input_authorities": [
1146
+ "canonical-identity-inventory",
1147
+ "structured-reader-projection"
1148
+ ]
1149
+ },
1150
+ {
1151
+ "metric_id": "unresolved-ordinal-partitions",
1152
+ "operator": "ordinal-partition-count",
1153
+ "aggregation": "sum-count",
1154
+ "input_authorities": [
1155
+ "canonical-inventory",
1156
+ "structured-partition-plan"
1157
+ ]
1158
+ }
1159
+ ]
1160
+ },
1161
+ {
1162
+ "profile_id": "event-consumer",
1163
+ "rules": [
1164
+ {
1165
+ "metric_id": "discretionary-artifacts-per-logical-unit",
1166
+ "operator": "discretionary-artifact-count",
1167
+ "aggregation": "max-count",
1168
+ "input_authorities": [
1169
+ "structured-artifact-candidate",
1170
+ "structured-policy-eligibility"
1171
+ ]
1172
+ },
1173
+ {
1174
+ "metric_id": "duplicated-fact-target-ratio",
1175
+ "operator": "duplicated-fact-ratio",
1176
+ "aggregation": "sum-ratio",
1177
+ "input_authorities": [
1178
+ "canonical-fact-inventory",
1179
+ "structured-candidate"
1180
+ ]
1181
+ },
1182
+ {
1183
+ "metric_id": "example-candidate-decision-coverage",
1184
+ "operator": "example-candidate-decision-ratio",
1185
+ "aggregation": "sum-ratio",
1186
+ "input_authorities": [
1187
+ "canonical-example-inventory",
1188
+ "structured-example-decision"
1189
+ ]
1190
+ },
1191
+ {
1192
+ "metric_id": "example-public-target-linkage",
1193
+ "operator": "example-public-target-linkage-ratio",
1194
+ "aggregation": "sum-ratio",
1195
+ "input_authorities": [
1196
+ "canonical-example-inventory",
1197
+ "structured-linkage-declaration"
1198
+ ]
1199
+ },
1200
+ {
1201
+ "metric_id": "example-representative-coverage",
1202
+ "operator": "example-representative-ratio",
1203
+ "aggregation": "sum-ratio",
1204
+ "input_authorities": [
1205
+ "canonical-example-inventory",
1206
+ "structured-example-decision"
1207
+ ]
1208
+ },
1209
+ {
1210
+ "metric_id": "implementation-body-ratio",
1211
+ "operator": "implementation-body-ratio",
1212
+ "aggregation": "sum-ratio",
1213
+ "input_authorities": [
1214
+ "structured-candidate",
1215
+ "structured-section-block"
1216
+ ]
1217
+ },
1218
+ {
1219
+ "metric_id": "inventory-disposition-coverage",
1220
+ "operator": "disposition-ratio",
1221
+ "aggregation": "sum-ratio",
1222
+ "input_authorities": [
1223
+ "canonical-inventory",
1224
+ "structured-disposition-set"
1225
+ ]
1226
+ },
1227
+ {
1228
+ "metric_id": "narrative-enumeration-ratio",
1229
+ "operator": "narrative-enumeration-ratio",
1230
+ "aggregation": "sum-ratio",
1231
+ "input_authorities": [
1232
+ "structured-candidate"
1233
+ ]
1234
+ },
1235
+ {
1236
+ "metric_id": "normalized-template-repetition-ratio",
1237
+ "operator": "template-repetition-ratio",
1238
+ "aggregation": "sum-ratio",
1239
+ "input_authorities": [
1240
+ "structured-candidate",
1241
+ "structured-template-projection"
1242
+ ]
1243
+ },
1244
+ {
1245
+ "metric_id": "reference-only-reader-targets",
1246
+ "operator": "reference-only-count",
1247
+ "aggregation": "sum-count",
1248
+ "input_authorities": [
1249
+ "canonical-identity-inventory",
1250
+ "structured-reader-projection"
1251
+ ]
1252
+ },
1253
+ {
1254
+ "metric_id": "unresolved-ordinal-partitions",
1255
+ "operator": "ordinal-partition-count",
1256
+ "aggregation": "sum-count",
1257
+ "input_authorities": [
1258
+ "canonical-inventory",
1259
+ "structured-partition-plan"
1260
+ ]
1261
+ }
1262
+ ]
1263
+ },
1264
+ {
1265
+ "profile_id": "faq-support",
1266
+ "rules": [
1267
+ {
1268
+ "metric_id": "discretionary-artifacts-per-logical-unit",
1269
+ "operator": "discretionary-artifact-count",
1270
+ "aggregation": "max-count",
1271
+ "input_authorities": [
1272
+ "structured-artifact-candidate",
1273
+ "structured-policy-eligibility"
1274
+ ]
1275
+ },
1276
+ {
1277
+ "metric_id": "duplicated-fact-target-ratio",
1278
+ "operator": "duplicated-fact-ratio",
1279
+ "aggregation": "sum-ratio",
1280
+ "input_authorities": [
1281
+ "canonical-fact-inventory",
1282
+ "structured-candidate"
1283
+ ]
1284
+ },
1285
+ {
1286
+ "metric_id": "implementation-body-ratio",
1287
+ "operator": "implementation-body-ratio",
1288
+ "aggregation": "sum-ratio",
1289
+ "input_authorities": [
1290
+ "structured-candidate",
1291
+ "structured-section-block"
1292
+ ]
1293
+ },
1294
+ {
1295
+ "metric_id": "inventory-disposition-coverage",
1296
+ "operator": "disposition-ratio",
1297
+ "aggregation": "sum-ratio",
1298
+ "input_authorities": [
1299
+ "canonical-inventory",
1300
+ "structured-disposition-set"
1301
+ ]
1302
+ },
1303
+ {
1304
+ "metric_id": "narrative-enumeration-ratio",
1305
+ "operator": "narrative-enumeration-ratio",
1306
+ "aggregation": "sum-ratio",
1307
+ "input_authorities": [
1308
+ "structured-candidate"
1309
+ ]
1310
+ },
1311
+ {
1312
+ "metric_id": "normalized-template-repetition-ratio",
1313
+ "operator": "template-repetition-ratio",
1314
+ "aggregation": "sum-ratio",
1315
+ "input_authorities": [
1316
+ "structured-candidate",
1317
+ "structured-template-projection"
1318
+ ]
1319
+ },
1320
+ {
1321
+ "metric_id": "reference-only-reader-targets",
1322
+ "operator": "reference-only-count",
1323
+ "aggregation": "sum-count",
1324
+ "input_authorities": [
1325
+ "canonical-identity-inventory",
1326
+ "structured-reader-projection"
1327
+ ]
1328
+ },
1329
+ {
1330
+ "metric_id": "unresolved-ordinal-partitions",
1331
+ "operator": "ordinal-partition-count",
1332
+ "aggregation": "sum-count",
1333
+ "input_authorities": [
1334
+ "canonical-inventory",
1335
+ "structured-partition-plan"
1336
+ ]
1337
+ }
1338
+ ]
1339
+ },
1340
+ {
1341
+ "profile_id": "gateway-facade",
1342
+ "rules": [
1343
+ {
1344
+ "metric_id": "discretionary-artifacts-per-logical-unit",
1345
+ "operator": "discretionary-artifact-count",
1346
+ "aggregation": "max-count",
1347
+ "input_authorities": [
1348
+ "structured-artifact-candidate",
1349
+ "structured-policy-eligibility"
1350
+ ]
1351
+ },
1352
+ {
1353
+ "metric_id": "duplicated-fact-target-ratio",
1354
+ "operator": "duplicated-fact-ratio",
1355
+ "aggregation": "sum-ratio",
1356
+ "input_authorities": [
1357
+ "canonical-fact-inventory",
1358
+ "structured-candidate"
1359
+ ]
1360
+ },
1361
+ {
1362
+ "metric_id": "example-candidate-decision-coverage",
1363
+ "operator": "example-candidate-decision-ratio",
1364
+ "aggregation": "sum-ratio",
1365
+ "input_authorities": [
1366
+ "canonical-example-inventory",
1367
+ "structured-example-decision"
1368
+ ]
1369
+ },
1370
+ {
1371
+ "metric_id": "example-public-target-linkage",
1372
+ "operator": "example-public-target-linkage-ratio",
1373
+ "aggregation": "sum-ratio",
1374
+ "input_authorities": [
1375
+ "canonical-example-inventory",
1376
+ "structured-linkage-declaration"
1377
+ ]
1378
+ },
1379
+ {
1380
+ "metric_id": "example-representative-coverage",
1381
+ "operator": "example-representative-ratio",
1382
+ "aggregation": "sum-ratio",
1383
+ "input_authorities": [
1384
+ "canonical-example-inventory",
1385
+ "structured-example-decision"
1386
+ ]
1387
+ },
1388
+ {
1389
+ "metric_id": "implementation-body-ratio",
1390
+ "operator": "implementation-body-ratio",
1391
+ "aggregation": "sum-ratio",
1392
+ "input_authorities": [
1393
+ "structured-candidate",
1394
+ "structured-section-block"
1395
+ ]
1396
+ },
1397
+ {
1398
+ "metric_id": "inventory-disposition-coverage",
1399
+ "operator": "disposition-ratio",
1400
+ "aggregation": "sum-ratio",
1401
+ "input_authorities": [
1402
+ "canonical-inventory",
1403
+ "structured-disposition-set"
1404
+ ]
1405
+ },
1406
+ {
1407
+ "metric_id": "narrative-enumeration-ratio",
1408
+ "operator": "narrative-enumeration-ratio",
1409
+ "aggregation": "sum-ratio",
1410
+ "input_authorities": [
1411
+ "structured-candidate"
1412
+ ]
1413
+ },
1414
+ {
1415
+ "metric_id": "normalized-template-repetition-ratio",
1416
+ "operator": "template-repetition-ratio",
1417
+ "aggregation": "sum-ratio",
1418
+ "input_authorities": [
1419
+ "structured-candidate",
1420
+ "structured-template-projection"
1421
+ ]
1422
+ },
1423
+ {
1424
+ "metric_id": "reference-only-reader-targets",
1425
+ "operator": "reference-only-count",
1426
+ "aggregation": "sum-count",
1427
+ "input_authorities": [
1428
+ "canonical-identity-inventory",
1429
+ "structured-reader-projection"
1430
+ ]
1431
+ },
1432
+ {
1433
+ "metric_id": "unresolved-ordinal-partitions",
1434
+ "operator": "ordinal-partition-count",
1435
+ "aggregation": "sum-count",
1436
+ "input_authorities": [
1437
+ "canonical-inventory",
1438
+ "structured-partition-plan"
1439
+ ]
1440
+ }
1441
+ ]
1442
+ },
1443
+ {
1444
+ "profile_id": "incident-review",
1445
+ "rules": [
1446
+ {
1447
+ "metric_id": "discretionary-artifacts-per-logical-unit",
1448
+ "operator": "discretionary-artifact-count",
1449
+ "aggregation": "max-count",
1450
+ "input_authorities": [
1451
+ "structured-artifact-candidate",
1452
+ "structured-policy-eligibility"
1453
+ ]
1454
+ },
1455
+ {
1456
+ "metric_id": "duplicated-fact-target-ratio",
1457
+ "operator": "duplicated-fact-ratio",
1458
+ "aggregation": "sum-ratio",
1459
+ "input_authorities": [
1460
+ "canonical-fact-inventory",
1461
+ "structured-candidate"
1462
+ ]
1463
+ },
1464
+ {
1465
+ "metric_id": "implementation-body-ratio",
1466
+ "operator": "implementation-body-ratio",
1467
+ "aggregation": "sum-ratio",
1468
+ "input_authorities": [
1469
+ "structured-candidate",
1470
+ "structured-section-block"
1471
+ ]
1472
+ },
1473
+ {
1474
+ "metric_id": "inventory-disposition-coverage",
1475
+ "operator": "disposition-ratio",
1476
+ "aggregation": "sum-ratio",
1477
+ "input_authorities": [
1478
+ "canonical-inventory",
1479
+ "structured-disposition-set"
1480
+ ]
1481
+ },
1482
+ {
1483
+ "metric_id": "narrative-enumeration-ratio",
1484
+ "operator": "narrative-enumeration-ratio",
1485
+ "aggregation": "sum-ratio",
1486
+ "input_authorities": [
1487
+ "structured-candidate"
1488
+ ]
1489
+ },
1490
+ {
1491
+ "metric_id": "normalized-template-repetition-ratio",
1492
+ "operator": "template-repetition-ratio",
1493
+ "aggregation": "sum-ratio",
1494
+ "input_authorities": [
1495
+ "structured-candidate",
1496
+ "structured-template-projection"
1497
+ ]
1498
+ },
1499
+ {
1500
+ "metric_id": "reference-only-reader-targets",
1501
+ "operator": "reference-only-count",
1502
+ "aggregation": "sum-count",
1503
+ "input_authorities": [
1504
+ "canonical-identity-inventory",
1505
+ "structured-reader-projection"
1506
+ ]
1507
+ },
1508
+ {
1509
+ "metric_id": "unresolved-ordinal-partitions",
1510
+ "operator": "ordinal-partition-count",
1511
+ "aggregation": "sum-count",
1512
+ "input_authorities": [
1513
+ "canonical-inventory",
1514
+ "structured-partition-plan"
1515
+ ]
1516
+ }
1517
+ ]
1518
+ },
1519
+ {
1520
+ "profile_id": "monorepo-container",
1521
+ "rules": [
1522
+ {
1523
+ "metric_id": "discretionary-artifacts-per-logical-unit",
1524
+ "operator": "discretionary-artifact-count",
1525
+ "aggregation": "max-count",
1526
+ "input_authorities": [
1527
+ "structured-artifact-candidate",
1528
+ "structured-policy-eligibility"
1529
+ ]
1530
+ },
1531
+ {
1532
+ "metric_id": "duplicated-fact-target-ratio",
1533
+ "operator": "duplicated-fact-ratio",
1534
+ "aggregation": "sum-ratio",
1535
+ "input_authorities": [
1536
+ "canonical-fact-inventory",
1537
+ "structured-candidate"
1538
+ ]
1539
+ },
1540
+ {
1541
+ "metric_id": "example-candidate-decision-coverage",
1542
+ "operator": "example-candidate-decision-ratio",
1543
+ "aggregation": "sum-ratio",
1544
+ "input_authorities": [
1545
+ "canonical-example-inventory",
1546
+ "structured-example-decision"
1547
+ ]
1548
+ },
1549
+ {
1550
+ "metric_id": "example-public-target-linkage",
1551
+ "operator": "example-public-target-linkage-ratio",
1552
+ "aggregation": "sum-ratio",
1553
+ "input_authorities": [
1554
+ "canonical-example-inventory",
1555
+ "structured-linkage-declaration"
1556
+ ]
1557
+ },
1558
+ {
1559
+ "metric_id": "example-representative-coverage",
1560
+ "operator": "example-representative-ratio",
1561
+ "aggregation": "sum-ratio",
1562
+ "input_authorities": [
1563
+ "canonical-example-inventory",
1564
+ "structured-example-decision"
1565
+ ]
1566
+ },
1567
+ {
1568
+ "metric_id": "implementation-body-ratio",
1569
+ "operator": "implementation-body-ratio",
1570
+ "aggregation": "sum-ratio",
1571
+ "input_authorities": [
1572
+ "structured-candidate",
1573
+ "structured-section-block"
1574
+ ]
1575
+ },
1576
+ {
1577
+ "metric_id": "inventory-disposition-coverage",
1578
+ "operator": "disposition-ratio",
1579
+ "aggregation": "sum-ratio",
1580
+ "input_authorities": [
1581
+ "canonical-inventory",
1582
+ "structured-disposition-set"
1583
+ ]
1584
+ },
1585
+ {
1586
+ "metric_id": "narrative-enumeration-ratio",
1587
+ "operator": "narrative-enumeration-ratio",
1588
+ "aggregation": "sum-ratio",
1589
+ "input_authorities": [
1590
+ "structured-candidate"
1591
+ ]
1592
+ },
1593
+ {
1594
+ "metric_id": "normalized-template-repetition-ratio",
1595
+ "operator": "template-repetition-ratio",
1596
+ "aggregation": "sum-ratio",
1597
+ "input_authorities": [
1598
+ "structured-candidate",
1599
+ "structured-template-projection"
1600
+ ]
1601
+ },
1602
+ {
1603
+ "metric_id": "reference-only-reader-targets",
1604
+ "operator": "reference-only-count",
1605
+ "aggregation": "sum-count",
1606
+ "input_authorities": [
1607
+ "canonical-identity-inventory",
1608
+ "structured-reader-projection"
1609
+ ]
1610
+ },
1611
+ {
1612
+ "metric_id": "unresolved-ordinal-partitions",
1613
+ "operator": "ordinal-partition-count",
1614
+ "aggregation": "sum-count",
1615
+ "input_authorities": [
1616
+ "canonical-inventory",
1617
+ "structured-partition-plan"
1618
+ ]
1619
+ }
1620
+ ]
1621
+ },
1622
+ {
1623
+ "profile_id": "plugin-extension",
1624
+ "rules": [
1625
+ {
1626
+ "metric_id": "discretionary-artifacts-per-logical-unit",
1627
+ "operator": "discretionary-artifact-count",
1628
+ "aggregation": "max-count",
1629
+ "input_authorities": [
1630
+ "structured-artifact-candidate",
1631
+ "structured-policy-eligibility"
1632
+ ]
1633
+ },
1634
+ {
1635
+ "metric_id": "duplicated-fact-target-ratio",
1636
+ "operator": "duplicated-fact-ratio",
1637
+ "aggregation": "sum-ratio",
1638
+ "input_authorities": [
1639
+ "canonical-fact-inventory",
1640
+ "structured-candidate"
1641
+ ]
1642
+ },
1643
+ {
1644
+ "metric_id": "example-candidate-decision-coverage",
1645
+ "operator": "example-candidate-decision-ratio",
1646
+ "aggregation": "sum-ratio",
1647
+ "input_authorities": [
1648
+ "canonical-example-inventory",
1649
+ "structured-example-decision"
1650
+ ]
1651
+ },
1652
+ {
1653
+ "metric_id": "example-public-target-linkage",
1654
+ "operator": "example-public-target-linkage-ratio",
1655
+ "aggregation": "sum-ratio",
1656
+ "input_authorities": [
1657
+ "canonical-example-inventory",
1658
+ "structured-linkage-declaration"
1659
+ ]
1660
+ },
1661
+ {
1662
+ "metric_id": "example-representative-coverage",
1663
+ "operator": "example-representative-ratio",
1664
+ "aggregation": "sum-ratio",
1665
+ "input_authorities": [
1666
+ "canonical-example-inventory",
1667
+ "structured-example-decision"
1668
+ ]
1669
+ },
1670
+ {
1671
+ "metric_id": "implementation-body-ratio",
1672
+ "operator": "implementation-body-ratio",
1673
+ "aggregation": "sum-ratio",
1674
+ "input_authorities": [
1675
+ "structured-candidate",
1676
+ "structured-section-block"
1677
+ ]
1678
+ },
1679
+ {
1680
+ "metric_id": "inventory-disposition-coverage",
1681
+ "operator": "disposition-ratio",
1682
+ "aggregation": "sum-ratio",
1683
+ "input_authorities": [
1684
+ "canonical-inventory",
1685
+ "structured-disposition-set"
1686
+ ]
1687
+ },
1688
+ {
1689
+ "metric_id": "narrative-enumeration-ratio",
1690
+ "operator": "narrative-enumeration-ratio",
1691
+ "aggregation": "sum-ratio",
1692
+ "input_authorities": [
1693
+ "structured-candidate"
1694
+ ]
1695
+ },
1696
+ {
1697
+ "metric_id": "normalized-template-repetition-ratio",
1698
+ "operator": "template-repetition-ratio",
1699
+ "aggregation": "sum-ratio",
1700
+ "input_authorities": [
1701
+ "structured-candidate",
1702
+ "structured-template-projection"
1703
+ ]
1704
+ },
1705
+ {
1706
+ "metric_id": "reference-only-reader-targets",
1707
+ "operator": "reference-only-count",
1708
+ "aggregation": "sum-count",
1709
+ "input_authorities": [
1710
+ "canonical-identity-inventory",
1711
+ "structured-reader-projection"
1712
+ ]
1713
+ },
1714
+ {
1715
+ "metric_id": "unresolved-ordinal-partitions",
1716
+ "operator": "ordinal-partition-count",
1717
+ "aggregation": "sum-count",
1718
+ "input_authorities": [
1719
+ "canonical-inventory",
1720
+ "structured-partition-plan"
1721
+ ]
1722
+ }
1723
+ ]
1724
+ },
1725
+ {
1726
+ "profile_id": "product-requirements",
1727
+ "rules": [
1728
+ {
1729
+ "metric_id": "discretionary-artifacts-per-logical-unit",
1730
+ "operator": "discretionary-artifact-count",
1731
+ "aggregation": "max-count",
1732
+ "input_authorities": [
1733
+ "structured-artifact-candidate",
1734
+ "structured-policy-eligibility"
1735
+ ]
1736
+ },
1737
+ {
1738
+ "metric_id": "duplicated-fact-target-ratio",
1739
+ "operator": "duplicated-fact-ratio",
1740
+ "aggregation": "sum-ratio",
1741
+ "input_authorities": [
1742
+ "canonical-fact-inventory",
1743
+ "structured-candidate"
1744
+ ]
1745
+ },
1746
+ {
1747
+ "metric_id": "implementation-body-ratio",
1748
+ "operator": "implementation-body-ratio",
1749
+ "aggregation": "sum-ratio",
1750
+ "input_authorities": [
1751
+ "structured-candidate",
1752
+ "structured-section-block"
1753
+ ]
1754
+ },
1755
+ {
1756
+ "metric_id": "inventory-disposition-coverage",
1757
+ "operator": "disposition-ratio",
1758
+ "aggregation": "sum-ratio",
1759
+ "input_authorities": [
1760
+ "canonical-inventory",
1761
+ "structured-disposition-set"
1762
+ ]
1763
+ },
1764
+ {
1765
+ "metric_id": "narrative-enumeration-ratio",
1766
+ "operator": "narrative-enumeration-ratio",
1767
+ "aggregation": "sum-ratio",
1768
+ "input_authorities": [
1769
+ "structured-candidate"
1770
+ ]
1771
+ },
1772
+ {
1773
+ "metric_id": "normalized-template-repetition-ratio",
1774
+ "operator": "template-repetition-ratio",
1775
+ "aggregation": "sum-ratio",
1776
+ "input_authorities": [
1777
+ "structured-candidate",
1778
+ "structured-template-projection"
1779
+ ]
1780
+ },
1781
+ {
1782
+ "metric_id": "reference-only-reader-targets",
1783
+ "operator": "reference-only-count",
1784
+ "aggregation": "sum-count",
1785
+ "input_authorities": [
1786
+ "canonical-identity-inventory",
1787
+ "structured-reader-projection"
1788
+ ]
1789
+ },
1790
+ {
1791
+ "metric_id": "unresolved-ordinal-partitions",
1792
+ "operator": "ordinal-partition-count",
1793
+ "aggregation": "sum-count",
1794
+ "input_authorities": [
1795
+ "canonical-inventory",
1796
+ "structured-partition-plan"
1797
+ ]
1798
+ }
1799
+ ]
1800
+ },
1801
+ {
1802
+ "profile_id": "public-api-reference",
1803
+ "rules": [
1804
+ {
1805
+ "metric_id": "discretionary-artifacts-per-logical-unit",
1806
+ "operator": "discretionary-artifact-count",
1807
+ "aggregation": "max-count",
1808
+ "input_authorities": [
1809
+ "structured-artifact-candidate",
1810
+ "structured-policy-eligibility"
1811
+ ]
1812
+ },
1813
+ {
1814
+ "metric_id": "duplicated-fact-target-ratio",
1815
+ "operator": "duplicated-fact-ratio",
1816
+ "aggregation": "sum-ratio",
1817
+ "input_authorities": [
1818
+ "canonical-fact-inventory",
1819
+ "structured-candidate"
1820
+ ]
1821
+ },
1822
+ {
1823
+ "metric_id": "implementation-body-ratio",
1824
+ "operator": "implementation-body-ratio",
1825
+ "aggregation": "sum-ratio",
1826
+ "input_authorities": [
1827
+ "structured-candidate",
1828
+ "structured-section-block"
1829
+ ]
1830
+ },
1831
+ {
1832
+ "metric_id": "inventory-disposition-coverage",
1833
+ "operator": "disposition-ratio",
1834
+ "aggregation": "sum-ratio",
1835
+ "input_authorities": [
1836
+ "canonical-inventory",
1837
+ "structured-disposition-set"
1838
+ ]
1839
+ },
1840
+ {
1841
+ "metric_id": "narrative-enumeration-ratio",
1842
+ "operator": "narrative-enumeration-ratio",
1843
+ "aggregation": "sum-ratio",
1844
+ "input_authorities": [
1845
+ "structured-candidate"
1846
+ ]
1847
+ },
1848
+ {
1849
+ "metric_id": "normalized-template-repetition-ratio",
1850
+ "operator": "template-repetition-ratio",
1851
+ "aggregation": "sum-ratio",
1852
+ "input_authorities": [
1853
+ "structured-candidate",
1854
+ "structured-template-projection"
1855
+ ]
1856
+ },
1857
+ {
1858
+ "metric_id": "reference-only-reader-targets",
1859
+ "operator": "reference-only-count",
1860
+ "aggregation": "sum-count",
1861
+ "input_authorities": [
1862
+ "canonical-identity-inventory",
1863
+ "structured-reader-projection"
1864
+ ]
1865
+ },
1866
+ {
1867
+ "metric_id": "unresolved-ordinal-partitions",
1868
+ "operator": "ordinal-partition-count",
1869
+ "aggregation": "sum-count",
1870
+ "input_authorities": [
1871
+ "canonical-inventory",
1872
+ "structured-partition-plan"
1873
+ ]
1874
+ }
1875
+ ]
1876
+ },
1877
+ {
1878
+ "profile_id": "release-migration-guide",
1879
+ "rules": [
1880
+ {
1881
+ "metric_id": "discretionary-artifacts-per-logical-unit",
1882
+ "operator": "discretionary-artifact-count",
1883
+ "aggregation": "max-count",
1884
+ "input_authorities": [
1885
+ "structured-artifact-candidate",
1886
+ "structured-policy-eligibility"
1887
+ ]
1888
+ },
1889
+ {
1890
+ "metric_id": "duplicated-fact-target-ratio",
1891
+ "operator": "duplicated-fact-ratio",
1892
+ "aggregation": "sum-ratio",
1893
+ "input_authorities": [
1894
+ "canonical-fact-inventory",
1895
+ "structured-candidate"
1896
+ ]
1897
+ },
1898
+ {
1899
+ "metric_id": "implementation-body-ratio",
1900
+ "operator": "implementation-body-ratio",
1901
+ "aggregation": "sum-ratio",
1902
+ "input_authorities": [
1903
+ "structured-candidate",
1904
+ "structured-section-block"
1905
+ ]
1906
+ },
1907
+ {
1908
+ "metric_id": "inventory-disposition-coverage",
1909
+ "operator": "disposition-ratio",
1910
+ "aggregation": "sum-ratio",
1911
+ "input_authorities": [
1912
+ "canonical-inventory",
1913
+ "structured-disposition-set"
1914
+ ]
1915
+ },
1916
+ {
1917
+ "metric_id": "narrative-enumeration-ratio",
1918
+ "operator": "narrative-enumeration-ratio",
1919
+ "aggregation": "sum-ratio",
1920
+ "input_authorities": [
1921
+ "structured-candidate"
1922
+ ]
1923
+ },
1924
+ {
1925
+ "metric_id": "normalized-template-repetition-ratio",
1926
+ "operator": "template-repetition-ratio",
1927
+ "aggregation": "sum-ratio",
1928
+ "input_authorities": [
1929
+ "structured-candidate",
1930
+ "structured-template-projection"
1931
+ ]
1932
+ },
1933
+ {
1934
+ "metric_id": "reference-only-reader-targets",
1935
+ "operator": "reference-only-count",
1936
+ "aggregation": "sum-count",
1937
+ "input_authorities": [
1938
+ "canonical-identity-inventory",
1939
+ "structured-reader-projection"
1940
+ ]
1941
+ },
1942
+ {
1943
+ "metric_id": "unresolved-ordinal-partitions",
1944
+ "operator": "ordinal-partition-count",
1945
+ "aggregation": "sum-count",
1946
+ "input_authorities": [
1947
+ "canonical-inventory",
1948
+ "structured-partition-plan"
1949
+ ]
1950
+ }
1951
+ ]
1952
+ },
1953
+ {
1954
+ "profile_id": "runbook",
1955
+ "rules": [
1956
+ {
1957
+ "metric_id": "discretionary-artifacts-per-logical-unit",
1958
+ "operator": "discretionary-artifact-count",
1959
+ "aggregation": "max-count",
1960
+ "input_authorities": [
1961
+ "structured-artifact-candidate",
1962
+ "structured-policy-eligibility"
1963
+ ]
1964
+ },
1965
+ {
1966
+ "metric_id": "duplicated-fact-target-ratio",
1967
+ "operator": "duplicated-fact-ratio",
1968
+ "aggregation": "sum-ratio",
1969
+ "input_authorities": [
1970
+ "canonical-fact-inventory",
1971
+ "structured-candidate"
1972
+ ]
1973
+ },
1974
+ {
1975
+ "metric_id": "implementation-body-ratio",
1976
+ "operator": "implementation-body-ratio",
1977
+ "aggregation": "sum-ratio",
1978
+ "input_authorities": [
1979
+ "structured-candidate",
1980
+ "structured-section-block"
1981
+ ]
1982
+ },
1983
+ {
1984
+ "metric_id": "inventory-disposition-coverage",
1985
+ "operator": "disposition-ratio",
1986
+ "aggregation": "sum-ratio",
1987
+ "input_authorities": [
1988
+ "canonical-inventory",
1989
+ "structured-disposition-set"
1990
+ ]
1991
+ },
1992
+ {
1993
+ "metric_id": "narrative-enumeration-ratio",
1994
+ "operator": "narrative-enumeration-ratio",
1995
+ "aggregation": "sum-ratio",
1996
+ "input_authorities": [
1997
+ "structured-candidate"
1998
+ ]
1999
+ },
2000
+ {
2001
+ "metric_id": "normalized-template-repetition-ratio",
2002
+ "operator": "template-repetition-ratio",
2003
+ "aggregation": "sum-ratio",
2004
+ "input_authorities": [
2005
+ "structured-candidate",
2006
+ "structured-template-projection"
2007
+ ]
2008
+ },
2009
+ {
2010
+ "metric_id": "reference-only-reader-targets",
2011
+ "operator": "reference-only-count",
2012
+ "aggregation": "sum-count",
2013
+ "input_authorities": [
2014
+ "canonical-identity-inventory",
2015
+ "structured-reader-projection"
2016
+ ]
2017
+ },
2018
+ {
2019
+ "metric_id": "unresolved-ordinal-partitions",
2020
+ "operator": "ordinal-partition-count",
2021
+ "aggregation": "sum-count",
2022
+ "input_authorities": [
2023
+ "canonical-inventory",
2024
+ "structured-partition-plan"
2025
+ ]
2026
+ }
2027
+ ]
2028
+ },
2029
+ {
2030
+ "profile_id": "sdk-library",
2031
+ "rules": [
2032
+ {
2033
+ "metric_id": "discretionary-artifacts-per-logical-unit",
2034
+ "operator": "discretionary-artifact-count",
2035
+ "aggregation": "max-count",
2036
+ "input_authorities": [
2037
+ "structured-artifact-candidate",
2038
+ "structured-policy-eligibility"
2039
+ ]
2040
+ },
2041
+ {
2042
+ "metric_id": "duplicated-fact-target-ratio",
2043
+ "operator": "duplicated-fact-ratio",
2044
+ "aggregation": "sum-ratio",
2045
+ "input_authorities": [
2046
+ "canonical-fact-inventory",
2047
+ "structured-candidate"
2048
+ ]
2049
+ },
2050
+ {
2051
+ "metric_id": "example-candidate-decision-coverage",
2052
+ "operator": "example-candidate-decision-ratio",
2053
+ "aggregation": "sum-ratio",
2054
+ "input_authorities": [
2055
+ "canonical-example-inventory",
2056
+ "structured-example-decision"
2057
+ ]
2058
+ },
2059
+ {
2060
+ "metric_id": "example-public-target-linkage",
2061
+ "operator": "example-public-target-linkage-ratio",
2062
+ "aggregation": "sum-ratio",
2063
+ "input_authorities": [
2064
+ "canonical-example-inventory",
2065
+ "structured-linkage-declaration"
2066
+ ]
2067
+ },
2068
+ {
2069
+ "metric_id": "example-representative-coverage",
2070
+ "operator": "example-representative-ratio",
2071
+ "aggregation": "sum-ratio",
2072
+ "input_authorities": [
2073
+ "canonical-example-inventory",
2074
+ "structured-example-decision"
2075
+ ]
2076
+ },
2077
+ {
2078
+ "metric_id": "implementation-body-ratio",
2079
+ "operator": "implementation-body-ratio",
2080
+ "aggregation": "sum-ratio",
2081
+ "input_authorities": [
2082
+ "structured-candidate",
2083
+ "structured-section-block"
2084
+ ]
2085
+ },
2086
+ {
2087
+ "metric_id": "inventory-disposition-coverage",
2088
+ "operator": "disposition-ratio",
2089
+ "aggregation": "sum-ratio",
2090
+ "input_authorities": [
2091
+ "canonical-inventory",
2092
+ "structured-disposition-set"
2093
+ ]
2094
+ },
2095
+ {
2096
+ "metric_id": "narrative-enumeration-ratio",
2097
+ "operator": "narrative-enumeration-ratio",
2098
+ "aggregation": "sum-ratio",
2099
+ "input_authorities": [
2100
+ "structured-candidate"
2101
+ ]
2102
+ },
2103
+ {
2104
+ "metric_id": "normalized-template-repetition-ratio",
2105
+ "operator": "template-repetition-ratio",
2106
+ "aggregation": "sum-ratio",
2107
+ "input_authorities": [
2108
+ "structured-candidate",
2109
+ "structured-template-projection"
2110
+ ]
2111
+ },
2112
+ {
2113
+ "metric_id": "reference-only-reader-targets",
2114
+ "operator": "reference-only-count",
2115
+ "aggregation": "sum-count",
2116
+ "input_authorities": [
2117
+ "canonical-identity-inventory",
2118
+ "structured-reader-projection"
2119
+ ]
2120
+ },
2121
+ {
2122
+ "metric_id": "unresolved-ordinal-partitions",
2123
+ "operator": "ordinal-partition-count",
2124
+ "aggregation": "sum-count",
2125
+ "input_authorities": [
2126
+ "canonical-inventory",
2127
+ "structured-partition-plan"
2128
+ ]
2129
+ }
2130
+ ]
2131
+ },
2132
+ {
2133
+ "profile_id": "standard-policy",
2134
+ "rules": [
2135
+ {
2136
+ "metric_id": "discretionary-artifacts-per-logical-unit",
2137
+ "operator": "discretionary-artifact-count",
2138
+ "aggregation": "max-count",
2139
+ "input_authorities": [
2140
+ "structured-artifact-candidate",
2141
+ "structured-policy-eligibility"
2142
+ ]
2143
+ },
2144
+ {
2145
+ "metric_id": "duplicated-fact-target-ratio",
2146
+ "operator": "duplicated-fact-ratio",
2147
+ "aggregation": "sum-ratio",
2148
+ "input_authorities": [
2149
+ "canonical-fact-inventory",
2150
+ "structured-candidate"
2151
+ ]
2152
+ },
2153
+ {
2154
+ "metric_id": "implementation-body-ratio",
2155
+ "operator": "implementation-body-ratio",
2156
+ "aggregation": "sum-ratio",
2157
+ "input_authorities": [
2158
+ "structured-candidate",
2159
+ "structured-section-block"
2160
+ ]
2161
+ },
2162
+ {
2163
+ "metric_id": "inventory-disposition-coverage",
2164
+ "operator": "disposition-ratio",
2165
+ "aggregation": "sum-ratio",
2166
+ "input_authorities": [
2167
+ "canonical-inventory",
2168
+ "structured-disposition-set"
2169
+ ]
2170
+ },
2171
+ {
2172
+ "metric_id": "narrative-enumeration-ratio",
2173
+ "operator": "narrative-enumeration-ratio",
2174
+ "aggregation": "sum-ratio",
2175
+ "input_authorities": [
2176
+ "structured-candidate"
2177
+ ]
2178
+ },
2179
+ {
2180
+ "metric_id": "normalized-template-repetition-ratio",
2181
+ "operator": "template-repetition-ratio",
2182
+ "aggregation": "sum-ratio",
2183
+ "input_authorities": [
2184
+ "structured-candidate",
2185
+ "structured-template-projection"
2186
+ ]
2187
+ },
2188
+ {
2189
+ "metric_id": "reference-only-reader-targets",
2190
+ "operator": "reference-only-count",
2191
+ "aggregation": "sum-count",
2192
+ "input_authorities": [
2193
+ "canonical-identity-inventory",
2194
+ "structured-reader-projection"
2195
+ ]
2196
+ },
2197
+ {
2198
+ "metric_id": "unresolved-ordinal-partitions",
2199
+ "operator": "ordinal-partition-count",
2200
+ "aggregation": "sum-count",
2201
+ "input_authorities": [
2202
+ "canonical-inventory",
2203
+ "structured-partition-plan"
2204
+ ]
2205
+ }
2206
+ ]
2207
+ },
2208
+ {
2209
+ "profile_id": "storage-repository",
2210
+ "rules": [
2211
+ {
2212
+ "metric_id": "discretionary-artifacts-per-logical-unit",
2213
+ "operator": "discretionary-artifact-count",
2214
+ "aggregation": "max-count",
2215
+ "input_authorities": [
2216
+ "structured-artifact-candidate",
2217
+ "structured-policy-eligibility"
2218
+ ]
2219
+ },
2220
+ {
2221
+ "metric_id": "duplicated-fact-target-ratio",
2222
+ "operator": "duplicated-fact-ratio",
2223
+ "aggregation": "sum-ratio",
2224
+ "input_authorities": [
2225
+ "canonical-fact-inventory",
2226
+ "structured-candidate"
2227
+ ]
2228
+ },
2229
+ {
2230
+ "metric_id": "example-candidate-decision-coverage",
2231
+ "operator": "example-candidate-decision-ratio",
2232
+ "aggregation": "sum-ratio",
2233
+ "input_authorities": [
2234
+ "canonical-example-inventory",
2235
+ "structured-example-decision"
2236
+ ]
2237
+ },
2238
+ {
2239
+ "metric_id": "example-public-target-linkage",
2240
+ "operator": "example-public-target-linkage-ratio",
2241
+ "aggregation": "sum-ratio",
2242
+ "input_authorities": [
2243
+ "canonical-example-inventory",
2244
+ "structured-linkage-declaration"
2245
+ ]
2246
+ },
2247
+ {
2248
+ "metric_id": "example-representative-coverage",
2249
+ "operator": "example-representative-ratio",
2250
+ "aggregation": "sum-ratio",
2251
+ "input_authorities": [
2252
+ "canonical-example-inventory",
2253
+ "structured-example-decision"
2254
+ ]
2255
+ },
2256
+ {
2257
+ "metric_id": "implementation-body-ratio",
2258
+ "operator": "implementation-body-ratio",
2259
+ "aggregation": "sum-ratio",
2260
+ "input_authorities": [
2261
+ "structured-candidate",
2262
+ "structured-section-block"
2263
+ ]
2264
+ },
2265
+ {
2266
+ "metric_id": "inventory-disposition-coverage",
2267
+ "operator": "disposition-ratio",
2268
+ "aggregation": "sum-ratio",
2269
+ "input_authorities": [
2270
+ "canonical-inventory",
2271
+ "structured-disposition-set"
2272
+ ]
2273
+ },
2274
+ {
2275
+ "metric_id": "narrative-enumeration-ratio",
2276
+ "operator": "narrative-enumeration-ratio",
2277
+ "aggregation": "sum-ratio",
2278
+ "input_authorities": [
2279
+ "structured-candidate"
2280
+ ]
2281
+ },
2282
+ {
2283
+ "metric_id": "normalized-template-repetition-ratio",
2284
+ "operator": "template-repetition-ratio",
2285
+ "aggregation": "sum-ratio",
2286
+ "input_authorities": [
2287
+ "structured-candidate",
2288
+ "structured-template-projection"
2289
+ ]
2290
+ },
2291
+ {
2292
+ "metric_id": "reference-only-reader-targets",
2293
+ "operator": "reference-only-count",
2294
+ "aggregation": "sum-count",
2295
+ "input_authorities": [
2296
+ "canonical-identity-inventory",
2297
+ "structured-reader-projection"
2298
+ ]
2299
+ },
2300
+ {
2301
+ "metric_id": "unresolved-ordinal-partitions",
2302
+ "operator": "ordinal-partition-count",
2303
+ "aggregation": "sum-count",
2304
+ "input_authorities": [
2305
+ "canonical-inventory",
2306
+ "structured-partition-plan"
2307
+ ]
2308
+ }
2309
+ ]
2310
+ },
2311
+ {
2312
+ "profile_id": "technical-guide",
2313
+ "rules": [
2314
+ {
2315
+ "metric_id": "discretionary-artifacts-per-logical-unit",
2316
+ "operator": "discretionary-artifact-count",
2317
+ "aggregation": "max-count",
2318
+ "input_authorities": [
2319
+ "structured-artifact-candidate",
2320
+ "structured-policy-eligibility"
2321
+ ]
2322
+ },
2323
+ {
2324
+ "metric_id": "duplicated-fact-target-ratio",
2325
+ "operator": "duplicated-fact-ratio",
2326
+ "aggregation": "sum-ratio",
2327
+ "input_authorities": [
2328
+ "canonical-fact-inventory",
2329
+ "structured-candidate"
2330
+ ]
2331
+ },
2332
+ {
2333
+ "metric_id": "implementation-body-ratio",
2334
+ "operator": "implementation-body-ratio",
2335
+ "aggregation": "sum-ratio",
2336
+ "input_authorities": [
2337
+ "structured-candidate",
2338
+ "structured-section-block"
2339
+ ]
2340
+ },
2341
+ {
2342
+ "metric_id": "inventory-disposition-coverage",
2343
+ "operator": "disposition-ratio",
2344
+ "aggregation": "sum-ratio",
2345
+ "input_authorities": [
2346
+ "canonical-inventory",
2347
+ "structured-disposition-set"
2348
+ ]
2349
+ },
2350
+ {
2351
+ "metric_id": "narrative-enumeration-ratio",
2352
+ "operator": "narrative-enumeration-ratio",
2353
+ "aggregation": "sum-ratio",
2354
+ "input_authorities": [
2355
+ "structured-candidate"
2356
+ ]
2357
+ },
2358
+ {
2359
+ "metric_id": "normalized-template-repetition-ratio",
2360
+ "operator": "template-repetition-ratio",
2361
+ "aggregation": "sum-ratio",
2362
+ "input_authorities": [
2363
+ "structured-candidate",
2364
+ "structured-template-projection"
2365
+ ]
2366
+ },
2367
+ {
2368
+ "metric_id": "reference-only-reader-targets",
2369
+ "operator": "reference-only-count",
2370
+ "aggregation": "sum-count",
2371
+ "input_authorities": [
2372
+ "canonical-identity-inventory",
2373
+ "structured-reader-projection"
2374
+ ]
2375
+ },
2376
+ {
2377
+ "metric_id": "unresolved-ordinal-partitions",
2378
+ "operator": "ordinal-partition-count",
2379
+ "aggregation": "sum-count",
2380
+ "input_authorities": [
2381
+ "canonical-inventory",
2382
+ "structured-partition-plan"
2383
+ ]
2384
+ }
2385
+ ]
2386
+ },
2387
+ {
2388
+ "profile_id": "test-validation",
2389
+ "rules": [
2390
+ {
2391
+ "metric_id": "discretionary-artifacts-per-logical-unit",
2392
+ "operator": "discretionary-artifact-count",
2393
+ "aggregation": "max-count",
2394
+ "input_authorities": [
2395
+ "structured-artifact-candidate",
2396
+ "structured-policy-eligibility"
2397
+ ]
2398
+ },
2399
+ {
2400
+ "metric_id": "duplicated-fact-target-ratio",
2401
+ "operator": "duplicated-fact-ratio",
2402
+ "aggregation": "sum-ratio",
2403
+ "input_authorities": [
2404
+ "canonical-fact-inventory",
2405
+ "structured-candidate"
2406
+ ]
2407
+ },
2408
+ {
2409
+ "metric_id": "implementation-body-ratio",
2410
+ "operator": "implementation-body-ratio",
2411
+ "aggregation": "sum-ratio",
2412
+ "input_authorities": [
2413
+ "structured-candidate",
2414
+ "structured-section-block"
2415
+ ]
2416
+ },
2417
+ {
2418
+ "metric_id": "inventory-disposition-coverage",
2419
+ "operator": "disposition-ratio",
2420
+ "aggregation": "sum-ratio",
2421
+ "input_authorities": [
2422
+ "canonical-inventory",
2423
+ "structured-disposition-set"
2424
+ ]
2425
+ },
2426
+ {
2427
+ "metric_id": "narrative-enumeration-ratio",
2428
+ "operator": "narrative-enumeration-ratio",
2429
+ "aggregation": "sum-ratio",
2430
+ "input_authorities": [
2431
+ "structured-candidate"
2432
+ ]
2433
+ },
2434
+ {
2435
+ "metric_id": "normalized-template-repetition-ratio",
2436
+ "operator": "template-repetition-ratio",
2437
+ "aggregation": "sum-ratio",
2438
+ "input_authorities": [
2439
+ "structured-candidate",
2440
+ "structured-template-projection"
2441
+ ]
2442
+ },
2443
+ {
2444
+ "metric_id": "reference-only-reader-targets",
2445
+ "operator": "reference-only-count",
2446
+ "aggregation": "sum-count",
2447
+ "input_authorities": [
2448
+ "canonical-identity-inventory",
2449
+ "structured-reader-projection"
2450
+ ]
2451
+ },
2452
+ {
2453
+ "metric_id": "unresolved-ordinal-partitions",
2454
+ "operator": "ordinal-partition-count",
2455
+ "aggregation": "sum-count",
2456
+ "input_authorities": [
2457
+ "canonical-inventory",
2458
+ "structured-partition-plan"
2459
+ ]
2460
+ }
2461
+ ]
2462
+ },
2463
+ {
2464
+ "profile_id": "user-and-developer-guide",
2465
+ "rules": [
2466
+ {
2467
+ "metric_id": "discretionary-artifacts-per-logical-unit",
2468
+ "operator": "discretionary-artifact-count",
2469
+ "aggregation": "max-count",
2470
+ "input_authorities": [
2471
+ "structured-artifact-candidate",
2472
+ "structured-policy-eligibility"
2473
+ ]
2474
+ },
2475
+ {
2476
+ "metric_id": "duplicated-fact-target-ratio",
2477
+ "operator": "duplicated-fact-ratio",
2478
+ "aggregation": "sum-ratio",
2479
+ "input_authorities": [
2480
+ "canonical-fact-inventory",
2481
+ "structured-candidate"
2482
+ ]
2483
+ },
2484
+ {
2485
+ "metric_id": "implementation-body-ratio",
2486
+ "operator": "implementation-body-ratio",
2487
+ "aggregation": "sum-ratio",
2488
+ "input_authorities": [
2489
+ "structured-candidate",
2490
+ "structured-section-block"
2491
+ ]
2492
+ },
2493
+ {
2494
+ "metric_id": "inventory-disposition-coverage",
2495
+ "operator": "disposition-ratio",
2496
+ "aggregation": "sum-ratio",
2497
+ "input_authorities": [
2498
+ "canonical-inventory",
2499
+ "structured-disposition-set"
2500
+ ]
2501
+ },
2502
+ {
2503
+ "metric_id": "narrative-enumeration-ratio",
2504
+ "operator": "narrative-enumeration-ratio",
2505
+ "aggregation": "sum-ratio",
2506
+ "input_authorities": [
2507
+ "structured-candidate"
2508
+ ]
2509
+ },
2510
+ {
2511
+ "metric_id": "normalized-template-repetition-ratio",
2512
+ "operator": "template-repetition-ratio",
2513
+ "aggregation": "sum-ratio",
2514
+ "input_authorities": [
2515
+ "structured-candidate",
2516
+ "structured-template-projection"
2517
+ ]
2518
+ },
2519
+ {
2520
+ "metric_id": "reference-only-reader-targets",
2521
+ "operator": "reference-only-count",
2522
+ "aggregation": "sum-count",
2523
+ "input_authorities": [
2524
+ "canonical-identity-inventory",
2525
+ "structured-reader-projection"
2526
+ ]
2527
+ },
2528
+ {
2529
+ "metric_id": "unresolved-ordinal-partitions",
2530
+ "operator": "ordinal-partition-count",
2531
+ "aggregation": "sum-count",
2532
+ "input_authorities": [
2533
+ "canonical-inventory",
2534
+ "structured-partition-plan"
2535
+ ]
2536
+ }
2537
+ ]
2538
+ },
2539
+ {
2540
+ "profile_id": "web-application",
2541
+ "rules": [
2542
+ {
2543
+ "metric_id": "discretionary-artifacts-per-logical-unit",
2544
+ "operator": "discretionary-artifact-count",
2545
+ "aggregation": "max-count",
2546
+ "input_authorities": [
2547
+ "structured-artifact-candidate",
2548
+ "structured-policy-eligibility"
2549
+ ]
2550
+ },
2551
+ {
2552
+ "metric_id": "duplicated-fact-target-ratio",
2553
+ "operator": "duplicated-fact-ratio",
2554
+ "aggregation": "sum-ratio",
2555
+ "input_authorities": [
2556
+ "canonical-fact-inventory",
2557
+ "structured-candidate"
2558
+ ]
2559
+ },
2560
+ {
2561
+ "metric_id": "example-candidate-decision-coverage",
2562
+ "operator": "example-candidate-decision-ratio",
2563
+ "aggregation": "sum-ratio",
2564
+ "input_authorities": [
2565
+ "canonical-example-inventory",
2566
+ "structured-example-decision"
2567
+ ]
2568
+ },
2569
+ {
2570
+ "metric_id": "example-public-target-linkage",
2571
+ "operator": "example-public-target-linkage-ratio",
2572
+ "aggregation": "sum-ratio",
2573
+ "input_authorities": [
2574
+ "canonical-example-inventory",
2575
+ "structured-linkage-declaration"
2576
+ ]
2577
+ },
2578
+ {
2579
+ "metric_id": "example-representative-coverage",
2580
+ "operator": "example-representative-ratio",
2581
+ "aggregation": "sum-ratio",
2582
+ "input_authorities": [
2583
+ "canonical-example-inventory",
2584
+ "structured-example-decision"
2585
+ ]
2586
+ },
2587
+ {
2588
+ "metric_id": "implementation-body-ratio",
2589
+ "operator": "implementation-body-ratio",
2590
+ "aggregation": "sum-ratio",
2591
+ "input_authorities": [
2592
+ "structured-candidate",
2593
+ "structured-section-block"
2594
+ ]
2595
+ },
2596
+ {
2597
+ "metric_id": "inventory-disposition-coverage",
2598
+ "operator": "disposition-ratio",
2599
+ "aggregation": "sum-ratio",
2600
+ "input_authorities": [
2601
+ "canonical-inventory",
2602
+ "structured-disposition-set"
2603
+ ]
2604
+ },
2605
+ {
2606
+ "metric_id": "narrative-enumeration-ratio",
2607
+ "operator": "narrative-enumeration-ratio",
2608
+ "aggregation": "sum-ratio",
2609
+ "input_authorities": [
2610
+ "structured-candidate"
2611
+ ]
2612
+ },
2613
+ {
2614
+ "metric_id": "normalized-template-repetition-ratio",
2615
+ "operator": "template-repetition-ratio",
2616
+ "aggregation": "sum-ratio",
2617
+ "input_authorities": [
2618
+ "structured-candidate",
2619
+ "structured-template-projection"
2620
+ ]
2621
+ },
2622
+ {
2623
+ "metric_id": "reference-only-reader-targets",
2624
+ "operator": "reference-only-count",
2625
+ "aggregation": "sum-count",
2626
+ "input_authorities": [
2627
+ "canonical-identity-inventory",
2628
+ "structured-reader-projection"
2629
+ ]
2630
+ },
2631
+ {
2632
+ "metric_id": "unresolved-ordinal-partitions",
2633
+ "operator": "ordinal-partition-count",
2634
+ "aggregation": "sum-count",
2635
+ "input_authorities": [
2636
+ "canonical-inventory",
2637
+ "structured-partition-plan"
2638
+ ]
2639
+ }
2640
+ ]
2641
+ }
2642
+ ],
2643
+ "report_digest": "sha256:085e3d718e400125ac8794c315dd022d3d0ff5d9bfb4d0e46921b9e483167c54"
2644
+ }