@c4a/context-cli 0.7.9 → 0.7.10-alpha.2

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 (345) hide show
  1. package/cli.js +59387 -99747
  2. package/indexers/bundles/context-code-indexer/SKILL.md +19 -44
  3. package/indexers/bundles/context-code-indexer/context-indexer.yaml +2 -19
  4. package/indexers/bundles/context-code-indexer/references/composers/contracts-and-chains.md +7 -2
  5. package/indexers/bundles/context-code-indexer/references/composers/cross-module-chain.md +7 -2
  6. package/indexers/bundles/context-code-indexer/references/composers/development-and-delivery.md +7 -2
  7. package/indexers/bundles/context-code-indexer/references/composers/event-flow.md +7 -2
  8. package/indexers/bundles/context-code-indexer/references/composers/examples-and-documentation.md +7 -2
  9. package/indexers/bundles/context-code-indexer/references/composers/persistence-boundary.md +7 -2
  10. package/indexers/bundles/context-code-indexer/references/composers/protocol-boundary.md +8 -3
  11. package/indexers/bundles/context-code-indexer/references/composers/public-contract.md +9 -4
  12. package/indexers/bundles/context-code-indexer/references/indexer.md +137 -328
  13. package/indexers/bundles/context-code-indexer/references/metrics.md +1 -1
  14. package/indexers/bundles/context-code-indexer/templates/adapter-integration-maintenance-guide.md +1 -9
  15. package/indexers/bundles/context-code-indexer/templates/adapter-integration-request-adaptation-guide.md +1 -9
  16. package/indexers/bundles/context-code-indexer/templates/adapter-integration-usage-guide.md +1 -9
  17. package/indexers/bundles/context-code-indexer/templates/api-service-maintenance-guide.md +1 -9
  18. package/indexers/bundles/context-code-indexer/templates/api-service-public-api-reference.md +1 -9
  19. package/indexers/bundles/context-code-indexer/templates/background-runtime-maintenance-guide.md +1 -9
  20. package/indexers/bundles/context-code-indexer/templates/background-runtime-task-runtime-guide.md +1 -9
  21. package/indexers/bundles/context-code-indexer/templates/cli-tool-maintenance-guide.md +1 -9
  22. package/indexers/bundles/context-code-indexer/templates/cli-tool-public-api-reference.md +1 -9
  23. package/indexers/bundles/context-code-indexer/templates/cli-tool-usage-guide.md +1 -9
  24. package/indexers/bundles/context-code-indexer/templates/component-library-maintenance-guide.md +1 -9
  25. package/indexers/bundles/context-code-indexer/templates/component-library-public-api-reference.md +1 -9
  26. package/indexers/bundles/context-code-indexer/templates/component-library-usage-guide.md +1 -9
  27. package/indexers/bundles/context-code-indexer/templates/contract-source-public-api-reference.md +1 -9
  28. package/indexers/bundles/context-code-indexer/templates/contract-source-usage-guide.md +1 -9
  29. package/indexers/bundles/context-code-indexer/templates/data-sync-reconciliation-maintenance-guide.md +1 -9
  30. package/indexers/bundles/context-code-indexer/templates/data-sync-reconciliation-task-runtime-guide.md +1 -9
  31. package/indexers/bundles/context-code-indexer/templates/data-sync-reconciliation.md +5 -6
  32. package/indexers/bundles/context-code-indexer/templates/derived-generated-source-public-api-reference.md +1 -9
  33. package/indexers/bundles/context-code-indexer/templates/derived-generated-source-usage-guide.md +1 -9
  34. package/indexers/bundles/context-code-indexer/templates/domain-service-maintenance-guide.md +1 -9
  35. package/indexers/bundles/context-code-indexer/templates/domain-service-public-api-reference.md +1 -9
  36. package/indexers/bundles/context-code-indexer/templates/event-consumer-maintenance-guide.md +1 -9
  37. package/indexers/bundles/context-code-indexer/templates/event-consumer-task-runtime-guide.md +1 -9
  38. package/indexers/bundles/context-code-indexer/templates/gateway-facade-maintenance-guide.md +1 -9
  39. package/indexers/bundles/context-code-indexer/templates/gateway-facade-public-api-reference.md +1 -9
  40. package/indexers/bundles/context-code-indexer/templates/gateway-facade-request-adaptation-guide.md +1 -9
  41. package/indexers/bundles/context-code-indexer/templates/monorepo-container-maintenance-guide.md +1 -9
  42. package/indexers/bundles/context-code-indexer/templates/monorepo-container-usage-guide.md +1 -9
  43. package/indexers/bundles/context-code-indexer/templates/plugin-extension-maintenance-guide.md +1 -9
  44. package/indexers/bundles/context-code-indexer/templates/plugin-extension-public-api-reference.md +1 -9
  45. package/indexers/bundles/context-code-indexer/templates/plugin-extension-usage-guide.md +1 -9
  46. package/indexers/bundles/context-code-indexer/templates/sdk-library-maintenance-guide.md +1 -9
  47. package/indexers/bundles/context-code-indexer/templates/sdk-library-public-api-reference.md +1 -9
  48. package/indexers/bundles/context-code-indexer/templates/sdk-library-usage-guide.md +1 -9
  49. package/indexers/bundles/context-code-indexer/templates/storage-repository-maintenance-guide.md +1 -9
  50. package/indexers/bundles/context-code-indexer/templates/storage-repository-public-api-reference.md +1 -9
  51. package/indexers/bundles/context-code-indexer/templates/web-application-federation-guide.md +1 -9
  52. package/indexers/bundles/context-code-indexer/templates/web-application-maintenance-guide.md +1 -9
  53. package/indexers/bundles/context-code-indexer/templates/web-application-page-task-guide.md +1 -9
  54. package/indexers/bundles/context-code-indexer/tests/fixtures/composers.json +8 -8
  55. package/indexers/bundles/context-code-indexer/tests/fixtures/profiles.json +240 -48
  56. package/indexers/bundles/context-markdown-indexer/SKILL.md +20 -24
  57. package/indexers/bundles/context-markdown-indexer/context-indexer.yaml +2 -2
  58. package/indexers/bundles/context-markdown-indexer/references/classification.md +28 -63
  59. package/indexers/bundles/context-markdown-indexer/references/editorial-policy.md +2 -2
  60. package/indexers/bundles/context-markdown-indexer/references/indexer.md +57 -113
  61. package/indexers/bundles/context-markdown-indexer/references/semantic-planning.md +48 -176
  62. package/indexers/bundles/context-markdown-indexer/references/structure-and-artifacts.md +33 -115
  63. package/indexers/bundles/context-markdown-indexer/tests/fixtures/anonymous.json +0 -6
  64. package/indexers/bundles/context-markdown-indexer/tests/fixtures/profiles.json +195 -39
  65. package/indexers/bundles/context-note-indexer/SKILL.md +20 -5
  66. package/indexers/bundles/context-note-indexer/context-indexer.yaml +2 -371
  67. package/indexers/bundles/context-note-indexer/references/classification.md +22 -49
  68. package/indexers/bundles/context-note-indexer/references/customization.md +19 -32
  69. package/indexers/bundles/context-note-indexer/references/extension-placement.md +13 -39
  70. package/indexers/bundles/context-note-indexer/references/indexer.md +6 -2
  71. package/indexers/bundles/context-note-indexer/references/updates-and-composition.md +26 -32
  72. package/indexers/bundles/context-note-indexer/references/writing.md +4 -4
  73. package/indexers/bundles/context-note-indexer/tests/fixtures/profiles.json +0 -54
  74. package/indexers/bundles/context-sessions-indexer/SKILL.md +20 -5
  75. package/indexers/bundles/context-sessions-indexer/context-indexer.yaml +2 -371
  76. package/indexers/bundles/context-sessions-indexer/references/classification.md +22 -50
  77. package/indexers/bundles/context-sessions-indexer/references/customization.md +19 -32
  78. package/indexers/bundles/context-sessions-indexer/references/extension-placement.md +12 -39
  79. package/indexers/bundles/context-sessions-indexer/references/indexer.md +6 -2
  80. package/indexers/bundles/context-sessions-indexer/references/updates-and-composition.md +26 -32
  81. package/indexers/bundles/context-sessions-indexer/references/writing.md +4 -4
  82. package/indexers/bundles/context-sessions-indexer/tests/fixtures/profiles.json +0 -54
  83. package/indexers/contracts/operator-contract.json +2 -4
  84. package/indexers/contracts/profile-contract.json +246 -940
  85. package/indexers/release-manifest.json +94 -98
  86. package/package.json +12 -12
  87. package/parserEntryWorker.js +2759 -16446
  88. package/plugins/VERSION +1 -1
  89. package/plugins/claude/.claude-plugin/plugin.json +1 -1
  90. package/plugins/claude/commands/context.md +6 -7
  91. package/plugins/claude/skills/context-indexer-create/SKILL.md +31 -70
  92. package/plugins/claude/skills/context-indexer-create/references/guides/indexer-skill-creation.md +107 -97
  93. package/plugins/codex/.codex-plugin/plugin.json +2 -2
  94. package/plugins/codex/skills/context/SKILL.md +6 -7
  95. package/plugins/codex/skills/context-indexer-create/SKILL.md +31 -70
  96. package/plugins/codex/skills/context-indexer-create/references/guides/indexer-skill-creation.md +107 -97
  97. package/plugins/cursor/.cursor-plugin/plugin.json +1 -1
  98. package/plugins/cursor/commands/c4a-context.md +6 -7
  99. package/plugins/cursor/skills/context-indexer-create/SKILL.md +31 -70
  100. package/plugins/cursor/skills/context-indexer-create/references/guides/indexer-skill-creation.md +107 -97
  101. package/plugins/skills/context/SKILL.md +6 -7
  102. package/plugins/skills/context-code-indexer/SKILL.md +19 -44
  103. package/plugins/skills/context-code-indexer/context-indexer.yaml +2 -19
  104. package/plugins/skills/context-code-indexer/references/composers/contracts-and-chains.md +7 -2
  105. package/plugins/skills/context-code-indexer/references/composers/cross-module-chain.md +7 -2
  106. package/plugins/skills/context-code-indexer/references/composers/development-and-delivery.md +7 -2
  107. package/plugins/skills/context-code-indexer/references/composers/event-flow.md +7 -2
  108. package/plugins/skills/context-code-indexer/references/composers/examples-and-documentation.md +7 -2
  109. package/plugins/skills/context-code-indexer/references/composers/persistence-boundary.md +7 -2
  110. package/plugins/skills/context-code-indexer/references/composers/protocol-boundary.md +8 -3
  111. package/plugins/skills/context-code-indexer/references/composers/public-contract.md +9 -4
  112. package/plugins/skills/context-code-indexer/references/indexer.md +137 -328
  113. package/plugins/skills/context-code-indexer/references/metrics.md +1 -1
  114. package/plugins/skills/context-code-indexer/templates/adapter-integration-maintenance-guide.md +1 -9
  115. package/plugins/skills/context-code-indexer/templates/adapter-integration-request-adaptation-guide.md +1 -9
  116. package/plugins/skills/context-code-indexer/templates/adapter-integration-usage-guide.md +1 -9
  117. package/plugins/skills/context-code-indexer/templates/api-service-maintenance-guide.md +1 -9
  118. package/plugins/skills/context-code-indexer/templates/api-service-public-api-reference.md +1 -9
  119. package/plugins/skills/context-code-indexer/templates/background-runtime-maintenance-guide.md +1 -9
  120. package/plugins/skills/context-code-indexer/templates/background-runtime-task-runtime-guide.md +1 -9
  121. package/plugins/skills/context-code-indexer/templates/cli-tool-maintenance-guide.md +1 -9
  122. package/plugins/skills/context-code-indexer/templates/cli-tool-public-api-reference.md +1 -9
  123. package/plugins/skills/context-code-indexer/templates/cli-tool-usage-guide.md +1 -9
  124. package/plugins/skills/context-code-indexer/templates/component-library-maintenance-guide.md +1 -9
  125. package/plugins/skills/context-code-indexer/templates/component-library-public-api-reference.md +1 -9
  126. package/plugins/skills/context-code-indexer/templates/component-library-usage-guide.md +1 -9
  127. package/plugins/skills/context-code-indexer/templates/contract-source-public-api-reference.md +1 -9
  128. package/plugins/skills/context-code-indexer/templates/contract-source-usage-guide.md +1 -9
  129. package/plugins/skills/context-code-indexer/templates/data-sync-reconciliation-maintenance-guide.md +1 -9
  130. package/plugins/skills/context-code-indexer/templates/data-sync-reconciliation-task-runtime-guide.md +1 -9
  131. package/plugins/skills/context-code-indexer/templates/data-sync-reconciliation.md +5 -6
  132. package/plugins/skills/context-code-indexer/templates/derived-generated-source-public-api-reference.md +1 -9
  133. package/plugins/skills/context-code-indexer/templates/derived-generated-source-usage-guide.md +1 -9
  134. package/plugins/skills/context-code-indexer/templates/domain-service-maintenance-guide.md +1 -9
  135. package/plugins/skills/context-code-indexer/templates/domain-service-public-api-reference.md +1 -9
  136. package/plugins/skills/context-code-indexer/templates/event-consumer-maintenance-guide.md +1 -9
  137. package/plugins/skills/context-code-indexer/templates/event-consumer-task-runtime-guide.md +1 -9
  138. package/plugins/skills/context-code-indexer/templates/gateway-facade-maintenance-guide.md +1 -9
  139. package/plugins/skills/context-code-indexer/templates/gateway-facade-public-api-reference.md +1 -9
  140. package/plugins/skills/context-code-indexer/templates/gateway-facade-request-adaptation-guide.md +1 -9
  141. package/plugins/skills/context-code-indexer/templates/monorepo-container-maintenance-guide.md +1 -9
  142. package/plugins/skills/context-code-indexer/templates/monorepo-container-usage-guide.md +1 -9
  143. package/plugins/skills/context-code-indexer/templates/plugin-extension-maintenance-guide.md +1 -9
  144. package/plugins/skills/context-code-indexer/templates/plugin-extension-public-api-reference.md +1 -9
  145. package/plugins/skills/context-code-indexer/templates/plugin-extension-usage-guide.md +1 -9
  146. package/plugins/skills/context-code-indexer/templates/sdk-library-maintenance-guide.md +1 -9
  147. package/plugins/skills/context-code-indexer/templates/sdk-library-public-api-reference.md +1 -9
  148. package/plugins/skills/context-code-indexer/templates/sdk-library-usage-guide.md +1 -9
  149. package/plugins/skills/context-code-indexer/templates/storage-repository-maintenance-guide.md +1 -9
  150. package/plugins/skills/context-code-indexer/templates/storage-repository-public-api-reference.md +1 -9
  151. package/plugins/skills/context-code-indexer/templates/web-application-federation-guide.md +1 -9
  152. package/plugins/skills/context-code-indexer/templates/web-application-maintenance-guide.md +1 -9
  153. package/plugins/skills/context-code-indexer/templates/web-application-page-task-guide.md +1 -9
  154. package/plugins/skills/context-code-indexer/tests/fixtures/composers.json +8 -8
  155. package/plugins/skills/context-code-indexer/tests/fixtures/profiles.json +240 -48
  156. package/plugins/skills/context-indexer-create/SKILL.md +31 -70
  157. package/plugins/skills/context-indexer-create/references/guides/indexer-skill-creation.md +107 -97
  158. package/plugins/skills/context-markdown-indexer/SKILL.md +20 -24
  159. package/plugins/skills/context-markdown-indexer/context-indexer.yaml +2 -2
  160. package/plugins/skills/context-markdown-indexer/references/classification.md +28 -63
  161. package/plugins/skills/context-markdown-indexer/references/editorial-policy.md +2 -2
  162. package/plugins/skills/context-markdown-indexer/references/indexer.md +57 -113
  163. package/plugins/skills/context-markdown-indexer/references/semantic-planning.md +48 -176
  164. package/plugins/skills/context-markdown-indexer/references/structure-and-artifacts.md +33 -115
  165. package/plugins/skills/context-markdown-indexer/tests/fixtures/anonymous.json +0 -6
  166. package/plugins/skills/context-markdown-indexer/tests/fixtures/profiles.json +195 -39
  167. package/plugins/skills/context-note-indexer/SKILL.md +20 -5
  168. package/plugins/skills/context-note-indexer/context-indexer.yaml +2 -371
  169. package/plugins/skills/context-note-indexer/references/classification.md +22 -49
  170. package/plugins/skills/context-note-indexer/references/customization.md +19 -32
  171. package/plugins/skills/context-note-indexer/references/extension-placement.md +13 -39
  172. package/plugins/skills/context-note-indexer/references/indexer.md +6 -2
  173. package/plugins/skills/context-note-indexer/references/updates-and-composition.md +26 -32
  174. package/plugins/skills/context-note-indexer/references/writing.md +4 -4
  175. package/plugins/skills/context-note-indexer/tests/fixtures/profiles.json +0 -54
  176. package/plugins/skills/context-sessions-indexer/SKILL.md +20 -5
  177. package/plugins/skills/context-sessions-indexer/context-indexer.yaml +2 -371
  178. package/plugins/skills/context-sessions-indexer/references/classification.md +22 -50
  179. package/plugins/skills/context-sessions-indexer/references/customization.md +19 -32
  180. package/plugins/skills/context-sessions-indexer/references/extension-placement.md +12 -39
  181. package/plugins/skills/context-sessions-indexer/references/indexer.md +6 -2
  182. package/plugins/skills/context-sessions-indexer/references/updates-and-composition.md +26 -32
  183. package/plugins/skills/context-sessions-indexer/references/writing.md +4 -4
  184. package/plugins/skills/context-sessions-indexer/tests/fixtures/profiles.json +0 -54
  185. package/providers/context/actions/approve-production-report.yaml +5 -0
  186. package/providers/context/actions/configure-production-requirements.yaml +5 -0
  187. package/providers/context/actions/prepare-production-stage.yaml +5 -0
  188. package/providers/context/actions/register-source-batch.yaml +1 -1
  189. package/providers/context/actions/run-indexer-lifecycle.yaml +4 -1
  190. package/providers/context/actions/work-production-stage.yaml +5 -0
  191. package/providers/context/codes.yaml +10 -7
  192. package/providers/context/graphs/indexer.yaml +127 -596
  193. package/providers/context/graphs/workspace.yaml +2 -37
  194. package/providers/context/manifest.json +106 -813
  195. package/providers/context/provider.yaml +1 -1
  196. package/providers/context/resources/contracts/indexer-provider-guide.yaml +2 -2
  197. package/providers/context/resources/diagnostics/verification.md +4 -6
  198. package/providers/context/resources/dialogue/source-boundary.md +5 -7
  199. package/providers/context/resources/manuals/guides/code-indexer-skill-authoring.md +84 -0
  200. package/providers/context/resources/manuals/guides/indexer-provider-and-customization.md +117 -0
  201. package/providers/context/resources/manuals/guides/knowledge-updates.md +35 -14
  202. package/providers/context/resources/manuals/guides/markdown-indexer-skill-authoring.md +65 -0
  203. package/providers/context/resources/manuals/reference/package-templates.md +39 -65
  204. package/providers/context/resources/manuals/reference/template-variables.md +2 -3
  205. package/providers/context/resources/procedures/approved-revision.md +28 -35
  206. package/providers/context/resources/procedures/knowledge-review.md +1 -1
  207. package/providers/context/resources/procedures/knowledge-updates.md +35 -14
  208. package/providers/context/resources/procedures/parallel-agent-batch.md +33 -134
  209. package/providers/context/resources/procedures/production-requirements.md +61 -0
  210. package/providers/context/resources/procedures/production-stage-files.md +57 -0
  211. package/providers/context/resources/procedures/source-boundary.md +8 -10
  212. package/providers/context/resources/procedures/task-recovery.md +15 -20
  213. package/providers/context/resources/procedures/work-start-report.md +91 -413
  214. package/providers/context/resources/templates/indexer-agent-worker.md +20 -61
  215. package/providers/context/resources/templates/work-start-report.md +43 -279
  216. package/providers/context/schemas/approved-revision-result.schema.json +61 -2
  217. package/providers/context/schemas/indexer-agent-step-result.schema.json +128 -2043
  218. package/providers/context/schemas/source-batch-input.schema.json +0 -14
  219. package/providers/context/skills/resolve-current-indexer-gate/SKILL.md +11 -50
  220. package/providers/context/skills/run-indexer-agent-step/SKILL.md +19 -425
  221. package/providers/context/skills/run-indexer-lifecycle/SKILL.md +28 -214
  222. package/providers/context/skills/work-production-stage/SKILL.md +35 -0
  223. package/indexers/bundles/context-markdown-indexer/tests/fixtures/migration-equivalence.json +0 -186
  224. package/plugins/claude/skills/context-indexer-create/references/guides/code-indexer-skill-authoring.md +0 -180
  225. package/plugins/claude/skills/context-indexer-create/references/guides/indexer-manifest-example.md +0 -103
  226. package/plugins/claude/skills/context-indexer-create/references/guides/indexer-provider-and-customization.md +0 -471
  227. package/plugins/claude/skills/context-indexer-create/references/guides/markdown-indexer-skill-authoring.md +0 -136
  228. package/plugins/claude/skills/context-indexer-create/references/guides/note.md +0 -37
  229. package/plugins/claude/skills/context-indexer-create/references/guides/sessions.md +0 -50
  230. package/plugins/claude/skills/context-indexer-create/references/reference/indexer-provider-protocol.md +0 -854
  231. package/plugins/codex/skills/context-indexer-create/references/guides/code-indexer-skill-authoring.md +0 -180
  232. package/plugins/codex/skills/context-indexer-create/references/guides/indexer-manifest-example.md +0 -103
  233. package/plugins/codex/skills/context-indexer-create/references/guides/indexer-provider-and-customization.md +0 -471
  234. package/plugins/codex/skills/context-indexer-create/references/guides/markdown-indexer-skill-authoring.md +0 -136
  235. package/plugins/codex/skills/context-indexer-create/references/guides/note.md +0 -37
  236. package/plugins/codex/skills/context-indexer-create/references/guides/sessions.md +0 -50
  237. package/plugins/codex/skills/context-indexer-create/references/reference/indexer-provider-protocol.md +0 -854
  238. package/plugins/cursor/skills/context-indexer-create/references/guides/code-indexer-skill-authoring.md +0 -180
  239. package/plugins/cursor/skills/context-indexer-create/references/guides/indexer-manifest-example.md +0 -103
  240. package/plugins/cursor/skills/context-indexer-create/references/guides/indexer-provider-and-customization.md +0 -471
  241. package/plugins/cursor/skills/context-indexer-create/references/guides/markdown-indexer-skill-authoring.md +0 -136
  242. package/plugins/cursor/skills/context-indexer-create/references/guides/note.md +0 -37
  243. package/plugins/cursor/skills/context-indexer-create/references/guides/sessions.md +0 -50
  244. package/plugins/cursor/skills/context-indexer-create/references/reference/indexer-provider-protocol.md +0 -854
  245. package/plugins/skills/context-indexer-create/references/guides/code-indexer-skill-authoring.md +0 -180
  246. package/plugins/skills/context-indexer-create/references/guides/indexer-manifest-example.md +0 -103
  247. package/plugins/skills/context-indexer-create/references/guides/indexer-provider-and-customization.md +0 -471
  248. package/plugins/skills/context-indexer-create/references/guides/markdown-indexer-skill-authoring.md +0 -136
  249. package/plugins/skills/context-indexer-create/references/guides/note.md +0 -37
  250. package/plugins/skills/context-indexer-create/references/guides/sessions.md +0 -50
  251. package/plugins/skills/context-indexer-create/references/reference/indexer-provider-protocol.md +0 -854
  252. package/plugins/skills/context-markdown-indexer/tests/fixtures/migration-equivalence.json +0 -186
  253. package/providers/context/actions/advance-current-indexer-lifecycle.yaml +0 -6
  254. package/providers/context/actions/apply-indexer-project.yaml +0 -7
  255. package/providers/context/actions/authorize-current-indexer-provider-program.yaml +0 -6
  256. package/providers/context/actions/authorize-indexer-dependencies.yaml +0 -7
  257. package/providers/context/actions/authorize-indexer-program-execution.yaml +0 -7
  258. package/providers/context/actions/compile-indexer-candidates.yaml +0 -8
  259. package/providers/context/actions/configure-community-indexer-fallback.yaml +0 -6
  260. package/providers/context/actions/configure-indexer-providers.yaml +0 -6
  261. package/providers/context/actions/confirm-index-requirement-workset.yaml +0 -8
  262. package/providers/context/actions/confirm-subject-reidentification.yaml +0 -8
  263. package/providers/context/actions/discover-markdown-indexer-providers.yaml +0 -6
  264. package/providers/context/actions/finalize-current-indexer-provider-selection.yaml +0 -5
  265. package/providers/context/actions/inspect-indexer-dependencies.yaml +0 -7
  266. package/providers/context/actions/inspect-indexer-program-execution.yaml +0 -7
  267. package/providers/context/actions/inspect-indexer-project-proposal.yaml +0 -7
  268. package/providers/context/actions/inspect-markdown-provider-capture.yaml +0 -7
  269. package/providers/context/actions/maintain-evidence.yaml +0 -6
  270. package/providers/context/actions/materialize-indexer-instructions.yaml +0 -7
  271. package/providers/context/actions/materialize-indexer-workset-view.yaml +0 -7
  272. package/providers/context/actions/observe-indexer-project.yaml +0 -7
  273. package/providers/context/actions/prepare-indexer-customization-project.yaml +0 -7
  274. package/providers/context/actions/propose-indexer-customization.yaml +0 -7
  275. package/providers/context/actions/propose-overlay-question-amendment.yaml +0 -7
  276. package/providers/context/actions/rebind-indexer-selection-to-requirement.yaml +0 -7
  277. package/providers/context/actions/report-indexer-incremental-impact.yaml +0 -8
  278. package/providers/context/actions/resolve-current-indexer-provider.yaml +0 -6
  279. package/providers/context/actions/route-index-requirement-confirmation.yaml +0 -8
  280. package/providers/context/actions/route-indexer-provider-selection.yaml +0 -7
  281. package/providers/context/actions/run-indexer-agent-step.yaml +0 -7
  282. package/providers/context/actions/run-indexer-post-author-composer.yaml +0 -7
  283. package/providers/context/actions/validate-indexer-contract-overlays.yaml +0 -7
  284. package/providers/context/actions/validate-indexer-customization.yaml +0 -7
  285. package/providers/context/actions/validate-indexer-selection-proposal.yaml +0 -7
  286. package/providers/context/actions/validate-main-index-run.yaml +0 -7
  287. package/providers/context/actions/validate-markdown-provider-selection.yaml +0 -7
  288. package/providers/context/actions/validate-subject-key-schemas.yaml +0 -8
  289. package/providers/context/resources/dialogue/evidence-maintenance.md +0 -26
  290. package/providers/context/resources/procedures/evidence-maintenance.md +0 -20
  291. package/providers/context/resources/views/authorized-indexer-workset-view.yaml +0 -15
  292. package/providers/context/resources/views/resolved-indexer-instructions.yaml +0 -21
  293. package/providers/context/schemas/evidence-maintenance-input.schema.json +0 -30
  294. package/providers/context/schemas/indexer-agent-step-input.schema.json +0 -80
  295. package/providers/context/schemas/indexer-authorized-workset-view.schema.json +0 -65
  296. package/providers/context/schemas/indexer-candidate-compile-input.schema.json +0 -57
  297. package/providers/context/schemas/indexer-candidate-compile-output.schema.json +0 -38
  298. package/providers/context/schemas/indexer-contract-overlay-validation-input.schema.json +0 -48
  299. package/providers/context/schemas/indexer-contract-overlay-validation-result.schema.json +0 -63
  300. package/providers/context/schemas/indexer-customization-project-preparation-result.schema.json +0 -44
  301. package/providers/context/schemas/indexer-customization-proposal-draft.schema.json +0 -83
  302. package/providers/context/schemas/indexer-customization-validation-result.schema.json +0 -36
  303. package/providers/context/schemas/indexer-dependency-authorization-input.schema.json +0 -71
  304. package/providers/context/schemas/indexer-dependency-authorization-result.schema.json +0 -138
  305. package/providers/context/schemas/indexer-incremental-impact-input.schema.json +0 -31
  306. package/providers/context/schemas/indexer-incremental-impact-output.schema.json +0 -52
  307. package/providers/context/schemas/indexer-main-lifecycle-input.schema.json +0 -180
  308. package/providers/context/schemas/indexer-main-lifecycle-output.schema.json +0 -194
  309. package/providers/context/schemas/indexer-markdown-provider-capture-input.schema.json +0 -17
  310. package/providers/context/schemas/indexer-markdown-provider-capture-output.schema.json +0 -54
  311. package/providers/context/schemas/indexer-markdown-provider-validation-input.schema.json +0 -34
  312. package/providers/context/schemas/indexer-markdown-provider-validation-output.schema.json +0 -75
  313. package/providers/context/schemas/indexer-materialize-request.schema.json +0 -49
  314. package/providers/context/schemas/indexer-materialized-resource.schema.json +0 -64
  315. package/providers/context/schemas/indexer-overlay-question-amendment.schema.json +0 -13
  316. package/providers/context/schemas/indexer-overlay-question-proposal-input.schema.json +0 -89
  317. package/providers/context/schemas/indexer-overlay-question-rebind-input.schema.json +0 -35
  318. package/providers/context/schemas/indexer-overlay-question-rebind-result.schema.json +0 -25
  319. package/providers/context/schemas/indexer-program-execution-authorization-input.schema.json +0 -145
  320. package/providers/context/schemas/indexer-program-execution-authorization-result.schema.json +0 -60
  321. package/providers/context/schemas/indexer-project-action-result.schema.json +0 -19
  322. package/providers/context/schemas/indexer-project-gate-input.schema.json +0 -100
  323. package/providers/context/schemas/indexer-project-observation-input.schema.json +0 -16
  324. package/providers/context/schemas/indexer-project-observation-result.schema.json +0 -42
  325. package/providers/context/schemas/indexer-provider-route-input.schema.json +0 -55
  326. package/providers/context/schemas/indexer-provider-route-report.schema.json +0 -188
  327. package/providers/context/schemas/indexer-requirement-confirmation-input.schema.json +0 -27
  328. package/providers/context/schemas/indexer-requirement-confirmation-output.schema.json +0 -24
  329. package/providers/context/schemas/indexer-selection-proposal-input.schema.json +0 -12
  330. package/providers/context/schemas/indexer-selection-proposal-validation.schema.json +0 -23
  331. package/providers/context/schemas/indexer-subject-reidentification-input.schema.json +0 -37
  332. package/providers/context/schemas/indexer-subject-reidentification-output.schema.json +0 -31
  333. package/providers/context/schemas/indexer-workset-view-materialization-request.schema.json +0 -35
  334. package/providers/context/skills/authorize-current-indexer-provider-program/SKILL.md +0 -20
  335. package/providers/context/skills/configure-indexer-providers/SKILL.md +0 -137
  336. package/providers/context/skills/configure-indexer-providers/references/guides/code-indexer-skill-authoring.md +0 -180
  337. package/providers/context/skills/configure-indexer-providers/references/guides/indexer-provider-and-customization.md +0 -471
  338. package/providers/context/skills/configure-indexer-providers/references/guides/markdown-indexer-skill-authoring.md +0 -136
  339. package/providers/context/skills/configure-indexer-providers/references/guides/note.md +0 -37
  340. package/providers/context/skills/configure-indexer-providers/references/guides/sessions.md +0 -50
  341. package/providers/context/skills/configure-indexer-providers/references/reference/indexer-provider-protocol.md +0 -854
  342. package/providers/context/skills/prepare-indexer-customization-project/SKILL.md +0 -31
  343. package/providers/context/skills/propose-indexer-customization/SKILL.md +0 -40
  344. package/providers/context/skills/resolve-current-indexer-provider/SKILL.md +0 -20
  345. package/providers/context/skills/run-indexer-post-author-composer/SKILL.md +0 -122
@@ -1,113 +1,57 @@
1
- # Markdown Indexer authoring contract
2
-
3
- Classify and author at the source-backed Section level using only the current Authorized Workset View. A document profile describes reader intent; it is not an output directory. Mixed documents may contain Sections with different reader goals, but every Section must retain one stable subject, owner, source authority, and projection intent.
4
-
5
- Keep the requirement's `purpose` and open `reader_goals` visible in Partition,
6
- Author and Review. Select a supported page intent and template for that reader's
7
- task, save the outline and delivery boundary, and reuse those choices on retry.
8
- A how-to guide, FAQ and design explanation retain their distinct purposes;
9
- shared code evidence does not turn every document into a maintenance audit.
10
- If the purpose is already clear, do not ask it again because a field is absent.
11
- Managed execution does not authorize deciding a truly ambiguous purpose.
12
-
13
- During representative reading, actively distinguish sections that answer the
14
- reader's task from supporting context and material that may be unnecessary.
15
- Check available document status, intended audience, version applicability and
16
- substantive duplication. Age, titles, archived locations and document length are
17
- clues, not exclusion rules; historical decisions and older procedures can still
18
- be required. Preserve useful detail rather than replacing it with an inventory.
19
- If a substantial region raises an unresolved scope choice, explain what including
20
- or leaving it out means and ask before dependent writing, including in managed
21
- mode. Unneeded material increases token use, processing and review work, and can
22
- bury useful answers in repetitive or conflicting pages. Recommend boundaries
23
- from the user's task, not from a target page count or promised speedup. Reuse
24
- settled decisions, use the current Result's supported dispositions, and preserve
25
- accepted knowledge. Do not treat unread material as irrelevant or silently omit it.
26
-
27
- Context delivers an initial readable sample and subsequent page batches through
28
- the current Review, close and build routes. Continue the remaining accepted plan
29
- after each build; preserve already delivered pages and source-grounded prose.
30
-
31
- Use `classification.md` as the semantic source for `document_kind`, `reader_goal`, and current `artifact_kind` selection. Use `structure-and-artifacts.md` for mixed-document routing, Section-versus-Artifact promotion, density, duplicate/conflict handling, and target candidate resolution. The CLI-supplied profile contract remains the only authority for collection and path projection.
32
-
33
- Use `semantic-planning.md` for evidence authority, SubjectKey/target-resolution
34
- judgment, relation and structured-claim gates, content-purpose precision, and
35
- stale/collision recovery behavior. It adapts the useful semantic gates from the
36
- former align path to the current Result ABI; it does not authorize legacy align
37
- commands or `context.structure.v1`.
38
-
39
- Use `editorial-policy.md` for editorial review hints and anonymous decision examples. Content assessment belongs to the Agent and user; hints do not trigger a CLI prose rescan, rejection, or additional gate. Context owns source references, protected values, revision CAS/storage, and structural validation.
40
-
41
- Preserve exact commands, identifiers, links, attachments, tables, and code blocks when they are evidence-bearing. Separate deterministic catalogs from explanation. Do not publish unsupported claims, conversion annotations, placeholders, or unresolved requests as knowledge.
42
-
43
- When a captured document already contains coherent reader-facing guidance, preserve and organize that supported content instead of replacing it with a heading inventory, directory summary, or a sentence that points the reader back to the source. Summarize only repetition or navigation scaffolding. A shorter Artifact is acceptable only when it still answers the selected reader questions and retains the source's useful contracts, examples, conditions, compatibility notes, and uncertainty.
44
-
45
- For each reader Artifact, start the first actual Section with exactly one
46
- level-one heading that names the reader subject. Keep the heading concise and
47
- source-backed. It is a display title for outline and final Candidate Review,
48
- not a SubjectKey, ownership signal, or identity fallback. Later Sections in the
49
- same Artifact must not add another level-one heading.
50
-
51
- When current source material cannot answer a required canonical question, return the exact material-question disposition for the supplied target. A later run may consume newly captured Markdown as ordinary source and update the same knowledge candidate. Context owns layout, collection mapping, runtime material-gap state, each delivery's content Review, and close.
52
-
53
- Return only the current `main-index` `IndexerResult`/`ArtifactResult` contract. Context derives the source dependencies needed for stale detection and recovery from that result. Do not emit a separate answer body, answer-only result, future Artifact/Section landing, or post-layout actualization.
54
-
55
- Return all knowledge through the current Indexer result; do not create an independent authoring pipeline.
56
-
57
- ## Quality guidance and production checks
58
-
59
- Context blocks only conditions it can derive from current inputs: the complete
60
- source inventory needs dispositions, the selected reader-question set needs a
61
- complete plan, answered questions must satisfy their evidence contracts, and
62
- references, layout and currentness must remain valid.
63
-
64
- Profile metrics are writing guidance rather than a separate pass decision.
65
- They point out duplicated facts, enumeration where explanation was expected,
66
- repeated template scaffolding, oversized quoted bodies, traversal-ordered
67
- Partitions, reference-only targets and unsupported optional Artifacts. Treat a
68
- finding as a prompt to reread the Section. Do not adjust wording, headings,
69
- sentence counts or Partitions merely to move a counter.
70
-
71
- Natural-language statements are not mechanically checked sentence by sentence.
72
- Use only behavior stated by the supplied material, record a material gap when
73
- the source does not establish a needed conclusion, and rely on final Review to
74
- reject unsupported interpretation. When shape guidance conflicts with source
75
- coverage, preserve the source-backed content and improve its presentation
76
- rather than deleting it.
77
-
78
- Do not return output paths, collection names, arbitrary question text, new authority, or pass/fail claims.
79
-
80
- ## Notes and conversation summaries as supporting material
81
-
82
- Use only the authorized excerpts or summaries and cite the material actually
83
- read. Distinguish quotations, paraphrases, confirmed decisions and proposals;
84
- write the explanation useful to the reader instead of copying the source.
85
- Keep claims within what the captured documents establish. A summary may record that participants reported an implementation or a passing
86
- test; attribute that report and retain its stated version and scope. Do not
87
- present it as independently verified in this task. Claims of direct validation
88
- need the actual relevant code, execution or test results in the authorized
89
- material. Discussion or a plan alone does not establish completion.
90
-
91
- Keep this Provider responsible for the existing page. If the host selects a
92
- Note/Sessions or business Provider extension, apply its supplied instructions
93
- to the same writing task. Do not load an unselected skill or create a second
94
- page solely because supporting material has a different source type. An
95
- independent reader task can use a dedicated Provider selected by the host.
96
-
97
- If the source is inaccurate, return the correction to the host source-input
98
- flow; do not edit it from the Indexer. If only the knowledge is misleading,
99
- revise the page from its approved text through Author/Review. Keep source
100
- associations in the source and page/section references in structure.yaml;
101
- do not add provenance fields to the knowledge header.
102
-
103
- ## Diagrams
104
-
105
- Use the materialized [diagram guidance](diagrams.md) when a diagram clarifies the reader task. This also applies to older templates, source diagrams and Composer summaries. Preserve source strength, version and external boundaries; diagram presence is not a completion requirement.
106
-
107
- ## Existing source images and tables
108
-
109
- For authorized visual material, follow [source visual processing](visual-source-processing.md): preference, capability-aware conversion, accepted-result reuse and retention. Follow the workspace AGENTS.md for editable diagram style.
110
-
111
- ## Reading selected article material
112
-
113
- Use the current task's combined writing brief: it includes selected article guidance, examples when supplied, and section/variable slots. Profile bindings can share one article Markdown source; do not open every binding or regenerate every listed article. Keep short collaboration notes and examples beside the relevant guidance instead of requesting separate files. Read extra source or full technical contracts only when this task needs them. The CLI applies executable contracts and evidence bindings; the Agent decides applicability, substance and useful diagrams. Reuse an already-read unchanged shared resource while it remains in context.
1
+ # Write source-grounded document knowledge
2
+
3
+ Read the relevant full source, not only the planning outline. Keep the
4
+ confirmed reader purpose visible: a how-to guide, FAQ and design explanation
5
+ serve different needs even when they cite the same code.
6
+
7
+ Preserve or synthesize the useful guidance in the source: actual steps,
8
+ contracts, conditions, examples, compatibility limits, images and uncertainty.
9
+ An inventory of headings, a generic summary or a link back to the source does
10
+ not replace an article that answers the reader. Preserve exact commands,
11
+ identifiers, numbers and destinations where they matter; do not reproduce
12
+ secrets or incidental conversion metadata.
13
+
14
+ Use [editorial guidance](editorial-policy.md) for a concrete presentation
15
+ problem. It is advice for the Agent and user, not a signal-clearing protocol or
16
+ a CLI prose-quality score. Legitimate code, templates and historical details
17
+ must not be removed merely because they resemble a placeholder.
18
+
19
+ ## File submission and references
20
+
21
+ Write a complete new article using the current stage's Markdown and reference
22
+ file schema. For an existing article, use its supplied base and submit only
23
+ needed section edits when appropriate. Stable section markers and title and
24
+ description follow that schema; there is no ArtifactResult, subject identity
25
+ or profile-owned output mapping to assemble.
26
+
27
+ For each output fragment, cite the actual source regions used, at most three
28
+ locations. Use source_ref and an inclusive file/line locator; the CLI computes
29
+ content digests. Do not attach an entire corpus to a generic paragraph or
30
+ combine unrelated locations into a fabricated continuous span. Split genuinely
31
+ distinct explanations when they need distinct references.
32
+
33
+ Place drafts and manifests in the Agent's designated temporary directory.
34
+ Submit completed tasks or a finished subset using the returned action. Do not
35
+ pass long article bodies in shell arguments, write approved knowledge directly,
36
+ or store skills, process receipts or separate provenance lists in article
37
+ frontmatter. Acceptance saves this run's candidate; Review and formal delivery
38
+ remain separate.
39
+
40
+ ## Supporting notes and sessions
41
+
42
+ Use only authorized saved material and cite what was actually read. Separate
43
+ quotations, paraphrases, proposals, confirmations and reported test results.
44
+ A discussion can explain rationale but does not independently establish that
45
+ a change merged, deployed or passed tests. Several selected skills may help
46
+ the same article; no primary/extension ownership is required.
47
+
48
+ Correct misleading knowledge through a revision. Correct an inaccurate source
49
+ through its authorized import flow, not by editing evidence from this skill.
50
+ Keep useful prior contributions and real gaps visible during updates.
51
+
52
+ ## Visual material
53
+
54
+ Use [diagram guidance](diagrams.md) when it clarifies an important relationship.
55
+ For actual source images or tables, read [visual processing](visual-source-processing.md).
56
+ Preserve source strength and external boundaries; diagrams are not a completion
57
+ requirement. Follow the workspace's visual conventions.
@@ -1,176 +1,48 @@
1
- # Source, subject, and claim planning
2
-
3
- Use these rules while producing the current `main-index` `ArtifactResult`.
4
- Captured Markdown is ordinary source material: it may create or enrich the same
5
- knowledge candidates as code-derived input. If required material is still
6
- missing, return a material-gap disposition and let a later main-index run consume
7
- the newly captured source. Do not create an answer-only result, landing, or
8
- second review workflow. Context remains the authority for schemas, SubjectKey
9
- normalization, identities, paths, collisions, stale state, layout changes,
10
- Review, and publication.
11
-
12
- ## Reader-subject grouping
13
-
14
- The rules below are the grouping guidance for the current document View.
15
- Context handles strategy selection, ordering, retry, and catalog fallback;
16
- do not retrieve a separate strategy definition or submit strategy metadata.
17
-
18
- For a partition workset, group captured document members by durable reader
19
- subject rather than by file, heading, route, or temporary capture batch. Use
20
- the complete authorized document text together with maintained title,
21
- `source_path`, route, audience, and reader-task evidence. These fields are
22
- evidence for the decision; none is sufficient by itself.
23
-
24
- Choose readable, durable subject names during Partition. Context's main-page
25
- path uses the subject namespace as the directory and local key as the basename;
26
- the group's key and authored title do not rename it. When the default namespace
27
- is a capture ID or opaque source token, use the existing explicit subject object
28
- with a source-supported product/platform namespace and topic key, such as
29
- `sample-web` / `faq`, under a permitted kind. Do not repeat the source token in
30
- both path segments or use random/hash suffixes to resolve collisions. Keep an
31
- existing subject and its approved path on updates; a title edit alone does not
32
- create a new identity. Review the proposed subject and final reader path, not
33
- only the page title. Context handles path normalization and layout confirmation.
34
-
35
- One group may contain multiple documents when they jointly explain the same
36
- reader subject. Split platform or runtime variants only when their supported
37
- contract, behavior, lifecycle, or reader task is materially different. Keep
38
- navigation-only indexes, generated duplicates, empty placeholders, and
39
- superseded pages out of authored groups with an explicit inventory
40
- disposition. Every current inventory member must still receive exactly one
41
- partition disposition. If durable subject boundaries cannot be established,
42
- return a failed Partition Result explaining the missing boundary evidence so
43
- Context can choose the next attempt. Do not silently substitute one group per file.
44
-
45
- ## Evidence and authority
46
-
47
- Read every authorized evidence item required by the current workset before
48
- making a source-wide decision. A file name, URL, title, heading, navigation
49
- label, polished wording, profile id, or example is a navigation signal, not
50
- proof of subject identity, authority, or reader intent.
51
-
52
- Use only current source roles, authorized source views, target-resolution views,
53
- and question targets supplied with the workset. Supporting or context-only material
54
- may guide investigation but cannot become a cited Section or structured claim
55
- unless the current authority makes it eligible. Preserve exact identifiers,
56
- commands, links, numbers, conditions, code, and source-authored uncertainty.
57
-
58
- Positive example: a Section is classified from its complete requirement text
59
- and stated audience. Negative example: a document is classified as a runbook
60
- only because its path contains `ops/`.
61
-
62
- ## Subject boundary
63
-
64
- For Author, the primary logical-unit SubjectKey is fixed by the workset. Do not replace it
65
- with a title-derived key. When Context supplies target-resolution entries,
66
- close every entry with exactly one current disposition:
67
-
68
- - `reuse-existing` only for an exact evidence-supported subject match;
69
- - `create-independent` only when evidence establishes a distinct durable
70
- subject and separate reader value under a permitted SubjectKey schema;
71
- - `unresolved` with a `reason_code` when the supplied material cannot establish
72
- identity or the required capability is unavailable. `request-material` and
73
- `unsupported` are whole-Result outcomes, not target-resolution dispositions.
74
-
75
- Treat local material as a Section before proposing an independent subject or
76
- Artifact. A heading, table row, FAQ label, warning, short example, relationship
77
- phrase, or one-off conclusion does not establish independent identity. A
78
- concrete product or technical object, an atomic term, a repeatable process with
79
- source-backed steps and outcome, or a real grouping scope with supported child
80
- subjects may justify a separate subject when the current schema permits it.
81
-
82
- Positive examples include an independently named service with its own contract,
83
- or a repeatable recovery procedure with actors, steps, outcome, and standalone
84
- retrieval value. Negative examples include “component usage” as one sentence,
85
- “three modes” as a parallel list, a navigation-only placeholder, or “X impact
86
- on Y” without an independent referent. Keep those as Sections, registered
87
- questions, or unresolved target decisions as appropriate.
88
-
89
- Titles and headings are evidence, not identity. Keep reader-facing labels in
90
- the authored content; do not invent aliases, slugs, collections, containment,
91
- or paths to force a match. A subject shaped like a grouping scope needs current
92
- supported child identities. A process-shaped subject needs actual process
93
- evidence, not merely a word such as “flow”, “migration”, or “strategy”.
94
-
95
- ## Section and Artifact planning
96
-
97
- Apply `classification.md` and `structure-and-artifacts.md` at Section scope.
98
- Keep source-backed Sections continuous when possible. Split unrelated reader
99
- tasks even under one heading; merge adjacent headings only when they form one
100
- coherent answer with compatible projection intent. A dedicated Artifact must
101
- clear the same independent reader-task and evidence-boundary test regardless of
102
- content type.
103
-
104
- Use density only to choose an inspection granularity. `macro`, `meso`, `micro`,
105
- and `single-pass` never choose a SubjectKey, authority, projection intent, or
106
- quality outcome.
107
-
108
- ## Relation and structured-claim gate
109
-
110
- Emit a structured claim only when its subject is authorized, its owner Section
111
- exists, and the cited evidence in that same Section supports the claim kind.
112
- Do not convert a vague “related” mention, shared table membership, name
113
- similarity, containment, or endpoint-only evidence into a stronger relation.
114
- When evidence conflicts and source precedence does not resolve it, preserve the
115
- conflict in the supported diagnostic or material-question disposition instead
116
- of selecting by file order, heading order, or polished wording.
117
-
118
- Source-authored uncertainty belongs in the reader prose when it is material.
119
- Do not use a confidence label to conceal Agent uncertainty, and do not invent a
120
- structured field that the current schema does not expose. Missing endpoint,
121
- ownership, or relation evidence must remain unresolved rather than becoming a
122
- dangling claim.
123
-
124
- Positive example: a cited Section explicitly states that one component consumes
125
- another component's output, and both subjects are authorized. Negative example:
126
- two components appear in one “See also” list, so the Indexer invents a runtime
127
- dependency.
128
-
129
- ## Content-purpose precision
130
-
131
- Choose the narrowest registered Section projection intent. Preserve these
132
- semantic boundaries when they apply:
133
-
134
- - a decision needs alternatives or options, the selected path, and rationale;
135
- - an incident review needs incident identity plus impact/timeline and cause,
136
- response, mitigation, or follow-up evidence;
137
- - a test/validation Section needs a checkable target, scenario, observation, or
138
- acceptance result;
139
- - a standard/policy Section needs a stable normative rule or constraint;
140
- - a task or migration guide needs a reader action, verification, and relevant
141
- recovery boundary;
142
- - an example is literal sample material, not ordinary scenario prose;
143
- - a comparison distinguishes at least two subjects across meaningful
144
- dimensions.
145
-
146
- If the registered vocabulary cannot express the evidence, return a material or
147
- capability disposition. Do not use a broad narrative label merely to avoid the
148
- missing-intent path.
149
-
150
- ## Duplicate, deletion, and recovery rules
151
-
152
- Collapse duplicate statements only when their subject, authority, reader task,
153
- and evidence boundary are the same. Preserve separate Sections when authority,
154
- lifecycle, reader task, or evidence boundary differs. Omit material only under
155
- the eligible reasons in `editorial-policy.md`; an answered question, actionable
156
- limitation, replacement-bearing deprecation, source-backed decision, or
157
- recovery instruction remains knowledge.
158
-
159
- On an ambiguous target, return the current unresolved/material disposition. On
160
- a stale workset, digest mismatch, schema mismatch, collision, or forged layout,
161
- stop and use the fresh Context route; do not repair the failure by changing a
162
- semantic label, inventing an alias, or hand-authoring a path. A destructive or
163
- ambiguous layout change is handled by Context's conditional human Gate. A
164
- non-destructive addition does not create a review pause merely because it is
165
- new.
166
-
167
- If the same current semantic quality problem survives three accepted revision
168
- attempts, keep already-passing Sections intact and request one aggregated piece
169
- of content-organization, source-fidelity, or missing-material guidance. Retry
170
- history and assessments are runtime audit data, never reader knowledge.
171
-
172
- Before returning the Result, verify that every required evidence item and
173
- target-resolution entry has a disposition, every Section has one current
174
- projection intent and evidence boundary, every claim is owned and cited, every
175
- duplicate/conflict decision is explicit, and no collection, path, temporary
176
- identity, placeholder, or unsupported claim appears in the Result.
1
+ # Source and article planning
2
+
3
+ The CLI supplies mechanical navigation: titles, a bounded opening excerpt,
4
+ heading hierarchy and existing article titles, descriptions and references.
5
+ Start there, then optionally read the full authorized material wherever the
6
+ reader question, grouping or authority is unclear. Do not require every source
7
+ to be fully read before any plan can be submitted.
8
+
9
+ ## Topics and batches
10
+
11
+ Consider code-related topics already discovered, then document topics. Reuse
12
+ an existing article when it answers the same question for the same audience.
13
+ Document business definitions may correct a mechanical code-topic name; explain
14
+ the proposed change in the plan instead of forcing the document into a path
15
+ mirror. This does not authorize renaming formal files outside the current task.
16
+
17
+ A coherent document can directly suggest one target. A long document may need
18
+ several articles; several documents may jointly answer one question. Neither
19
+ file count nor heading count determines article count. Choose batches based
20
+ on reader tasks, dependencies and useful shared reading, not source or skill
21
+ identity. Do not create per-member dispositions or a separate semantic graph.
22
+
23
+ Submit article targets, questions, authorized sources and batches through the
24
+ current planning schema. Keep remaining investigation in pending_scopes when
25
+ only part is ready. An unread source is unfinished, not implicitly excluded.
26
+ Missing essential evidence remains a scoped gap. Long-term exclusions need
27
+ the applicable user authorization.
28
+
29
+ The first executable plan is presented in the work-start report and waits for
30
+ feedback before bulk writing. Within the confirmed purpose and scope, later
31
+ investigation can append tasks or explicitly replace unfinished tasks through
32
+ the current plan-amendment action. Accepted content requires a revision task,
33
+ not replacement of the successful submission. No separate completion receipt
34
+ or mandatory planning pass per article is needed.
35
+
36
+ ## Authority and updates
37
+
38
+ Titles, age, archive locations and polished language do not prove authority or
39
+ irrelevance. Compare substantive content, intended audience and applicability.
40
+ Historical decisions or procedures may still answer the reader's question.
41
+ Ask about a missing decision when including or excluding it materially changes
42
+ the agreed scope; do not ask again when the purpose is already established.
43
+
44
+ Read the current article when proposing a substantive revision. Preserve useful
45
+ steps, examples, images and limitations. A source change is a reason to
46
+ reconsider affected content, not to rewrite every article. Follow current CLI
47
+ recovery on a changed source, stale input or identity collision; never invent
48
+ an alias or restore an old workflow from formal storage.
@@ -1,115 +1,33 @@
1
- # Structure, Artifact promotion, and candidate resolution
2
-
3
- Plan reader output from source-backed Sections outward. Headings and files are
4
- navigation aids; the stable unit is the reader subject plus its evidence-bound
5
- Sections. Context owns identity derivation, schema validation, layout, paths,
6
- conflict detection, Review, and publication.
7
-
8
- ## Section first, Artifact when justified
9
-
10
- Keep a candidate as a Section by default. A heading, table row, FAQ label,
11
- single warning, short example, or local subtopic is not independently a reader
12
- Artifact merely because it has a title.
13
-
14
- Record the semantic boundary decision in conformance reasoning as
15
- `retain-section-group` or `promote-reader-artifact`; these are fixture and
16
- guidance labels, not extra fields in `ArtifactResult`.
17
-
18
- Promote source material to a dedicated Artifact when evidence supports at least
19
- one of these boundaries:
20
-
21
- - it serves a distinct reader task or projection intent from adjacent material;
22
- - it is independently retrievable outside the surrounding page and carries
23
- enough context to answer that task without the parent prose;
24
- - it has its own authority, lifecycle, owner, timeline, or cross-cutting scope;
25
- - it is a coherent, substantial unit whose inclusion would make the surrounding
26
- Artifact mix unrelated reader purposes;
27
- - another Section in the proposed Artifact has an incompatible projection
28
- intent under the current CLI profile contract.
29
-
30
- Do not promote solely because the source has many headings, a recognized label,
31
- or a long table. Do not create thin Artifacts to improve counts. If material has
32
- an independent subject rather than merely a separate reader page, use the
33
- workset's target-resolution choices; never invent a Node identity from a title.
34
-
35
- Do not collapse a substantial captured document into a page that only lists its
36
- headings or says the source should be consulted. Preserve supported procedures,
37
- API tables, examples, constraints, compatibility notes, and decisions inside
38
- the selected reader Artifact; remove only navigation chrome, conversion noise,
39
- duplicates, and content with an explicit omission disposition.
40
-
41
- Within one Artifact, every Section must use that Artifact's `artifact_kind`.
42
- Start by grouping only Sections with the same exact
43
- `document_kind + reader_goal + artifact_kind` intent. Different intents may be
44
- combined only when the current CLI-provided contract proves they share one
45
- layout destination and the combined page remains one coherent reader task. If
46
- the contract would project them differently, return separate Artifacts; do not
47
- return a path or ask Context to move Sections silently.
48
-
49
- ## Reading density
50
-
51
- Density is a private reading and planning strategy, not Result metadata, a
52
- quality score, or a separate stage.
53
-
54
- | Mode | Use when | Authoring behavior |
55
- | --- | --- | --- |
56
- | `macro` | A long source has many major headings or broad topic shifts. | Establish major reader-task boundaries first, then inspect each boundary before producing Sections. |
57
- | `meso` | A normal guide or record has several related sections. | Use meaningful local units and preserve precise evidence spans; this is the default. |
58
- | `micro` | Material is fragmented, note-like, or dense with short independent claims. | Keep evidence windows narrow and avoid bundling unrelated claims into one Section. |
59
- | `single-pass` | A short coherent source can be read completely within the supplied budget. | Avoid over-segmentation while still closing every evidence disposition. |
60
-
61
- Markdown headings are planning hints, not hard boundaries. Sibling headings can
62
- remain together when they form one coherent reader answer. Unrelated headings
63
- must split even if a common parent exists. Density never chooses authority,
64
- identity, projection intent, or pass/fail status.
65
-
66
- ## Candidate resolution
67
-
68
- Treat CLI anomaly and existing-target views as constraints on a semantic
69
- decision, not as automatic recommendations. For each candidate, choose one
70
- evidence-backed outcome:
71
-
72
- - `accept-correction`: the diagnostic identifies a real ownership, grouping,
73
- projection, or evidence error; return the corrected Result.
74
- - `dismiss-with-rationale`: the signal is mechanically true but the current
75
- grouping remains semantically coherent; preserve the Result and state the
76
- source-backed rationale in the supplied diagnostic surface.
77
- - `keep-unresolved`: evidence cannot distinguish valid alternatives; return the
78
- registered material question, target-resolution, unsupported, or diagnostic
79
- disposition instead of guessing.
80
-
81
- For duplicates, keep one canonical statement when evidence and reader purpose
82
- are the same. Preserve separate Sections only when each has a distinct
83
- authority, lifecycle, reader task, or evidence boundary. For conflicting facts,
84
- do not pick a winner from file order, heading order, recency without authority,
85
- or polished wording. Use source precedence supplied by the workset; otherwise
86
- keep the conflict unresolved.
87
-
88
- When the workset offers target-resolution entries:
89
-
90
- - reuse an existing subject only for an exact evidence-supported match;
91
- - create an independent subject only when the evidence supports standalone
92
- identity and reader value;
93
- - request material when the semantic decision is possible but evidence is
94
- insufficient;
95
- - return unsupported when the required parser or capability is absent.
96
-
97
- The CLI validates subject keys, refs, schema, digests, collision rules, stale
98
- state, and output layout. Do not repair those mechanical failures by changing a
99
- semantic label, creating an alias, or returning a hand-authored path.
100
-
101
- ## Result check
102
-
103
- Before returning an `ArtifactResult`, confirm:
104
-
105
- - every actual Section has one registered projection intent and current
106
- evidence;
107
- - mixed reader intents were evaluated Section by Section;
108
- - every dedicated Artifact clears an evidence-backed promotion boundary;
109
- - every Artifact contains only layout-compatible Sections and one Artifact
110
- kind;
111
- - density affected only reading granularity, not authority or quality claims;
112
- - duplicates, conflicts, and ambiguous targets have an explicit semantic
113
- disposition;
114
- - no collection, path, temporary batch identity, or unsupported claim appears
115
- in the Result.
1
+ # Article and section boundaries
2
+
3
+ Use stable articles and sections, not graph subjects or Artifact promotion
4
+ records. A heading, warning, short example or table row does not automatically
5
+ justify an independent article. Keep a contribution in its existing article
6
+ when it serves the same reader question.
7
+
8
+ Create a separate article when a distinct reader task has enough supported
9
+ context to stand alone, or when combining incompatible audiences, versions or
10
+ procedures would confuse the reader. Several authorized sources may contribute
11
+ to the same article. Group by meaning, not transport batches or folder names.
12
+
13
+ For a large document, inspect major topic boundaries first; for a coherent
14
+ short document, a single reading may be enough. Narrow citation windows remain
15
+ necessary in either case. This is a private reading strategy, not a recorded
16
+ density mode or a mandatory ledger.
17
+
18
+ Preserve useful procedures, interface tables, examples, conditions, images and
19
+ decisions. Do not replace a substantial source with a heading inventory or a
20
+ sentence sending readers elsewhere. Remove repetition and conversion residue
21
+ only without losing useful meaning. Page count and production cost are not
22
+ reasons to discard required knowledge.
23
+
24
+ Compare meaning, applicability and authority before merging duplicates.
25
+ Conflicting accounts may describe different dates, environments or intentions.
26
+ Keep the distinction explicit or request essential evidence; file order and
27
+ polished wording do not choose the winner.
28
+
29
+ When revising, preserve article identity and unaffected section identities.
30
+ Use the task's base Markdown and reference table, and the current edits schema
31
+ for replacements, splits, merges or deletions of sections. A new article plan
32
+ does not authorize direct edits to formal files or silently dropping accepted
33
+ content. CLI handles conflicts, real source checks and safe writes.
@@ -19,13 +19,7 @@
19
19
  "purpose": "required",
20
20
  "reader_question_refs": [
21
21
  "question:reader-structure"
22
- ],
23
- "evidence_refs": [
24
- "evidence:anonymous-guide-source"
25
22
  ]
26
23
  }
27
- ],
28
- "evidence_refs": [
29
- "evidence:anonymous-guide-source"
30
24
  ]
31
25
  }