@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
@@ -1,106 +0,0 @@
1
- ---
2
- id: context.semantic.align.candidate-resolution
3
- kind: procedure
4
- media-type: text/markdown
5
- applies-to:
6
- - duplicate
7
- - conflict
8
- - stable_id
9
- - path
10
- - unresolved
11
- ---
12
-
13
- # Candidate Resolution Rules
14
- <!-- Context workflow semantic resource. -->
15
-
16
- Use these rules after reading the current align evidence views and before
17
- authoring `context.structure.v1`. They define how current anomaly diagnostics
18
- map to supported structure outcomes.
19
-
20
- ## Anomaly Signals
21
-
22
- Anomaly diagnostics are mechanical warnings. Do not ignore them and do not treat
23
- them as recommendations.
24
-
25
- For each anomaly, choose one current outcome and record the reasoning in the
26
- structure payload or user-facing explanation:
27
-
28
- | Outcome | Use When |
29
- |---|---|
30
- | Accept the correction | The anomaly points to a real structure fix. Apply a concrete node, section, edge, or ownership correction supported by source refs. |
31
- | Dismiss with rationale | The warning is mechanically true but semantically harmless. Keep the structure and state why in the confirmation summary. |
32
- | Keep unresolved | The warning changes structure but source evidence is insufficient. Add an `unresolved[]` item instead of guessing. |
33
-
34
- Known anomaly kinds:
35
-
36
- | Kind | Meaning | Required handling |
37
- |---|---|---|
38
- | Missing evidence | A proposed node, section, or edge has no source-backed evidence. | Add source refs, remove it, or keep the issue unresolved. |
39
- | Structure churn | A node was renamed, split, merged, replaced, or rejected during investigation. | Confirm the final id/title/target with the user or keep the ambiguity unresolved. |
40
- | Duplicate evidence | The same source ref appears more than once for the same semantic role. | Deduplicate it or explain why the repeated ref supports different roles. |
41
- | Broad review needed | The CLI collapsed many anomalies or reports aggregate risk. | Review the affected structure broadly; do not finalize solely from ordering. |
42
-
43
- ## Stable References
44
-
45
- Use stable `node_ref`, `view_ref`, and `section_ref` values from the current
46
- `context.structure.v1` payload for in-payload references. A NodeRef should be
47
- safe, lower-case, and path-shaped, such as `entity/rspack` or
48
- `domain/build-tooling`. `slug` is the required stable filename choice for a
49
- View. `path` is derived from collection, optional containment, and slug; omit
50
- it or use the exact CLI-derived value. Do not invent alternate reference
51
- aliases.
52
-
53
- When an edge or section points at knowledge:
54
-
55
- - use the schema ref that matches the target layer:
56
- `node_ref` for a conceptual Node, `view_ref` for a collection view, and
57
- `section_ref` for a planned section;
58
- - ensure the target NodeRef, ViewRef, or SectionRef exists in the current
59
- structure or approved knowledge;
60
- - keep relation hints unresolved when the target does not exist;
61
- - follow CLI diagnostics if a ref is unknown or stale.
62
-
63
- Do not create alternate alias fields or non-schema candidate ledger fields.
64
- They are not part of the current structure contract.
65
-
66
- ## Visible Labels And Audit Rationale
67
-
68
- Humans need to understand merge, reject, rename, and replacement choices
69
- without decoding temporary ids. Keep that discipline in the current structure
70
- flow through current fields:
71
-
72
- - use `title` and `summary` to name the final node in user-facing language;
73
- - explain renamed/split/merged candidates in the confirmation summary, not by
74
- adding non-schema label fields;
75
- - when a relation or rename cannot be settled from evidence, put the visible
76
- title/target clue in `unresolved[]`;
77
- - when asking the user, phrase the choice with business labels ("Rspack build
78
- tool page" vs "Webpack page"), not with source refs or internal section ids.
79
-
80
- NodeRef is the stable conceptual identity. ViewRef is the collection-specific
81
- view identity and is the durable approved-page identity. SectionRef is the
82
- stable planned-section identity under a ViewRef. Package paths are derived from
83
- the approved ViewRef plus containment/slug; do not treat paths as an alternate
84
- identity contract. Visible labels help humans review the choice, but they do
85
- not authorize a different NodeRef, ViewRef, edge, or section ownership without
86
- source-backed evidence and user confirmation.
87
-
88
- ## Duplicate And Conflict Handling
89
-
90
- - Exact duplicate structure -> keep one node/section/edge and explain the
91
- duplicate in the confirmation summary.
92
- - Same topic but different evidence boundary -> keep separate sections only
93
- when each section has a distinct source-backed role.
94
- - Conflicting facts -> ask the user or keep an `unresolved[]` item. Do not
95
- pick a winner from title order or source order.
96
- - Replacement or rename -> ask the user when it changes NodeRef, ViewRef,
97
- containment, slug, or the derived approved path. These are durable user-facing
98
- identities, not disposable labels.
99
-
100
- ## Self-verify
101
-
102
- - [ ] Every accepted node, section, and edge has source-backed support.
103
- - [ ] Every unresolved relation or conflict is explicit in `unresolved[]`.
104
- - [ ] No non-schema candidate ledger fields or alias fields appear in the payload.
105
- - [ ] NodeRef, ViewRef, and SectionRef values, not temporary labels or paths,
106
- are used for current references.
@@ -1,41 +0,0 @@
1
- ---
2
- id: context.semantic.align.density-profile
3
- kind: procedure
4
- media-type: text/markdown
5
- applies-to:
6
- - coverage
7
- - reading_density
8
- - structure
9
- ---
10
-
11
- # Evidence Density Selection
12
- <!-- Context workflow semantic resource. -->
13
-
14
- Use density as a private reading and section-planning strategy. It is not a
15
- separate payload, not a quality score, and not a workflow stage. Persist only
16
- current `context.structure.v1` fields such as `nodes[]`, `sections[]`,
17
- `source_refs[]`, `edges[]`, and `unresolved[]`.
18
-
19
- Apply this reference when a captured source is long, dense, fragmented, or hard
20
- to split into stable planned sections. Use the current CLI evidence views
21
- (`read-plan`, `source-index`, `span-detail`, `span-text`) to inspect material;
22
- do not invent a separate coarse-read artifact.
23
-
24
- | Profile | Use When | Agent Behavior |
25
- |---|---|---|
26
- | `macro` | A long source has many headings, sections, or broad topic shifts. | Create section proposals around major headings and preserve document-level anchors so later passes do not flatten scope. |
27
- | `meso` | Default for normal product, design, or operational documents with several related sections. | Produce section proposals for meaningful local units and preserve evidence anchors. |
28
- | `micro` | The source is fragmented, note-like, or dense with short independent claims. | Keep section proposals narrow and avoid bundling unrelated blocks into one candidate. |
29
- | `single_pass` | The source is short enough that one read can safely discover all relevant structure. | Keep anchors minimal and avoid over-segmentation, but still validate the resulting structure. |
30
-
31
- Treat Markdown heading changes as section-planning hints, not hard boundaries.
32
- Sibling sub-headings under a shared parent can remain in one planned section
33
- when they form one coherent semantic topic for that parent. Headings with no
34
- shared parent should usually split unless you intentionally want one section to
35
- span them. When a dense source has many headings, split by heading first, then
36
- merge adjacent or sibling groups only when the merged section is still one
37
- coherent fact group.
38
-
39
- Do not let density alone choose `node_type`, `tags`, `section.kind`, or body
40
- content. Action/domain gates are decided from source evidence and the current
41
- schema, not from density metadata.
@@ -1,276 +0,0 @@
1
- ---
2
- id: context.semantic.align.align-gates
3
- kind: procedure
4
- media-type: text/markdown
5
- applies-to:
6
- - node_type
7
- - domain
8
- - action
9
- - edges
10
- - tags
11
- ---
12
-
13
- # Node Classification Gates
14
- <!-- Context workflow semantic resource. -->
15
-
16
- Use these gates before every structure draft and before authoring the align
17
- payload described by the current schema view.
18
- Align owns Node type, tag, graph, planned Section, and ownership classification. It does **not** write Section prose.
19
-
20
- Current schema mapping:
21
-
22
- - Treat the action checklist, domain checklist, and inference tables as private
23
- working notes unless the current schema view explicitly exposes matching
24
- fields.
25
- - In `context.structure.v1`, persist the outcome through `node_type`, `tags`,
26
- `summary`, `ownership`, `sections[].source_refs`, `edges[]`, and
27
- `unresolved[]`.
28
- - Do not add unknown gate fields to the payload just because this procedure uses
29
- them for reasoning.
30
-
31
- ## Node Type Order
32
-
33
- Answer in this order and stop at the first match:
34
-
35
- 1. **Action?** A large executable event / process with both:
36
- - scale: can support `planned_sections` with at least two distinct Section kinds, or contains at least one child Action;
37
- - process evidence: explicit steps, phases, trigger -> handling -> result, role collaboration, or repeatable plan. Parallel lists such as "three API modes" are not process evidence.
38
- Single-section user-story / scenario / incident records may be meaningful to
39
- a human reader, but the CLI does not infer that exception from source prose.
40
- If the structure cannot express at least two distinct Section kinds or a
41
- child Action, keep the material as a Section under the owning Node.
42
- 2. **Entity?** A concrete independent subject with retrieval value: deployable code, product/application/system, library/module/CLI/symbol, or an atomic term/pattern.
43
- 3. **Domain?** A container/scope that groups at least one child Node.
44
- 4. Otherwise do not create a Node; leave the material for compile as a Section under the owning Node.
45
-
46
- Good examples:
47
-
48
- | Type | Examples |
49
- |---|---|
50
- | `domain` | "X business domain", "Y technical area", "Z research topic" |
51
- | `entity` concrete | `@acme/api-server`, `@acme/ui-kit` `Button`, "X sub-application" |
52
- | `entity` term | "X identifier", "Y business metric", idempotency |
53
- | `action` | "user submits X request end-to-end flow", "operator executes Y change flow", "team Z release flow" |
54
-
55
- ## Title and Source Heading Rules
56
-
57
- Classify the Node by the evidence referent, not by the source file title, heading, or local section title. A source title is ordinary evidence just like body prose. It has no automatic right to become `node.title`, `aliases[]`, or `slug`.
58
-
59
- After choosing `node_type`, choose the title to fit that type:
60
-
61
- | Final type | Title shape |
62
- |---|---|
63
- | `entity` concrete | The concrete product, service, library, module, CLI, symbol, application, or system name. |
64
- | `entity` term | The atomic concept or pattern name, without extra scope/process suffixes. |
65
- | `domain` | The grouping scope that owns child Nodes. |
66
- | `action` | The executable process / runbook / flow name that passed the Action Gate. |
67
-
68
- Scope/process words in a source title are warning signals when proposed as an Entity title, not hard classification rules. Re-check the type/title when a proposed Entity title contains words such as "方案", "架构", "体系", "演练", "流程", "策略", "能力", "机制", "framework", "architecture", "system", "strategy", "process", or "drill". Keep the wording only when evidence shows it is the formal name of a concrete object or an atomic term.
69
-
70
- Do not promote broad architecture/system/方案 content to `domain` just because it sounds like a scope. When the source has writable Sections but no resolvable current/existing child Nodes, use an Entity such as `[system]` or `[application]` and put the architecture facts in Sections. Use `domain` only when it groups child Nodes through supported `edges[]`.
71
-
72
- Relation-only sources should not force title copying or dangling graph edges. Decide placeholder handling in this order:
73
-
74
- 1. If resolved current/existing child Nodes make the page a real grouping scope, keep the relation evidence as supported `edges[]` only when the Domain also has at least one source-backed planned Section.
75
- 2. If an explicit user-facing retrieval need or graph need makes the source/page identity valuable, and the title names an atomic concept or concrete object, keep that identity in `unresolved[]` until it has source-backed section evidence, a valid generated `parent_index` view with source-backed `contains` edges to child views, or a compile-time `skip` decision. Do not submit root-level `planned_sections: []` or ordinary source-bound `sections: []`.
76
- 3. Otherwise, skip navigation-only / placeholder-only material; keep a short
77
- `unresolved[]` note only when the deferred relation remains useful.
78
-
79
- Do not create a hidden domain-gate object. A kept placeholder needs support:
80
- source refs, approved graph support, or explicit user-confirmed retrieval value.
81
- For Domain placeholders, write only resolved current/existing children as typed
82
- `edges[]`; if all children are unresolved/deferred relation clues, keep those
83
- target hints in `unresolved[]`. If the source names only an atomic concept and
84
- that term is useful on its own, prefer a concise term Entity title without
85
- scope/process suffixes.
86
-
87
- For no-write placeholder summaries, describe only the preserved page identity and unresolved navigation clues. Do not say the Node "provides navigation/links/relations to X" unless those targets are resolved graph children or rendered links; say the source contains deferred navigation clues instead.
88
-
89
- ## Section Promotion Gate
90
-
91
- Classify local evidence as a Section before creating a child Node/View. A
92
- heading, table row, FAQ label, or short sub-topic does not by itself establish a
93
- standalone page.
94
-
95
- Promote a Section to a child View only when at least one condition is supported
96
- by source evidence:
97
-
98
- 1. The title is a concrete product/code object/system/module/library, not just a
99
- local heading.
100
- 2. The item is an atomic term or pattern that answers standalone lookup
101
- questions outside the parent page.
102
- 3. The item clears the Action Gate or Domain Gate.
103
- 4. The source gives it independent article identity: owner/date, lifecycle,
104
- timeline, tracking record, or cross-cutting support scope.
105
-
106
- Use one content-neutral test for every proposed child View: does cited evidence
107
- support an independent subject identity, enough context to stand alone, and a
108
- separate retrieval need? A heading, section kind, collection name, or contains
109
- edge is not sufficient by itself. The CLI warns when many same-source,
110
- single-section child Entities look mechanically fragmented, but it does not
111
- reject a page merely because of its content type.
112
-
113
- ## Entity Tag Rules
114
-
115
- Use `tags` to state what the Entity is. Legal combinations:
116
-
117
- | Case | Tags |
118
- |---|---|
119
- | Runtime/code object | one A tag: `app`, `service`, `lib`, `cli`, `module`, or `symbol` |
120
- | Product-analysis object | one B tag: `application` or `system` |
121
- | Code + product object | one A tag plus one B tag |
122
- | Pure term / pattern | only `term` |
123
-
124
- `term` is mutually exclusive with A/B tags. React is `[lib]`, not `[lib, term]`; if a separate term entry is useful, create another Entity tagged `[term]` and let the structure plan express the relation as a typed edge or unresolved relation with `source_refs[]`.
125
-
126
- Do not inherit scope tags mechanically. If a parent Entity is tagged `system` or
127
- `application`, a child Entity should repeat that tag only when it is itself an
128
- independent system/application. Local aspects under that parent should either
129
- use their own shape tag or remain Sections.
130
-
131
- ## Action Gate
132
-
133
- Use `node_type: action` only after the Node Type Order says action. Fill the
134
- action reasoning checklist in your working notes; persist only fields accepted by
135
- the current structure schema.
136
-
137
- The action probe uses five booleans as a reasoning checklist, but the semantic
138
- bar is:
139
-
140
- | Field | Meaning | Evidence rule |
141
- |---|---|---|
142
- | `has_steps_or_phases` | Process evidence exists: steps, phases, trigger -> handling -> result, role collaboration, or repeatable plan. | Hard requirement; support it from span evidence. |
143
- | `has_actor_or_role` | A user, system, operator, service, or role performs the work. | May be inferred; record the source. |
144
- | `has_outcome_or_goal` | The process has a target result, acceptance condition, or operational goal. | May be inferred; record the source. |
145
- | `is_repeatable_or_planned` | The work is repeatable, scheduled, policy-like, or intentionally planned. | May be inferred; record the source. |
146
- | `queries_answerable_with_refs` | The Node can answer how/when/who/what-to-do questions from cited spans. | May be inferred; record the source. |
147
-
148
- Do not emit an Action for a single sentence, a one-off conclusion, a short operation, or a parallel enumeration. Those become Sections under the owning Entity or Domain. The CLI does not infer single-Section Action exceptions from source prose; represent the material with enough structure or keep it as a Section.
149
-
150
- Action anti-examples:
151
-
152
- | Candidate | Correct routing |
153
- |---|---|
154
- | "migrate to X tool" as one conclusion | `decision` Section under the owning Entity |
155
- | "component X usage" as one sentence | `description` + maybe `example` under X |
156
- | "submit -> validate -> generate" as one unexpanded sentence | `spec` Section under X/Y |
157
- | "three API call modes" | `comparison`, `spec`, or `description` Section; not Action |
158
-
159
- ## Fake Entity Gate
160
-
161
- A relationship-style title is only suspicious by itself. Downgrade or change type when at least **two** signals are true:
162
-
163
- 1. Title contains relationship language such as "X impact on Y", "Y under X", "Y side of X", "X migration", or "X collection".
164
- 2. No legal Entity tag fits.
165
- 3. The Node does not stand alone away from its upstream Node.
166
-
167
- Repairs:
168
-
169
- | Pattern | Repair |
170
- |---|---|
171
- | "X impact on Y" | Section under X plus a typed edge or unresolved relation to Y when the evidence supports it |
172
- | "Y under X condition" | Section under Y; X is a condition in the Section body |
173
- | "X subsystem migration" | Action only if it clears the Action Gate; otherwise `decision` Section under X |
174
- | "X error collection" / "X FAQ collection" | `faq` / `incident` Sections under X |
175
-
176
- ## Domain Gate
177
-
178
- Use `node_type: domain` only for a scope that groups child Nodes. Keep this
179
- domain reasoning checklist in working notes and persist supported relations through current
180
- `edges[]` or `unresolved[]`:
181
-
182
- | Field | Meaning |
183
- |---|---|
184
- | `scope_refs[]` | Source refs that describe the scope boundary or grouping. |
185
- | `child_refs[]` | Working-note candidate ids, local refs, or final slugs for children in the scope; persist valid ones as `edges[]`. |
186
- | `grouping_reason` | Why these children belong together under this domain. |
187
-
188
- If a domain has no resolvable child refs, no clear grouping reason, or only one same-file child without a broader scope, do not emit a Domain. For navigation-only / placeholder-only sources with only deferred children, skip the Node after ruling out standalone retrieval or graph value for an atomic-term or concrete Entity; keep only useful unresolved relation notes. Emit an Entity only when evidence names an atomic term or concrete object and choose its Entity tag yourself. The CLI rejects invalid Domain gates; it does not auto-downgrade a Domain or choose fallback tags.
189
-
190
- Scope-name titles such as "X 业务域", "Y 领域", "business domain", or "technical area" are a warning sign when proposed as Entity. Keep them as Entity only when the subject is an atomic term or concrete object; otherwise use Domain with supported child edges or unresolved relation hints.
191
-
192
- ## Edge Gate
193
-
194
- Use a typed edge only when all four checks pass:
195
-
196
- 1. Both `from` and `to` nodes exist in the current structure or approved
197
- knowledge.
198
- 2. The relation type is in the current closed set (`is_a`, `contains`,
199
- `depends_on`, `corresponds_to`, `causes`, `triggers`, `prerequisite`,
200
- `applies_to`, `verified_by`, `supersedes`).
201
- 3. `source_refs[]` cite evidence for the relation itself, not just for one
202
- endpoint.
203
- 4. The relation is stronger than a vague "related" hint.
204
-
205
- If any check fails, write an `unresolved[]` item instead of an edge.
206
-
207
- If the source sentence states the relation with uncertainty, keep the edge only
208
- when the uncertainty is source-authored and preserved through
209
- `confidence: possible` or `confidence: hypothesis`. Do not use `confidence` for
210
- Agent uncertainty. If you are uncertain whether the evidence supports the
211
- relation, write `unresolved[]` instead.
212
-
213
- ## Inference Sources
214
-
215
- Inference sources are working notes for the action reasoning checklist; do not
216
- persist this object unless the current schema explicitly exposes it:
217
-
218
- ```yaml
219
- inference_sources:
220
- actor:
221
- source_type: explicit-span
222
- source_refs: ["file:docs/runbook.md#span:steps L10-18@<span-hash>"]
223
- rationale: "The span names the operator role."
224
- outcome_or_goal:
225
- source_type: inferred-from-span
226
- source_refs: ["file:docs/runbook.md#span:steps L10-18@<span-hash>"]
227
- rationale: "The span describes recovery as the expected result."
228
- repeatability_or_plan:
229
- source_type: heading-and-span
230
- source_refs: ["file:docs/runbook.md#span:steps L10-18@<span-hash>"]
231
- rationale: "The runbook heading and ordered list indicate planned reuse."
232
- answerability:
233
- source_type: explicit-span
234
- source_refs: ["file:docs/runbook.md#span:steps L10-18@<span-hash>"]
235
- rationale: "The steps answer how the operation is performed."
236
- ```
237
-
238
- Allowed `source_type` values:
239
-
240
- | Value | Use when |
241
- |---|---|
242
- | `explicit-span` | The evidence span directly states the signal. |
243
- | `heading-and-span` | The heading plus span text together support the signal. |
244
- | `ref-node` | An existing or same-decision Node reference supplies the signal. Include `ref_nodes`. |
245
- | `inferred-from-span` | The signal is inferred from span content. Keep the rationale short and concrete. |
246
-
247
- Each source must include `rationale` when inferred and at least one of `source_refs[]` or `ref_nodes[]`.
248
-
249
- ## Final Reflection
250
-
251
- - Entity cannot pick a legal tag, or depends on its upstream title to make sense -> write it as a Section under the upstream Node or change type before submit.
252
- - Action only supports one Section -> confirm its standalone retrieval value, write it as a Section under its owner, or add another source-backed Section / child Action. Multiple source-backed Sections may use the same kind; the CLI does not manufacture semantic variety to validate an Action.
253
- - Action "steps" are parallel options/configs -> route to Entity `comparison` / `spec` / `description`.
254
- - Domain has no children -> delete it or merge it into a larger Domain.
255
-
256
- ## Current CLI Quality Diagnostics
257
-
258
- Current `context.structure.v1` validation preserves the old Node quality
259
- checks as deterministic diagnostics:
260
-
261
- | Diagnostic | Meaning | Required response |
262
- |---|---|---|
263
- | `schema.section_kind_invalid` | A planned Section uses a kind outside the current prose kind set. | Replace it with a kind from the schema view; do not invent local kind names. |
264
- | `schema.section_kind_mount_invalid` | A planned Section kind cannot be mounted on the chosen `node_type`. | Choose a kind allowed by the mount matrix, or reclassify the Node before confirming structure. |
265
- | `tags.term_conflict` | An Entity uses `term` together with concrete runtime/product tags such as `lib`, `service`, `application`, or `system`. | Split the term from the concrete object, or remove the conflicting tag before staging. |
266
- | `node.description_dominates` | A non-Action Node has at least half of its planned Sections as `description`. | Re-run kind precision. Keep it only when source evidence is genuinely narrative; otherwise split into `example`, `spec`, `comparison`, `faq`, `incident`, `decision`, `warning`, or `principle`. |
267
- | `node.thin_concrete_entity` | A concrete Entity has one Section and no child Nodes. | Keep it only when it has stable standalone retrieval value; otherwise merge it into the owning Node. |
268
- | `node.children_should_be_sections` | One parent contains many same-source, single-section child Entities with no stable shape tag. | Merge those children into parent Sections unless the user confirms each child has standalone lookup value. |
269
- | `node.term_expanded_beyond_definition` | A `term` Entity has grown past a compact definition or owns children. | Move rules, procedures, designs, and examples to the owning Node; keep the term entry narrow. |
270
- | `node.action_too_thin` | An Action has one planned Section and no child Action. | Confirm its standalone retrieval value, keep it as a Section under the owning Node, add another source-backed Section, or add a child Action. This warning does not require artificial Section-kind diversity. |
271
- | `node.domain_without_children` | A Domain has no source-backed `contains` child edge. | Add supported children, keep an explicitly confirmed no-write placeholder, or reclassify the Node. |
272
- | `tags.child_inherits_system` | A child Entity repeats its parent `system` / `application` scope tag. | Retag by the child’s own shape/scope, or keep the child as a Section if it is only a local aspect. |
273
- | `edge.confidence_invalid` | An edge declares a confidence value outside the current schema. | Use only `possible` or `hypothesis`, or omit the field for source-certain relations. |
274
-
275
- Warnings are not automatic blockers, but they are not suggestions to ignore.
276
- Resolve them or include the user-confirmed rationale when confirming structure.