@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,328 +1,137 @@
1
- # Code Indexer authoring contract
2
-
3
- Consume only the current workset authority and the single Authorized Workset View supplied by Context. Normalized parser facts, verified layer fragments, document evidence, and tool observations all arrive through that View; do not open source-specific evidence channels or manage their pagination and receipts.
4
-
5
- Use the bound requirement's `purpose` and open `reader_goals` to identify the
6
- reader's task. Integration guides prioritize imports, normal use, interfaces
7
- and relevant limitations. Maintenance guides retain implementation handoffs,
8
- identity and field transformations, actual failure handling, state and success
9
- conditions when these serve the requested task. Judge coverage by
10
- whether supported profile questions and stable capability boundaries are
11
- actually explained, never by symbol, file, relation, or evidence counts.
12
-
13
- ## Classify before selecting templates
14
-
15
- Classify each requested module from current manifests, stable entries, public contracts, runtime registration, maintained documentation, and source-backed boundary evidence. Select one primary profile and only the additional profiles supplied by the current workset. A directory name, framework dependency, class suffix, or generated file is not sufficient classification evidence.
16
-
17
- Read only the templates materialized for the selected profiles. Combine their questions into one deduplicated plan for the reader-visible capability; a template is guidance, not a source of facts, page counts, output paths, thresholds, or authority. Keep a repository container, public contract, runtime boundary, event flow, persistence boundary, adapter, generated-source provenance, and cross-module handoff separate when they answer different reader questions. Do not copy a template outline when source evidence does not support its sections.
18
-
19
- Partition selects permitted intents and templates from the current Provider
20
- catalog. A topic may contain several articles with distinct reader tasks and
21
- stable keys; members still have one primary owner. Use the applicable article
22
- catalog to select complementary articles, not every available type. Save the
23
- reader task, article outlines, priority and natural delivery boundary. Author
24
- reuses that accepted plan and receives only its selected writing blueprints. A selected page
25
- program renders declared API fields from current Facts in the same Artifact as
26
- the semantic prose. Do not transcribe its table or manufacture missing defaults.
27
- Optional `template_variables` supply only the program's declared semantic slots;
28
- write the remaining supported guidance as normal Sections.
29
-
30
- For websites, organize around page tasks and data boundaries; distinguish host
31
- and remote declarations from verified loading behavior. For services and BFFs,
32
- identify actual inbound registration or IDL before describing a remote API;
33
- an outbound client is not a server. For events and scheduled tasks, explain the
34
- registered trigger and source-confirmed completion, retry and failure behavior.
35
- No dedicated behavior Fact is required when authorized captured source answers
36
- the question. Ask for additional material only when that source is insufficient
37
- for the core reader task; do not block other complete pages on local uncertainty.
38
-
39
- Reuse accepted plans and Results across deliveries. Follow the current theme
40
- wave and page batch selected by Context through Review, close and build. A theme
41
- can span several page batches; continue its remaining articles after build.
42
- A readable first batch does not mean the whole source is finished.
43
-
44
- ## Partition and identity
45
-
46
- Use the complete scope/member overview first; inspect linked fact details and
47
- captured source only where necessary to resolve a theme. Check public entrypoints,
48
- shared types, wrappers and lifecycle boundaries before setting `ready_for_author`.
49
- Do not infer a whole repository from samples or automatically exclude internal,
50
- generated or deprecated paths. Every supplied member still needs a disposition.
51
- A ready theme may be written and delivered while other themes remain in planning.
52
- Preserve the accepted subject when subsequent material supplements it; start from
53
- its approved prose and retain unaffected content. Source details deferred during
54
- planning must be examined before corresponding behavior claims in Author.
55
-
56
-
57
- Public API coverage does not imply one page per exported symbol. Group simple
58
- helpers, related types and aliases under their caller-facing capability while
59
- retaining useful inputs, outputs and edge cases. Give an API its own page when
60
- it has an independent integration contract or reader task. Tests, fixtures and
61
- stories support those contracts; they are not reader targets merely because
62
- they are present in the inventory.
63
-
64
- Same names from different public entrypoints or incompatible current/deprecated
65
- contracts are different subjects. Qualify their semantic subject and title by
66
- entrypoint or lifecycle; do not merge them by name or let a legacy title describe
67
- a current API. An explicit migration/comparison page may relate both, but must
68
- explain which contract belongs to each entrypoint. Preserve already accepted
69
- subjects during continuation; do not repartition them for cosmetic grouping.
70
- For retained deprecated components, use the optional guidance in
71
- [the component-library profile](../templates/component-library.md#optional-guidance-for-deprecated-components).
72
- It guides source-backed differences, not mandatory columns or automatic migration advice.
73
-
74
- Actively assess useful coverage from available public entrypoints, maintained
75
- guidance, explicit lifecycle notices and representative source material. Identify
76
- what answers the reader's task, what is needed only to support it, and what may
77
- be outside it. This applies to code of any age: deprecated APIs can be essential
78
- for existing users, while current code may be irrelevant to this task. A legacy
79
- directory, generated file or test is a clue, not an automatic exclusion; examples,
80
- tests and generated contracts can contain necessary usage or interface facts.
81
-
82
- When a material new scope choice appears, explain the concrete region, available
83
- counting basis, recommendation and coverage consequences to the user before
84
- writing dependent pages. Unnecessary regions consume tokens and preparation,
85
- writing and review time, and can obscure useful guidance with duplicate or
86
- conflicting content. Do not trade required coverage for speed, invent savings,
87
- scan the whole repository just to count, or treat worksets as component/page counts.
88
- Follow Context's existing conversational scope clarification even in managed mode;
89
- reuse explicit decisions and do not invent a scope-confirmation Gate. Apply agreed
90
- member dispositions through the current Result; do not silently narrow scope,
91
- remove accepted pages or restart unrelated work. If lifecycle relevance is not yet
92
- checked, report that limitation rather than asserting there is no obsolete content.
93
-
94
- For partition work, close every inventory member as owned, excluded, or unsupported and use stable semantic subjects. Each member has exactly one primary owner; extension layers may enrich but cannot claim final authority. Do not create ordinal batches or infer identity from display titles, filenames, headings, or traversal order. If no defensible semantic grouping exists, return the protocol failure that permits the CLI-owned catalog fallback.
95
-
96
- Apply the grouping principles below and the selected-profile guidance already
97
- present in `resolved-indexer-instructions` to the current View. Context owns
98
- strategy selection, ordering, retry, and catalog fallback; strategy identifiers
99
- and digests are internal bookkeeping, not additional material to retrieve or
100
- fields to submit. Return semantic groups and member dispositions only within
101
- the supplied inventory and subject contract.
102
-
103
- Group related identities by a capability, entrypoint, protocol boundary, lifecycle stage, state owner, or handoff. A granular catalog is appropriate only when the selected profile and reader goal require a public API, protocol, command, or registry reference. A cross-module chain requires an explicit trigger, source-backed joins on both sides of every boundary, transformations or state handoffs, and a terminal outcome; imports or similar names do not prove execution order.
104
-
105
- A module-level overview may be one logical unit, but it must not own every
106
- member of a large application or service when current facts expose stable route
107
- families, public capability families, protocol surfaces, runtime workers, or
108
- storage boundaries. Give those boundaries separate semantic groups and keep the
109
- overview limited to navigation and shared lifecycle. This keeps each Author View
110
- bounded enough to inspect and prevents a catch-all page from replacing useful
111
- knowledge. Never split by traversal order, member count, or numbered batches.
112
- Renaming a fact-kind bucket such as all relations or all symbols is not semantic
113
- partitioning; assign cross-boundary facts to the smallest capability, protocol,
114
- runtime, or state boundary that they actually explain.
115
-
116
- Create a reader target only from a CLI-supplied declaration, public export, contract declaration, runtime registration, approved Subject, or Partition Subject identity. Import/re-export aliases, ordinary references, internal helpers, and lightweight evidence may enrich their canonical owner but cannot independently authorize a target. Normalize aliases into the supplied canonical identity. Never promote a name merely because it appears in prose or has many inbound references.
117
-
118
- ## Durable identity and reader-output boundary
119
-
120
- Keep durable locator identities compact and semantic. A locator may contain a
121
- normalized file coordinate, declaration identity, relation kind, line and a
122
- content digest, but never a raw call expression, implementation body, complete
123
- configuration value, remote response, secret, token, or credential-like source
124
- text. Full source material belongs only in the bounded process-local Fact payload;
125
- reader prose consumes its verified meaning, not the internal carrier.
126
-
127
- The selected profile templates are mandatory authoring guidance. Use current
128
- facts to answer their reader questions about responsibility, entrypoints,
129
- contracts, state, handoffs, failure behavior, configuration and operation. Omit
130
- unsupported sections. Do not replace those answers with a generic introduction,
131
- an exhaustive or representative symbol/path list, Parser/Indexer ownership text,
132
- selected-Fact counts, View/receipt/digest metadata, or claims about what the
133
- pipeline did. Those details neither help a reader nor recover production state.
134
-
135
- State caller-visible contracts directly when current facts support them:
136
- required inputs, defaults, quantity or size limits, and asymmetric rules between
137
- operations or variants. Naming an internal validator, mapper, hook, or generic
138
- "validation" step does not explain the contract. Omit details that current facts
139
- cannot prove rather than inferring them from an implementation name.
140
-
141
- ## Declaration, implementation and test boundaries
142
-
143
- Distinguish the declared API from the implementation reached through the actual
144
- entrypoint. Inherited properties, comments and names do not prove forwarding,
145
- defaults or behavior. Tests support only what their assertions and non-mocked
146
- dependencies exercise; DOM presence alone does not prove visibility, focus or
147
- accessibility. Separate source-confirmed behavior from runtime hypotheses that
148
- need execution, and keep different platforms and deprecated entrypoints distinct.
149
-
150
- Knowledge production is not an exhaustive defect audit. Explain a discovered
151
- limitation when it changes how the reader calls, integrates or migrates the
152
- capability; retain the normal usage and responsibility as the page's focus.
153
- Request missing material only when it is needed for that reader task. A supported
154
- implementation limitation is useful knowledge, not a Context tool failure or a
155
- reason to pause the workflow. Do not expand into browser testing, source fixes
156
- or a separate issue per suspected defect unless that work was requested.
157
-
158
- ## Author Result and evidence
159
-
160
- For author work, produce exactly one Result for the supplied logical unit. Keep deterministic catalogs separate from explanatory prose, bind every declaration and Section to current evidence, and select only an Artifact policy variant listed in the workset. Missing material must become a canonical question disposition; never invent an answer or emit placeholder knowledge.
161
-
162
- Before authoring, identify the concrete selected-profile question that the
163
- logical unit answers. Formal question refs are used only when the workset
164
- authorizes them, but their absence does not permit generic prose: do not turn the
165
- Partition Subject, group label, or available Fact volume into an implied reader
166
- purpose. Close the group as catalog-only when no profile question applies, or
167
- return to requirement/registry planning when required coverage lacks authority.
168
-
169
- An inventory group with no reader-authorizing public export, contract, runtime registration, approved Subject, or Partition Subject is catalog-only. Close its inventory dispositions and return no reader Artifact; do not publish a page that merely says the unit exists. Conversely, when the workset supplies current contract facts such as public signatures, properties, events, defaults, variants, examples, or source roles, consume each applicable fact in the matching template question or give it an explicit legal disposition. A generic directory summary is not a substitute for supplied contract facts.
170
-
171
- Select `artifact_intent` from the current Author authority's allowed tuples. Context applies that tuple to the published sections and resolves the collection; do not submit per-section layout metadata or invent a collection name.
172
-
173
- When the same Authorized Workset View contains CLI-authorized captured documents or tool snapshots, treat them as ordinary input evidence for the current logical unit. Use that material to answer a supplied question only when its evidence contract permits; otherwise keep the canonical material-gap disposition. Do not create a second answer flow or inspect registered sources outside the View.
174
-
175
- Treat the CLI inventory as the complete denominator, not a sample. Parser facts may prove files, declarations, entries, contracts, relationships and written default expressions; they do not by themselves prove business meaning, evaluated runtime values, failure behavior, or ownership. Every relationship must cite the concrete evidence for its own handoff. Do not repeat one whole-page evidence set across unrelated facts, and do not reduce a multi-source fact to one arbitrary primary file.
176
-
177
- With a program-generated API table, let its bound facts supply the field rows,
178
- types and defaults. Author prose explains when to use the API, how to combine it,
179
- and relevant pitfalls or migration limits. Refer to individual parameters when
180
- needed for that explanation; do not duplicate the table or narrate every row.
181
- An incorrect generated value needs a field-specific source reference and the
182
- current repair flow, not a contradictory prose override. This does not remove
183
- fact coverage or source verification, and does not apply to APIs for which the
184
- selected template provides no suitable program block.
185
-
186
- For generated API content, separate the displayed API from the facts supporting
187
- it. Keep relevant implementation or inherited-type facts as supporting material
188
- even when they need no separate page; use the current catalog/section references,
189
- not an exclusion to suppress duplicate presentation. Establish associations from
190
- declared links, not matching names. Shared types can have different defaults for
191
- different callers. A written `resolveDefault()` is an expression, not its evaluated
192
- result; an unresolved import does not prove an empty API. Read available captured
193
- source when the reader's task requires more certainty. Request material only if
194
- it is absent; report an extraction or rendering discrepancy when the source is
195
- already available. Preserve supported content and explain the specific limit.
196
-
197
- Inventory closure is not a license to attach a convenient fallback binding to
198
- unrelated members. A `boundary-only` member still needs evidence that places
199
- that member in the current semantic boundary; otherwise use the legal catalog,
200
- exclusion, unsupported, or material-gap disposition that describes its actual
201
- state. Denominator completeness with false attribution is invalid.
202
-
203
- Before declaring a dependency or handoff unverified, inspect the complete authorized
204
- source identity inventory for `code-relation` members and join their caller/callee
205
- identity to the supplied source spans. Relationship members can enrich a logical
206
- unit even when they are not primary partition members and do not need to be copied
207
- into the Result fact inventory. A large relation inventory is not evidence absence:
208
- select the few relations that cross a stable module, protocol, runtime, store, or
209
- generated-client boundary, then explain that boundary from the corresponding code
210
- span. Request material only when those authorized relations and spans still cannot
211
- establish the handoff.
212
-
213
- Close every CLI-supplied example candidate with exactly one decision: link it to its public target, merge it into a canonical example for the same target and scenario, retain it as a documentation example, exclude it with a reason, or request missing material. A retained representative must decide setup, key calls, parameters, and expected behavior as either extracted facts or evidence-backed not-applicable facets. Merge only by the full example identity supplied by Context; filenames and basenames are not identities. Do not omit an unresolved candidate from the decision set, and do not treat a material request as completed linkage.
214
-
215
- Explain stable responsibility, inputs, outputs, state and failure boundaries, the next handoff, and the evidence that supports each claim. Keep implementation bodies, generated payloads, exhaustive internal helper lists, and normalized template repetition out of reader prose. Empty Results are valid only when every target receives a legal disposition.
216
-
217
- ## Post-author composer result
218
-
219
- For a post-author workset, use only the effective composer named by Context and the matching composer instruction materialized beside this contract. Consume the complete workset-scoped `PrimaryResultView`; do not reopen discovery, expand scope, change Subject identity or ownership, or return another complete main Result. A composer may emit only the declared `derived-artifact-proposal` kind and Artifact policy.
220
-
221
- If a declared primary fact or Artifact requirement is absent, or the view does not support an independent reader question, return the current task's semantic result with `stage: post-author`, `outcome: complete`, `proposals: []`, and `diagnostics: []` in the usual `results[]` envelope. Context constructs internal fragments and digests. Do not inspect temporary files or infer missing content.
222
-
223
- ## Mechanical audit and revision
224
-
225
- Context independently validates production invariants it can derive from current
226
- inputs, including inventory and owner closure, parser coverage, Artifact
227
- completeness, source scope, identity, layout, and currentness. These failures
228
- block the current Result and must be fixed at their source.
229
-
230
- Profile metrics are authoring guidance, not a second readiness protocol. Use
231
- `references/metrics.md` when the Result exhibits a real reader problem, but do
232
- not alter wording, Markdown syntax, sentence counts, or partitions merely to
233
- influence a counter. Context does not accept an Agent-supplied score as proof
234
- that a Result is ready.
235
-
236
- Context does not judge prose quality or scan wording, JSX, comments or template
237
- syntax for rejection. Unfilled authoring placeholders can be noted during the
238
- existing content Review, but do not create a CLI failure or another gate. Do not
239
- rewrite a legitimate explanation solely to remove a marker or advisory.
240
-
241
- ## Two classes of evidence in a template Evidence pass
242
-
243
- A template Evidence pass lists what to locate. Those entries do not all resolve the same way, and the difference decides whether an assertion can be written at all.
244
-
245
- The parsers name structural identity and declarative contracts: files and symbols, imports and call relations, configuration values, source spans, page and redirect routes, workspace and release units, protocol services, methods and types, contract endpoints and operations, maintained examples and public target links, stylesheet modifiers, tables, views and indexes, and generated-source boundaries. When an Evidence pass entry falls in this set, a fact carries it and the assertion binds to that fact.
246
-
247
- Nothing in the parser layer is named for operational behavior. There is no fact for a retry, a timeout, a lifecycle transition, a permission, a schedule, a topic or queue identity, idempotency, concurrency, ordering, a cache, a transaction, observability, a CLI command or flag, an exit code, or a component prop, slot, or variant. Templates still ask you to locate these, because they are what the reader needs — but they resolve only through a configuration value, a source span, or a relation that literally states them.
248
-
249
- So for this second class: base the assertion on the configuration value or
250
- source span that states the behavior, and name the identity it uses. If nothing
251
- in the authorized view states it, the behavior is a material gap. Write the
252
- gap. Do not convert a library dependency, a symbol name, or a familiar
253
- framework convention into a behavioral claim. Context validates structured
254
- references, but final Review remains responsible for rejecting unsupported
255
- prose.
256
-
257
- Every profile template ends with a `Revise or stop when` condition. Stopping means recording the material gap that blocks the question — the evidence that is missing and what would resolve it — and never silently dropping the question from the Result. A template that tells you to stop when discovery is inferred is telling you not to guess, not to omit. Dropping the question satisfies no entry and fails question closure.
258
-
259
- The complete reader-question set and canonical inventory are production
260
- obligations rather than quality scores. A PartitionPlan must cover the current
261
- question set, dispositions must cover the inventory, and an answered question
262
- must satisfy its evidence contract. Natural-language sentences are not checked
263
- one by one by a metric engine; keep them grounded in the supplied material and
264
- use final Review to remove unsupported interpretation. Excluding inventory may
265
- close a disposition, but it does not manufacture an answer to a reader
266
- question.
267
-
268
- A required question with no authorized supporting material remains a material request and cannot be published. Repairable content feedback reopens the owning Author or Composer through the same `context revise` lifecycle. Context does not keep a profile retry ledger and does not provide a profile-risk override Gate.
269
-
270
- Do not return output paths, collection names, quality thresholds, pass/fail
271
- decisions, extra owners, ad hoc question contracts, or facts outside the
272
- supplied authority. Context validates deterministic structure, references,
273
- layout, freshness, reconciliation, and final Review independently.
274
-
275
- ## Notes and conversation summaries as supporting material
276
-
277
- Use only the authorized excerpts or summaries and cite the material actually
278
- read. Distinguish quotations, paraphrases, confirmed decisions and proposals;
279
- write the explanation useful to the reader instead of copying the source.
280
- Use code for API definitions and implemented behavior; a conversation can
281
- explain the reasons behind them. A summary may record that participants reported an implementation or a passing
282
- test; attribute that report and retain its stated version and scope. Do not
283
- present it as independently verified in this task. Claims of direct validation
284
- need the actual relevant code, execution or test results in the authorized
285
- material. Discussion or a plan alone does not establish completion.
286
-
287
- Keep this Provider responsible for the existing page. If the host selects a
288
- Note/Sessions or business Provider extension, apply its supplied instructions
289
- to the same writing task. Do not load an unselected skill or create a second
290
- page solely because supporting material has a different source type. An
291
- independent reader task can use a dedicated Provider selected by the host.
292
-
293
- If the source is inaccurate, return the correction to the host source-input
294
- flow; do not edit it from the Indexer. If only the knowledge is misleading,
295
- revise the page from its approved text through Author/Review. Keep source
296
- associations in the source and page/section references in structure.yaml;
297
- do not add provenance fields to the knowledge header.
298
-
299
- ## Source example candidates
300
-
301
- For source-grounded usage examples, submit the optional Author
302
- `example_candidates` collection using a stable `scenario_key` and one delivered
303
- `source_item` per file. Read the example before selecting it; story/demo names
304
- do not establish behavior or relevance. Keep full relative paths so examples
305
- from different directories do not collapse by basename. The host preserves
306
- source/version/evidence identity and can pass accepted candidates to the
307
- selected examples Composer. Explain setup, key calls, relevant arguments and
308
- expected behavior only where the supplied source supports them; a source
309
- example does not establish that it executed successfully.
310
-
311
- For multiple component articles in one library subject, select each article's
312
- own component, Props, handle and related nested-type facts. Do not bind the
313
- whole library inventory to every article: the deterministic API table uses the
314
- facts selected for that article, so broad bindings duplicate unrelated APIs.
315
- Keep library-wide inventory in the library entry and link to component details.
316
- The CLI validates the selected identities; the Agent decides their relevance.
317
-
318
- ## Diagrams
319
-
320
- 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.
321
-
322
- ## Existing source images and tables
323
-
324
- 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.
325
-
326
- ## Reading selected article material
327
-
328
- 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
+ # Investigate and explain code
2
+
3
+ ## Planning supplies a skeleton
4
+
5
+ Use the confirmed purpose and authorized module boundary. The CLI's directory
6
+ and file navigation is a starting point, not a semantic grouping or a complete
7
+ feature inventory. Inspect relevant manifests, public entry files, registrations,
8
+ maintained documentation or a few representative declarations to understand
9
+ which kinds of reader topics the module can support.
10
+
11
+ Technology-specific investigation may be direct Agent reading or a bounded
12
+ helper from an available skill. A helper should expose feature names, counts
13
+ and source locations, not implementation bodies or a full relationship graph.
14
+ It must respect the selected directory, stop within its budget and distinguish
15
+ a completed count from an observed subset and remaining scope. Do not install
16
+ dependencies or run a full parser merely to learn whether a feature exists.
17
+
18
+ Filename and directory counts are mechanical. Components, routes and handlers
19
+ need the corresponding source convention or bounded analysis; do not relabel
20
+ file counts as feature counts. A timeout or incomplete scan is remaining
21
+ investigation, not an empty module or an exclusion decision.
22
+
23
+ A directory name, class suffix or dependency alone does not establish runtime
24
+ behavior. It can suggest where to investigate. Selective source reading during
25
+ planning can resolve a topic boundary; detailed behavior belongs to writing.
26
+
27
+ ## Topics and module boundaries
28
+
29
+ Several skills may examine different aspects of one module. Combine their
30
+ findings without assigning a permanent primary owner. Work module by module
31
+ unless the authorized reader task requires a cross-module article. No automatic
32
+ cross-module synthesis is required merely because imports exist.
33
+
34
+ Typical signals suggest reader questions, not mandatory pages:
35
+
36
+ - public exports or component declarations: how to consume a capability;
37
+ - inbound registrations or interface definitions: which operations are served;
38
+ - event or scheduled registrations: what triggers work and how it completes;
39
+ - storage interfaces: data ownership and transactional boundaries;
40
+ - adapters and generated clients: contracts at an external handoff;
41
+ - package and workspace entrypoints: responsibility and consumption boundaries.
42
+
43
+ A skill may suggest recurring outlines for an observed feature family, while
44
+ the Agent chooses meaningful grouping and exceptions. A component manual may
45
+ need component-by-component reading during writing; that does not require
46
+ component-by-component deep analysis during planning. Do not produce one page
47
+ per symbol or one generic catch-all for a large module with distinct capabilities.
48
+
49
+ Use existing article navigation when extending knowledge. Later documents can
50
+ supply better business names and rationale; code paths are structural hints,
51
+ not immutable topic names. Preserve stable article identity when the reader
52
+ task is unchanged. Different platforms or deprecated entrypoints may need
53
+ separate treatment even when names match.
54
+
55
+ Submit article targets, reader questions, sources and batches with the current
56
+ plan schema. Keep pending scope explicit when only part is investigated.
57
+ Do not submit subject matrices, per-file dispositions or an exhaustive fact
58
+ ledger. The first executable plan still waits for work-start report feedback.
59
+ Within that confirmed scope, append or replace unfinished tasks through the
60
+ returned action; accepted content needs a revision task.
61
+
62
+ ## Writing follows actual behavior
63
+
64
+ Explain what the module is responsible for, when and how to enter it through
65
+ stable interfaces, what it hands off, and the relevant state and failure
66
+ boundaries. A directory summary or symbol list is not an explanation.
67
+ An integration guide focuses on consumption; a maintenance guide may need
68
+ internal transformations and recovery. Follow the actual reader purpose.
69
+
70
+ Read the source that establishes the claim. An outbound client is not an
71
+ inbound service; host and remote declarations do not prove loading behavior.
72
+ An import or matching name does not prove an executed call chain. To explain a
73
+ cross-module sequence, verify the trigger, joins, transformations and outcome
74
+ on the relevant sides of each boundary.
75
+
76
+ Distinguish declarations from reached implementation. Inherited properties,
77
+ comments and names do not prove forwarding or defaults. A written default
78
+ expression is not its evaluated value. An unresolved import is not proof of
79
+ an empty API. Inspect relevant implementations or existing parser detail only
80
+ where the task needs it; do not dump a full parser response into an article.
81
+
82
+ Tests establish only what assertions and real dependencies exercise. DOM
83
+ presence does not by itself prove visibility, focus or accessibility. Separate
84
+ source-confirmed behavior from runtime hypotheses. Knowledge production does
85
+ not authorize source fixes, browser testing or an exhaustive defect audit.
86
+ Explain a relevant limitation without replacing the normal usage guide with
87
+ a list of suspected defects.
88
+
89
+ When a source-backed helper generates an API table, check its fields, types and
90
+ defaults against the selected target. Do not attach a whole library inventory
91
+ to every component or narrate every table row. Correct a wrong generated value
92
+ at its source; do not contradict it silently in prose. No helper is required
93
+ when direct source reading answers the task adequately.
94
+
95
+ Use examples that demonstrate the target and scenario. Read setup, key calls,
96
+ parameters and expected behavior; a demo filename does not prove those facts,
97
+ and source examples do not prove execution succeeded. Keep full source paths
98
+ for citations without inventing an example-decision ledger.
99
+
100
+ ## References, revisions and delivery
101
+
102
+ Write complete new articles using the current Markdown and reference schema.
103
+ For revisions, use the supplied base article and references and edit only
104
+ affected sections when appropriate. Preserve still-valid examples, limitations
105
+ and confirmed contributions. New explanatory context does not require
106
+ repartitioning unchanged code.
107
+
108
+ Each fragment uses actual source regions, at most three locations; the CLI
109
+ computes content digests. Do not use fallback evidence from an unrelated
110
+ member, fabricate a continuous span for unrelated locations, or include
111
+ process identities, full source bodies or credentials in reader output.
112
+
113
+ Put draft Markdown, references or edits, and the submission manifest in the
114
+ designated temporary directory. The coordinator submits completed tasks or a
115
+ subset through the returned action. Source or target changes use the CLI's
116
+ recovery path; do not overwrite an accepted task or directly edit formal files.
117
+ No ArtifactResult, profile tuple, question-reference contract or score is
118
+ required in the new file submission.
119
+
120
+ ## Supporting material and presentation
121
+
122
+ Code establishes implemented behavior; authorized notes or documents can
123
+ explain business intent and rationale. Preserve the difference between a
124
+ proposal, confirmation, implementation and reported verification. Change links
125
+ are context, not evidence that a change merged or passed tests. Several
126
+ selected skills may contribute to the same article without creating copies.
127
+
128
+ If the source is wrong, use its authorized correction flow. If the article is
129
+ misleading, revise the article. Useful older or generated code is not excluded
130
+ merely by its location; a material scope change needs the applicable user
131
+ decision. Missing essential evidence remains visible rather than becoming a
132
+ generic claim or silently omitted responsibility.
133
+
134
+ Use [diagram guidance](diagrams.md) or [source visual processing](visual-source-processing.md)
135
+ when actual reader needs or supplied images justify them. Diagrams are not
136
+ mandatory. Content quality belongs to the Agent and Review; do not optimize
137
+ wording, headings or section counts to satisfy a metric.
@@ -182,7 +182,7 @@ content.
182
182
  ### Meaning
183
183
 
184
184
  A reader target requires a CLI-authorized declaration, registration, public
185
- contract, approved Subject, or Partition Subject identity.
185
+ contract, approved article, or Partition article identity.
186
186
 
187
187
  ### Revise
188
188
 
@@ -17,8 +17,7 @@
17
17
  "id": "api",
18
18
  "type": "json",
19
19
  "content_layer": "deterministic-fact",
20
- "required": false,
21
- "evidence_required": true
20
+ "required": false
22
21
  }
23
22
  ],
24
23
  "deterministic_blocks": [
@@ -40,13 +39,6 @@
40
39
  "deterministic_block_ids": [
41
40
  "api-table"
42
41
  ],
43
- "accepted_evidence_kinds": [
44
- "code",
45
- "contract",
46
- "configuration",
47
- "documentation"
48
- ],
49
- "minimum_evidence_items": 0,
50
42
  "on_missing": "omit",
51
43
  "deletion_condition": "Omit when no authorized structured contract is available."
52
44
  }
@@ -17,8 +17,7 @@
17
17
  "id": "api",
18
18
  "type": "json",
19
19
  "content_layer": "deterministic-fact",
20
- "required": false,
21
- "evidence_required": true
20
+ "required": false
22
21
  }
23
22
  ],
24
23
  "deterministic_blocks": [
@@ -40,13 +39,6 @@
40
39
  "deterministic_block_ids": [
41
40
  "api-table"
42
41
  ],
43
- "accepted_evidence_kinds": [
44
- "code",
45
- "contract",
46
- "configuration",
47
- "documentation"
48
- ],
49
- "minimum_evidence_items": 0,
50
42
  "on_missing": "omit",
51
43
  "deletion_condition": "Omit when no authorized structured contract is available."
52
44
  }
@@ -17,8 +17,7 @@
17
17
  "id": "api",
18
18
  "type": "json",
19
19
  "content_layer": "deterministic-fact",
20
- "required": false,
21
- "evidence_required": true
20
+ "required": false
22
21
  }
23
22
  ],
24
23
  "deterministic_blocks": [
@@ -40,13 +39,6 @@
40
39
  "deterministic_block_ids": [
41
40
  "api-table"
42
41
  ],
43
- "accepted_evidence_kinds": [
44
- "code",
45
- "contract",
46
- "configuration",
47
- "documentation"
48
- ],
49
- "minimum_evidence_items": 0,
50
42
  "on_missing": "omit",
51
43
  "deletion_condition": "Omit when no authorized structured contract is available."
52
44
  }
@@ -17,8 +17,7 @@
17
17
  "id": "api",
18
18
  "type": "json",
19
19
  "content_layer": "deterministic-fact",
20
- "required": false,
21
- "evidence_required": true
20
+ "required": false
22
21
  }
23
22
  ],
24
23
  "deterministic_blocks": [
@@ -40,13 +39,6 @@
40
39
  "deterministic_block_ids": [
41
40
  "api-table"
42
41
  ],
43
- "accepted_evidence_kinds": [
44
- "code",
45
- "contract",
46
- "configuration",
47
- "documentation"
48
- ],
49
- "minimum_evidence_items": 0,
50
42
  "on_missing": "omit",
51
43
  "deletion_condition": "Omit when no authorized structured contract is available."
52
44
  }