@c4a/context-cli 0.6.19 → 0.7.1

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 (311) hide show
  1. package/README.md +67 -6
  2. package/README.zh-CN.md +42 -5
  3. package/cli.js +77935 -44879
  4. package/indexers/bundles/context-code-indexer/SKILL.md +20 -0
  5. package/indexers/bundles/context-code-indexer/context-indexer.yaml +230 -0
  6. package/indexers/bundles/context-code-indexer/references/composers/contracts-and-chains.md +23 -0
  7. package/indexers/bundles/context-code-indexer/references/composers/cross-module-chain.md +22 -0
  8. package/indexers/bundles/context-code-indexer/references/composers/development-and-delivery.md +22 -0
  9. package/indexers/bundles/context-code-indexer/references/composers/event-flow.md +21 -0
  10. package/indexers/bundles/context-code-indexer/references/composers/examples-and-documentation.md +22 -0
  11. package/indexers/bundles/context-code-indexer/references/composers/persistence-boundary.md +21 -0
  12. package/indexers/bundles/context-code-indexer/references/composers/protocol-boundary.md +22 -0
  13. package/indexers/bundles/context-code-indexer/references/composers/public-contract.md +23 -0
  14. package/indexers/bundles/context-code-indexer/references/indexer.md +49 -0
  15. package/indexers/bundles/context-code-indexer/references/metrics.md +201 -0
  16. package/{providers/context/resources/semantic/code-index/templates/adapter.md → indexers/bundles/context-code-indexer/templates/adapter-integration.md} +16 -6
  17. package/{providers/context/resources/semantic/code-index → indexers/bundles/context-code-indexer}/templates/api-service.md +9 -7
  18. package/{providers/context/resources/semantic/code-index → indexers/bundles/context-code-indexer}/templates/background-runtime.md +3 -3
  19. package/{providers/context/resources/semantic/code-index → indexers/bundles/context-code-indexer}/templates/cli-tool.md +6 -6
  20. package/indexers/bundles/context-code-indexer/templates/component-library.md +99 -0
  21. package/{providers/context/resources/semantic/code-index → indexers/bundles/context-code-indexer}/templates/contract-source.md +4 -4
  22. package/{providers/context/resources/semantic/code-index/templates/cross-module-chain.md → indexers/bundles/context-code-indexer/templates/data-sync-reconciliation.md} +11 -12
  23. package/{providers/context/resources/semantic/code-index/templates/derived-source.md → indexers/bundles/context-code-indexer/templates/derived-generated-source.md} +11 -10
  24. package/{providers/context/resources/semantic/code-index → indexers/bundles/context-code-indexer}/templates/domain-service.md +4 -4
  25. package/{providers/context/resources/semantic/code-index/templates/event-flow.md → indexers/bundles/context-code-indexer/templates/event-consumer.md} +5 -5
  26. package/{providers/context/resources/semantic/code-index/templates/protocol-boundary.md → indexers/bundles/context-code-indexer/templates/gateway-facade.md} +14 -13
  27. package/{providers/context/resources/semantic/code-index → indexers/bundles/context-code-indexer}/templates/monorepo-container.md +11 -11
  28. package/{providers/context/resources/semantic/code-index → indexers/bundles/context-code-indexer}/templates/plugin-extension.md +1 -1
  29. package/{providers/context/resources/semantic/code-index → indexers/bundles/context-code-indexer}/templates/sdk-library.md +9 -9
  30. package/{providers/context/resources/semantic/code-index/templates/persistence-boundary.md → indexers/bundles/context-code-indexer/templates/storage-repository.md} +3 -3
  31. package/{providers/context/resources/semantic/code-index → indexers/bundles/context-code-indexer}/templates/web-application.md +5 -4
  32. package/indexers/bundles/context-code-indexer/tests/fixtures/chapters.json +226 -0
  33. package/indexers/bundles/context-code-indexer/tests/fixtures/composers.json +82 -0
  34. package/indexers/bundles/context-code-indexer/tests/fixtures/profiles.json +210 -0
  35. package/indexers/bundles/context-code-indexer/tests/fixtures/scenarios.json +122 -0
  36. package/indexers/bundles/context-markdown-indexer/SKILL.md +20 -0
  37. package/indexers/bundles/context-markdown-indexer/context-indexer.yaml +147 -0
  38. package/indexers/bundles/context-markdown-indexer/references/classification.md +63 -0
  39. package/indexers/bundles/context-markdown-indexer/references/editorial-policy.md +106 -0
  40. package/indexers/bundles/context-markdown-indexer/references/indexer.md +23 -0
  41. package/indexers/bundles/context-markdown-indexer/references/semantic-planning.md +146 -0
  42. package/indexers/bundles/context-markdown-indexer/references/structure-and-artifacts.md +109 -0
  43. package/indexers/bundles/context-markdown-indexer/tests/fixtures/anonymous.json +31 -0
  44. package/indexers/bundles/context-markdown-indexer/tests/fixtures/editorial.json +309 -0
  45. package/indexers/bundles/context-markdown-indexer/tests/fixtures/migration-equivalence.json +186 -0
  46. package/indexers/bundles/context-markdown-indexer/tests/fixtures/profiles.json +171 -0
  47. package/indexers/bundles/context-markdown-indexer/tests/fixtures/routing.json +151 -0
  48. package/indexers/capability-manifest.json +35 -0
  49. package/indexers/contracts/hard-rule-conformance.json +2644 -0
  50. package/indexers/contracts/operator-contract.json +35 -0
  51. package/indexers/contracts/profile-contract.json +10162 -0
  52. package/indexers/release-manifest.json +208 -0
  53. package/package.json +5 -4
  54. package/plugins/README.md +17 -109
  55. package/plugins/README_CN.md +11 -89
  56. package/plugins/VERSION +1 -1
  57. package/plugins/claude/.claude-plugin/plugin.json +3 -11
  58. package/plugins/claude/CLAUDE.md +1 -1
  59. package/plugins/claude/README.md +1 -1
  60. package/plugins/claude/commands/context.md +76 -1
  61. package/plugins/codex/.codex-plugin/plugin.json +6 -17
  62. package/plugins/codex/AGENTS.md +1 -1
  63. package/plugins/codex/README.md +1 -1
  64. package/plugins/codex/skills/context/SKILL.md +77 -13
  65. package/plugins/cursor/.cursor-plugin/plugin.json +4 -17
  66. package/plugins/cursor/AGENTS.md +1 -1
  67. package/plugins/cursor/README.md +3 -2
  68. package/plugins/cursor/commands/c4a-context.md +76 -3
  69. package/plugins/skills/{c4a-context → context}/SKILL.md +78 -14
  70. package/plugins/skills/context-code-indexer/SKILL.md +20 -0
  71. package/plugins/skills/context-code-indexer/context-indexer.yaml +230 -0
  72. package/plugins/skills/context-code-indexer/references/composers/contracts-and-chains.md +23 -0
  73. package/plugins/skills/context-code-indexer/references/composers/cross-module-chain.md +22 -0
  74. package/plugins/skills/context-code-indexer/references/composers/development-and-delivery.md +22 -0
  75. package/plugins/skills/context-code-indexer/references/composers/event-flow.md +21 -0
  76. package/plugins/skills/context-code-indexer/references/composers/examples-and-documentation.md +22 -0
  77. package/plugins/skills/context-code-indexer/references/composers/persistence-boundary.md +21 -0
  78. package/plugins/skills/context-code-indexer/references/composers/protocol-boundary.md +22 -0
  79. package/plugins/skills/context-code-indexer/references/composers/public-contract.md +23 -0
  80. package/plugins/skills/context-code-indexer/references/indexer.md +49 -0
  81. package/plugins/skills/context-code-indexer/references/metrics.md +201 -0
  82. package/plugins/skills/context-code-indexer/templates/adapter-integration.md +119 -0
  83. package/plugins/skills/context-code-indexer/templates/api-service.md +118 -0
  84. package/plugins/skills/context-code-indexer/templates/background-runtime.md +109 -0
  85. package/plugins/skills/context-code-indexer/templates/cli-tool.md +129 -0
  86. package/plugins/skills/context-code-indexer/templates/component-library.md +99 -0
  87. package/plugins/skills/context-code-indexer/templates/contract-source.md +73 -0
  88. package/plugins/skills/context-code-indexer/templates/data-sync-reconciliation.md +77 -0
  89. package/plugins/skills/context-code-indexer/templates/derived-generated-source.md +117 -0
  90. package/plugins/skills/context-code-indexer/templates/domain-service.md +109 -0
  91. package/plugins/skills/context-code-indexer/templates/event-consumer.md +62 -0
  92. package/plugins/skills/context-code-indexer/templates/gateway-facade.md +89 -0
  93. package/plugins/skills/context-code-indexer/templates/monorepo-container.md +124 -0
  94. package/plugins/skills/context-code-indexer/templates/plugin-extension.md +52 -0
  95. package/plugins/skills/context-code-indexer/templates/sdk-library.md +132 -0
  96. package/plugins/skills/context-code-indexer/templates/storage-repository.md +56 -0
  97. package/plugins/skills/context-code-indexer/templates/web-application.md +146 -0
  98. package/plugins/skills/context-code-indexer/tests/fixtures/chapters.json +226 -0
  99. package/plugins/skills/context-code-indexer/tests/fixtures/composers.json +82 -0
  100. package/plugins/skills/context-code-indexer/tests/fixtures/profiles.json +210 -0
  101. package/plugins/skills/context-code-indexer/tests/fixtures/scenarios.json +122 -0
  102. package/plugins/skills/context-markdown-indexer/SKILL.md +20 -0
  103. package/plugins/skills/context-markdown-indexer/context-indexer.yaml +147 -0
  104. package/plugins/skills/context-markdown-indexer/references/classification.md +63 -0
  105. package/plugins/skills/context-markdown-indexer/references/editorial-policy.md +106 -0
  106. package/plugins/skills/context-markdown-indexer/references/indexer.md +23 -0
  107. package/plugins/skills/context-markdown-indexer/references/semantic-planning.md +146 -0
  108. package/plugins/skills/context-markdown-indexer/references/structure-and-artifacts.md +109 -0
  109. package/plugins/skills/context-markdown-indexer/tests/fixtures/anonymous.json +31 -0
  110. package/plugins/skills/context-markdown-indexer/tests/fixtures/editorial.json +309 -0
  111. package/plugins/skills/context-markdown-indexer/tests/fixtures/migration-equivalence.json +186 -0
  112. package/plugins/skills/context-markdown-indexer/tests/fixtures/profiles.json +171 -0
  113. package/plugins/skills/context-markdown-indexer/tests/fixtures/routing.json +151 -0
  114. package/providers/context/actions/accept-main-index-run.yaml +7 -0
  115. package/providers/context/actions/accept-material-answer-run.yaml +7 -0
  116. package/providers/context/actions/accept-post-author-composer-run.yaml +7 -0
  117. package/providers/context/actions/actualize-material-answer-bindings.yaml +8 -0
  118. package/providers/context/actions/apply-indexer-project.yaml +7 -0
  119. package/providers/context/actions/audit-material-gap-state.yaml +8 -0
  120. package/providers/context/actions/audit-projected-artifact-fan-out.yaml +8 -0
  121. package/providers/context/actions/authorize-indexer-dependencies.yaml +7 -0
  122. package/providers/context/actions/authorize-indexer-program-execution.yaml +7 -0
  123. package/providers/context/actions/build-main-index-author-worksets.yaml +7 -0
  124. package/providers/context/actions/build-main-index-catalog-fallback.yaml +7 -0
  125. package/providers/context/actions/build-main-index-partition-worksets.yaml +7 -0
  126. package/providers/context/actions/build-material-question-workset.yaml +7 -0
  127. package/providers/context/actions/build-post-author-composer-worksets.yaml +7 -0
  128. package/providers/context/actions/build-question-target-inventory.yaml +7 -0
  129. package/providers/context/actions/build-subject-catalog.yaml +7 -0
  130. package/providers/context/actions/build-target-resolution-views.yaml +7 -0
  131. package/providers/context/actions/checkpoint-material-answer-review.yaml +8 -0
  132. package/providers/context/actions/checkpoint-material-gaps.yaml +8 -0
  133. package/providers/context/actions/close-indexer-approved-knowledge.yaml +8 -0
  134. package/providers/context/actions/compile-indexer-candidates.yaml +8 -0
  135. package/providers/context/actions/compose-indexer-post-author-fragments.yaml +7 -0
  136. package/providers/context/actions/configure-community-indexer-fallback.yaml +6 -0
  137. package/providers/context/actions/configure-indexer-providers.yaml +6 -0
  138. package/providers/context/actions/confirm-index-requirement-workset.yaml +8 -0
  139. package/providers/context/actions/confirm-subject-reidentification.yaml +8 -0
  140. package/providers/context/actions/converge-main-index-partition-run.yaml +7 -0
  141. package/providers/context/actions/discover-markdown-indexer-providers.yaml +6 -0
  142. package/providers/context/actions/evaluate-material-gaps.yaml +8 -0
  143. package/providers/context/actions/fail-main-index-run.yaml +7 -0
  144. package/providers/context/actions/fail-material-answer-run.yaml +7 -0
  145. package/providers/context/actions/fail-post-author-composer-run.yaml +7 -0
  146. package/providers/context/actions/inspect-index-candidate-review-readiness.yaml +8 -0
  147. package/providers/context/actions/inspect-index-profile-failure.yaml +7 -0
  148. package/providers/context/actions/inspect-indexer-dependencies.yaml +7 -0
  149. package/providers/context/actions/inspect-indexer-program-execution.yaml +7 -0
  150. package/providers/context/actions/inspect-indexer-project-proposal.yaml +7 -0
  151. package/providers/context/actions/inspect-markdown-provider-capture.yaml +7 -0
  152. package/providers/context/actions/inspect-material-answer-review.yaml +8 -0
  153. package/providers/context/actions/materialize-indexer-instructions.yaml +7 -0
  154. package/providers/context/actions/observe-indexer-project.yaml +7 -0
  155. package/providers/context/actions/observe-main-index-run-ledger.yaml +7 -0
  156. package/providers/context/actions/observe-material-answer-runs.yaml +7 -0
  157. package/providers/context/actions/observe-post-author-composer-worksets.yaml +7 -0
  158. package/providers/context/actions/override-index-profile-audit.yaml +7 -0
  159. package/providers/context/actions/prepare-indexer-customization-project.yaml +7 -0
  160. package/providers/context/actions/prepare-main-index-run-ledger.yaml +7 -0
  161. package/providers/context/actions/prepare-material-answer-runs.yaml +7 -0
  162. package/providers/context/actions/propose-indexer-customization.yaml +7 -0
  163. package/providers/context/actions/propose-overlay-question-amendment.yaml +7 -0
  164. package/providers/context/actions/rebind-indexer-selection-to-requirement.yaml +7 -0
  165. package/providers/context/actions/reconcile-indexer-results.yaml +7 -0
  166. package/providers/context/actions/record-index-profile-revision.yaml +7 -0
  167. package/providers/context/actions/report-index-profile-failure.yaml +7 -0
  168. package/providers/context/actions/report-indexer-incremental-impact.yaml +8 -0
  169. package/providers/context/actions/resolve-effective-composers.yaml +7 -0
  170. package/providers/context/actions/review-material-answer-candidate.yaml +8 -0
  171. package/providers/context/actions/revise-index-output.yaml +7 -0
  172. package/providers/context/actions/route-index-requirement-confirmation.yaml +8 -0
  173. package/providers/context/actions/route-indexer-provider-selection.yaml +7 -0
  174. package/providers/context/actions/run-indexer-agent-step.yaml +7 -0
  175. package/providers/context/actions/run-indexer-lifecycle.yaml +7 -0
  176. package/providers/context/actions/run-indexer-post-author-composer.yaml +7 -0
  177. package/providers/context/actions/run-material-answer-indexers.yaml +7 -0
  178. package/providers/context/actions/start-main-index-run.yaml +7 -0
  179. package/providers/context/actions/start-material-answer-run.yaml +7 -0
  180. package/providers/context/actions/start-post-author-composer-run.yaml +7 -0
  181. package/providers/context/actions/validate-indexer-contract-overlays.yaml +7 -0
  182. package/providers/context/actions/validate-indexer-customization.yaml +7 -0
  183. package/providers/context/actions/validate-indexer-selection-proposal.yaml +7 -0
  184. package/providers/context/actions/validate-main-index-run.yaml +7 -0
  185. package/providers/context/actions/validate-markdown-provider-selection.yaml +7 -0
  186. package/providers/context/actions/validate-subject-key-schemas.yaml +8 -0
  187. package/providers/context/codes.yaml +69 -23
  188. package/providers/context/graphs/indexer.yaml +1042 -0
  189. package/providers/context/graphs/workspace.yaml +37 -454
  190. package/providers/context/manifest.json +1245 -433
  191. package/providers/context/provider.yaml +3 -2
  192. package/providers/context/resources/diagnostics/projection-stale.md +0 -1
  193. package/providers/context/resources/manuals/reference/project-api.md +41 -40
  194. package/providers/context/resources/views/document-optimization-current.yaml +1 -1
  195. package/providers/context/resources/views/package-current.yaml +1 -1
  196. package/providers/context/resources/views/resolved-indexer-instructions.yaml +23 -0
  197. package/providers/context/resources/views/review-current.yaml +1 -1
  198. package/providers/context/resources/views/source-boundary.yaml +1 -1
  199. package/providers/context/resources/views/source-current.yaml +1 -1
  200. package/providers/context/resources/views/verification-current.yaml +1 -1
  201. package/providers/context/resources/views/workspace-current.yaml +1 -1
  202. package/providers/context/schemas/indexer-agent-step-input.schema.json +30 -0
  203. package/providers/context/schemas/indexer-agent-step-result.schema.json +47 -0
  204. package/providers/context/schemas/indexer-candidate-compile-input.schema.json +57 -0
  205. package/providers/context/schemas/indexer-candidate-compile-output.schema.json +38 -0
  206. package/providers/context/schemas/indexer-candidate-review-readiness-input.schema.json +46 -0
  207. package/providers/context/schemas/indexer-candidate-review-readiness-output.schema.json +104 -0
  208. package/providers/context/schemas/indexer-contract-overlay-validation-input.schema.json +48 -0
  209. package/providers/context/schemas/indexer-contract-overlay-validation-result.schema.json +63 -0
  210. package/providers/context/schemas/indexer-customization-project-preparation-result.schema.json +44 -0
  211. package/providers/context/schemas/indexer-customization-proposal-draft.schema.json +83 -0
  212. package/providers/context/schemas/indexer-customization-validation-result.schema.json +36 -0
  213. package/providers/context/schemas/indexer-dependency-authorization-input.schema.json +71 -0
  214. package/providers/context/schemas/indexer-dependency-authorization-result.schema.json +138 -0
  215. package/providers/context/schemas/indexer-incremental-impact-input.schema.json +31 -0
  216. package/providers/context/schemas/indexer-incremental-impact-output.schema.json +52 -0
  217. package/providers/context/schemas/indexer-lifecycle-continuation.schema.json +15 -0
  218. package/providers/context/schemas/indexer-main-lifecycle-input.schema.json +187 -0
  219. package/providers/context/schemas/indexer-main-lifecycle-output.schema.json +180 -0
  220. package/providers/context/schemas/indexer-markdown-provider-capture-input.schema.json +17 -0
  221. package/providers/context/schemas/indexer-markdown-provider-capture-output.schema.json +54 -0
  222. package/providers/context/schemas/indexer-markdown-provider-validation-input.schema.json +34 -0
  223. package/providers/context/schemas/indexer-markdown-provider-validation-output.schema.json +75 -0
  224. package/providers/context/schemas/indexer-material-answer-lifecycle-input.schema.json +90 -0
  225. package/providers/context/schemas/indexer-material-answer-lifecycle-output.schema.json +80 -0
  226. package/providers/context/schemas/indexer-material-answer-review-inspection-input.schema.json +32 -0
  227. package/providers/context/schemas/indexer-material-answer-review-inspection-output.schema.json +32 -0
  228. package/providers/context/schemas/indexer-material-answer-review-resolution-input.schema.json +19 -0
  229. package/providers/context/schemas/indexer-material-answer-review-resolution-output.schema.json +87 -0
  230. package/providers/context/schemas/indexer-material-gap-lifecycle-input.schema.json +86 -0
  231. package/providers/context/schemas/indexer-material-gap-lifecycle-output.schema.json +19 -0
  232. package/providers/context/schemas/indexer-materialize-request.schema.json +53 -0
  233. package/providers/context/schemas/indexer-materialized-resource.schema.json +57 -0
  234. package/providers/context/schemas/indexer-overlay-question-amendment.schema.json +13 -0
  235. package/providers/context/schemas/indexer-overlay-question-proposal-input.schema.json +40 -0
  236. package/providers/context/schemas/indexer-overlay-question-rebind-input.schema.json +35 -0
  237. package/providers/context/schemas/indexer-overlay-question-rebind-result.schema.json +25 -0
  238. package/providers/context/schemas/indexer-post-author-fragment-request.schema.json +26 -0
  239. package/providers/context/schemas/indexer-post-author-fragment-result.schema.json +18 -0
  240. package/providers/context/schemas/indexer-post-author-lifecycle-input.schema.json +94 -0
  241. package/providers/context/schemas/indexer-post-author-lifecycle-output.schema.json +72 -0
  242. package/providers/context/schemas/indexer-profile-failure-inspection-input.schema.json +13 -0
  243. package/providers/context/schemas/indexer-profile-failure-inspection-result.schema.json +19 -0
  244. package/providers/context/schemas/indexer-profile-failure-report-input.schema.json +22 -0
  245. package/providers/context/schemas/indexer-profile-failure-report-result.schema.json +49 -0
  246. package/providers/context/schemas/indexer-profile-override-decision.schema.json +20 -0
  247. package/providers/context/schemas/indexer-profile-override-result.schema.json +49 -0
  248. package/providers/context/schemas/indexer-profile-revision-agent-input.schema.json +18 -0
  249. package/providers/context/schemas/indexer-profile-revision-record-input.schema.json +31 -0
  250. package/providers/context/schemas/indexer-profile-revision-record-result.schema.json +45 -0
  251. package/providers/context/schemas/indexer-program-execution-authorization-input.schema.json +145 -0
  252. package/providers/context/schemas/indexer-program-execution-authorization-result.schema.json +60 -0
  253. package/providers/context/schemas/indexer-project-action-result.schema.json +19 -0
  254. package/providers/context/schemas/indexer-project-gate-input.schema.json +100 -0
  255. package/providers/context/schemas/indexer-project-observation-input.schema.json +16 -0
  256. package/providers/context/schemas/indexer-project-observation-result.schema.json +42 -0
  257. package/providers/context/schemas/indexer-provider-route-input.schema.json +55 -0
  258. package/providers/context/schemas/indexer-provider-route-report.schema.json +188 -0
  259. package/providers/context/schemas/indexer-requirement-confirmation-input.schema.json +27 -0
  260. package/providers/context/schemas/indexer-requirement-confirmation-output.schema.json +24 -0
  261. package/providers/context/schemas/indexer-result-reconciliation-input.schema.json +59 -0
  262. package/providers/context/schemas/indexer-result-reconciliation-output.schema.json +43 -0
  263. package/providers/context/schemas/indexer-selection-proposal-input.schema.json +12 -0
  264. package/providers/context/schemas/indexer-selection-proposal-validation.schema.json +23 -0
  265. package/providers/context/schemas/indexer-subject-reidentification-input.schema.json +37 -0
  266. package/providers/context/schemas/indexer-subject-reidentification-output.schema.json +31 -0
  267. package/providers/context/skills/configure-indexer-providers/SKILL.md +58 -0
  268. package/providers/context/skills/prepare-indexer-customization-project/SKILL.md +31 -0
  269. package/providers/context/skills/propose-indexer-customization/SKILL.md +40 -0
  270. package/providers/context/skills/revise-index-output/SKILL.md +12 -0
  271. package/providers/context/skills/run-indexer-agent-step/SKILL.md +20 -0
  272. package/providers/context/skills/run-indexer-lifecycle/SKILL.md +36 -0
  273. package/providers/context/skills/run-indexer-post-author-composer/SKILL.md +21 -0
  274. package/providers/context/actions/align-next.yaml +0 -6
  275. package/providers/context/actions/apply-code-index-guidance.yaml +0 -5
  276. package/providers/context/actions/apply-structure-confirmation.yaml +0 -5
  277. package/providers/context/actions/compile-next.yaml +0 -5
  278. package/providers/context/actions/configure-code-extraction.yaml +0 -5
  279. package/providers/context/actions/configure-prose-lifecycle.yaml +0 -5
  280. package/providers/context/actions/extract-next.yaml +0 -5
  281. package/providers/context/actions/inspect-code-extraction.yaml +0 -5
  282. package/providers/context/actions/inspect-document-classification.yaml +0 -5
  283. package/providers/context/actions/inspect-structure.yaml +0 -5
  284. package/providers/context/actions/migrate-codeindex.yaml +0 -5
  285. package/providers/context/actions/optimize-documents.yaml +0 -6
  286. package/providers/context/actions/preview-extraction-batch.yaml +0 -5
  287. package/providers/context/actions/revise-code-index-audit.yaml +0 -5
  288. package/providers/context/actions/submit-code-index-audit.yaml +0 -6
  289. package/providers/context/resources/dialogue/code-extraction.md +0 -87
  290. package/providers/context/resources/dialogue/document-classification.md +0 -33
  291. package/providers/context/resources/dialogue/structure-confirmation.md +0 -44
  292. package/providers/context/resources/dialogue/workflow-mode-after-capture.md +0 -25
  293. package/providers/context/resources/manuals/reference/code-extractors.md +0 -152
  294. package/providers/context/resources/procedures/code-extraction.md +0 -184
  295. package/providers/context/resources/procedures/code-index-audit.md +0 -83
  296. package/providers/context/resources/procedures/document-classification.md +0 -22
  297. package/providers/context/resources/procedures/document-optimization.md +0 -91
  298. package/providers/context/resources/procedures/prose-align.md +0 -68
  299. package/providers/context/resources/procedures/prose-compile.md +0 -23
  300. package/providers/context/resources/semantic/align/candidate-resolution.md +0 -106
  301. package/providers/context/resources/semantic/align/density-profile.md +0 -41
  302. package/providers/context/resources/semantic/align/gates.md +0 -276
  303. package/providers/context/resources/semantic/align/structure-planning.md +0 -337
  304. package/providers/context/resources/semantic/code-index/classification.md +0 -270
  305. package/providers/context/resources/semantic/compile/index.md +0 -31
  306. package/providers/context/resources/views/code-index-audit.yaml +0 -6
  307. package/providers/context/resources/views/extraction-preview.yaml +0 -6
  308. package/providers/context/resources/views/structure-current.yaml +0 -6
  309. package/providers/context/schemas/code-index-audit-decision.schema.json +0 -94
  310. package/providers/context/schemas/document-optimization-decisions.schema.json +0 -57
  311. package/providers/context/schemas/prose-structure-batch.schema.json +0 -35
@@ -74,137 +74,31 @@ nodes:
74
74
  - resources/views/verification-current.yaml
75
75
  recommended: [resources/diagnostics/verification.md]
76
76
 
77
- - id: resume-prose-lifecycle
78
- kind: action
79
- reasonCode: route.prose.configuration-required
80
- action: actions/configure-prose-lifecycle.yaml
81
- satisfiedBy:
82
- - path: resume.prose_declarations_complete
83
- equals: true
84
- resources:
85
- required:
86
- - resources/procedures/project-configuration.md
87
- - resources/procedures/document-classification.md
88
- - resources/views/structure-current.yaml
89
- - resources/manuals/reference/project-api.md
90
-
91
- - id: confirm-structure
92
- kind: gate
93
- reasonCode: route.structure.confirmation-required
94
- inspectionAction: actions/inspect-structure.yaml
95
- resolutionAction: actions/apply-structure-confirmation.yaml
96
- delegated:
97
- inspection: skip
98
- resources:
99
- required: []
100
- recommended: []
101
- gate:
102
- id: structure-confirmation
103
- prompt: Confirm the proposed knowledge structure before candidates are compiled.
104
- authority: context.structure-confirmation
105
- delegatable: true
106
- satisfiedBy:
107
- - path: resume.structure_confirmation_resolved
108
- equals: true
109
- resources:
110
- required:
111
- - resources/procedures/prose-align.md
112
- - resources/dialogue/human-gates.md
113
- - resources/dialogue/structure-confirmation.md
114
- - resources/views/structure-current.yaml
115
-
116
- - id: resume-align-next
117
- kind: action
118
- reasonCode: route.structure.pending-target
119
- action: actions/align-next.yaml
120
- satisfiedBy:
121
- - path: resume.structure_refresh_required
122
- exists: false
123
- resources:
124
- required:
125
- - resources/procedures/prose-align.md
126
- - resources/views/structure-current.yaml
127
- recommended:
128
- - resources/semantic/align/structure-planning.md
129
- - resources/semantic/align/gates.md
130
- - resources/semantic/align/density-profile.md
131
- - resources/semantic/align/candidate-resolution.md
132
-
133
- - id: apply-structure-confirmation
134
- kind: action
135
- reasonCode: route.structure.confirm
136
- action: actions/apply-structure-confirmation.yaml
137
- satisfiedBy:
138
- - path: resume.structure_confirmed
139
- equals: true
140
- resources:
141
- required:
142
- - resources/procedures/prose-align.md
143
- - resources/views/structure-current.yaml
144
-
145
- - id: compile-next
77
+ - id: close-approved-knowledge
146
78
  kind: action
147
- reasonCode: route.compile.pending-target
148
- action: actions/compile-next.yaml
79
+ reasonCode: route.close.projection-stale
80
+ action: actions/close-approved-knowledge.yaml
149
81
  satisfiedBy:
150
- - path: resume.compile_complete
82
+ - path: close.current
151
83
  equals: true
152
84
  resources:
153
85
  required:
154
- - resources/procedures/prose-compile.md
86
+ - resources/procedures/close-and-build.md
87
+ - resources/views/verification-current.yaml
155
88
  recommended:
156
- - resources/views/structure-current.yaml
157
- - resources/semantic/compile/index.md
89
+ - resources/diagnostics/projection-stale.md
158
90
 
159
- - id: resolve-review-identities
91
+ - id: revise-document
160
92
  kind: action
161
- reasonCode: route.review.identity-conflict
162
- action: actions/reconcile-review-identities.yaml
93
+ reasonCode: route.document-revision.requested
94
+ action: actions/revise-document.yaml
163
95
  satisfiedBy:
164
- - path: review.identity_conflicts_present
96
+ - path: document_optimization.revision_requested
165
97
  exists: false
166
98
  resources:
167
99
  required:
168
- - resources/procedures/knowledge-review.md
169
- - resources/views/review-current.yaml
170
-
171
- - id: resume-review-current-batch
172
- kind: gate
173
- reasonCode: route.review.decision-required
174
- inspectionAction: actions/inspect-review.yaml
175
- resolutionAction: actions/apply-forced-review.yaml
176
- delegated:
177
- inspection: skip
178
- resolutionAction: actions/apply-managed-review.yaml
179
- resources:
180
- required: []
181
- recommended: []
182
- gate:
183
- id: knowledge-review
184
- prompt: Review the complete current document candidate batch before it enters approved knowledge.
185
- authority: context.knowledge-review
186
- delegatable: true
187
- satisfiedBy:
188
- - path: resume.knowledge_review_resolved
189
- equals: true
190
- resources:
191
- required:
192
- - resources/procedures/knowledge-review.md
193
- - resources/dialogue/human-gates.md
194
- - resources/dialogue/knowledge-review.md
195
- - resources/views/review-current.yaml
196
-
197
- - id: apply-resumed-review
198
- kind: action
199
- reasonCode: route.review.apply-managed
200
- action: actions/apply-managed-review.yaml
201
- satisfiedBy:
202
- - path: resume.review_gate_clear
203
- equals: true
204
- resources:
205
- required:
206
- - resources/procedures/knowledge-review.md
207
- - resources/views/review-current.yaml
100
+ - resources/procedures/document-revision.md
101
+ - resources/views/document-optimization-current.yaml
208
102
 
209
103
  - id: choose-source-boundary
210
104
  kind: gate
@@ -300,276 +194,25 @@ nodes:
300
194
  - resources/procedures/source-capture-detailed.md
301
195
  - resources/manuals/guides/lark-resources.md
302
196
 
303
- - id: choose-extraction-scope
304
- kind: gate
305
- reasonCode: route.extract.scope-required
306
- inspectionAction: actions/inspect-code-extraction.yaml
307
- delegated:
308
- resources:
309
- required:
310
- - resources/procedures/code-extraction.md
311
- - resources/dialogue/code-extraction.md
312
- - resources/semantic/code-index/classification.md
313
- - resources/views/source-current.yaml
314
- recommended:
315
- - resources/procedures/source-capture-detailed.md
316
- gate:
317
- id: extraction-scope
318
- prompt: Confirm which registered code modules and symbol boundaries should enter code knowledge.
319
- authority: context.extraction-scope
320
- delegatable: true
321
- satisfiedBy:
322
- - path: gates.extraction_scope_resolved
323
- equals: true
324
- resources:
325
- required:
326
- - resources/procedures/code-extraction.md
327
- - resources/dialogue/human-gates.md
328
- - resources/dialogue/code-extraction.md
329
- - resources/semantic/code-index/classification.md
330
- - resources/dialogue/workflow-mode-after-capture.md
331
- - resources/views/source-current.yaml
332
- recommended:
333
- - resources/procedures/source-capture-detailed.md
334
-
335
- - id: configure-code-extraction
336
- kind: action
337
- reasonCode: route.extract.configuration-required
338
- action: actions/configure-code-extraction.yaml
339
- satisfiedBy:
340
- - path: extract.declarations_complete
341
- equals: true
342
- - path: extract.plans_complete
343
- equals: true
344
- resources:
345
- required:
346
- - resources/procedures/project-configuration.md
347
- - resources/procedures/code-extraction.md
348
- - resources/semantic/code-index/classification.md
349
- - resources/views/source-current.yaml
350
- - resources/manuals/reference/code-extractors.md
351
- recommended:
352
- - resources/semantic/code-index/templates/web-application.md
353
- - resources/semantic/code-index/templates/api-service.md
354
- - resources/semantic/code-index/templates/domain-service.md
355
- - resources/semantic/code-index/templates/background-runtime.md
356
- - resources/semantic/code-index/templates/sdk-library.md
357
- - resources/semantic/code-index/templates/cli-tool.md
358
- - resources/semantic/code-index/templates/adapter.md
359
- - resources/semantic/code-index/templates/monorepo-container.md
360
- - resources/semantic/code-index/templates/contract-source.md
361
- - resources/semantic/code-index/templates/derived-source.md
362
- - resources/semantic/code-index/templates/protocol-boundary.md
363
- - resources/semantic/code-index/templates/event-flow.md
364
- - resources/semantic/code-index/templates/persistence-boundary.md
365
- - resources/semantic/code-index/templates/plugin-extension.md
366
- - resources/semantic/code-index/templates/cross-module-chain.md
367
-
368
- - id: resolve-extraction-capability
369
- kind: gate
370
- reasonCode: route.extract.capability-required
371
- resolutionAction: actions/configure-code-extraction.yaml
372
- gate:
373
- id: extraction-capability
374
- prompt: Revise the batch index plan or provide the missing material required for reliable code knowledge.
375
- authority: context.extraction-capability
376
- delegatable: false
377
- satisfiedBy:
378
- - path: extract.capability_clear
379
- equals: true
380
- resources:
381
- required:
382
- - resources/procedures/code-extraction.md
383
- - resources/views/source-current.yaml
384
- recommended:
385
- - resources/manuals/reference/code-extractors.md
386
-
387
- - id: migrate-codeindex
388
- kind: action
389
- reasonCode: route.extract.codeindex-migration-required
390
- action: actions/migrate-codeindex.yaml
391
- satisfiedBy:
392
- - path: extract.migration_required
393
- equals: false
394
- resources:
395
- required:
396
- - resources/procedures/code-extraction.md
397
-
398
- - id: preview-extraction-batch
399
- kind: action
400
- reasonCode: route.extract.preview-required
401
- action: actions/preview-extraction-batch.yaml
402
- satisfiedBy:
403
- - path: extract.preview_current
404
- equals: true
405
- resources:
406
- required:
407
- - resources/procedures/code-extraction.md
408
- - resources/views/source-current.yaml
409
-
410
- - id: repair-extraction-ownership
411
- kind: action
412
- reasonCode: route.extract.ownership-required
413
- action: actions/configure-code-extraction.yaml
414
- satisfiedBy:
415
- - path: extract.ownership_clear
416
- equals: true
417
- resources:
418
- required:
419
- - resources/procedures/project-configuration.md
420
- - resources/procedures/code-extraction.md
421
- - resources/views/extraction-preview.yaml
422
- - resources/manuals/reference/code-extractors.md
423
-
424
- - id: revise-extraction-scale
425
- kind: gate
426
- reasonCode: route.extract.scale-limit-exceeded
427
- resolutionAction: actions/configure-code-extraction.yaml
428
- gate:
429
- id: extraction-scale
430
- prompt: Revise the affected index units before formal extraction writes candidates.
431
- authority: context.extraction-scale
432
- delegatable: false
433
- satisfiedBy:
434
- - path: extract.scale_clear
435
- equals: true
436
- resources:
437
- required:
438
- - resources/procedures/code-extraction.md
439
- - resources/views/extraction-preview.yaml
440
- recommended:
441
- - resources/manuals/reference/code-extractors.md
442
-
443
- - id: extract-next
444
- kind: action
445
- reasonCode: route.extract.pending-target
446
- action: actions/extract-next.yaml
447
- satisfiedBy:
448
- - path: extract.complete
449
- equals: true
450
- resources:
451
- required:
452
- - resources/procedures/code-extraction.md
453
- - resources/views/source-boundary.yaml
454
-
455
- - id: resolve-code-index-audit-input
456
- kind: gate
457
- reasonCode: route.extract.audit-input-required
458
- resolutionAction: actions/submit-code-index-audit.yaml
459
- gate:
460
- id: code-index-audit-input
461
- prompt: Provide the specific missing source or protocol material required to complete the code-index audit.
462
- delegatable: false
463
- satisfiedBy:
464
- - path: extract.audit_input_required
465
- equals: false
466
- resources:
467
- required:
468
- - resources/procedures/code-index-audit.md
469
- - resources/dialogue/human-gates.md
470
- - resources/views/code-index-audit.yaml
471
-
472
- - id: resolve-code-index-audit-guidance
473
- kind: gate
474
- reasonCode: route.extract.audit-guidance-required
475
- resolutionAction: actions/apply-code-index-guidance.yaml
476
- gate:
477
- id: code-index-audit-guidance
478
- prompt: Review the aggregated three-round code-index quality report and provide one scope, profile, source-material, or indexing direction for the failed modules.
479
- delegatable: false
480
- satisfiedBy:
481
- - path: extract.audit_guidance_required
482
- equals: false
483
- resources:
484
- required:
485
- - resources/procedures/code-index-audit.md
486
- - resources/dialogue/human-gates.md
487
- - resources/views/code-index-audit.yaml
488
-
489
- - id: revise-code-index-audit
490
- kind: action
491
- reasonCode: route.extract.audit-revision-required
492
- action: actions/revise-code-index-audit.yaml
493
- satisfiedBy:
494
- - path: extract.audit_revision_required
495
- equals: false
496
- resources:
497
- required:
498
- - resources/procedures/code-index-audit.md
499
- - resources/semantic/code-index/classification.md
500
- - resources/views/code-index-audit.yaml
501
- recommended:
502
- - resources/manuals/reference/code-extractors.md
503
-
504
- - id: audit-code-index
197
+ - id: run-indexer-lifecycle
505
198
  kind: action
506
- reasonCode: route.extract.audit-required
507
- action: actions/submit-code-index-audit.yaml
199
+ reasonCode: route.indexer.lifecycle-required
200
+ action: actions/run-indexer-lifecycle.yaml
508
201
  satisfiedBy:
509
- - path: extract.audit_resolved
202
+ - path: indexer.lifecycle_current
510
203
  equals: true
511
- resources:
512
- required:
513
- - resources/procedures/code-index-audit.md
514
- - resources/semantic/code-index/classification.md
515
- - resources/views/code-index-audit.yaml
516
204
 
517
- - id: classify-document
518
- kind: gate
519
- reasonCode: route.document.classification-required
520
- inspectionAction: actions/inspect-document-classification.yaml
521
- delegated:
522
- resources:
523
- required:
524
- - resources/procedures/document-classification.md
525
- - resources/dialogue/document-classification.md
526
- - resources/views/source-current.yaml
527
- gate:
528
- id: document-classification
529
- prompt: Confirm the evidence-backed knowledge collection for the next captured document.
530
- authority: context.document-classification
531
- delegatable: true
532
- satisfiedBy:
533
- - path: gates.document_classification_resolved
534
- equals: true
535
- resources:
536
- required:
537
- - resources/procedures/document-classification.md
538
- - resources/dialogue/human-gates.md
539
- - resources/dialogue/document-classification.md
540
- - resources/dialogue/workflow-mode-after-capture.md
541
- - resources/views/source-current.yaml
542
-
543
- - id: configure-prose-lifecycle
544
- kind: action
545
- reasonCode: route.prose.configuration-required
546
- action: actions/configure-prose-lifecycle.yaml
547
- satisfiedBy:
548
- - path: prose.declarations_complete
549
- equals: true
550
- resources:
551
- required:
552
- - resources/procedures/project-configuration.md
553
- - resources/procedures/document-classification.md
554
- - resources/views/structure-current.yaml
555
- - resources/manuals/reference/project-api.md
556
-
557
- - id: align-next
205
+ - id: resolve-review-identities
558
206
  kind: action
559
- reasonCode: route.structure.pending-target
560
- action: actions/align-next.yaml
207
+ reasonCode: route.review.identity-conflict
208
+ action: actions/reconcile-review-identities.yaml
561
209
  satisfiedBy:
562
- - path: align.prepared
563
- equals: true
210
+ - path: review.identity_conflicts_present
211
+ exists: false
564
212
  resources:
565
213
  required:
566
- - resources/procedures/prose-align.md
567
- - resources/views/structure-current.yaml
568
- recommended:
569
- - resources/semantic/align/structure-planning.md
570
- - resources/semantic/align/gates.md
571
- - resources/semantic/align/density-profile.md
572
- - resources/semantic/align/candidate-resolution.md
214
+ - resources/procedures/knowledge-review.md
215
+ - resources/views/review-current.yaml
573
216
 
574
217
  - id: review-current-batch
575
218
  kind: gate
@@ -609,20 +252,6 @@ nodes:
609
252
  - resources/procedures/knowledge-review.md
610
253
  - resources/views/review-current.yaml
611
254
 
612
- - id: close-approved-knowledge
613
- kind: action
614
- reasonCode: route.close.projection-stale
615
- action: actions/close-approved-knowledge.yaml
616
- satisfiedBy:
617
- - path: close.current
618
- equals: true
619
- resources:
620
- required:
621
- - resources/procedures/close-and-build.md
622
- - resources/views/verification-current.yaml
623
- recommended:
624
- - resources/diagnostics/projection-stale.md
625
-
626
255
  - id: choose-package-output
627
256
  kind: gate
628
257
  reasonCode: route.package.output-required
@@ -663,18 +292,6 @@ nodes:
663
292
  - resources/manuals/reference/package-templates.md
664
293
  - resources/manuals/reference/template-variables.md
665
294
 
666
- - id: build-next
667
- kind: action
668
- reasonCode: route.build.package-stale
669
- action: actions/build-next.yaml
670
- satisfiedBy:
671
- - path: packages.current
672
- equals: true
673
- resources:
674
- required:
675
- - resources/procedures/close-and-build.md
676
- - resources/views/package-current.yaml
677
-
678
295
  - id: review-package-template
679
296
  kind: gate
680
297
  reasonCode: route.package.template-review-required
@@ -698,29 +315,17 @@ nodes:
698
315
  - resources/views/package-current.yaml
699
316
  - resources/manuals/reference/package-templates.md
700
317
 
701
- - id: optimize-documents
318
+ - id: build-next
702
319
  kind: action
703
- reasonCode: route.document-optimization.pending
704
- action: actions/optimize-documents.yaml
320
+ reasonCode: route.build.package-stale
321
+ action: actions/build-next.yaml
705
322
  satisfiedBy:
706
- - path: document_optimization.current
323
+ - path: packages.current
707
324
  equals: true
708
325
  resources:
709
326
  required:
710
- - resources/procedures/document-optimization.md
711
- - resources/views/document-optimization-current.yaml
712
-
713
- - id: revise-document
714
- kind: action
715
- reasonCode: route.document-revision.requested
716
- action: actions/revise-document.yaml
717
- satisfiedBy:
718
- - path: document_optimization.revision_requested
719
- exists: false
720
- resources:
721
- required:
722
- - resources/procedures/document-revision.md
723
- - resources/views/document-optimization-current.yaml
327
+ - resources/procedures/close-and-build.md
328
+ - resources/views/package-current.yaml
724
329
 
725
330
  - id: flush-logs-after-build
726
331
  kind: action
@@ -742,42 +347,20 @@ edges:
742
347
  - { from: repair-workspace-state, to: repair-verification }
743
348
  - { from: repair-verification, to: choose-evidence-maintenance }
744
349
  - { from: choose-evidence-maintenance, to: maintain-evidence, kind: gatedBy }
745
- - { from: maintain-evidence, to: close-approved-knowledge }
746
- - { from: close-approved-knowledge, to: resume-prose-lifecycle }
747
- - { from: resume-prose-lifecycle, to: resume-align-next }
748
- - { from: resume-align-next, to: confirm-structure }
749
- - { from: confirm-structure, to: apply-structure-confirmation, kind: gatedBy }
750
- - { from: apply-structure-confirmation, to: compile-next }
751
- - { from: compile-next, to: resolve-review-identities }
752
- - { from: resolve-review-identities, to: resume-review-current-batch }
753
- - { from: resume-review-current-batch, to: apply-resumed-review, kind: gatedBy }
754
- - { from: apply-resumed-review, to: revise-document }
350
+ - { from: maintain-evidence, to: revise-document }
755
351
  - { from: revise-document, to: choose-source-boundary }
756
352
  - { from: choose-source-boundary, to: ensure-repository-sources, kind: gatedBy }
757
353
  - { from: ensure-repository-sources, to: configure-document-capture }
758
354
  - { from: configure-document-capture, to: authorize-document-capture }
759
355
  - { from: authorize-document-capture, to: capture-next, kind: gatedBy }
760
- - { from: capture-next, to: choose-extraction-scope }
761
- - { from: choose-extraction-scope, to: configure-code-extraction, kind: gatedBy }
762
- - { from: configure-code-extraction, to: migrate-codeindex }
763
- - { from: migrate-codeindex, to: resolve-extraction-capability }
764
- - { from: resolve-extraction-capability, to: preview-extraction-batch }
765
- - { from: preview-extraction-batch, to: repair-extraction-ownership }
766
- - { from: repair-extraction-ownership, to: revise-extraction-scale }
767
- - { from: revise-extraction-scale, to: extract-next }
768
- - { from: extract-next, to: resolve-code-index-audit-input }
769
- - { from: resolve-code-index-audit-input, to: resolve-code-index-audit-guidance, kind: gatedBy }
770
- - { from: resolve-code-index-audit-guidance, to: revise-code-index-audit, kind: gatedBy }
771
- - { from: revise-code-index-audit, to: audit-code-index }
772
- - { from: audit-code-index, to: review-current-batch }
356
+ - { from: capture-next, to: run-indexer-lifecycle }
357
+ - { from: run-indexer-lifecycle, to: resolve-review-identities }
358
+ - { from: resolve-review-identities, to: review-current-batch }
773
359
  - { from: review-current-batch, to: apply-managed-review, kind: gatedBy }
774
- - { from: apply-managed-review, to: classify-document }
775
- - { from: classify-document, to: configure-prose-lifecycle, kind: gatedBy }
776
- - { from: configure-prose-lifecycle, to: align-next }
777
- - { from: align-next, to: choose-package-output }
360
+ - { from: apply-managed-review, to: close-approved-knowledge }
361
+ - { from: close-approved-knowledge, to: choose-package-output }
778
362
  - { from: choose-package-output, to: configure-package-output, kind: gatedBy }
779
363
  - { from: configure-package-output, to: review-package-template }
780
- - { from: review-package-template, to: optimize-documents, kind: gatedBy }
781
- - { from: optimize-documents, to: build-next }
364
+ - { from: review-package-template, to: build-next, kind: gatedBy }
782
365
  - { from: build-next, to: flush-logs-after-build }
783
366
  - { from: flush-logs-after-build, to: current-scope-complete }