@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,99 +1,109 @@
1
1
  # Creating a reusable Indexer Skill
2
2
 
3
- A Provider is a portable Skill bundle. Workspace-local customization changes a
4
- selected Provider for one workspace; it is not the packaging format for a new
5
- Provider. Start from the source interpretation and reader task, then choose
6
- primary replacement or an advertised extension.
7
-
8
- ## Package and protocol
9
-
10
- A typical instruction-only bundle contains:
11
-
12
- ```text
13
- context-example-indexer/
14
- SKILL.md
15
- context-indexer.yaml
16
- references/indexer.md
17
- references/writing.md
18
- templates/reader-guide.md
19
- ```
20
-
21
- The name is illustrative. Use a discoverable context-…-indexer… name and an
22
- explicit Provider identity/version. SKILL.md describes when the lifecycle may
23
- select it; context-indexer.yaml declares context.indexer.provider/v1, domains,
24
- activation, profiles, operations and resources. Instructions and templates must
25
- be declared for the profiles using them. Do not copy unused profiles, composers
26
- or resource paths. Do not add a provider manifest to the creation assistant itself.
27
-
28
- Start from the [minimal manifest](indexer-manifest-example.md), which gives the
29
- field tree in three groups: required, required once a capability is declared, and
30
- optional. Read the [protocol](../reference/indexer-provider-protocol.md) for the
31
- subsystem rules behind those fields selection validation, partition authority,
32
- overlays, controlled invocation and the [selection
33
- guide](indexer-provider-and-customization.md) for composition.
34
- The four built-in examples are context-code-indexer, context-markdown-indexer,
35
- context-note-indexer and context-sessions-indexer. The latter two are independent
36
- source interpreters using markdown-domain contracts. Use their source-specific
37
- references instead of making a Markdown Provider accept everything.
38
-
39
- ## Find a real example
40
-
41
- If Context CLI is available, inspect `context indexer catalog --format json`.
42
- Use the selected entry's guidance.skill_path and guidance.manifest_path to locate
43
- its bundle; read only that example and its declared resources. Alternatively use
44
- an exact Host-exposed installed Skill. Do not guess cache paths. This read-only
45
- catalog use is for Provider development, not a new production discovery gate.
46
-
47
- Choose one profile and follow its manifest references through instructions and
48
- template to its declared results. A code example demonstrates parser facts and
49
- public APIs; a document example demonstrates evidence-based consolidation;
50
- a note example demonstrates excerpts versus summaries; a sessions example
51
- separates decisions, rejected proposals and optional change associations.
52
- Adapt behavior, not only names. The example's breadth is not a minimum feature
53
- requirement for a specialized Provider.
54
-
55
- ## Validate against the installed SDK
56
-
57
- Use the matching SDK's public exports. For community installations the package
58
- is @c4a/context; for an internal distribution use its supplied SDK coordinates.
59
- With the SDK available, this Node ESM check validates the manifest and declared resource paths:
60
-
61
- ```js
62
- import { loadIndexerProviderManifest } from '@c4a/context';
63
- const manifest = await loadIndexerProviderManifest(process.argv[2]);
64
- console.log(manifest.id, manifest.version);
65
- ```
66
-
67
- The argument is the Skill bundle directory. This check does not establish that
68
- all resources are usable or that the Provider can produce useful pages. Check
69
- all declared resource paths stay within the bundle and exist; validate templates
70
- with the SDK template loader and their declared profile contracts. Consult the
71
- installed exported signatures before writing the runner: do not invent a CLI
72
- validate command or fabricate a production Route to run a development check.
73
-
74
- Template protocol is context.indexer.template/v1. Semantic prose and deterministic
75
- Facts have separate variables; registered renderers own program blocks. A
76
- Provider cannot invent a renderer or an arbitrary document kind. Use supported
77
- profile/artifact contracts or the existing declared overlay mechanism.
78
-
79
- Use anonymous fixtures that demonstrate the advertised source interpretation:
80
- one useful result, material that cannot support a claim, and an existing-page
81
- update. Test primary/extension ownership only if that composition is advertised.
82
- Test the complete selected bundle in a disposable workspace through the normal
83
- lifecycle when the necessary CLI and materials are available. Preserve the
84
- user's live workspace. Record exact commands and failures; clearly distinguish
85
- schema/resource checks from semantic review and lifecycle verification.
86
-
87
- ## Distribution and use
88
-
89
- Keep references and templates inside the bundle, with portable relative paths.
90
- The complete runtime file ledger determines integrity; do not hand-write a hash
91
- or copy another bundle's integrity. Use the target distribution's existing
92
- packaging/resolution tools. Development fixtures need not be shipped as runtime
93
- resources. Installation may use any supported organizational channel.
94
-
95
- A business Provider may be enabled through the host and selected instead of the
96
- default. Prefixes aid discovery; the manifest and verified resources determine
97
- compatibility. Select through the current Context Provider-selection Route when
98
- the user requests actual use. No new CLI install registry or creation-specific
99
- production state is needed.
3
+ An Indexer is source-specific investigation and writing guidance. It helps the
4
+ Agent understand authorized material and produce useful articles; it does not
5
+ own workflow routing, source authorization, review or permanent article identity.
6
+ Several skills may contribute to one module or article.
7
+
8
+ ## Minimal package
9
+
10
+ Start with SKILL.md. Add references for substantial source-specific guidance,
11
+ templates when they help readers, and scripts only when a concrete repeated
12
+ operation needs deterministic assistance. A simple note interpreter needs no
13
+ script, manifest, profile registry or template catalog.
14
+
15
+ Use a discoverable name and a precise description. State when the skill helps,
16
+ which sources it understands, and real limits. Refer to bundled resources by
17
+ portable relative paths. Use an existing host-visible Indexer as a behavioral
18
+ example, not as a collection of fields to copy.
19
+
20
+ Do not generate context-indexer.yaml, an exact-version selection ritual,
21
+ integrity receipts, primary/extension ownership, article producer records or
22
+ a per-member disposition protocol. A release may have ordinary package
23
+ metadata; that is not a requirement for the Agent to verify before working.
24
+
25
+ ## Investigation produces a skeleton
26
+
27
+ Explain the recognizable source signals and how to examine them cheaply.
28
+ For code, identify useful feature families from declarations or registrations,
29
+ with names and locations. A dependency or filename is a hint, not proof of
30
+ runtime behavior. For documents, use titles, opening excerpts and heading
31
+ hierarchy, with optional full reading to settle grouping. For saved notes and
32
+ sessions, directly interpret the provided record rather than scanning history.
33
+
34
+ A technology-specific helper, if needed, must have an explicit input boundary,
35
+ bounded time/output and a useful stopping behavior. Return names, counts and
36
+ entry locations, not source bodies or a full symbol/relationship graph during
37
+ planning. Distinguish checked counts from totals and identify unfinished scope.
38
+ Do not fabricate feature counts from file counts or silently treat timeouts as
39
+ empty results. Store large results in temporary files rather than long stdout.
40
+
41
+ Document any prerequisites and error recovery. Do not install dependencies,
42
+ parse the whole repository or read unrelated modules by default. A helper that
43
+ needs expensive semantic analysis belongs to selected writing tasks, not the
44
+ initial investigation path. Direct Agent investigation is a valid default
45
+ when a helper adds no useful capability.
46
+
47
+ ## Guide topics without owning the plan
48
+
49
+ Describe which reader questions visible signals can suggest, and what further
50
+ evidence the writer needs. A route family, component or storage boundary may
51
+ justify a recurring outline, but not an automatic fixed number of pages.
52
+ A component manual may require individual analysis during writing.
53
+
54
+ Use existing article titles, descriptions and references as navigation, then
55
+ read relevant bodies or sources when necessary. Code can establish structure;
56
+ documents may supply better business topics. Multiple authorized sources may
57
+ form an article. Avoid duplicating a page merely because another skill or
58
+ source family supplied its material.
59
+
60
+ The current stage provides available-skill declarations and temporary planned
61
+ usage. The Agent selects useful skills and article batches. Keep uncertain
62
+ investigation and real evidence gaps visible. Required scope cannot be dropped
63
+ to reduce processing cost, and long-term exclusions require the applicable
64
+ user decision.
65
+
66
+ ## Writing and file handoff
67
+
68
+ Explain source authority, meaningful reader output, real references and
69
+ revision behavior. Keep examples, assumptions and confirmed facts distinct.
70
+ A session summary is not a transcript; a change URL is not proof of deployment;
71
+ a declaration or test double is not independently verified runtime behavior.
72
+
73
+ Consume the current task directory, not a copied schema from a past release.
74
+ New articles use the supplied Markdown/reference contract; revisions can use
75
+ the task's base article and fragment edits. Write drafts and manifests to the
76
+ designated Agent temporary directory. The coordinator submits a finished
77
+ subset through the current CLI action and follows its receipt or recovery.
78
+
79
+ Do not write formal knowledge or mutate sources directly. Do not add a
80
+ parallel Author/Composer result envelope, semantic graph, field-by-field fact
81
+ ledger or skill identity to formal content. Source permissions, input
82
+ baselines, real citations and safe writes remain CLI responsibilities.
83
+
84
+ ## Validate the claimed capability
85
+
86
+ Check skill frontmatter and every referenced local resource. Run new scripts
87
+ against small anonymous fixtures, including an empty input, a bounded partial
88
+ scan and any failure/recovery behavior they claim. Confirm the helper does not
89
+ escape its selected scope or emit secret/source-body dumps.
90
+
91
+ Exercise useful output, insufficient evidence and a revision of an existing
92
+ article. For source families advertised by the skill, include representative
93
+ differences: an unadopted proposal, a document requiring optional deeper reading,
94
+ or two technologies in one module. Do not claim support for families not tested.
95
+
96
+ A static resource check does not prove semantic quality, and a reviewed example
97
+ does not prove the CLI submission works. If an actual Context run is available
98
+ and requested, validate through the existing workflow in an isolated workspace,
99
+ including report confirmation and file submission. Report unavailable checks
100
+ honestly; do not fabricate a route or silently install tools to make it pass.
101
+
102
+ ## Distribution
103
+
104
+ Keep the package portable and use the user's chosen installation channel.
105
+ The host lists available skills; planning records only useful temporary usage.
106
+ Formal articles, sources and necessary long-term scope decisions survive a
107
+ new machine. Unfinished drafts, candidates, skill choices and execution receipts
108
+ remain temporary; a new user can start a fresh production run without restoring
109
+ the former skill bundle or process.
@@ -1,36 +1,32 @@
1
1
  ---
2
2
  name: context-markdown-indexer
3
- description: Context-managed Provider for source-grounded document knowledge. Use only when the Context Indexer lifecycle selects this Provider, not as a standalone workflow.
3
+ description: Investigate captured document outlines and write source-grounded Context articles. Use when selected for the current authorized planning or writing task, not as a standalone import workflow.
4
4
  metadata:
5
5
  context-role: "indexer-provider"
6
6
  context-public-entry: "false"
7
- context-provider-version: "1.1.3"
8
7
  ---
9
8
 
10
9
  # Context Markdown Indexer
11
10
 
12
- Provider authors must satisfy
13
- `node_modules/@c4a/context/docs/guides/markdown-indexer-skill-authoring.md` and
14
- the shared Provider/customization guide before publishing or extending this
15
- Skill. Those documents are authoring contracts; the current captured evidence,
16
- workset and Route remain execution authority.
11
+ Use the current stage's reader purpose, authorized sources and submission schema.
12
+ Read [planning](references/semantic-planning.md) during investigation and
13
+ [writing](references/indexer.md) when writing. Consult
14
+ [reader outcomes](references/classification.md) or
15
+ [article boundaries](references/structure-and-artifacts.md) when the material
16
+ raises a real grouping choice. Do not read every catalog or template by default.
17
17
 
18
- Use this Provider only through the Context Indexer lifecycle. Context supplies exact profile/workset authority and one Authorized Workset View containing the permitted captured evidence. The Provider does not open source-specific readers, manage pagination/receipts, read arbitrary workspace paths, or write approved knowledge directly.
18
+ Start with the CLI's document titles, bounded opening excerpts and complete
19
+ H2/H3 outlines. Selectively read authorized full text where needed to decide
20
+ topics and writing batches. The outline is navigation, not evidence that a
21
+ claim is true or a fixed instruction to split one article per heading.
22
+ A coherent source may remain one article; several sources may form one topic.
19
23
 
20
- Treat the captured document as reader material, not as pipeline metadata. Every
21
- reader Artifact must preserve or synthesize the source-backed guidance needed by
22
- the selected profile. A heading inventory, directory summary, generic document
23
- description, internal Fact/View/digest count, or a sentence sending the reader
24
- back to the source is not useful knowledge and must not be emitted. Keep
25
- execution receipts, content digests, internal refs, and other recovery machinery
26
- out of reader Markdown. Bind each reader claim only to the smallest relevant
27
- source span or captured evidence set; never attach a whole document corpus or
28
- Authorized Workset View to a generic summary.
24
+ Use existing article navigation, including code-related topics, as possible
25
+ anchors. Do not force business concepts into code directory names. Source and
26
+ skill boundaries do not require separate articles or primary/extension binding.
27
+ No skill version, hash or complete-file receipt is required for production.
29
28
 
30
- For updates, read the current approved page as well as the selected change.
31
- Preserve applicable tasks, steps, images, limits and confirmed contributions;
32
- do not turn every update into a troubleshooting article. A newly supplied
33
- explanation can improve the existing page without becoming a separate topic. Source text or an image that cannot
34
- be read remains an explicit gap, not permission to delete the page.
35
-
36
- The machine-readable authority is `context-indexer.yaml`. Context materializes the detailed guidance only after verifying this Bundle's release identity and complete file ledger.
29
+ Read the relevant full source before writing; retain useful guidance, examples,
30
+ limits and actual regional citations. Write draft Markdown and references or
31
+ section edits in the designated temporary directory and submit through the
32
+ returned CLI action. Do not write formal knowledge or alter sources directly.
@@ -1,6 +1,6 @@
1
1
  protocol: context.indexer.provider/v1
2
2
  id: context-markdown-indexer
3
- version: 1.1.3
3
+ version: 1.1.4-alpha.1
4
4
  domains:
5
5
  - markdown
6
6
  activation:
@@ -67,7 +67,7 @@ provides:
67
67
  - decision-record
68
68
  logical_units:
69
69
  - id: reader-subject
70
- identity: canonical-subject-key
70
+ identity: stable-article
71
71
  artifacts:
72
72
  recommended:
73
73
  - content
@@ -1,63 +1,28 @@
1
- # Section classification and projection intent
2
-
3
- Classify evidence at Section granularity. A profile describes the source family;
4
- it does not force one whole document into one reader purpose. For every emitted
5
- Section, choose the semantic `document_kind`, `reader_goal`, and
6
- `artifact_kind` before grouping Sections into Artifacts.
7
-
8
- Use body evidence, source authority, audience, and the reader task. File names,
9
- URLs, headings, navigation labels, and the selected profile are hints, not proof
10
- that every Section has the same intent. Do not infer authority from polished
11
- language or an official-looking path.
12
-
13
- ## Canonical projection vocabulary
14
-
15
- The current community Markdown profiles use the following semantic intents.
16
- The CLI profile contract owns their stable storage projection; this table does
17
- not authorize a collection or output path.
18
-
19
- | Profile or Section family | Use when the evidence primarily… | `document_kind` | `reader_goal` | `artifact_kind` |
20
- | --- | --- | --- | --- | --- |
21
- | `domain-reference` | defines a durable domain, vocabulary, boundary, or business concept | `domain-reference` | `understand-domain` | `content` |
22
- | `product-requirements` | states product intent, behavior, scope, actors, or acceptance needs | `product-requirements` | `understand-product-intent` | `content` |
23
- | `technical-guide` | explains architecture, runtime behavior, interfaces, or design constraints | `technical-guide` | `understand-technical-design` | `content` |
24
- | user/developer product guidance | explains a user-visible capability or product behavior | `product-requirements` | `understand-product-intent` | `content` |
25
- | user/developer technical guidance | explains implementation-facing design or integration context | `technical-guide` | `understand-technical-design` | `content` |
26
- | user/developer task guidance | gives a repeatable task, setup, operation, or troubleshooting sequence | `task-guide` | `complete-reader-task` | `content` |
27
- | public API contract | supports lookup of public operations, fields, compatibility, or examples | `public-api-reference` | `look-up-public-contract` | `content` |
28
- | public contract policy | states normative compatibility or usage constraints around a public contract | `public-contract-policy` | `follow-public-contract-policy` | `content` |
29
- | `runbook` | directs operation, diagnosis, mitigation, recovery, or rollback | `runbook` | `operate-or-recover-system` | `content` |
30
- | `faq-support` | answers a durable reader question with reusable evidence | `faq-support` | `resolve-reader-question` | `content` |
31
- | `standard-policy` | defines a stable rule, standard, policy, or compliance boundary | `standard-policy` | `follow-standard-or-policy` | `content` |
32
- | `decision-record` | records alternatives, a choice, rationale, and consequences | `decision-record` | `understand-decision-and-tradeoffs` | `content` |
33
- | `incident-review` | records impact, timeline, cause, response, and follow-up learning | `incident-review` | `learn-from-incident` | `content` |
34
- | `test-validation` | defines or reports verification, acceptance, or observed results | `test-validation` | `verify-behavior-or-acceptance` | `content` |
35
- | release explanation | explains what changed, compatibility, or release impact | `release-guide` | `understand-release-change` | `content` |
36
- | migration procedure | tells a reader how to migrate, verify, and recover | `migration-guide` | `complete-migration` | `content` |
37
-
38
- `documentation-site` is an umbrella router. Apply the matching row above to
39
- each source-backed Section; do not invent a site-wide projection intent and do
40
- not collapse a multi-document site to one classification.
41
-
42
- ## Classification order
43
-
44
- 1. Establish the Section's current source authority and audience from the
45
- authorized evidence view.
46
- 2. State the concrete question the Section enables a reader to answer or task
47
- it enables them to complete.
48
- 3. Choose the narrowest matching `document_kind` and `reader_goal` pair from
49
- the current profile contract.
50
- 4. Use `artifact_kind: content` for the current community Markdown Bundle. Do
51
- not invent a specialized Artifact kind unless the supplied profile contract
52
- explicitly registers it.
53
- 5. Return the intent on every actual or template-projected Section. Do not put
54
- a collection, directory, filename, or package root in the Result.
55
-
56
- When a Section mixes multiple reader tasks, split it along continuous evidence
57
- boundaries. Keep one Section only when the material forms one coherent answer
58
- for one reader goal. A heading change alone does not require a split, and a
59
- shared heading does not justify combining unrelated tasks.
60
-
61
- If no registered intent fits, return a material/capability disposition instead
62
- of selecting the nearest label. Unsupported or authority-ambiguous material
63
- must not become a reader Artifact.
1
+ # Choose a useful reader outcome
2
+
3
+ Use the content, audience and reader question, not a required classification
4
+ tuple for every section. The current plan schema supplies supported output
5
+ paths; article title and description belong in its Markdown.
6
+
7
+ | Reader need | Useful form |
8
+ | --- | --- |
9
+ | Understand a term, boundary or business rule | Domain explanation with scope and examples |
10
+ | Understand intended product behavior | Requirements and acceptance conditions, distinct from implementation |
11
+ | Understand architecture or integration | Technical explanation, contracts and relevant limitations |
12
+ | Complete a repeatable task | Guide with prerequisites, actions and checks |
13
+ | Look up a public interface | Contract reference with actual parameters and examples |
14
+ | Diagnose or recover | Runbook with symptoms, safe actions and verification |
15
+ | Understand a choice | Decision, alternatives, rationale and consequences |
16
+ | Learn from an incident | Impact, observations, causes and response, separating hypotheses |
17
+ | Interpret a test | Method, scope and what the observed result establishes |
18
+ | Follow a rule or migrate | Normative boundaries or migration steps, compatibility and recovery |
19
+
20
+ These forms guide writing; they are not profile registrations or fixed
21
+ templates. One useful article can contain related explanations, procedures and
22
+ examples. Split only when distinct reader tasks require it, not because two
23
+ sections would previously have had different projection labels.
24
+
25
+ Do not turn a document site into one generic summary or every note into a FAQ.
26
+ An unfamiliar topic or imperfect stock outline is not a missing capability.
27
+ Ask for essential missing material; otherwise preserve bounded uncertainty
28
+ and write what the authorized source actually establishes.
@@ -92,5 +92,5 @@ Protected-value and reference checks remain mechanical safeguards.
92
92
  - Struck-through text that is the only surviving historical record may be kept
93
93
  when it has continuing reader value; no signal-specific receipt is required.
94
94
 
95
- Before returning a decision, confirm every Section has one outcome and no
96
- revision accidentally changes authority, evidence, identity, or protected values.
95
+ Before submitting, check that the revision preserves authority, evidence,
96
+ identity and protected values. Do not submit an outcome ledger for every section.
@@ -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.