@c4a/context-cli 0.7.5 → 0.7.9

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 (702) hide show
  1. package/README.md +63 -2
  2. package/README.zh-CN.md +16 -0
  3. package/cli.js +132471 -111134
  4. package/docs/context-debug-event-v1.schema.json +3 -1
  5. package/docs/debug-tracing.md +17 -1
  6. package/indexers/bundles/context-code-indexer/SKILL.md +10 -1
  7. package/indexers/bundles/context-code-indexer/context-indexer.yaml +3102 -64
  8. package/indexers/bundles/context-code-indexer/references/article-catalog/adapter-integration-article-catalog.md +20 -0
  9. package/indexers/bundles/context-code-indexer/references/article-catalog/api-service-article-catalog.md +20 -0
  10. package/indexers/bundles/context-code-indexer/references/article-catalog/background-runtime-article-catalog.md +19 -0
  11. package/indexers/bundles/context-code-indexer/references/article-catalog/cli-tool-article-catalog.md +17 -0
  12. package/indexers/bundles/context-code-indexer/references/article-catalog/component-library-article-catalog.md +18 -0
  13. package/indexers/bundles/context-code-indexer/references/article-catalog/contract-source-article-catalog.md +17 -0
  14. package/indexers/bundles/context-code-indexer/references/article-catalog/data-sync-reconciliation-article-catalog.md +19 -0
  15. package/indexers/bundles/context-code-indexer/references/article-catalog/derived-generated-source-article-catalog.md +17 -0
  16. package/indexers/bundles/context-code-indexer/references/article-catalog/domain-service-article-catalog.md +23 -0
  17. package/indexers/bundles/context-code-indexer/references/article-catalog/event-consumer-article-catalog.md +19 -0
  18. package/indexers/bundles/context-code-indexer/references/article-catalog/gateway-facade-article-catalog.md +21 -0
  19. package/indexers/bundles/context-code-indexer/references/article-catalog/monorepo-container-article-catalog.md +17 -0
  20. package/indexers/bundles/context-code-indexer/references/article-catalog/plugin-extension-article-catalog.md +17 -0
  21. package/indexers/bundles/context-code-indexer/references/article-catalog/sdk-library-article-catalog.md +18 -0
  22. package/indexers/bundles/context-code-indexer/references/article-catalog/storage-repository-article-catalog.md +19 -0
  23. package/indexers/bundles/context-code-indexer/references/article-catalog/web-application-article-catalog.md +30 -0
  24. package/indexers/bundles/context-code-indexer/references/composers/public-contract.md +13 -1
  25. package/indexers/bundles/context-code-indexer/references/diagrams.md +122 -0
  26. package/indexers/bundles/context-code-indexer/references/indexer.md +184 -8
  27. package/indexers/bundles/context-code-indexer/references/visual-source-processing.md +42 -0
  28. package/indexers/bundles/context-code-indexer/templates/adapter-integration-maintenance-guide.md +81 -0
  29. package/indexers/bundles/context-code-indexer/templates/adapter-integration-request-adaptation-guide.md +81 -0
  30. package/indexers/bundles/context-code-indexer/templates/adapter-integration-usage-guide.md +81 -0
  31. package/indexers/bundles/context-code-indexer/templates/api-service-maintenance-guide.md +81 -0
  32. package/indexers/bundles/context-code-indexer/templates/api-service-public-api-reference.md +81 -0
  33. package/indexers/bundles/context-code-indexer/templates/articles/c01.md +49 -0
  34. package/indexers/bundles/context-code-indexer/templates/articles/c02.md +36 -0
  35. package/indexers/bundles/context-code-indexer/templates/articles/c03.md +28 -0
  36. package/indexers/bundles/context-code-indexer/templates/articles/c04.md +29 -0
  37. package/indexers/bundles/context-code-indexer/templates/articles/c05.md +30 -0
  38. package/indexers/bundles/context-code-indexer/templates/articles/c07.md +51 -0
  39. package/indexers/bundles/context-code-indexer/templates/articles/d01.md +31 -0
  40. package/indexers/bundles/context-code-indexer/templates/articles/d02.md +32 -0
  41. package/indexers/bundles/context-code-indexer/templates/articles/d03.md +32 -0
  42. package/indexers/bundles/context-code-indexer/templates/articles/d04.md +38 -0
  43. package/indexers/bundles/context-code-indexer/templates/articles/f01.md +50 -0
  44. package/indexers/bundles/context-code-indexer/templates/articles/f02.md +33 -0
  45. package/indexers/bundles/context-code-indexer/templates/articles/f03.md +38 -0
  46. package/indexers/bundles/context-code-indexer/templates/articles/f04.md +32 -0
  47. package/indexers/bundles/context-code-indexer/templates/articles/f05.md +32 -0
  48. package/indexers/bundles/context-code-indexer/templates/articles/f06.md +32 -0
  49. package/indexers/bundles/context-code-indexer/templates/articles/f07.md +31 -0
  50. package/indexers/bundles/context-code-indexer/templates/articles/f08.md +36 -0
  51. package/indexers/bundles/context-code-indexer/templates/articles/f09.md +32 -0
  52. package/indexers/bundles/context-code-indexer/templates/articles/f10.md +32 -0
  53. package/indexers/bundles/context-code-indexer/templates/articles/f11.md +39 -0
  54. package/indexers/bundles/context-code-indexer/templates/articles/f12.md +59 -0
  55. package/indexers/bundles/context-code-indexer/templates/articles/l01.md +38 -0
  56. package/indexers/bundles/context-code-indexer/templates/articles/l02.md +103 -0
  57. package/indexers/bundles/context-code-indexer/templates/articles/l03.md +92 -0
  58. package/indexers/bundles/context-code-indexer/templates/articles/l04.md +30 -0
  59. package/indexers/bundles/context-code-indexer/templates/articles/l05.md +50 -0
  60. package/indexers/bundles/context-code-indexer/templates/articles/q03.md +29 -0
  61. package/indexers/bundles/context-code-indexer/templates/articles/q05.md +29 -0
  62. package/indexers/bundles/context-code-indexer/templates/articles/q06.md +29 -0
  63. package/indexers/bundles/context-code-indexer/templates/articles/s01.md +31 -0
  64. package/indexers/bundles/context-code-indexer/templates/articles/s02.md +30 -0
  65. package/indexers/bundles/context-code-indexer/templates/articles/s03.md +34 -0
  66. package/indexers/bundles/context-code-indexer/templates/articles/s04.md +35 -0
  67. package/indexers/bundles/context-code-indexer/templates/articles/s05.md +30 -0
  68. package/indexers/bundles/context-code-indexer/templates/articles/s06.md +30 -0
  69. package/indexers/bundles/context-code-indexer/templates/articles/s07.md +33 -0
  70. package/indexers/bundles/context-code-indexer/templates/background-runtime-maintenance-guide.md +81 -0
  71. package/indexers/bundles/context-code-indexer/templates/background-runtime-task-runtime-guide.md +81 -0
  72. package/indexers/bundles/context-code-indexer/templates/cli-tool-maintenance-guide.md +81 -0
  73. package/indexers/bundles/context-code-indexer/templates/cli-tool-public-api-reference.md +81 -0
  74. package/indexers/bundles/context-code-indexer/templates/cli-tool-usage-guide.md +81 -0
  75. package/indexers/bundles/context-code-indexer/templates/component-library-maintenance-guide.md +81 -0
  76. package/indexers/bundles/context-code-indexer/templates/component-library-public-api-reference.md +81 -0
  77. package/indexers/bundles/context-code-indexer/templates/component-library-usage-guide.md +81 -0
  78. package/indexers/bundles/context-code-indexer/templates/component-library.md +40 -3
  79. package/indexers/bundles/context-code-indexer/templates/contract-source-public-api-reference.md +81 -0
  80. package/indexers/bundles/context-code-indexer/templates/contract-source-usage-guide.md +81 -0
  81. package/indexers/bundles/context-code-indexer/templates/contract-source.md +49 -0
  82. package/indexers/bundles/context-code-indexer/templates/data-sync-reconciliation-maintenance-guide.md +81 -0
  83. package/indexers/bundles/context-code-indexer/templates/data-sync-reconciliation-task-runtime-guide.md +81 -0
  84. package/indexers/bundles/context-code-indexer/templates/derived-generated-source-public-api-reference.md +81 -0
  85. package/indexers/bundles/context-code-indexer/templates/derived-generated-source-usage-guide.md +81 -0
  86. package/indexers/bundles/context-code-indexer/templates/derived-generated-source.md +15 -0
  87. package/indexers/bundles/context-code-indexer/templates/domain-service-maintenance-guide.md +81 -0
  88. package/indexers/bundles/context-code-indexer/templates/domain-service-public-api-reference.md +81 -0
  89. package/indexers/bundles/context-code-indexer/templates/event-consumer-maintenance-guide.md +81 -0
  90. package/indexers/bundles/context-code-indexer/templates/event-consumer-task-runtime-guide.md +81 -0
  91. package/indexers/bundles/context-code-indexer/templates/gateway-facade-maintenance-guide.md +81 -0
  92. package/indexers/bundles/context-code-indexer/templates/gateway-facade-public-api-reference.md +81 -0
  93. package/indexers/bundles/context-code-indexer/templates/gateway-facade-request-adaptation-guide.md +81 -0
  94. package/indexers/bundles/context-code-indexer/templates/monorepo-container-maintenance-guide.md +81 -0
  95. package/indexers/bundles/context-code-indexer/templates/monorepo-container-usage-guide.md +81 -0
  96. package/indexers/bundles/context-code-indexer/templates/monorepo-container.md +9 -0
  97. package/indexers/bundles/context-code-indexer/templates/plugin-extension-maintenance-guide.md +81 -0
  98. package/indexers/bundles/context-code-indexer/templates/plugin-extension-public-api-reference.md +81 -0
  99. package/indexers/bundles/context-code-indexer/templates/plugin-extension-usage-guide.md +81 -0
  100. package/indexers/bundles/context-code-indexer/templates/sdk-library-maintenance-guide.md +81 -0
  101. package/indexers/bundles/context-code-indexer/templates/sdk-library-public-api-reference.md +81 -0
  102. package/indexers/bundles/context-code-indexer/templates/sdk-library-usage-guide.md +81 -0
  103. package/indexers/bundles/context-code-indexer/templates/storage-repository-maintenance-guide.md +81 -0
  104. package/indexers/bundles/context-code-indexer/templates/storage-repository-public-api-reference.md +81 -0
  105. package/indexers/bundles/context-code-indexer/templates/web-application-federation-guide.md +81 -0
  106. package/indexers/bundles/context-code-indexer/templates/web-application-maintenance-guide.md +81 -0
  107. package/indexers/bundles/context-code-indexer/templates/web-application-page-task-guide.md +81 -0
  108. package/indexers/bundles/context-code-indexer/tests/fixtures/composers.json +1 -1
  109. package/indexers/bundles/context-code-indexer/tests/fixtures/scenarios.json +1 -1
  110. package/indexers/bundles/context-markdown-indexer/SKILL.md +7 -1
  111. package/indexers/bundles/context-markdown-indexer/context-indexer.yaml +856 -15
  112. package/indexers/bundles/context-markdown-indexer/references/article-catalog/decision-record-article-catalog.md +7 -0
  113. package/indexers/bundles/context-markdown-indexer/references/article-catalog/documentation-site-article-catalog.md +8 -0
  114. package/indexers/bundles/context-markdown-indexer/references/article-catalog/domain-reference-article-catalog.md +14 -0
  115. package/indexers/bundles/context-markdown-indexer/references/article-catalog/faq-support-article-catalog.md +8 -0
  116. package/indexers/bundles/context-markdown-indexer/references/article-catalog/incident-review-article-catalog.md +9 -0
  117. package/indexers/bundles/context-markdown-indexer/references/article-catalog/product-requirements-article-catalog.md +8 -0
  118. package/indexers/bundles/context-markdown-indexer/references/article-catalog/public-api-reference-article-catalog.md +10 -0
  119. package/indexers/bundles/context-markdown-indexer/references/article-catalog/release-migration-guide-article-catalog.md +11 -0
  120. package/indexers/bundles/context-markdown-indexer/references/article-catalog/runbook-article-catalog.md +12 -0
  121. package/indexers/bundles/context-markdown-indexer/references/article-catalog/standard-policy-article-catalog.md +10 -0
  122. package/indexers/bundles/context-markdown-indexer/references/article-catalog/technical-guide-article-catalog.md +20 -0
  123. package/indexers/bundles/context-markdown-indexer/references/article-catalog/test-validation-article-catalog.md +11 -0
  124. package/indexers/bundles/context-markdown-indexer/references/article-catalog/user-and-developer-guide-article-catalog.md +13 -0
  125. package/indexers/bundles/context-markdown-indexer/references/diagrams.md +122 -0
  126. package/indexers/bundles/context-markdown-indexer/references/editorial-policy.md +19 -29
  127. package/indexers/bundles/context-markdown-indexer/references/indexer.md +63 -2
  128. package/indexers/bundles/context-markdown-indexer/references/semantic-planning.md +22 -8
  129. package/indexers/bundles/context-markdown-indexer/references/visual-source-processing.md +42 -0
  130. package/indexers/bundles/context-markdown-indexer/templates/articles/c01.md +37 -0
  131. package/indexers/bundles/context-markdown-indexer/templates/articles/c02.md +34 -0
  132. package/indexers/bundles/context-markdown-indexer/templates/articles/c03.md +26 -0
  133. package/indexers/bundles/context-markdown-indexer/templates/articles/c04.md +27 -0
  134. package/indexers/bundles/context-markdown-indexer/templates/articles/c05.md +28 -0
  135. package/indexers/bundles/context-markdown-indexer/templates/articles/c06.md +28 -0
  136. package/indexers/bundles/context-markdown-indexer/templates/articles/c07.md +27 -0
  137. package/indexers/bundles/context-markdown-indexer/templates/articles/d01.md +29 -0
  138. package/indexers/bundles/context-markdown-indexer/templates/articles/d02.md +30 -0
  139. package/indexers/bundles/context-markdown-indexer/templates/articles/d03.md +30 -0
  140. package/indexers/bundles/context-markdown-indexer/templates/articles/d04.md +44 -0
  141. package/indexers/bundles/context-markdown-indexer/templates/articles/f01.md +30 -0
  142. package/indexers/bundles/context-markdown-indexer/templates/articles/f05.md +30 -0
  143. package/indexers/bundles/context-markdown-indexer/templates/articles/f06.md +30 -0
  144. package/indexers/bundles/context-markdown-indexer/templates/articles/f08.md +34 -0
  145. package/indexers/bundles/context-markdown-indexer/templates/articles/f09.md +30 -0
  146. package/indexers/bundles/context-markdown-indexer/templates/articles/l01.md +35 -0
  147. package/indexers/bundles/context-markdown-indexer/templates/articles/l02.md +101 -0
  148. package/indexers/bundles/context-markdown-indexer/templates/articles/l03.md +90 -0
  149. package/indexers/bundles/context-markdown-indexer/templates/articles/l04.md +28 -0
  150. package/indexers/bundles/context-markdown-indexer/templates/articles/l05.md +48 -0
  151. package/indexers/bundles/context-markdown-indexer/templates/articles/q01.md +32 -0
  152. package/indexers/bundles/context-markdown-indexer/templates/articles/q02.md +33 -0
  153. package/indexers/bundles/context-markdown-indexer/templates/articles/q03.md +27 -0
  154. package/indexers/bundles/context-markdown-indexer/templates/articles/q04.md +32 -0
  155. package/indexers/bundles/context-markdown-indexer/templates/articles/q05.md +27 -0
  156. package/indexers/bundles/context-markdown-indexer/templates/articles/q06.md +27 -0
  157. package/indexers/bundles/context-markdown-indexer/templates/articles/q07.md +32 -0
  158. package/indexers/bundles/context-markdown-indexer/templates/articles/s01.md +29 -0
  159. package/indexers/bundles/context-markdown-indexer/templates/articles/s02.md +27 -0
  160. package/indexers/bundles/context-markdown-indexer/templates/articles/s03.md +31 -0
  161. package/indexers/bundles/context-markdown-indexer/templates/articles/s04.md +33 -0
  162. package/indexers/bundles/context-markdown-indexer/templates/articles/s05.md +28 -0
  163. package/indexers/bundles/context-markdown-indexer/templates/articles/s06.md +28 -0
  164. package/indexers/bundles/context-markdown-indexer/templates/articles/s07.md +31 -0
  165. package/indexers/bundles/context-note-indexer/SKILL.md +16 -0
  166. package/indexers/bundles/context-note-indexer/context-indexer.yaml +1459 -0
  167. package/indexers/bundles/context-note-indexer/references/article-catalog/decision-record-article-catalog.md +7 -0
  168. package/indexers/bundles/context-note-indexer/references/article-catalog/domain-reference-article-catalog.md +14 -0
  169. package/indexers/bundles/context-note-indexer/references/article-catalog/faq-support-article-catalog.md +8 -0
  170. package/indexers/bundles/context-note-indexer/references/article-catalog/incident-review-article-catalog.md +9 -0
  171. package/indexers/bundles/context-note-indexer/references/article-catalog/product-requirements-article-catalog.md +8 -0
  172. package/indexers/bundles/context-note-indexer/references/article-catalog/runbook-article-catalog.md +12 -0
  173. package/indexers/bundles/context-note-indexer/references/article-catalog/technical-guide-article-catalog.md +20 -0
  174. package/indexers/bundles/context-note-indexer/references/article-catalog/test-validation-article-catalog.md +11 -0
  175. package/indexers/bundles/context-note-indexer/references/article-catalog/user-and-developer-guide-article-catalog.md +13 -0
  176. package/indexers/bundles/context-note-indexer/references/classification.md +55 -0
  177. package/indexers/bundles/context-note-indexer/references/customization.md +36 -0
  178. package/indexers/bundles/context-note-indexer/references/diagrams.md +122 -0
  179. package/indexers/bundles/context-note-indexer/references/extension-placement.md +57 -0
  180. package/indexers/bundles/context-note-indexer/references/indexer.md +43 -0
  181. package/indexers/bundles/context-note-indexer/references/updates-and-composition.md +37 -0
  182. package/indexers/bundles/context-note-indexer/references/visual-source-processing.md +42 -0
  183. package/indexers/bundles/context-note-indexer/references/writing.md +57 -0
  184. package/indexers/bundles/context-note-indexer/templates/articles/c01.md +37 -0
  185. package/indexers/bundles/context-note-indexer/templates/articles/c02.md +34 -0
  186. package/indexers/bundles/context-note-indexer/templates/articles/c03.md +26 -0
  187. package/indexers/bundles/context-note-indexer/templates/articles/c04.md +27 -0
  188. package/indexers/bundles/context-note-indexer/templates/articles/c05.md +28 -0
  189. package/indexers/bundles/context-note-indexer/templates/articles/c06.md +28 -0
  190. package/indexers/bundles/context-note-indexer/templates/articles/c07.md +27 -0
  191. package/indexers/bundles/context-note-indexer/templates/articles/d01.md +29 -0
  192. package/indexers/bundles/context-note-indexer/templates/articles/d02.md +30 -0
  193. package/indexers/bundles/context-note-indexer/templates/articles/d03.md +30 -0
  194. package/indexers/bundles/context-note-indexer/templates/articles/d04.md +36 -0
  195. package/indexers/bundles/context-note-indexer/templates/articles/f01.md +30 -0
  196. package/indexers/bundles/context-note-indexer/templates/articles/f06.md +30 -0
  197. package/indexers/bundles/context-note-indexer/templates/articles/f08.md +34 -0
  198. package/indexers/bundles/context-note-indexer/templates/articles/f09.md +30 -0
  199. package/indexers/bundles/context-note-indexer/templates/articles/l01.md +35 -0
  200. package/indexers/bundles/context-note-indexer/templates/articles/l02.md +101 -0
  201. package/indexers/bundles/context-note-indexer/templates/articles/l03.md +90 -0
  202. package/indexers/bundles/context-note-indexer/templates/articles/l04.md +28 -0
  203. package/indexers/bundles/context-note-indexer/templates/articles/l05.md +48 -0
  204. package/indexers/bundles/context-note-indexer/templates/articles/q01.md +32 -0
  205. package/indexers/bundles/context-note-indexer/templates/articles/q02.md +33 -0
  206. package/indexers/bundles/context-note-indexer/templates/articles/q03.md +27 -0
  207. package/indexers/bundles/context-note-indexer/templates/articles/q04.md +32 -0
  208. package/indexers/bundles/context-note-indexer/templates/articles/q05.md +27 -0
  209. package/indexers/bundles/context-note-indexer/templates/articles/q06.md +27 -0
  210. package/indexers/bundles/context-note-indexer/templates/articles/q07.md +32 -0
  211. package/indexers/bundles/context-note-indexer/templates/articles/s01.md +29 -0
  212. package/indexers/bundles/context-note-indexer/templates/articles/s04.md +33 -0
  213. package/indexers/bundles/context-note-indexer/templates/articles/s05.md +28 -0
  214. package/indexers/bundles/context-note-indexer/templates/articles/s06.md +28 -0
  215. package/indexers/bundles/context-note-indexer/templates/articles/s07.md +31 -0
  216. package/indexers/bundles/context-note-indexer/templates/decision-record.md +33 -0
  217. package/indexers/bundles/context-note-indexer/templates/domain-reference.md +31 -0
  218. package/indexers/bundles/context-note-indexer/templates/faq-support.md +30 -0
  219. package/indexers/bundles/context-note-indexer/templates/incident-review.md +28 -0
  220. package/indexers/bundles/context-note-indexer/templates/product-requirements.md +29 -0
  221. package/indexers/bundles/context-note-indexer/templates/runbook.md +30 -0
  222. package/indexers/bundles/context-note-indexer/templates/technical-guide.md +31 -0
  223. package/indexers/bundles/context-note-indexer/templates/test-validation.md +28 -0
  224. package/indexers/bundles/context-note-indexer/templates/user-and-developer-guide.md +28 -0
  225. package/indexers/bundles/context-note-indexer/tests/fixtures/profiles.json +281 -0
  226. package/indexers/bundles/context-sessions-indexer/SKILL.md +16 -0
  227. package/indexers/bundles/context-sessions-indexer/context-indexer.yaml +1459 -0
  228. package/indexers/bundles/context-sessions-indexer/references/article-catalog/decision-record-article-catalog.md +7 -0
  229. package/indexers/bundles/context-sessions-indexer/references/article-catalog/domain-reference-article-catalog.md +14 -0
  230. package/indexers/bundles/context-sessions-indexer/references/article-catalog/faq-support-article-catalog.md +8 -0
  231. package/indexers/bundles/context-sessions-indexer/references/article-catalog/incident-review-article-catalog.md +9 -0
  232. package/indexers/bundles/context-sessions-indexer/references/article-catalog/product-requirements-article-catalog.md +8 -0
  233. package/indexers/bundles/context-sessions-indexer/references/article-catalog/runbook-article-catalog.md +12 -0
  234. package/indexers/bundles/context-sessions-indexer/references/article-catalog/technical-guide-article-catalog.md +20 -0
  235. package/indexers/bundles/context-sessions-indexer/references/article-catalog/test-validation-article-catalog.md +11 -0
  236. package/indexers/bundles/context-sessions-indexer/references/article-catalog/user-and-developer-guide-article-catalog.md +13 -0
  237. package/indexers/bundles/context-sessions-indexer/references/classification.md +56 -0
  238. package/indexers/bundles/context-sessions-indexer/references/customization.md +36 -0
  239. package/indexers/bundles/context-sessions-indexer/references/diagrams.md +122 -0
  240. package/indexers/bundles/context-sessions-indexer/references/extension-placement.md +63 -0
  241. package/indexers/bundles/context-sessions-indexer/references/indexer.md +48 -0
  242. package/indexers/bundles/context-sessions-indexer/references/updates-and-composition.md +37 -0
  243. package/indexers/bundles/context-sessions-indexer/references/visual-source-processing.md +42 -0
  244. package/indexers/bundles/context-sessions-indexer/references/writing.md +63 -0
  245. package/indexers/bundles/context-sessions-indexer/templates/articles/c01.md +37 -0
  246. package/indexers/bundles/context-sessions-indexer/templates/articles/c02.md +34 -0
  247. package/indexers/bundles/context-sessions-indexer/templates/articles/c03.md +26 -0
  248. package/indexers/bundles/context-sessions-indexer/templates/articles/c04.md +27 -0
  249. package/indexers/bundles/context-sessions-indexer/templates/articles/c05.md +28 -0
  250. package/indexers/bundles/context-sessions-indexer/templates/articles/c06.md +28 -0
  251. package/indexers/bundles/context-sessions-indexer/templates/articles/c07.md +27 -0
  252. package/indexers/bundles/context-sessions-indexer/templates/articles/d01.md +29 -0
  253. package/indexers/bundles/context-sessions-indexer/templates/articles/d02.md +30 -0
  254. package/indexers/bundles/context-sessions-indexer/templates/articles/d03.md +30 -0
  255. package/indexers/bundles/context-sessions-indexer/templates/articles/d04.md +36 -0
  256. package/indexers/bundles/context-sessions-indexer/templates/articles/f01.md +30 -0
  257. package/indexers/bundles/context-sessions-indexer/templates/articles/f06.md +30 -0
  258. package/indexers/bundles/context-sessions-indexer/templates/articles/f08.md +34 -0
  259. package/indexers/bundles/context-sessions-indexer/templates/articles/f09.md +30 -0
  260. package/indexers/bundles/context-sessions-indexer/templates/articles/l01.md +35 -0
  261. package/indexers/bundles/context-sessions-indexer/templates/articles/l02.md +101 -0
  262. package/indexers/bundles/context-sessions-indexer/templates/articles/l03.md +90 -0
  263. package/indexers/bundles/context-sessions-indexer/templates/articles/l04.md +28 -0
  264. package/indexers/bundles/context-sessions-indexer/templates/articles/l05.md +48 -0
  265. package/indexers/bundles/context-sessions-indexer/templates/articles/q01.md +32 -0
  266. package/indexers/bundles/context-sessions-indexer/templates/articles/q02.md +33 -0
  267. package/indexers/bundles/context-sessions-indexer/templates/articles/q03.md +27 -0
  268. package/indexers/bundles/context-sessions-indexer/templates/articles/q04.md +32 -0
  269. package/indexers/bundles/context-sessions-indexer/templates/articles/q05.md +27 -0
  270. package/indexers/bundles/context-sessions-indexer/templates/articles/q06.md +27 -0
  271. package/indexers/bundles/context-sessions-indexer/templates/articles/q07.md +32 -0
  272. package/indexers/bundles/context-sessions-indexer/templates/articles/s01.md +29 -0
  273. package/indexers/bundles/context-sessions-indexer/templates/articles/s04.md +33 -0
  274. package/indexers/bundles/context-sessions-indexer/templates/articles/s05.md +28 -0
  275. package/indexers/bundles/context-sessions-indexer/templates/articles/s06.md +28 -0
  276. package/indexers/bundles/context-sessions-indexer/templates/articles/s07.md +31 -0
  277. package/indexers/bundles/context-sessions-indexer/templates/decision-record.md +43 -0
  278. package/indexers/bundles/context-sessions-indexer/templates/domain-reference.md +31 -0
  279. package/indexers/bundles/context-sessions-indexer/templates/faq-support.md +33 -0
  280. package/indexers/bundles/context-sessions-indexer/templates/incident-review.md +37 -0
  281. package/indexers/bundles/context-sessions-indexer/templates/product-requirements.md +35 -0
  282. package/indexers/bundles/context-sessions-indexer/templates/runbook.md +32 -0
  283. package/indexers/bundles/context-sessions-indexer/templates/technical-guide.md +31 -0
  284. package/indexers/bundles/context-sessions-indexer/templates/test-validation.md +37 -0
  285. package/indexers/bundles/context-sessions-indexer/templates/user-and-developer-guide.md +31 -0
  286. package/indexers/bundles/context-sessions-indexer/tests/fixtures/profiles.json +281 -0
  287. package/indexers/contracts/profile-contract.json +657 -277
  288. package/indexers/release-manifest.json +1120 -32
  289. package/package.json +14 -12
  290. package/parserEntryWorker.js +34606 -0
  291. package/plugins/README.md +24 -6
  292. package/plugins/README_CN.md +21 -5
  293. package/plugins/VERSION +1 -1
  294. package/plugins/claude/.claude-plugin/plugin.json +14 -3
  295. package/plugins/claude/commands/context-inspect-search.md +159 -0
  296. package/plugins/claude/commands/context.md +375 -211
  297. package/plugins/claude/skills/context-indexer-create/SKILL.md +80 -0
  298. package/plugins/claude/skills/context-indexer-create/references/guides/code-indexer-skill-authoring.md +180 -0
  299. package/plugins/claude/skills/context-indexer-create/references/guides/indexer-manifest-example.md +103 -0
  300. package/plugins/claude/skills/context-indexer-create/references/guides/indexer-provider-and-customization.md +471 -0
  301. package/plugins/claude/skills/context-indexer-create/references/guides/indexer-skill-creation.md +99 -0
  302. package/plugins/claude/skills/context-indexer-create/references/guides/markdown-indexer-skill-authoring.md +136 -0
  303. package/plugins/claude/skills/context-indexer-create/references/guides/note.md +37 -0
  304. package/plugins/claude/skills/context-indexer-create/references/guides/sessions.md +50 -0
  305. package/plugins/claude/skills/context-indexer-create/references/reference/indexer-provider-protocol.md +854 -0
  306. package/plugins/codex/.codex-plugin/plugin.json +2 -2
  307. package/plugins/codex/skills/context/SKILL.md +372 -211
  308. package/plugins/codex/skills/context/agents/openai.yaml +2 -0
  309. package/plugins/codex/skills/context-indexer-create/SKILL.md +80 -0
  310. package/plugins/codex/skills/context-indexer-create/references/guides/code-indexer-skill-authoring.md +180 -0
  311. package/plugins/codex/skills/context-indexer-create/references/guides/indexer-manifest-example.md +103 -0
  312. package/plugins/codex/skills/context-indexer-create/references/guides/indexer-provider-and-customization.md +471 -0
  313. package/plugins/codex/skills/context-indexer-create/references/guides/indexer-skill-creation.md +99 -0
  314. package/plugins/codex/skills/context-indexer-create/references/guides/markdown-indexer-skill-authoring.md +136 -0
  315. package/plugins/codex/skills/context-indexer-create/references/guides/note.md +37 -0
  316. package/plugins/codex/skills/context-indexer-create/references/guides/sessions.md +50 -0
  317. package/plugins/codex/skills/context-indexer-create/references/reference/indexer-provider-protocol.md +854 -0
  318. package/plugins/codex/skills/context-inspect-search/SKILL.md +159 -0
  319. package/plugins/codex/skills/context-inspect-search/agents/openai.yaml +2 -0
  320. package/plugins/cursor/.cursor-plugin/plugin.json +21 -5
  321. package/plugins/cursor/commands/c4a-context-inspect-search.md +157 -0
  322. package/plugins/cursor/commands/c4a-context.md +371 -214
  323. package/plugins/cursor/skills/context-indexer-create/SKILL.md +80 -0
  324. package/plugins/cursor/skills/context-indexer-create/references/guides/code-indexer-skill-authoring.md +180 -0
  325. package/plugins/cursor/skills/context-indexer-create/references/guides/indexer-manifest-example.md +103 -0
  326. package/plugins/cursor/skills/context-indexer-create/references/guides/indexer-provider-and-customization.md +471 -0
  327. package/plugins/cursor/skills/context-indexer-create/references/guides/indexer-skill-creation.md +99 -0
  328. package/plugins/cursor/skills/context-indexer-create/references/guides/markdown-indexer-skill-authoring.md +136 -0
  329. package/plugins/cursor/skills/context-indexer-create/references/guides/note.md +37 -0
  330. package/plugins/cursor/skills/context-indexer-create/references/guides/sessions.md +50 -0
  331. package/plugins/cursor/skills/context-indexer-create/references/reference/indexer-provider-protocol.md +854 -0
  332. package/plugins/skills/context/SKILL.md +372 -211
  333. package/plugins/skills/context/agents/openai.yaml +2 -0
  334. package/plugins/skills/context-code-indexer/SKILL.md +10 -1
  335. package/plugins/skills/context-code-indexer/context-indexer.yaml +3102 -64
  336. package/plugins/skills/context-code-indexer/references/article-catalog/adapter-integration-article-catalog.md +20 -0
  337. package/plugins/skills/context-code-indexer/references/article-catalog/api-service-article-catalog.md +20 -0
  338. package/plugins/skills/context-code-indexer/references/article-catalog/background-runtime-article-catalog.md +19 -0
  339. package/plugins/skills/context-code-indexer/references/article-catalog/cli-tool-article-catalog.md +17 -0
  340. package/plugins/skills/context-code-indexer/references/article-catalog/component-library-article-catalog.md +18 -0
  341. package/plugins/skills/context-code-indexer/references/article-catalog/contract-source-article-catalog.md +17 -0
  342. package/plugins/skills/context-code-indexer/references/article-catalog/data-sync-reconciliation-article-catalog.md +19 -0
  343. package/plugins/skills/context-code-indexer/references/article-catalog/derived-generated-source-article-catalog.md +17 -0
  344. package/plugins/skills/context-code-indexer/references/article-catalog/domain-service-article-catalog.md +23 -0
  345. package/plugins/skills/context-code-indexer/references/article-catalog/event-consumer-article-catalog.md +19 -0
  346. package/plugins/skills/context-code-indexer/references/article-catalog/gateway-facade-article-catalog.md +21 -0
  347. package/plugins/skills/context-code-indexer/references/article-catalog/monorepo-container-article-catalog.md +17 -0
  348. package/plugins/skills/context-code-indexer/references/article-catalog/plugin-extension-article-catalog.md +17 -0
  349. package/plugins/skills/context-code-indexer/references/article-catalog/sdk-library-article-catalog.md +18 -0
  350. package/plugins/skills/context-code-indexer/references/article-catalog/storage-repository-article-catalog.md +19 -0
  351. package/plugins/skills/context-code-indexer/references/article-catalog/web-application-article-catalog.md +30 -0
  352. package/plugins/skills/context-code-indexer/references/composers/public-contract.md +13 -1
  353. package/plugins/skills/context-code-indexer/references/diagrams.md +122 -0
  354. package/plugins/skills/context-code-indexer/references/indexer.md +184 -8
  355. package/plugins/skills/context-code-indexer/references/visual-source-processing.md +42 -0
  356. package/plugins/skills/context-code-indexer/templates/adapter-integration-maintenance-guide.md +81 -0
  357. package/plugins/skills/context-code-indexer/templates/adapter-integration-request-adaptation-guide.md +81 -0
  358. package/plugins/skills/context-code-indexer/templates/adapter-integration-usage-guide.md +81 -0
  359. package/plugins/skills/context-code-indexer/templates/api-service-maintenance-guide.md +81 -0
  360. package/plugins/skills/context-code-indexer/templates/api-service-public-api-reference.md +81 -0
  361. package/plugins/skills/context-code-indexer/templates/articles/c01.md +49 -0
  362. package/plugins/skills/context-code-indexer/templates/articles/c02.md +36 -0
  363. package/plugins/skills/context-code-indexer/templates/articles/c03.md +28 -0
  364. package/plugins/skills/context-code-indexer/templates/articles/c04.md +29 -0
  365. package/plugins/skills/context-code-indexer/templates/articles/c05.md +30 -0
  366. package/plugins/skills/context-code-indexer/templates/articles/c07.md +51 -0
  367. package/plugins/skills/context-code-indexer/templates/articles/d01.md +31 -0
  368. package/plugins/skills/context-code-indexer/templates/articles/d02.md +32 -0
  369. package/plugins/skills/context-code-indexer/templates/articles/d03.md +32 -0
  370. package/plugins/skills/context-code-indexer/templates/articles/d04.md +38 -0
  371. package/plugins/skills/context-code-indexer/templates/articles/f01.md +50 -0
  372. package/plugins/skills/context-code-indexer/templates/articles/f02.md +33 -0
  373. package/plugins/skills/context-code-indexer/templates/articles/f03.md +38 -0
  374. package/plugins/skills/context-code-indexer/templates/articles/f04.md +32 -0
  375. package/plugins/skills/context-code-indexer/templates/articles/f05.md +32 -0
  376. package/plugins/skills/context-code-indexer/templates/articles/f06.md +32 -0
  377. package/plugins/skills/context-code-indexer/templates/articles/f07.md +31 -0
  378. package/plugins/skills/context-code-indexer/templates/articles/f08.md +36 -0
  379. package/plugins/skills/context-code-indexer/templates/articles/f09.md +32 -0
  380. package/plugins/skills/context-code-indexer/templates/articles/f10.md +32 -0
  381. package/plugins/skills/context-code-indexer/templates/articles/f11.md +39 -0
  382. package/plugins/skills/context-code-indexer/templates/articles/f12.md +59 -0
  383. package/plugins/skills/context-code-indexer/templates/articles/l01.md +38 -0
  384. package/plugins/skills/context-code-indexer/templates/articles/l02.md +103 -0
  385. package/plugins/skills/context-code-indexer/templates/articles/l03.md +92 -0
  386. package/plugins/skills/context-code-indexer/templates/articles/l04.md +30 -0
  387. package/plugins/skills/context-code-indexer/templates/articles/l05.md +50 -0
  388. package/plugins/skills/context-code-indexer/templates/articles/q03.md +29 -0
  389. package/plugins/skills/context-code-indexer/templates/articles/q05.md +29 -0
  390. package/plugins/skills/context-code-indexer/templates/articles/q06.md +29 -0
  391. package/plugins/skills/context-code-indexer/templates/articles/s01.md +31 -0
  392. package/plugins/skills/context-code-indexer/templates/articles/s02.md +30 -0
  393. package/plugins/skills/context-code-indexer/templates/articles/s03.md +34 -0
  394. package/plugins/skills/context-code-indexer/templates/articles/s04.md +35 -0
  395. package/plugins/skills/context-code-indexer/templates/articles/s05.md +30 -0
  396. package/plugins/skills/context-code-indexer/templates/articles/s06.md +30 -0
  397. package/plugins/skills/context-code-indexer/templates/articles/s07.md +33 -0
  398. package/plugins/skills/context-code-indexer/templates/background-runtime-maintenance-guide.md +81 -0
  399. package/plugins/skills/context-code-indexer/templates/background-runtime-task-runtime-guide.md +81 -0
  400. package/plugins/skills/context-code-indexer/templates/cli-tool-maintenance-guide.md +81 -0
  401. package/plugins/skills/context-code-indexer/templates/cli-tool-public-api-reference.md +81 -0
  402. package/plugins/skills/context-code-indexer/templates/cli-tool-usage-guide.md +81 -0
  403. package/plugins/skills/context-code-indexer/templates/component-library-maintenance-guide.md +81 -0
  404. package/plugins/skills/context-code-indexer/templates/component-library-public-api-reference.md +81 -0
  405. package/plugins/skills/context-code-indexer/templates/component-library-usage-guide.md +81 -0
  406. package/plugins/skills/context-code-indexer/templates/component-library.md +40 -3
  407. package/plugins/skills/context-code-indexer/templates/contract-source-public-api-reference.md +81 -0
  408. package/plugins/skills/context-code-indexer/templates/contract-source-usage-guide.md +81 -0
  409. package/plugins/skills/context-code-indexer/templates/contract-source.md +49 -0
  410. package/plugins/skills/context-code-indexer/templates/data-sync-reconciliation-maintenance-guide.md +81 -0
  411. package/plugins/skills/context-code-indexer/templates/data-sync-reconciliation-task-runtime-guide.md +81 -0
  412. package/plugins/skills/context-code-indexer/templates/derived-generated-source-public-api-reference.md +81 -0
  413. package/plugins/skills/context-code-indexer/templates/derived-generated-source-usage-guide.md +81 -0
  414. package/plugins/skills/context-code-indexer/templates/derived-generated-source.md +15 -0
  415. package/plugins/skills/context-code-indexer/templates/domain-service-maintenance-guide.md +81 -0
  416. package/plugins/skills/context-code-indexer/templates/domain-service-public-api-reference.md +81 -0
  417. package/plugins/skills/context-code-indexer/templates/event-consumer-maintenance-guide.md +81 -0
  418. package/plugins/skills/context-code-indexer/templates/event-consumer-task-runtime-guide.md +81 -0
  419. package/plugins/skills/context-code-indexer/templates/gateway-facade-maintenance-guide.md +81 -0
  420. package/plugins/skills/context-code-indexer/templates/gateway-facade-public-api-reference.md +81 -0
  421. package/plugins/skills/context-code-indexer/templates/gateway-facade-request-adaptation-guide.md +81 -0
  422. package/plugins/skills/context-code-indexer/templates/monorepo-container-maintenance-guide.md +81 -0
  423. package/plugins/skills/context-code-indexer/templates/monorepo-container-usage-guide.md +81 -0
  424. package/plugins/skills/context-code-indexer/templates/monorepo-container.md +9 -0
  425. package/plugins/skills/context-code-indexer/templates/plugin-extension-maintenance-guide.md +81 -0
  426. package/plugins/skills/context-code-indexer/templates/plugin-extension-public-api-reference.md +81 -0
  427. package/plugins/skills/context-code-indexer/templates/plugin-extension-usage-guide.md +81 -0
  428. package/plugins/skills/context-code-indexer/templates/sdk-library-maintenance-guide.md +81 -0
  429. package/plugins/skills/context-code-indexer/templates/sdk-library-public-api-reference.md +81 -0
  430. package/plugins/skills/context-code-indexer/templates/sdk-library-usage-guide.md +81 -0
  431. package/plugins/skills/context-code-indexer/templates/storage-repository-maintenance-guide.md +81 -0
  432. package/plugins/skills/context-code-indexer/templates/storage-repository-public-api-reference.md +81 -0
  433. package/plugins/skills/context-code-indexer/templates/web-application-federation-guide.md +81 -0
  434. package/plugins/skills/context-code-indexer/templates/web-application-maintenance-guide.md +81 -0
  435. package/plugins/skills/context-code-indexer/templates/web-application-page-task-guide.md +81 -0
  436. package/plugins/skills/context-code-indexer/tests/fixtures/composers.json +1 -1
  437. package/plugins/skills/context-code-indexer/tests/fixtures/scenarios.json +1 -1
  438. package/plugins/skills/context-indexer-create/SKILL.md +80 -0
  439. package/plugins/skills/context-indexer-create/references/guides/code-indexer-skill-authoring.md +180 -0
  440. package/plugins/skills/context-indexer-create/references/guides/indexer-manifest-example.md +103 -0
  441. package/plugins/skills/context-indexer-create/references/guides/indexer-provider-and-customization.md +471 -0
  442. package/plugins/skills/context-indexer-create/references/guides/indexer-skill-creation.md +99 -0
  443. package/plugins/skills/context-indexer-create/references/guides/markdown-indexer-skill-authoring.md +136 -0
  444. package/plugins/skills/context-indexer-create/references/guides/note.md +37 -0
  445. package/plugins/skills/context-indexer-create/references/guides/sessions.md +50 -0
  446. package/plugins/skills/context-indexer-create/references/reference/indexer-provider-protocol.md +854 -0
  447. package/plugins/skills/context-inspect-search/SKILL.md +159 -0
  448. package/plugins/skills/context-inspect-search/agents/openai.yaml +2 -0
  449. package/plugins/skills/context-markdown-indexer/SKILL.md +7 -1
  450. package/plugins/skills/context-markdown-indexer/context-indexer.yaml +856 -15
  451. package/plugins/skills/context-markdown-indexer/references/article-catalog/decision-record-article-catalog.md +7 -0
  452. package/plugins/skills/context-markdown-indexer/references/article-catalog/documentation-site-article-catalog.md +8 -0
  453. package/plugins/skills/context-markdown-indexer/references/article-catalog/domain-reference-article-catalog.md +14 -0
  454. package/plugins/skills/context-markdown-indexer/references/article-catalog/faq-support-article-catalog.md +8 -0
  455. package/plugins/skills/context-markdown-indexer/references/article-catalog/incident-review-article-catalog.md +9 -0
  456. package/plugins/skills/context-markdown-indexer/references/article-catalog/product-requirements-article-catalog.md +8 -0
  457. package/plugins/skills/context-markdown-indexer/references/article-catalog/public-api-reference-article-catalog.md +10 -0
  458. package/plugins/skills/context-markdown-indexer/references/article-catalog/release-migration-guide-article-catalog.md +11 -0
  459. package/plugins/skills/context-markdown-indexer/references/article-catalog/runbook-article-catalog.md +12 -0
  460. package/plugins/skills/context-markdown-indexer/references/article-catalog/standard-policy-article-catalog.md +10 -0
  461. package/plugins/skills/context-markdown-indexer/references/article-catalog/technical-guide-article-catalog.md +20 -0
  462. package/plugins/skills/context-markdown-indexer/references/article-catalog/test-validation-article-catalog.md +11 -0
  463. package/plugins/skills/context-markdown-indexer/references/article-catalog/user-and-developer-guide-article-catalog.md +13 -0
  464. package/plugins/skills/context-markdown-indexer/references/diagrams.md +122 -0
  465. package/plugins/skills/context-markdown-indexer/references/editorial-policy.md +19 -29
  466. package/plugins/skills/context-markdown-indexer/references/indexer.md +63 -2
  467. package/plugins/skills/context-markdown-indexer/references/semantic-planning.md +22 -8
  468. package/plugins/skills/context-markdown-indexer/references/visual-source-processing.md +42 -0
  469. package/plugins/skills/context-markdown-indexer/templates/articles/c01.md +37 -0
  470. package/plugins/skills/context-markdown-indexer/templates/articles/c02.md +34 -0
  471. package/plugins/skills/context-markdown-indexer/templates/articles/c03.md +26 -0
  472. package/plugins/skills/context-markdown-indexer/templates/articles/c04.md +27 -0
  473. package/plugins/skills/context-markdown-indexer/templates/articles/c05.md +28 -0
  474. package/plugins/skills/context-markdown-indexer/templates/articles/c06.md +28 -0
  475. package/plugins/skills/context-markdown-indexer/templates/articles/c07.md +27 -0
  476. package/plugins/skills/context-markdown-indexer/templates/articles/d01.md +29 -0
  477. package/plugins/skills/context-markdown-indexer/templates/articles/d02.md +30 -0
  478. package/plugins/skills/context-markdown-indexer/templates/articles/d03.md +30 -0
  479. package/plugins/skills/context-markdown-indexer/templates/articles/d04.md +44 -0
  480. package/plugins/skills/context-markdown-indexer/templates/articles/f01.md +30 -0
  481. package/plugins/skills/context-markdown-indexer/templates/articles/f05.md +30 -0
  482. package/plugins/skills/context-markdown-indexer/templates/articles/f06.md +30 -0
  483. package/plugins/skills/context-markdown-indexer/templates/articles/f08.md +34 -0
  484. package/plugins/skills/context-markdown-indexer/templates/articles/f09.md +30 -0
  485. package/plugins/skills/context-markdown-indexer/templates/articles/l01.md +35 -0
  486. package/plugins/skills/context-markdown-indexer/templates/articles/l02.md +101 -0
  487. package/plugins/skills/context-markdown-indexer/templates/articles/l03.md +90 -0
  488. package/plugins/skills/context-markdown-indexer/templates/articles/l04.md +28 -0
  489. package/plugins/skills/context-markdown-indexer/templates/articles/l05.md +48 -0
  490. package/plugins/skills/context-markdown-indexer/templates/articles/q01.md +32 -0
  491. package/plugins/skills/context-markdown-indexer/templates/articles/q02.md +33 -0
  492. package/plugins/skills/context-markdown-indexer/templates/articles/q03.md +27 -0
  493. package/plugins/skills/context-markdown-indexer/templates/articles/q04.md +32 -0
  494. package/plugins/skills/context-markdown-indexer/templates/articles/q05.md +27 -0
  495. package/plugins/skills/context-markdown-indexer/templates/articles/q06.md +27 -0
  496. package/plugins/skills/context-markdown-indexer/templates/articles/q07.md +32 -0
  497. package/plugins/skills/context-markdown-indexer/templates/articles/s01.md +29 -0
  498. package/plugins/skills/context-markdown-indexer/templates/articles/s02.md +27 -0
  499. package/plugins/skills/context-markdown-indexer/templates/articles/s03.md +31 -0
  500. package/plugins/skills/context-markdown-indexer/templates/articles/s04.md +33 -0
  501. package/plugins/skills/context-markdown-indexer/templates/articles/s05.md +28 -0
  502. package/plugins/skills/context-markdown-indexer/templates/articles/s06.md +28 -0
  503. package/plugins/skills/context-markdown-indexer/templates/articles/s07.md +31 -0
  504. package/plugins/skills/context-note-indexer/SKILL.md +16 -0
  505. package/plugins/skills/context-note-indexer/context-indexer.yaml +1459 -0
  506. package/plugins/skills/context-note-indexer/references/article-catalog/decision-record-article-catalog.md +7 -0
  507. package/plugins/skills/context-note-indexer/references/article-catalog/domain-reference-article-catalog.md +14 -0
  508. package/plugins/skills/context-note-indexer/references/article-catalog/faq-support-article-catalog.md +8 -0
  509. package/plugins/skills/context-note-indexer/references/article-catalog/incident-review-article-catalog.md +9 -0
  510. package/plugins/skills/context-note-indexer/references/article-catalog/product-requirements-article-catalog.md +8 -0
  511. package/plugins/skills/context-note-indexer/references/article-catalog/runbook-article-catalog.md +12 -0
  512. package/plugins/skills/context-note-indexer/references/article-catalog/technical-guide-article-catalog.md +20 -0
  513. package/plugins/skills/context-note-indexer/references/article-catalog/test-validation-article-catalog.md +11 -0
  514. package/plugins/skills/context-note-indexer/references/article-catalog/user-and-developer-guide-article-catalog.md +13 -0
  515. package/plugins/skills/context-note-indexer/references/classification.md +55 -0
  516. package/plugins/skills/context-note-indexer/references/customization.md +36 -0
  517. package/plugins/skills/context-note-indexer/references/diagrams.md +122 -0
  518. package/plugins/skills/context-note-indexer/references/extension-placement.md +57 -0
  519. package/plugins/skills/context-note-indexer/references/indexer.md +43 -0
  520. package/plugins/skills/context-note-indexer/references/updates-and-composition.md +37 -0
  521. package/plugins/skills/context-note-indexer/references/visual-source-processing.md +42 -0
  522. package/plugins/skills/context-note-indexer/references/writing.md +57 -0
  523. package/plugins/skills/context-note-indexer/templates/articles/c01.md +37 -0
  524. package/plugins/skills/context-note-indexer/templates/articles/c02.md +34 -0
  525. package/plugins/skills/context-note-indexer/templates/articles/c03.md +26 -0
  526. package/plugins/skills/context-note-indexer/templates/articles/c04.md +27 -0
  527. package/plugins/skills/context-note-indexer/templates/articles/c05.md +28 -0
  528. package/plugins/skills/context-note-indexer/templates/articles/c06.md +28 -0
  529. package/plugins/skills/context-note-indexer/templates/articles/c07.md +27 -0
  530. package/plugins/skills/context-note-indexer/templates/articles/d01.md +29 -0
  531. package/plugins/skills/context-note-indexer/templates/articles/d02.md +30 -0
  532. package/plugins/skills/context-note-indexer/templates/articles/d03.md +30 -0
  533. package/plugins/skills/context-note-indexer/templates/articles/d04.md +36 -0
  534. package/plugins/skills/context-note-indexer/templates/articles/f01.md +30 -0
  535. package/plugins/skills/context-note-indexer/templates/articles/f06.md +30 -0
  536. package/plugins/skills/context-note-indexer/templates/articles/f08.md +34 -0
  537. package/plugins/skills/context-note-indexer/templates/articles/f09.md +30 -0
  538. package/plugins/skills/context-note-indexer/templates/articles/l01.md +35 -0
  539. package/plugins/skills/context-note-indexer/templates/articles/l02.md +101 -0
  540. package/plugins/skills/context-note-indexer/templates/articles/l03.md +90 -0
  541. package/plugins/skills/context-note-indexer/templates/articles/l04.md +28 -0
  542. package/plugins/skills/context-note-indexer/templates/articles/l05.md +48 -0
  543. package/plugins/skills/context-note-indexer/templates/articles/q01.md +32 -0
  544. package/plugins/skills/context-note-indexer/templates/articles/q02.md +33 -0
  545. package/plugins/skills/context-note-indexer/templates/articles/q03.md +27 -0
  546. package/plugins/skills/context-note-indexer/templates/articles/q04.md +32 -0
  547. package/plugins/skills/context-note-indexer/templates/articles/q05.md +27 -0
  548. package/plugins/skills/context-note-indexer/templates/articles/q06.md +27 -0
  549. package/plugins/skills/context-note-indexer/templates/articles/q07.md +32 -0
  550. package/plugins/skills/context-note-indexer/templates/articles/s01.md +29 -0
  551. package/plugins/skills/context-note-indexer/templates/articles/s04.md +33 -0
  552. package/plugins/skills/context-note-indexer/templates/articles/s05.md +28 -0
  553. package/plugins/skills/context-note-indexer/templates/articles/s06.md +28 -0
  554. package/plugins/skills/context-note-indexer/templates/articles/s07.md +31 -0
  555. package/plugins/skills/context-note-indexer/templates/decision-record.md +33 -0
  556. package/plugins/skills/context-note-indexer/templates/domain-reference.md +31 -0
  557. package/plugins/skills/context-note-indexer/templates/faq-support.md +30 -0
  558. package/plugins/skills/context-note-indexer/templates/incident-review.md +28 -0
  559. package/plugins/skills/context-note-indexer/templates/product-requirements.md +29 -0
  560. package/plugins/skills/context-note-indexer/templates/runbook.md +30 -0
  561. package/plugins/skills/context-note-indexer/templates/technical-guide.md +31 -0
  562. package/plugins/skills/context-note-indexer/templates/test-validation.md +28 -0
  563. package/plugins/skills/context-note-indexer/templates/user-and-developer-guide.md +28 -0
  564. package/plugins/skills/context-note-indexer/tests/fixtures/profiles.json +281 -0
  565. package/plugins/skills/context-sessions-indexer/SKILL.md +16 -0
  566. package/plugins/skills/context-sessions-indexer/context-indexer.yaml +1459 -0
  567. package/plugins/skills/context-sessions-indexer/references/article-catalog/decision-record-article-catalog.md +7 -0
  568. package/plugins/skills/context-sessions-indexer/references/article-catalog/domain-reference-article-catalog.md +14 -0
  569. package/plugins/skills/context-sessions-indexer/references/article-catalog/faq-support-article-catalog.md +8 -0
  570. package/plugins/skills/context-sessions-indexer/references/article-catalog/incident-review-article-catalog.md +9 -0
  571. package/plugins/skills/context-sessions-indexer/references/article-catalog/product-requirements-article-catalog.md +8 -0
  572. package/plugins/skills/context-sessions-indexer/references/article-catalog/runbook-article-catalog.md +12 -0
  573. package/plugins/skills/context-sessions-indexer/references/article-catalog/technical-guide-article-catalog.md +20 -0
  574. package/plugins/skills/context-sessions-indexer/references/article-catalog/test-validation-article-catalog.md +11 -0
  575. package/plugins/skills/context-sessions-indexer/references/article-catalog/user-and-developer-guide-article-catalog.md +13 -0
  576. package/plugins/skills/context-sessions-indexer/references/classification.md +56 -0
  577. package/plugins/skills/context-sessions-indexer/references/customization.md +36 -0
  578. package/plugins/skills/context-sessions-indexer/references/diagrams.md +122 -0
  579. package/plugins/skills/context-sessions-indexer/references/extension-placement.md +63 -0
  580. package/plugins/skills/context-sessions-indexer/references/indexer.md +48 -0
  581. package/plugins/skills/context-sessions-indexer/references/updates-and-composition.md +37 -0
  582. package/plugins/skills/context-sessions-indexer/references/visual-source-processing.md +42 -0
  583. package/plugins/skills/context-sessions-indexer/references/writing.md +63 -0
  584. package/plugins/skills/context-sessions-indexer/templates/articles/c01.md +37 -0
  585. package/plugins/skills/context-sessions-indexer/templates/articles/c02.md +34 -0
  586. package/plugins/skills/context-sessions-indexer/templates/articles/c03.md +26 -0
  587. package/plugins/skills/context-sessions-indexer/templates/articles/c04.md +27 -0
  588. package/plugins/skills/context-sessions-indexer/templates/articles/c05.md +28 -0
  589. package/plugins/skills/context-sessions-indexer/templates/articles/c06.md +28 -0
  590. package/plugins/skills/context-sessions-indexer/templates/articles/c07.md +27 -0
  591. package/plugins/skills/context-sessions-indexer/templates/articles/d01.md +29 -0
  592. package/plugins/skills/context-sessions-indexer/templates/articles/d02.md +30 -0
  593. package/plugins/skills/context-sessions-indexer/templates/articles/d03.md +30 -0
  594. package/plugins/skills/context-sessions-indexer/templates/articles/d04.md +36 -0
  595. package/plugins/skills/context-sessions-indexer/templates/articles/f01.md +30 -0
  596. package/plugins/skills/context-sessions-indexer/templates/articles/f06.md +30 -0
  597. package/plugins/skills/context-sessions-indexer/templates/articles/f08.md +34 -0
  598. package/plugins/skills/context-sessions-indexer/templates/articles/f09.md +30 -0
  599. package/plugins/skills/context-sessions-indexer/templates/articles/l01.md +35 -0
  600. package/plugins/skills/context-sessions-indexer/templates/articles/l02.md +101 -0
  601. package/plugins/skills/context-sessions-indexer/templates/articles/l03.md +90 -0
  602. package/plugins/skills/context-sessions-indexer/templates/articles/l04.md +28 -0
  603. package/plugins/skills/context-sessions-indexer/templates/articles/l05.md +48 -0
  604. package/plugins/skills/context-sessions-indexer/templates/articles/q01.md +32 -0
  605. package/plugins/skills/context-sessions-indexer/templates/articles/q02.md +33 -0
  606. package/plugins/skills/context-sessions-indexer/templates/articles/q03.md +27 -0
  607. package/plugins/skills/context-sessions-indexer/templates/articles/q04.md +32 -0
  608. package/plugins/skills/context-sessions-indexer/templates/articles/q05.md +27 -0
  609. package/plugins/skills/context-sessions-indexer/templates/articles/q06.md +27 -0
  610. package/plugins/skills/context-sessions-indexer/templates/articles/q07.md +32 -0
  611. package/plugins/skills/context-sessions-indexer/templates/articles/s01.md +29 -0
  612. package/plugins/skills/context-sessions-indexer/templates/articles/s04.md +33 -0
  613. package/plugins/skills/context-sessions-indexer/templates/articles/s05.md +28 -0
  614. package/plugins/skills/context-sessions-indexer/templates/articles/s06.md +28 -0
  615. package/plugins/skills/context-sessions-indexer/templates/articles/s07.md +31 -0
  616. package/plugins/skills/context-sessions-indexer/templates/decision-record.md +43 -0
  617. package/plugins/skills/context-sessions-indexer/templates/domain-reference.md +31 -0
  618. package/plugins/skills/context-sessions-indexer/templates/faq-support.md +33 -0
  619. package/plugins/skills/context-sessions-indexer/templates/incident-review.md +37 -0
  620. package/plugins/skills/context-sessions-indexer/templates/product-requirements.md +35 -0
  621. package/plugins/skills/context-sessions-indexer/templates/runbook.md +32 -0
  622. package/plugins/skills/context-sessions-indexer/templates/technical-guide.md +31 -0
  623. package/plugins/skills/context-sessions-indexer/templates/test-validation.md +37 -0
  624. package/plugins/skills/context-sessions-indexer/templates/user-and-developer-guide.md +31 -0
  625. package/plugins/skills/context-sessions-indexer/tests/fixtures/profiles.json +281 -0
  626. package/providers/context/actions/advance-knowledge-maintenance.yaml +5 -0
  627. package/providers/context/actions/author-approved-revision.yaml +6 -0
  628. package/providers/context/actions/finish-rollback.yaml +5 -0
  629. package/providers/context/actions/inspect-source-update.yaml +6 -0
  630. package/providers/context/actions/inspect-task-recovery.yaml +5 -0
  631. package/providers/context/actions/record-workspace-version.yaml +5 -0
  632. package/providers/context/actions/register-source-batch.yaml +1 -1
  633. package/providers/context/actions/repair-project-entry.yaml +9 -0
  634. package/providers/context/actions/resume-workspace-task.yaml +5 -0
  635. package/providers/context/codes.yaml +11 -0
  636. package/providers/context/graphs/indexer.yaml +93 -2
  637. package/providers/context/graphs/workspace.yaml +86 -6
  638. package/providers/context/manifest.json +371 -59
  639. package/providers/context/provider.yaml +1 -1
  640. package/providers/context/resources/contracts/indexer-provider-guide.yaml +6 -0
  641. package/providers/context/resources/contracts/indexer-registry-bootstrap.yaml +6 -0
  642. package/providers/context/resources/diagnostics/verification.md +6 -4
  643. package/providers/context/resources/dialogue/knowledge-review.md +16 -9
  644. package/providers/context/resources/dialogue/package-output.md +18 -5
  645. package/providers/context/resources/dialogue/source-boundary.md +12 -2
  646. package/providers/context/resources/dialogue/workflow-mode-after-creation.md +15 -17
  647. package/providers/context/resources/manuals/guides/knowledge-updates.md +428 -0
  648. package/providers/context/resources/manuals/guides/lark-resources.md +5 -1
  649. package/providers/context/resources/manuals/guides/note.md +43 -0
  650. package/providers/context/resources/manuals/guides/package-outputs.md +231 -60
  651. package/providers/context/resources/manuals/guides/sessions.md +56 -0
  652. package/providers/context/resources/manuals/guides/workspace-commit.md +51 -0
  653. package/providers/context/resources/manuals/guides/workspace-prepare.md +78 -0
  654. package/providers/context/resources/manuals/guides/workspace-restore.md +65 -0
  655. package/providers/context/resources/manuals/reference/code-extractors.md +57 -0
  656. package/providers/context/resources/manuals/reference/package-templates.md +10 -9
  657. package/providers/context/resources/manuals/reference/project-api.md +100 -13
  658. package/providers/context/resources/manuals/reference/template-variables.md +7 -7
  659. package/providers/context/resources/procedures/approved-revision.md +159 -0
  660. package/providers/context/resources/procedures/close-and-build.md +58 -1
  661. package/providers/context/resources/procedures/homogeneous-source-review.md +123 -0
  662. package/providers/context/resources/procedures/knowledge-maintenance.md +68 -0
  663. package/providers/context/resources/procedures/knowledge-review.md +69 -6
  664. package/providers/context/resources/procedures/knowledge-updates.md +428 -0
  665. package/providers/context/resources/procedures/note.md +43 -0
  666. package/providers/context/resources/procedures/package-output.md +20 -1
  667. package/providers/context/resources/procedures/parallel-agent-batch.md +140 -0
  668. package/providers/context/resources/procedures/project-configuration.md +6 -0
  669. package/providers/context/resources/procedures/sessions.md +56 -0
  670. package/providers/context/resources/procedures/source-boundary.md +24 -1
  671. package/providers/context/resources/procedures/source-capture-detailed.md +36 -2
  672. package/providers/context/resources/procedures/source-update.md +50 -0
  673. package/providers/context/resources/procedures/task-recovery.md +71 -0
  674. package/providers/context/resources/procedures/verify-and-repair.md +5 -0
  675. package/providers/context/resources/procedures/work-start-report.md +419 -0
  676. package/providers/context/resources/procedures/workspace-commit.md +51 -0
  677. package/providers/context/resources/procedures/workspace-prepare.md +78 -0
  678. package/providers/context/resources/procedures/workspace-restore.md +65 -0
  679. package/providers/context/resources/templates/indexer-agent-worker.md +67 -0
  680. package/providers/context/resources/templates/recovery-issue.md +54 -0
  681. package/providers/context/resources/templates/work-start-report.md +302 -0
  682. package/providers/context/schemas/approved-revision-result.schema.json +88 -0
  683. package/providers/context/schemas/indexer-agent-step-result.schema.json +2232 -318
  684. package/providers/context/schemas/indexer-main-lifecycle-output.schema.json +1 -2
  685. package/providers/context/schemas/indexer-registry-bootstrap.schema.json +227 -0
  686. package/providers/context/schemas/source-batch-input.schema.json +15 -8
  687. package/providers/context/schemas/source-update-result.schema.json +83 -0
  688. package/providers/context/skills/configure-indexer-providers/SKILL.md +70 -5
  689. package/providers/context/skills/configure-indexer-providers/references/guides/code-indexer-skill-authoring.md +180 -0
  690. package/providers/context/skills/configure-indexer-providers/references/guides/indexer-provider-and-customization.md +471 -0
  691. package/providers/context/skills/configure-indexer-providers/references/guides/markdown-indexer-skill-authoring.md +136 -0
  692. package/providers/context/skills/configure-indexer-providers/references/guides/note.md +37 -0
  693. package/providers/context/skills/configure-indexer-providers/references/guides/sessions.md +50 -0
  694. package/providers/context/skills/configure-indexer-providers/references/reference/indexer-provider-protocol.md +854 -0
  695. package/providers/context/skills/prepare-indexer-customization-project/SKILL.md +1 -1
  696. package/providers/context/skills/propose-indexer-customization/SKILL.md +1 -1
  697. package/providers/context/skills/record-workspace-version/SKILL.md +46 -0
  698. package/providers/context/skills/recover-workspace/SKILL.md +15 -0
  699. package/providers/context/skills/resolve-current-indexer-gate/SKILL.md +33 -1
  700. package/providers/context/skills/run-indexer-agent-step/SKILL.md +403 -26
  701. package/providers/context/skills/run-indexer-lifecycle/SKILL.md +188 -1
  702. package/providers/context/skills/run-indexer-post-author-composer/SKILL.md +60 -0
@@ -1,398 +1,2312 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "context.indexer.current-action-input/v2",
4
+ "$comment": "Generated from indexerCurrentActionInputDefinitions; do not edit by hand. Runtime validation additionally checks current-workset references, ownership and unique task keys.",
4
5
  "oneOf": [
5
- { "$ref": "#/$defs/providerSelection" },
6
- { "$ref": "#/$defs/providerResolution" },
7
- { "$ref": "#/$defs/providerProgramAuthorization" },
8
- { "$ref": "#/$defs/partitionBatch" },
9
- { "$ref": "#/$defs/authorBatch" },
10
- { "$ref": "#/$defs/postAuthor" },
11
- { "$ref": "#/$defs/structureReview" },
12
- { "$ref": "#/$defs/layoutConfirmation" }
6
+ {
7
+ "$ref": "#/$defs/sourceUpdate"
8
+ },
9
+ {
10
+ "$ref": "#/$defs/approvedRevision"
11
+ },
12
+ {
13
+ "$ref": "#/$defs/providerSelection"
14
+ },
15
+ {
16
+ "$ref": "#/$defs/providerResolution"
17
+ },
18
+ {
19
+ "$ref": "#/$defs/providerProgramAuthorization"
20
+ },
21
+ {
22
+ "$ref": "#/$defs/partitionBatch"
23
+ },
24
+ {
25
+ "$ref": "#/$defs/authorBatch"
26
+ },
27
+ {
28
+ "$ref": "#/$defs/postAuthor"
29
+ },
30
+ {
31
+ "$ref": "#/$defs/structureReview"
32
+ },
33
+ {
34
+ "$ref": "#/$defs/layoutConfirmation"
35
+ }
13
36
  ],
14
37
  "$defs": {
15
- "string": { "type": "string", "minLength": 1 },
38
+ "sourceUpdate": {
39
+ "type": "object",
40
+ "properties": {
41
+ "stage": {
42
+ "type": "string",
43
+ "const": "source-update"
44
+ },
45
+ "decisions": {
46
+ "type": "array",
47
+ "items": {
48
+ "type": "object",
49
+ "properties": {
50
+ "path": {
51
+ "type": "string",
52
+ "minLength": 1
53
+ },
54
+ "instruction": {
55
+ "type": "string",
56
+ "minLength": 1
57
+ },
58
+ "supporting_sources": {
59
+ "type": "array",
60
+ "items": {
61
+ "type": "string",
62
+ "minLength": 1
63
+ },
64
+ "minItems": 1
65
+ }
66
+ },
67
+ "required": [
68
+ "path"
69
+ ],
70
+ "additionalProperties": false
71
+ }
72
+ },
73
+ "scope_summary": {
74
+ "type": "string",
75
+ "minLength": 1
76
+ },
77
+ "new_topics": {
78
+ "type": "array",
79
+ "items": {
80
+ "type": "object",
81
+ "properties": {
82
+ "path": {
83
+ "type": "string",
84
+ "minLength": 1
85
+ },
86
+ "title": {
87
+ "type": "string",
88
+ "minLength": 1
89
+ },
90
+ "source_refs": {
91
+ "type": "array",
92
+ "items": {
93
+ "type": "string",
94
+ "minLength": 1
95
+ },
96
+ "minItems": 1
97
+ },
98
+ "instruction": {
99
+ "type": "string",
100
+ "minLength": 1
101
+ }
102
+ },
103
+ "required": [
104
+ "path",
105
+ "title",
106
+ "source_refs",
107
+ "instruction"
108
+ ],
109
+ "additionalProperties": false
110
+ }
111
+ }
112
+ },
113
+ "required": [
114
+ "stage",
115
+ "decisions",
116
+ "scope_summary",
117
+ "new_topics"
118
+ ],
119
+ "additionalProperties": false
120
+ },
121
+ "approvedRevision": {
122
+ "anyOf": [
123
+ {
124
+ "type": "object",
125
+ "properties": {
126
+ "stage": {
127
+ "type": "string",
128
+ "const": "approved-revision"
129
+ },
130
+ "markdown": {
131
+ "type": "string",
132
+ "minLength": 1
133
+ }
134
+ },
135
+ "required": [
136
+ "stage",
137
+ "markdown"
138
+ ],
139
+ "additionalProperties": false
140
+ },
141
+ {
142
+ "type": "object",
143
+ "properties": {
144
+ "stage": {
145
+ "type": "string",
146
+ "const": "approved-revision"
147
+ },
148
+ "sections": {
149
+ "type": "array",
150
+ "items": {
151
+ "type": "object",
152
+ "properties": {
153
+ "section_id": {
154
+ "type": "string",
155
+ "minLength": 1
156
+ },
157
+ "content": {
158
+ "type": "array",
159
+ "items": {
160
+ "anyOf": [
161
+ {
162
+ "type": "object",
163
+ "properties": {
164
+ "markdown": {
165
+ "type": "string"
166
+ }
167
+ },
168
+ "required": [
169
+ "markdown"
170
+ ],
171
+ "additionalProperties": false
172
+ },
173
+ {
174
+ "type": "object",
175
+ "properties": {
176
+ "program": {
177
+ "type": "string",
178
+ "minLength": 1
179
+ }
180
+ },
181
+ "required": [
182
+ "program"
183
+ ],
184
+ "additionalProperties": false
185
+ }
186
+ ]
187
+ },
188
+ "minItems": 1
189
+ }
190
+ },
191
+ "required": [
192
+ "section_id",
193
+ "content"
194
+ ],
195
+ "additionalProperties": false
196
+ },
197
+ "minItems": 1
198
+ }
199
+ },
200
+ "required": [
201
+ "stage",
202
+ "sections"
203
+ ],
204
+ "additionalProperties": false
205
+ }
206
+ ]
207
+ },
16
208
  "providerSelection": {
17
209
  "type": "object",
18
- "additionalProperties": false,
19
- "required": ["stage", "host_visible_skills", "indexers"],
20
210
  "properties": {
21
- "stage": { "const": "provider-selection" },
211
+ "stage": {
212
+ "type": "string",
213
+ "const": "provider-selection"
214
+ },
22
215
  "host_visible_skills": {
23
216
  "type": "array",
24
217
  "items": {
25
218
  "type": "object",
26
- "additionalProperties": false,
27
- "required": ["skill", "version", "source_type"],
28
219
  "properties": {
29
- "skill": { "$ref": "#/$defs/string" },
30
- "version": { "oneOf": [{ "$ref": "#/$defs/string" }, { "type": "null" }] },
220
+ "skill": {
221
+ "type": "string",
222
+ "minLength": 1
223
+ },
224
+ "version": {
225
+ "anyOf": [
226
+ {
227
+ "type": "string",
228
+ "minLength": 1
229
+ },
230
+ {
231
+ "type": "null"
232
+ }
233
+ ]
234
+ },
31
235
  "source_type": {
32
- "enum": ["community-plugin", "workspace", "installed-plugin", "marketplace"]
236
+ "type": "string",
237
+ "enum": [
238
+ "community-plugin",
239
+ "workspace",
240
+ "installed-plugin",
241
+ "marketplace"
242
+ ]
33
243
  }
34
- }
35
- }
244
+ },
245
+ "required": [
246
+ "skill",
247
+ "version",
248
+ "source_type"
249
+ ],
250
+ "additionalProperties": false
251
+ },
252
+ "default": []
36
253
  },
37
254
  "indexers": {
38
255
  "type": "array",
39
- "minItems": 1,
40
- "items": { "type": "object" }
256
+ "items": {
257
+ "type": "object",
258
+ "properties": {
259
+ "id": {
260
+ "type": "string",
261
+ "pattern": "^[a-z0-9][a-z0-9._/-]*$"
262
+ },
263
+ "operations": {
264
+ "type": "array",
265
+ "items": {
266
+ "type": "string",
267
+ "enum": [
268
+ "main-index"
269
+ ]
270
+ },
271
+ "minItems": 1,
272
+ "default": [
273
+ "main-index"
274
+ ]
275
+ },
276
+ "requirement_bindings": {
277
+ "type": "array",
278
+ "items": {
279
+ "type": "object",
280
+ "properties": {
281
+ "requirement_ref": {
282
+ "$ref": "#/$defs/providerSelection/properties/indexers/items/properties/id"
283
+ },
284
+ "coverage_domains": {
285
+ "type": "array",
286
+ "items": {
287
+ "$ref": "#/$defs/providerSelection/properties/indexers/items/properties/id"
288
+ },
289
+ "minItems": 1
290
+ },
291
+ "owned_scope": {
292
+ "anyOf": [
293
+ {
294
+ "type": "object",
295
+ "properties": {
296
+ "ref": {
297
+ "type": "string",
298
+ "pattern": "^requirement:[a-z0-9][a-z0-9._/-]*#(?:target_scope|evidence_source_scope)$"
299
+ }
300
+ },
301
+ "required": [
302
+ "ref"
303
+ ],
304
+ "additionalProperties": false
305
+ },
306
+ {
307
+ "type": "object",
308
+ "properties": {
309
+ "targets": {
310
+ "type": "array",
311
+ "items": {
312
+ "type": "object",
313
+ "properties": {
314
+ "source_ref": {
315
+ "type": "string",
316
+ "pattern": "^[a-z][a-z0-9.-]*:[A-Za-z0-9][A-Za-z0-9._~:/#-]*$"
317
+ },
318
+ "module_refs": {
319
+ "type": "array",
320
+ "items": {
321
+ "$ref": "#/$defs/providerSelection/properties/indexers/items/properties/requirement_bindings/items/properties/owned_scope/anyOf/1/properties/targets/items/properties/source_ref"
322
+ },
323
+ "default": []
324
+ }
325
+ },
326
+ "required": [
327
+ "source_ref"
328
+ ],
329
+ "additionalProperties": false
330
+ },
331
+ "minItems": 1
332
+ }
333
+ },
334
+ "required": [
335
+ "targets"
336
+ ],
337
+ "additionalProperties": false
338
+ }
339
+ ]
340
+ },
341
+ "role": {
342
+ "type": "string",
343
+ "enum": [
344
+ "primary",
345
+ "enricher"
346
+ ]
347
+ }
348
+ },
349
+ "required": [
350
+ "requirement_ref",
351
+ "coverage_domains",
352
+ "role"
353
+ ],
354
+ "additionalProperties": false
355
+ },
356
+ "minItems": 1
357
+ },
358
+ "read_scope": {
359
+ "type": "object",
360
+ "properties": {
361
+ "refs": {
362
+ "type": "array",
363
+ "items": {
364
+ "$ref": "#/$defs/providerSelection/properties/indexers/items/properties/requirement_bindings/items/properties/owned_scope/anyOf/0/properties/ref"
365
+ },
366
+ "minItems": 1
367
+ },
368
+ "extra_targets": {
369
+ "type": "array",
370
+ "items": {
371
+ "$ref": "#/$defs/providerSelection/properties/indexers/items/properties/requirement_bindings/items/properties/owned_scope/anyOf/1/properties/targets/items"
372
+ }
373
+ }
374
+ },
375
+ "required": [
376
+ "refs"
377
+ ],
378
+ "additionalProperties": false
379
+ },
380
+ "profile": {
381
+ "type": "object",
382
+ "properties": {
383
+ "primary": {
384
+ "type": "object",
385
+ "properties": {
386
+ "id": {
387
+ "$ref": "#/$defs/providerSelection/properties/indexers/items/properties/id"
388
+ },
389
+ "provider": {
390
+ "$ref": "#/$defs/providerSelection/properties/indexers/items/properties/id"
391
+ },
392
+ "variants": {
393
+ "type": "object",
394
+ "additionalProperties": {
395
+ "$ref": "#/$defs/providerSelection/properties/indexers/items/properties/id"
396
+ }
397
+ }
398
+ },
399
+ "required": [
400
+ "id",
401
+ "provider"
402
+ ],
403
+ "additionalProperties": false
404
+ },
405
+ "additional": {
406
+ "type": "array",
407
+ "items": {
408
+ "type": "object",
409
+ "properties": {
410
+ "id": {
411
+ "$ref": "#/$defs/providerSelection/properties/indexers/items/properties/id"
412
+ },
413
+ "provider": {
414
+ "$ref": "#/$defs/providerSelection/properties/indexers/items/properties/id"
415
+ },
416
+ "variants": {
417
+ "$ref": "#/$defs/providerSelection/properties/indexers/items/properties/profile/properties/primary/properties/variants"
418
+ },
419
+ "kind": {
420
+ "type": "string",
421
+ "enum": [
422
+ "supporting",
423
+ "extension"
424
+ ]
425
+ }
426
+ },
427
+ "required": [
428
+ "id",
429
+ "provider",
430
+ "kind"
431
+ ],
432
+ "additionalProperties": false
433
+ }
434
+ },
435
+ "composers": {
436
+ "type": "array",
437
+ "items": {
438
+ "type": "object",
439
+ "properties": {
440
+ "id": {
441
+ "$ref": "#/$defs/providerSelection/properties/indexers/items/properties/id"
442
+ },
443
+ "provider": {
444
+ "$ref": "#/$defs/providerSelection/properties/indexers/items/properties/id"
445
+ }
446
+ },
447
+ "required": [
448
+ "id",
449
+ "provider"
450
+ ],
451
+ "additionalProperties": false
452
+ }
453
+ }
454
+ },
455
+ "required": [
456
+ "primary"
457
+ ],
458
+ "additionalProperties": false
459
+ },
460
+ "providers": {
461
+ "type": "array",
462
+ "items": {
463
+ "anyOf": [
464
+ {
465
+ "type": "object",
466
+ "properties": {
467
+ "id": {
468
+ "$ref": "#/$defs/providerSelection/properties/indexers/items/properties/id"
469
+ },
470
+ "role": {
471
+ "type": "string",
472
+ "enum": [
473
+ "primary",
474
+ "extension"
475
+ ],
476
+ "default": "primary"
477
+ },
478
+ "catalog_skill": {
479
+ "$ref": "#/$defs/providerSelection/properties/indexers/items/properties/id"
480
+ },
481
+ "config": {
482
+ "type": "object",
483
+ "additionalProperties": {
484
+ "anyOf": [
485
+ {
486
+ "type": "null"
487
+ },
488
+ {
489
+ "type": "boolean"
490
+ },
491
+ {
492
+ "type": "number"
493
+ },
494
+ {
495
+ "type": "string"
496
+ },
497
+ {
498
+ "type": "array",
499
+ "items": {
500
+ "$ref": "#/$defs/providerSelection/properties/indexers/items/properties/providers/items/anyOf/0/properties/config/additionalProperties"
501
+ }
502
+ },
503
+ {
504
+ "type": "object",
505
+ "additionalProperties": {
506
+ "$ref": "#/$defs/providerSelection/properties/indexers/items/properties/providers/items/anyOf/0/properties/config/additionalProperties"
507
+ }
508
+ }
509
+ ]
510
+ }
511
+ }
512
+ },
513
+ "required": [
514
+ "id",
515
+ "catalog_skill"
516
+ ],
517
+ "additionalProperties": false
518
+ },
519
+ {
520
+ "type": "object",
521
+ "properties": {
522
+ "id": {
523
+ "$ref": "#/$defs/providerSelection/properties/indexers/items/properties/id"
524
+ },
525
+ "role": {
526
+ "type": "string",
527
+ "enum": [
528
+ "primary",
529
+ "extension"
530
+ ],
531
+ "default": "primary"
532
+ },
533
+ "skill": {
534
+ "$ref": "#/$defs/providerSelection/properties/indexers/items/properties/id"
535
+ },
536
+ "version": {
537
+ "type": "string",
538
+ "pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$"
539
+ },
540
+ "integrity": {
541
+ "type": "string",
542
+ "pattern": "^sha256:[a-f0-9]{64}$"
543
+ },
544
+ "distribution": {
545
+ "anyOf": [
546
+ {
547
+ "type": "object",
548
+ "properties": {
549
+ "kind": {
550
+ "type": "string",
551
+ "const": "cli-bundled"
552
+ },
553
+ "locator": {
554
+ "type": "string",
555
+ "pattern": "^cli-bundled:\\/\\/[a-z0-9][a-z0-9._-]*\\/[a-z0-9][a-z0-9._-]*$"
556
+ }
557
+ },
558
+ "required": [
559
+ "kind",
560
+ "locator"
561
+ ],
562
+ "additionalProperties": false
563
+ },
564
+ {
565
+ "type": "object",
566
+ "properties": {
567
+ "kind": {
568
+ "type": "string",
569
+ "const": "bundled"
570
+ },
571
+ "locator": {
572
+ "type": "string",
573
+ "pattern": "^plugin:\\/\\/[a-z0-9][a-z0-9._-]*\\/[a-z0-9][a-z0-9._-]*$"
574
+ }
575
+ },
576
+ "required": [
577
+ "kind",
578
+ "locator"
579
+ ],
580
+ "additionalProperties": false
581
+ },
582
+ {
583
+ "type": "object",
584
+ "properties": {
585
+ "kind": {
586
+ "type": "string",
587
+ "const": "workspace"
588
+ },
589
+ "locator": {
590
+ "type": "string",
591
+ "pattern": "^workspace:\\/\\/[A-Za-z0-9._~-]+(?:\\/[A-Za-z0-9._~-]+)*$"
592
+ }
593
+ },
594
+ "required": [
595
+ "kind",
596
+ "locator"
597
+ ],
598
+ "additionalProperties": false
599
+ },
600
+ {
601
+ "type": "object",
602
+ "properties": {
603
+ "kind": {
604
+ "type": "string",
605
+ "const": "package"
606
+ },
607
+ "locator": {
608
+ "type": "string",
609
+ "pattern": "^package:\\/\\/[a-z0-9][a-z0-9._-]*\\/[^/#\\s]+#[A-Za-z0-9._~-]+(?:\\/[A-Za-z0-9._~-]+)*$"
610
+ }
611
+ },
612
+ "required": [
613
+ "kind",
614
+ "locator"
615
+ ],
616
+ "additionalProperties": false
617
+ },
618
+ {
619
+ "type": "object",
620
+ "properties": {
621
+ "kind": {
622
+ "type": "string",
623
+ "const": "marketplace"
624
+ },
625
+ "locator": {
626
+ "type": "string",
627
+ "pattern": "^marketplace:\\/\\/[a-z0-9][a-z0-9._-]*\\/[a-z0-9][a-z0-9._-]*\\/[a-z0-9][a-z0-9._-]*$"
628
+ }
629
+ },
630
+ "required": [
631
+ "kind",
632
+ "locator"
633
+ ],
634
+ "additionalProperties": false
635
+ }
636
+ ]
637
+ },
638
+ "config": {
639
+ "type": "object",
640
+ "additionalProperties": {
641
+ "$ref": "#/$defs/providerSelection/properties/indexers/items/properties/providers/items/anyOf/0/properties/config/additionalProperties"
642
+ }
643
+ }
644
+ },
645
+ "required": [
646
+ "id",
647
+ "skill",
648
+ "version",
649
+ "integrity"
650
+ ],
651
+ "additionalProperties": false
652
+ }
653
+ ]
654
+ },
655
+ "minItems": 1
656
+ },
657
+ "customization": {
658
+ "type": "object",
659
+ "properties": {
660
+ "mode": {
661
+ "type": "string",
662
+ "enum": [
663
+ "extend",
664
+ "replace"
665
+ ]
666
+ }
667
+ },
668
+ "required": [
669
+ "mode"
670
+ ],
671
+ "additionalProperties": false
672
+ }
673
+ },
674
+ "required": [
675
+ "id",
676
+ "requirement_bindings",
677
+ "profile",
678
+ "providers"
679
+ ],
680
+ "additionalProperties": false
681
+ },
682
+ "minItems": 1
41
683
  }
42
- }
684
+ },
685
+ "required": [
686
+ "stage",
687
+ "indexers"
688
+ ],
689
+ "additionalProperties": false
43
690
  },
44
691
  "providerResolution": {
45
692
  "type": "object",
46
- "additionalProperties": false,
47
- "required": ["stage", "result"],
48
693
  "properties": {
49
- "stage": { "const": "provider-resolution" },
50
- "result": { "type": "object" },
694
+ "stage": {
695
+ "type": "string",
696
+ "const": "provider-resolution"
697
+ },
698
+ "result": {
699
+ "type": "object",
700
+ "additionalProperties": {}
701
+ },
51
702
  "managed_output": {
52
703
  "type": "object",
53
- "additionalProperties": false,
54
- "required": ["ref", "digest", "value"],
55
704
  "properties": {
56
- "ref": { "$ref": "#/$defs/string" },
57
- "digest": { "$ref": "#/$defs/string" },
705
+ "ref": {
706
+ "type": "string",
707
+ "minLength": 1
708
+ },
709
+ "digest": {
710
+ "type": "string",
711
+ "minLength": 1
712
+ },
58
713
  "value": {}
59
- }
714
+ },
715
+ "required": [
716
+ "ref",
717
+ "digest"
718
+ ],
719
+ "additionalProperties": false
60
720
  }
61
- }
721
+ },
722
+ "required": [
723
+ "stage",
724
+ "result"
725
+ ],
726
+ "additionalProperties": false
62
727
  },
63
728
  "providerProgramAuthorization": {
64
729
  "type": "object",
65
- "additionalProperties": false,
66
- "required": ["stage", "decision"],
67
730
  "properties": {
68
- "stage": { "const": "provider-program-authorization" },
69
- "decision": { "enum": ["approved", "rejected"] }
70
- }
731
+ "stage": {
732
+ "type": "string",
733
+ "const": "provider-program-authorization"
734
+ },
735
+ "decision": {
736
+ "type": "string",
737
+ "enum": [
738
+ "approved",
739
+ "rejected"
740
+ ]
741
+ }
742
+ },
743
+ "required": [
744
+ "stage",
745
+ "decision"
746
+ ],
747
+ "additionalProperties": false
71
748
  },
72
749
  "partitionBatch": {
73
750
  "type": "object",
74
- "additionalProperties": false,
75
- "required": ["stage", "results"],
76
751
  "properties": {
77
- "stage": { "const": "partition" },
752
+ "stage": {
753
+ "type": "string",
754
+ "const": "partition"
755
+ },
78
756
  "results": {
79
757
  "type": "array",
80
- "minItems": 1,
81
758
  "items": {
82
759
  "type": "object",
83
- "additionalProperties": false,
84
- "required": ["task_key", "result"],
85
760
  "properties": {
86
- "task_key": { "type": "string", "pattern": "^task-[0-9]{3}$" },
87
- "result": { "$ref": "#/$defs/partition" }
88
- }
89
- }
761
+ "task_key": {
762
+ "type": "string",
763
+ "pattern": "^task-[0-9]{3}$"
764
+ },
765
+ "result": {
766
+ "anyOf": [
767
+ {
768
+ "type": "object",
769
+ "properties": {
770
+ "stage": {
771
+ "type": "string",
772
+ "const": "partition"
773
+ },
774
+ "outcome": {
775
+ "type": "string",
776
+ "const": "complete"
777
+ },
778
+ "groups": {
779
+ "type": "array",
780
+ "items": {
781
+ "type": "object",
782
+ "properties": {
783
+ "key": {
784
+ "type": "string",
785
+ "minLength": 1
786
+ },
787
+ "title": {
788
+ "type": "string",
789
+ "minLength": 1
790
+ },
791
+ "reader_task": {
792
+ "type": "string",
793
+ "minLength": 1
794
+ },
795
+ "artifact_intent": {
796
+ "type": "string",
797
+ "minLength": 1
798
+ },
799
+ "template_id": {
800
+ "type": "string",
801
+ "minLength": 1
802
+ },
803
+ "articles": {
804
+ "type": "array",
805
+ "items": {
806
+ "type": "object",
807
+ "properties": {
808
+ "key": {
809
+ "type": "string",
810
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
811
+ },
812
+ "title": {
813
+ "type": "string",
814
+ "minLength": 1
815
+ },
816
+ "reader_task": {
817
+ "type": "string",
818
+ "minLength": 1
819
+ },
820
+ "artifact_intent": {
821
+ "type": "string",
822
+ "minLength": 1
823
+ },
824
+ "template_id": {
825
+ "type": "string",
826
+ "minLength": 1
827
+ },
828
+ "required": {
829
+ "type": "boolean"
830
+ },
831
+ "sections": {
832
+ "type": "array",
833
+ "items": {
834
+ "type": "object",
835
+ "properties": {
836
+ "key": {
837
+ "$ref": "#/$defs/partitionBatch/properties/results/items/properties/result/anyOf/0/properties/groups/items/properties/articles/items/properties/key"
838
+ },
839
+ "heading": {
840
+ "type": "string",
841
+ "minLength": 1
842
+ },
843
+ "required": {
844
+ "type": "boolean"
845
+ }
846
+ },
847
+ "required": [
848
+ "key",
849
+ "heading",
850
+ "required"
851
+ ],
852
+ "additionalProperties": false
853
+ },
854
+ "minItems": 1
855
+ },
856
+ "question_targets": {
857
+ "type": "array",
858
+ "items": {
859
+ "type": "string",
860
+ "minLength": 1
861
+ },
862
+ "default": []
863
+ },
864
+ "knowledge_dependencies": {
865
+ "type": "array",
866
+ "items": {
867
+ "type": "object",
868
+ "properties": {
869
+ "artifact_ref": {
870
+ "type": "string",
871
+ "pattern": "^[a-z][a-z0-9.-]*:[\\p{L}\\p{N}][\\p{L}\\p{N}._~:/#@+-]*$"
872
+ },
873
+ "section_refs": {
874
+ "type": "array",
875
+ "items": {
876
+ "$ref": "#/$defs/partitionBatch/properties/results/items/properties/result/anyOf/0/properties/groups/items/properties/articles/items/properties/knowledge_dependencies/items/properties/artifact_ref"
877
+ },
878
+ "default": []
879
+ },
880
+ "required": {
881
+ "type": "boolean",
882
+ "default": true
883
+ }
884
+ },
885
+ "required": [
886
+ "artifact_ref"
887
+ ],
888
+ "additionalProperties": false
889
+ }
890
+ }
891
+ },
892
+ "required": [
893
+ "key",
894
+ "title",
895
+ "reader_task",
896
+ "artifact_intent",
897
+ "required",
898
+ "sections"
899
+ ],
900
+ "additionalProperties": false
901
+ },
902
+ "minItems": 1
903
+ },
904
+ "priority": {
905
+ "type": "integer",
906
+ "minimum": 0
907
+ },
908
+ "delivery_boundary": {
909
+ "type": "boolean"
910
+ },
911
+ "ready_for_author": {
912
+ "type": "boolean"
913
+ },
914
+ "subject": {
915
+ "anyOf": [
916
+ {
917
+ "type": "string",
918
+ "minLength": 1
919
+ },
920
+ {
921
+ "type": "object",
922
+ "properties": {
923
+ "namespace": {
924
+ "type": "string",
925
+ "minLength": 1
926
+ },
927
+ "kind": {
928
+ "type": "string",
929
+ "minLength": 1
930
+ },
931
+ "local_key": {
932
+ "type": "string",
933
+ "minLength": 1
934
+ }
935
+ },
936
+ "required": [
937
+ "namespace",
938
+ "kind",
939
+ "local_key"
940
+ ],
941
+ "additionalProperties": false
942
+ }
943
+ ]
944
+ },
945
+ "subject_intent": {
946
+ "type": "string",
947
+ "enum": [
948
+ "primary",
949
+ "enrich-or-independent"
950
+ ]
951
+ },
952
+ "members": {
953
+ "type": "array",
954
+ "items": {
955
+ "type": "string",
956
+ "minLength": 1
957
+ },
958
+ "minItems": 1
959
+ },
960
+ "questions": {
961
+ "type": "array",
962
+ "items": {
963
+ "type": "string",
964
+ "minLength": 1
965
+ },
966
+ "default": []
967
+ },
968
+ "question_targets": {
969
+ "type": "array",
970
+ "items": {
971
+ "type": "object",
972
+ "properties": {
973
+ "target": {
974
+ "type": "string",
975
+ "minLength": 1
976
+ },
977
+ "role": {
978
+ "type": "string",
979
+ "enum": [
980
+ "primary-carrier",
981
+ "enricher"
982
+ ]
983
+ }
984
+ },
985
+ "required": [
986
+ "target",
987
+ "role"
988
+ ],
989
+ "additionalProperties": false
990
+ },
991
+ "default": []
992
+ },
993
+ "outline": {
994
+ "type": "array",
995
+ "items": {
996
+ "type": "string",
997
+ "minLength": 1
998
+ },
999
+ "minItems": 1
1000
+ }
1001
+ },
1002
+ "required": [
1003
+ "key",
1004
+ "title",
1005
+ "reader_task",
1006
+ "subject",
1007
+ "subject_intent",
1008
+ "members",
1009
+ "outline"
1010
+ ],
1011
+ "additionalProperties": false
1012
+ }
1013
+ },
1014
+ "excluded": {
1015
+ "type": "array",
1016
+ "items": {
1017
+ "type": "object",
1018
+ "properties": {
1019
+ "item": {
1020
+ "type": "string",
1021
+ "minLength": 1
1022
+ },
1023
+ "reason_code": {
1024
+ "type": "string",
1025
+ "minLength": 1
1026
+ }
1027
+ },
1028
+ "required": [
1029
+ "item",
1030
+ "reason_code"
1031
+ ],
1032
+ "additionalProperties": false
1033
+ },
1034
+ "default": []
1035
+ },
1036
+ "unsupported": {
1037
+ "type": "array",
1038
+ "items": {
1039
+ "type": "object",
1040
+ "properties": {
1041
+ "item": {
1042
+ "type": "string",
1043
+ "minLength": 1
1044
+ },
1045
+ "missing_capabilities": {
1046
+ "type": "array",
1047
+ "items": {
1048
+ "type": "string",
1049
+ "minLength": 1
1050
+ },
1051
+ "minItems": 1
1052
+ }
1053
+ },
1054
+ "required": [
1055
+ "item",
1056
+ "missing_capabilities"
1057
+ ],
1058
+ "additionalProperties": false
1059
+ },
1060
+ "default": []
1061
+ }
1062
+ },
1063
+ "required": [
1064
+ "stage",
1065
+ "outcome",
1066
+ "groups"
1067
+ ],
1068
+ "additionalProperties": false
1069
+ },
1070
+ {
1071
+ "type": "object",
1072
+ "properties": {
1073
+ "stage": {
1074
+ "type": "string",
1075
+ "const": "partition"
1076
+ },
1077
+ "outcome": {
1078
+ "type": "string",
1079
+ "const": "failed"
1080
+ },
1081
+ "groups": {
1082
+ "type": "array",
1083
+ "items": {
1084
+ "$ref": "#/$defs/partitionBatch/properties/results/items/properties/result/anyOf/0/properties/groups/items"
1085
+ },
1086
+ "default": []
1087
+ },
1088
+ "excluded": {
1089
+ "type": "array",
1090
+ "items": {
1091
+ "$ref": "#/$defs/partitionBatch/properties/results/items/properties/result/anyOf/0/properties/excluded/items"
1092
+ },
1093
+ "default": []
1094
+ },
1095
+ "unsupported": {
1096
+ "type": "array",
1097
+ "items": {
1098
+ "$ref": "#/$defs/partitionBatch/properties/results/items/properties/result/anyOf/0/properties/unsupported/items"
1099
+ },
1100
+ "default": []
1101
+ },
1102
+ "failure": {
1103
+ "type": "object",
1104
+ "properties": {
1105
+ "code": {
1106
+ "type": "string",
1107
+ "enum": [
1108
+ "unsupported-domain",
1109
+ "no-stable-axis",
1110
+ "insufficient-identity-facts",
1111
+ "invalid-input",
1112
+ "strategy-failed"
1113
+ ]
1114
+ },
1115
+ "message": {
1116
+ "type": "string",
1117
+ "minLength": 1
1118
+ },
1119
+ "unassigned": {
1120
+ "type": "array",
1121
+ "items": {
1122
+ "type": "string",
1123
+ "minLength": 1
1124
+ }
1125
+ },
1126
+ "missing_capabilities": {
1127
+ "type": "array",
1128
+ "items": {
1129
+ "type": "string",
1130
+ "minLength": 1
1131
+ }
1132
+ },
1133
+ "missing_sources": {
1134
+ "type": "array",
1135
+ "items": {
1136
+ "type": "string",
1137
+ "minLength": 1
1138
+ }
1139
+ }
1140
+ },
1141
+ "required": [
1142
+ "code",
1143
+ "message",
1144
+ "unassigned"
1145
+ ],
1146
+ "additionalProperties": false
1147
+ }
1148
+ },
1149
+ "required": [
1150
+ "stage",
1151
+ "outcome",
1152
+ "failure"
1153
+ ],
1154
+ "additionalProperties": false
1155
+ }
1156
+ ]
1157
+ }
1158
+ },
1159
+ "required": [
1160
+ "task_key",
1161
+ "result"
1162
+ ],
1163
+ "additionalProperties": false
1164
+ },
1165
+ "minItems": 1
90
1166
  }
91
- }
92
- },
93
- "partition": {
94
- "type": "object",
95
- "additionalProperties": false,
96
- "required": ["stage", "outcome", "groups", "excluded", "unsupported"],
97
- "properties": {
98
- "stage": { "const": "partition" },
99
- "outcome": {
100
- "enum": ["complete", "failed"],
101
- "description": "Use complete when the semantic partition is ready; use failed only with failure details. accepted is not an Agent outcome."
102
- },
103
- "groups": { "type": "array", "items": { "$ref": "#/$defs/partitionGroup" } },
104
- "excluded": { "type": "array", "items": { "$ref": "#/$defs/excluded" } },
105
- "unsupported": { "type": "array", "items": { "$ref": "#/$defs/unsupported" } },
106
- "failure": { "$ref": "#/$defs/failure" }
107
1167
  },
108
- "allOf": [
109
- {
110
- "if": { "properties": { "outcome": { "const": "failed" } } },
111
- "then": { "required": ["failure"] }
112
- }
113
- ]
1168
+ "required": [
1169
+ "stage",
1170
+ "results"
1171
+ ],
1172
+ "additionalProperties": false
114
1173
  },
115
1174
  "authorBatch": {
116
1175
  "type": "object",
117
- "additionalProperties": false,
118
- "required": ["stage", "results"],
119
1176
  "properties": {
120
- "stage": { "const": "author" },
1177
+ "stage": {
1178
+ "type": "string",
1179
+ "const": "author"
1180
+ },
121
1181
  "results": {
122
1182
  "type": "array",
123
- "minItems": 1,
124
1183
  "items": {
125
1184
  "type": "object",
126
- "additionalProperties": false,
127
- "required": ["task_key", "result"],
128
1185
  "properties": {
129
- "task_key": { "type": "string", "pattern": "^task-[0-9]{3}$" },
130
- "result": { "$ref": "#/$defs/author" }
131
- }
132
- }
133
- }
134
- }
135
- },
136
- "partitionGroup": {
137
- "type": "object",
138
- "additionalProperties": false,
139
- "required": ["key", "title", "reader_task", "subject", "subject_intent", "members", "questions", "question_targets", "outline"],
140
- "properties": {
141
- "key": { "$ref": "#/$defs/string" },
142
- "title": { "$ref": "#/$defs/string" },
143
- "reader_task": { "$ref": "#/$defs/string" },
144
- "subject": {
145
- "oneOf": [
146
- { "$ref": "#/$defs/string" },
147
- {
148
- "type": "object",
149
- "additionalProperties": false,
150
- "required": ["namespace", "kind", "local_key"],
151
- "properties": {
152
- "namespace": { "$ref": "#/$defs/string" },
153
- "kind": { "$ref": "#/$defs/string" },
154
- "local_key": { "$ref": "#/$defs/string" }
1186
+ "task_key": {
1187
+ "type": "string",
1188
+ "pattern": "^task-[0-9]{3}$"
1189
+ },
1190
+ "result": {
1191
+ "anyOf": [
1192
+ {
1193
+ "type": "object",
1194
+ "properties": {
1195
+ "stage": {
1196
+ "type": "string",
1197
+ "const": "author"
1198
+ },
1199
+ "group_key": {
1200
+ "type": "string",
1201
+ "minLength": 1,
1202
+ "description": "May be omitted in a CLI batch to inherit the current task's group. An explicit value must match; standalone SDK results still require it."
1203
+ },
1204
+ "outcome": {
1205
+ "type": "string",
1206
+ "const": "publish"
1207
+ },
1208
+ "articles": {
1209
+ "type": "array",
1210
+ "items": {
1211
+ "type": "object",
1212
+ "properties": {
1213
+ "key": {
1214
+ "type": "string",
1215
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
1216
+ },
1217
+ "title": {
1218
+ "type": "string",
1219
+ "minLength": 1
1220
+ },
1221
+ "summary": {
1222
+ "type": "string",
1223
+ "minLength": 1
1224
+ },
1225
+ "artifact_intent": {
1226
+ "type": "string",
1227
+ "minLength": 1
1228
+ },
1229
+ "template_variables": {
1230
+ "type": "object",
1231
+ "additionalProperties": {
1232
+ "anyOf": [
1233
+ {
1234
+ "type": "string"
1235
+ },
1236
+ {
1237
+ "type": "object",
1238
+ "properties": {
1239
+ "value": {
1240
+ "type": "string"
1241
+ },
1242
+ "source_items": {
1243
+ "type": "array",
1244
+ "items": {
1245
+ "type": "string",
1246
+ "minLength": 1
1247
+ },
1248
+ "default": []
1249
+ },
1250
+ "facts": {
1251
+ "type": "array",
1252
+ "items": {
1253
+ "type": "string",
1254
+ "minLength": 1
1255
+ },
1256
+ "default": []
1257
+ }
1258
+ },
1259
+ "required": [
1260
+ "value"
1261
+ ],
1262
+ "additionalProperties": false
1263
+ }
1264
+ ]
1265
+ }
1266
+ },
1267
+ "sections": {
1268
+ "type": "array",
1269
+ "items": {
1270
+ "type": "object",
1271
+ "properties": {
1272
+ "key": {
1273
+ "type": "string",
1274
+ "minLength": 1
1275
+ },
1276
+ "heading": {
1277
+ "type": "string",
1278
+ "minLength": 1
1279
+ },
1280
+ "visuals": {
1281
+ "type": "array",
1282
+ "items": {
1283
+ "type": "object",
1284
+ "properties": {
1285
+ "resource": {
1286
+ "type": "string",
1287
+ "minLength": 1
1288
+ },
1289
+ "also_read": {
1290
+ "type": "array",
1291
+ "items": {
1292
+ "type": "string",
1293
+ "minLength": 1
1294
+ }
1295
+ },
1296
+ "context": {
1297
+ "type": "array",
1298
+ "items": {
1299
+ "type": "string"
1300
+ },
1301
+ "default": []
1302
+ },
1303
+ "requirements": {
1304
+ "type": "string",
1305
+ "default": ""
1306
+ },
1307
+ "disposition": {
1308
+ "type": "string",
1309
+ "enum": [
1310
+ "converted",
1311
+ "retained"
1312
+ ]
1313
+ },
1314
+ "format": {
1315
+ "type": "string",
1316
+ "enum": [
1317
+ "mermaid",
1318
+ "table",
1319
+ "original"
1320
+ ]
1321
+ },
1322
+ "markdown": {
1323
+ "type": "string"
1324
+ },
1325
+ "reason": {
1326
+ "type": "string"
1327
+ }
1328
+ },
1329
+ "required": [
1330
+ "resource",
1331
+ "disposition",
1332
+ "format"
1333
+ ],
1334
+ "additionalProperties": false
1335
+ }
1336
+ },
1337
+ "markdown": {
1338
+ "type": "string",
1339
+ "minLength": 1
1340
+ },
1341
+ "source_items": {
1342
+ "type": "array",
1343
+ "items": {
1344
+ "type": "string",
1345
+ "minLength": 1
1346
+ },
1347
+ "default": []
1348
+ },
1349
+ "facts": {
1350
+ "type": "array",
1351
+ "items": {
1352
+ "type": "string",
1353
+ "minLength": 1
1354
+ },
1355
+ "default": []
1356
+ },
1357
+ "answers": {
1358
+ "type": "array",
1359
+ "items": {
1360
+ "type": "string",
1361
+ "minLength": 1
1362
+ },
1363
+ "default": []
1364
+ }
1365
+ },
1366
+ "required": [
1367
+ "key",
1368
+ "heading",
1369
+ "markdown"
1370
+ ],
1371
+ "additionalProperties": false
1372
+ },
1373
+ "minItems": 1
1374
+ }
1375
+ },
1376
+ "required": [
1377
+ "key",
1378
+ "title",
1379
+ "summary",
1380
+ "sections"
1381
+ ],
1382
+ "additionalProperties": false
1383
+ },
1384
+ "minItems": 1
1385
+ },
1386
+ "artifact_intent": {
1387
+ "type": "string",
1388
+ "minLength": 1
1389
+ },
1390
+ "template_variables": {
1391
+ "$ref": "#/$defs/authorBatch/properties/results/items/properties/result/anyOf/0/properties/articles/items/properties/template_variables"
1392
+ },
1393
+ "example_candidates": {
1394
+ "type": "array",
1395
+ "items": {
1396
+ "type": "object",
1397
+ "properties": {
1398
+ "scenario_key": {
1399
+ "type": "string",
1400
+ "pattern": "^[a-z0-9][a-z0-9._/-]*$"
1401
+ },
1402
+ "source_item": {
1403
+ "type": "string",
1404
+ "minLength": 1
1405
+ }
1406
+ },
1407
+ "required": [
1408
+ "scenario_key",
1409
+ "source_item"
1410
+ ],
1411
+ "additionalProperties": false
1412
+ }
1413
+ },
1414
+ "policy": {
1415
+ "type": "string",
1416
+ "minLength": 1
1417
+ },
1418
+ "target_resolutions": {
1419
+ "type": "array",
1420
+ "items": {
1421
+ "type": "object",
1422
+ "properties": {
1423
+ "target": {
1424
+ "type": "string",
1425
+ "minLength": 1
1426
+ },
1427
+ "disposition": {
1428
+ "type": "string",
1429
+ "enum": [
1430
+ "reuse-existing",
1431
+ "create-independent",
1432
+ "unresolved"
1433
+ ]
1434
+ },
1435
+ "reason_code": {
1436
+ "type": "string",
1437
+ "minLength": 1
1438
+ }
1439
+ },
1440
+ "required": [
1441
+ "target",
1442
+ "disposition"
1443
+ ],
1444
+ "additionalProperties": false
1445
+ },
1446
+ "default": []
1447
+ },
1448
+ "title": {
1449
+ "type": "string",
1450
+ "minLength": 1
1451
+ },
1452
+ "summary": {
1453
+ "type": "string",
1454
+ "minLength": 1
1455
+ },
1456
+ "sections": {
1457
+ "type": "array",
1458
+ "items": {
1459
+ "$ref": "#/$defs/authorBatch/properties/results/items/properties/result/anyOf/0/properties/articles/items/properties/sections/items"
1460
+ },
1461
+ "minItems": 1
1462
+ },
1463
+ "member_dispositions": {
1464
+ "type": "array",
1465
+ "items": {
1466
+ "anyOf": [
1467
+ {
1468
+ "type": "object",
1469
+ "properties": {
1470
+ "item": {
1471
+ "type": "string",
1472
+ "minLength": 1
1473
+ },
1474
+ "state": {
1475
+ "type": "string",
1476
+ "enum": [
1477
+ "covered",
1478
+ "catalog-only",
1479
+ "unsupported"
1480
+ ]
1481
+ },
1482
+ "section": {
1483
+ "type": "string",
1484
+ "minLength": 1
1485
+ },
1486
+ "article": {
1487
+ "$ref": "#/$defs/authorBatch/properties/results/items/properties/result/anyOf/0/properties/articles/items/properties/key"
1488
+ },
1489
+ "reason_code": {
1490
+ "type": "string",
1491
+ "minLength": 1
1492
+ }
1493
+ },
1494
+ "required": [
1495
+ "item",
1496
+ "state"
1497
+ ],
1498
+ "additionalProperties": false
1499
+ },
1500
+ {
1501
+ "type": "object",
1502
+ "properties": {
1503
+ "state": {
1504
+ "$ref": "#/$defs/authorBatch/properties/results/items/properties/result/anyOf/0/properties/member_dispositions/items/anyOf/0/properties/state"
1505
+ },
1506
+ "section": {
1507
+ "$ref": "#/$defs/authorBatch/properties/results/items/properties/result/anyOf/0/properties/member_dispositions/items/anyOf/0/properties/section"
1508
+ },
1509
+ "article": {
1510
+ "$ref": "#/$defs/authorBatch/properties/results/items/properties/result/anyOf/0/properties/member_dispositions/items/anyOf/0/properties/article"
1511
+ },
1512
+ "reason_code": {
1513
+ "$ref": "#/$defs/authorBatch/properties/results/items/properties/result/anyOf/0/properties/member_dispositions/items/anyOf/0/properties/reason_code"
1514
+ },
1515
+ "items": {
1516
+ "type": "array",
1517
+ "items": {
1518
+ "type": "string",
1519
+ "minLength": 1
1520
+ },
1521
+ "minItems": 1
1522
+ }
1523
+ },
1524
+ "required": [
1525
+ "state",
1526
+ "items"
1527
+ ],
1528
+ "additionalProperties": false
1529
+ }
1530
+ ]
1531
+ }
1532
+ },
1533
+ "material_gaps": {
1534
+ "type": "array",
1535
+ "items": {
1536
+ "type": "object",
1537
+ "properties": {
1538
+ "question": {
1539
+ "type": "string",
1540
+ "minLength": 1
1541
+ },
1542
+ "source_hints": {
1543
+ "type": "array",
1544
+ "items": {
1545
+ "type": "string",
1546
+ "minLength": 1
1547
+ },
1548
+ "default": []
1549
+ }
1550
+ },
1551
+ "required": [
1552
+ "question"
1553
+ ],
1554
+ "additionalProperties": false
1555
+ },
1556
+ "default": []
1557
+ },
1558
+ "diagnostics": {
1559
+ "type": "array",
1560
+ "items": {
1561
+ "type": "object",
1562
+ "properties": {
1563
+ "code": {
1564
+ "type": "string",
1565
+ "minLength": 1
1566
+ },
1567
+ "message": {
1568
+ "type": "string",
1569
+ "minLength": 1
1570
+ },
1571
+ "target": {
1572
+ "type": "string",
1573
+ "minLength": 1
1574
+ }
1575
+ },
1576
+ "required": [
1577
+ "code",
1578
+ "message"
1579
+ ],
1580
+ "additionalProperties": false
1581
+ },
1582
+ "default": []
1583
+ }
1584
+ },
1585
+ "required": [
1586
+ "stage",
1587
+ "outcome",
1588
+ "title",
1589
+ "summary",
1590
+ "sections",
1591
+ "member_dispositions"
1592
+ ],
1593
+ "additionalProperties": false
1594
+ },
1595
+ {
1596
+ "type": "object",
1597
+ "properties": {
1598
+ "stage": {
1599
+ "$ref": "#/$defs/authorBatch/properties/results/items/properties/result/anyOf/0/properties/stage"
1600
+ },
1601
+ "group_key": {
1602
+ "$ref": "#/$defs/authorBatch/properties/results/items/properties/result/anyOf/0/properties/group_key",
1603
+ "description": "May be omitted in a CLI batch to inherit the current task's group. An explicit value must match; standalone SDK results still require it."
1604
+ },
1605
+ "outcome": {
1606
+ "type": "string",
1607
+ "const": "publish"
1608
+ },
1609
+ "articles": {
1610
+ "$ref": "#/$defs/authorBatch/properties/results/items/properties/result/anyOf/0/properties/articles"
1611
+ },
1612
+ "artifact_intent": {
1613
+ "$ref": "#/$defs/authorBatch/properties/results/items/properties/result/anyOf/0/properties/artifact_intent"
1614
+ },
1615
+ "template_variables": {
1616
+ "$ref": "#/$defs/authorBatch/properties/results/items/properties/result/anyOf/0/properties/template_variables"
1617
+ },
1618
+ "example_candidates": {
1619
+ "$ref": "#/$defs/authorBatch/properties/results/items/properties/result/anyOf/0/properties/example_candidates"
1620
+ },
1621
+ "policy": {
1622
+ "$ref": "#/$defs/authorBatch/properties/results/items/properties/result/anyOf/0/properties/policy"
1623
+ },
1624
+ "target_resolutions": {
1625
+ "$ref": "#/$defs/authorBatch/properties/results/items/properties/result/anyOf/0/properties/target_resolutions"
1626
+ },
1627
+ "title": {
1628
+ "type": "string"
1629
+ },
1630
+ "summary": {
1631
+ "type": "string"
1632
+ },
1633
+ "sections": {
1634
+ "type": "array",
1635
+ "items": {
1636
+ "$ref": "#/$defs/authorBatch/properties/results/items/properties/result/anyOf/0/properties/articles/items/properties/sections/items"
1637
+ },
1638
+ "maxItems": 0,
1639
+ "default": []
1640
+ },
1641
+ "member_dispositions": {
1642
+ "$ref": "#/$defs/authorBatch/properties/results/items/properties/result/anyOf/0/properties/member_dispositions"
1643
+ },
1644
+ "material_gaps": {
1645
+ "$ref": "#/$defs/authorBatch/properties/results/items/properties/result/anyOf/0/properties/material_gaps"
1646
+ },
1647
+ "diagnostics": {
1648
+ "$ref": "#/$defs/authorBatch/properties/results/items/properties/result/anyOf/0/properties/diagnostics"
1649
+ }
1650
+ },
1651
+ "required": [
1652
+ "stage",
1653
+ "outcome",
1654
+ "articles",
1655
+ "member_dispositions"
1656
+ ],
1657
+ "additionalProperties": false
1658
+ },
1659
+ {
1660
+ "type": "object",
1661
+ "properties": {
1662
+ "stage": {
1663
+ "$ref": "#/$defs/authorBatch/properties/results/items/properties/result/anyOf/0/properties/stage"
1664
+ },
1665
+ "group_key": {
1666
+ "$ref": "#/$defs/authorBatch/properties/results/items/properties/result/anyOf/0/properties/group_key",
1667
+ "description": "May be omitted in a CLI batch to inherit the current task's group. An explicit value must match; standalone SDK results still require it."
1668
+ },
1669
+ "outcome": {
1670
+ "type": "string",
1671
+ "const": "catalog-only"
1672
+ },
1673
+ "articles": {
1674
+ "$ref": "#/$defs/authorBatch/properties/results/items/properties/result/anyOf/0/properties/articles"
1675
+ },
1676
+ "artifact_intent": {
1677
+ "$ref": "#/$defs/authorBatch/properties/results/items/properties/result/anyOf/0/properties/artifact_intent"
1678
+ },
1679
+ "template_variables": {
1680
+ "$ref": "#/$defs/authorBatch/properties/results/items/properties/result/anyOf/0/properties/template_variables"
1681
+ },
1682
+ "example_candidates": {
1683
+ "$ref": "#/$defs/authorBatch/properties/results/items/properties/result/anyOf/0/properties/example_candidates"
1684
+ },
1685
+ "policy": {
1686
+ "$ref": "#/$defs/authorBatch/properties/results/items/properties/result/anyOf/0/properties/policy"
1687
+ },
1688
+ "target_resolutions": {
1689
+ "$ref": "#/$defs/authorBatch/properties/results/items/properties/result/anyOf/0/properties/target_resolutions"
1690
+ },
1691
+ "title": {
1692
+ "type": "string",
1693
+ "minLength": 1
1694
+ },
1695
+ "summary": {
1696
+ "type": "string",
1697
+ "minLength": 1
1698
+ },
1699
+ "sections": {
1700
+ "type": "array",
1701
+ "items": {
1702
+ "$ref": "#/$defs/authorBatch/properties/results/items/properties/result/anyOf/0/properties/articles/items/properties/sections/items"
1703
+ },
1704
+ "default": []
1705
+ },
1706
+ "member_dispositions": {
1707
+ "$ref": "#/$defs/authorBatch/properties/results/items/properties/result/anyOf/0/properties/member_dispositions"
1708
+ },
1709
+ "material_gaps": {
1710
+ "$ref": "#/$defs/authorBatch/properties/results/items/properties/result/anyOf/0/properties/material_gaps"
1711
+ },
1712
+ "diagnostics": {
1713
+ "$ref": "#/$defs/authorBatch/properties/results/items/properties/result/anyOf/0/properties/diagnostics"
1714
+ }
1715
+ },
1716
+ "required": [
1717
+ "stage",
1718
+ "outcome",
1719
+ "member_dispositions"
1720
+ ],
1721
+ "additionalProperties": false
1722
+ },
1723
+ {
1724
+ "type": "object",
1725
+ "properties": {
1726
+ "stage": {
1727
+ "$ref": "#/$defs/authorBatch/properties/results/items/properties/result/anyOf/0/properties/stage"
1728
+ },
1729
+ "group_key": {
1730
+ "$ref": "#/$defs/authorBatch/properties/results/items/properties/result/anyOf/0/properties/group_key",
1731
+ "description": "May be omitted in a CLI batch to inherit the current task's group. An explicit value must match; standalone SDK results still require it."
1732
+ },
1733
+ "outcome": {
1734
+ "type": "string",
1735
+ "const": "request-material"
1736
+ },
1737
+ "articles": {
1738
+ "$ref": "#/$defs/authorBatch/properties/results/items/properties/result/anyOf/0/properties/articles"
1739
+ },
1740
+ "artifact_intent": {
1741
+ "$ref": "#/$defs/authorBatch/properties/results/items/properties/result/anyOf/0/properties/artifact_intent"
1742
+ },
1743
+ "template_variables": {
1744
+ "$ref": "#/$defs/authorBatch/properties/results/items/properties/result/anyOf/0/properties/template_variables"
1745
+ },
1746
+ "example_candidates": {
1747
+ "$ref": "#/$defs/authorBatch/properties/results/items/properties/result/anyOf/0/properties/example_candidates"
1748
+ },
1749
+ "policy": {
1750
+ "$ref": "#/$defs/authorBatch/properties/results/items/properties/result/anyOf/0/properties/policy"
1751
+ },
1752
+ "target_resolutions": {
1753
+ "$ref": "#/$defs/authorBatch/properties/results/items/properties/result/anyOf/0/properties/target_resolutions"
1754
+ },
1755
+ "title": {
1756
+ "$ref": "#/$defs/authorBatch/properties/results/items/properties/result/anyOf/2/properties/title"
1757
+ },
1758
+ "summary": {
1759
+ "$ref": "#/$defs/authorBatch/properties/results/items/properties/result/anyOf/2/properties/summary"
1760
+ },
1761
+ "sections": {
1762
+ "$ref": "#/$defs/authorBatch/properties/results/items/properties/result/anyOf/2/properties/sections"
1763
+ },
1764
+ "member_dispositions": {
1765
+ "$ref": "#/$defs/authorBatch/properties/results/items/properties/result/anyOf/0/properties/member_dispositions"
1766
+ },
1767
+ "material_gaps": {
1768
+ "$ref": "#/$defs/authorBatch/properties/results/items/properties/result/anyOf/0/properties/material_gaps"
1769
+ },
1770
+ "diagnostics": {
1771
+ "$ref": "#/$defs/authorBatch/properties/results/items/properties/result/anyOf/0/properties/diagnostics"
1772
+ }
1773
+ },
1774
+ "required": [
1775
+ "stage",
1776
+ "outcome",
1777
+ "member_dispositions"
1778
+ ],
1779
+ "additionalProperties": false
1780
+ },
1781
+ {
1782
+ "type": "object",
1783
+ "properties": {
1784
+ "stage": {
1785
+ "$ref": "#/$defs/authorBatch/properties/results/items/properties/result/anyOf/0/properties/stage"
1786
+ },
1787
+ "group_key": {
1788
+ "$ref": "#/$defs/authorBatch/properties/results/items/properties/result/anyOf/0/properties/group_key",
1789
+ "description": "May be omitted in a CLI batch to inherit the current task's group. An explicit value must match; standalone SDK results still require it."
1790
+ },
1791
+ "outcome": {
1792
+ "type": "string",
1793
+ "const": "unsupported"
1794
+ },
1795
+ "articles": {
1796
+ "$ref": "#/$defs/authorBatch/properties/results/items/properties/result/anyOf/0/properties/articles"
1797
+ },
1798
+ "artifact_intent": {
1799
+ "$ref": "#/$defs/authorBatch/properties/results/items/properties/result/anyOf/0/properties/artifact_intent"
1800
+ },
1801
+ "template_variables": {
1802
+ "$ref": "#/$defs/authorBatch/properties/results/items/properties/result/anyOf/0/properties/template_variables"
1803
+ },
1804
+ "example_candidates": {
1805
+ "$ref": "#/$defs/authorBatch/properties/results/items/properties/result/anyOf/0/properties/example_candidates"
1806
+ },
1807
+ "policy": {
1808
+ "$ref": "#/$defs/authorBatch/properties/results/items/properties/result/anyOf/0/properties/policy"
1809
+ },
1810
+ "target_resolutions": {
1811
+ "$ref": "#/$defs/authorBatch/properties/results/items/properties/result/anyOf/0/properties/target_resolutions"
1812
+ },
1813
+ "title": {
1814
+ "$ref": "#/$defs/authorBatch/properties/results/items/properties/result/anyOf/2/properties/title"
1815
+ },
1816
+ "summary": {
1817
+ "$ref": "#/$defs/authorBatch/properties/results/items/properties/result/anyOf/2/properties/summary"
1818
+ },
1819
+ "sections": {
1820
+ "$ref": "#/$defs/authorBatch/properties/results/items/properties/result/anyOf/2/properties/sections"
1821
+ },
1822
+ "member_dispositions": {
1823
+ "$ref": "#/$defs/authorBatch/properties/results/items/properties/result/anyOf/0/properties/member_dispositions"
1824
+ },
1825
+ "material_gaps": {
1826
+ "$ref": "#/$defs/authorBatch/properties/results/items/properties/result/anyOf/0/properties/material_gaps"
1827
+ },
1828
+ "diagnostics": {
1829
+ "$ref": "#/$defs/authorBatch/properties/results/items/properties/result/anyOf/0/properties/diagnostics"
1830
+ }
1831
+ },
1832
+ "required": [
1833
+ "stage",
1834
+ "outcome",
1835
+ "member_dispositions"
1836
+ ],
1837
+ "additionalProperties": false
1838
+ }
1839
+ ]
155
1840
  }
156
- }
157
- ]
158
- },
159
- "subject_intent": {
160
- "enum": ["primary", "enrich-or-independent"],
161
- "description": "Use primary when this group owns a reader subject. Use enrich-or-independent for a publishable supplemental view, including test or example behavior: Context enriches an existing matching subject when one exists and otherwise creates an independent subject. supporting is not a valid intent; material that must never become a reader subject must not be emitted as a group."
162
- },
163
- "members": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/string" } },
164
- "questions": { "type": "array", "items": { "$ref": "#/$defs/string" } },
165
- "question_targets": { "type": "array", "items": { "$ref": "#/$defs/questionTarget" } },
166
- "outline": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/string" } }
167
- }
168
- },
169
- "questionTarget": {
170
- "type": "object",
171
- "additionalProperties": false,
172
- "required": ["target", "role"],
173
- "properties": {
174
- "target": { "$ref": "#/$defs/string" },
175
- "role": { "enum": ["primary-carrier", "enricher"] }
176
- }
177
- },
178
- "excluded": {
179
- "type": "object",
180
- "additionalProperties": false,
181
- "required": ["item", "reason_code"],
182
- "properties": {
183
- "item": { "$ref": "#/$defs/string" },
184
- "reason_code": { "$ref": "#/$defs/string" }
185
- }
186
- },
187
- "unsupported": {
188
- "type": "object",
189
- "additionalProperties": false,
190
- "required": ["item", "missing_capabilities"],
191
- "properties": {
192
- "item": { "$ref": "#/$defs/string" },
193
- "missing_capabilities": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/string" } }
194
- }
195
- },
196
- "failure": {
197
- "type": "object",
198
- "additionalProperties": false,
199
- "required": ["code", "message", "unassigned"],
200
- "properties": {
201
- "code": { "enum": ["unsupported-domain", "no-stable-axis", "insufficient-identity-facts", "invalid-input", "strategy-failed"] },
202
- "message": { "$ref": "#/$defs/string" },
203
- "unassigned": { "type": "array", "items": { "$ref": "#/$defs/string" } },
204
- "missing_capabilities": { "type": "array", "items": { "$ref": "#/$defs/string" } },
205
- "missing_sources": { "type": "array", "items": { "$ref": "#/$defs/string" } }
206
- }
207
- },
208
- "author": {
209
- "type": "object",
210
- "additionalProperties": false,
211
- "required": ["stage", "group_key", "outcome", "target_resolutions", "sections", "member_dispositions", "material_gaps", "diagnostics"],
212
- "properties": {
213
- "stage": { "const": "author" },
214
- "group_key": { "$ref": "#/$defs/string" },
215
- "outcome": { "enum": ["publish", "catalog-only", "request-material", "unsupported"] },
216
- "artifact_intent": { "$ref": "#/$defs/string" },
217
- "policy": { "$ref": "#/$defs/string" },
218
- "target_resolutions": { "type": "array", "items": { "$ref": "#/$defs/targetResolution" } },
219
- "title": { "$ref": "#/$defs/string" },
220
- "summary": { "$ref": "#/$defs/string" },
221
- "sections": { "type": "array", "items": { "$ref": "#/$defs/authorSection" } },
222
- "member_dispositions": { "type": "array", "items": { "$ref": "#/$defs/memberDisposition" } },
223
- "material_gaps": { "type": "array", "items": { "$ref": "#/$defs/materialGap" } },
224
- "diagnostics": { "type": "array", "items": { "$ref": "#/$defs/diagnostic" } }
225
- }
226
- },
227
- "targetResolution": {
228
- "type": "object",
229
- "additionalProperties": false,
230
- "required": ["target", "disposition"],
231
- "properties": {
232
- "target": { "$ref": "#/$defs/string" },
233
- "disposition": { "enum": ["reuse-existing", "create-independent", "unresolved"] },
234
- "reason_code": { "$ref": "#/$defs/string" }
235
- }
236
- },
237
- "authorSection": {
238
- "type": "object",
239
- "additionalProperties": false,
240
- "required": ["key", "heading", "markdown", "source_items", "facts", "answers"],
241
- "properties": {
242
- "key": { "$ref": "#/$defs/string" },
243
- "heading": { "$ref": "#/$defs/string" },
244
- "markdown": { "$ref": "#/$defs/string" },
245
- "source_items": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/string" } },
246
- "facts": { "type": "array", "items": { "$ref": "#/$defs/string" } },
247
- "answers": { "type": "array", "items": { "$ref": "#/$defs/string" } }
248
- }
249
- },
250
- "memberDisposition": {
251
- "type": "object",
252
- "additionalProperties": false,
253
- "required": ["item", "state"],
254
- "properties": {
255
- "item": { "$ref": "#/$defs/string" },
256
- "state": { "enum": ["covered", "catalog-only", "unsupported"] },
257
- "section": { "$ref": "#/$defs/string" },
258
- "reason_code": { "$ref": "#/$defs/string" }
259
- }
260
- },
261
- "materialGap": {
262
- "type": "object",
263
- "additionalProperties": false,
264
- "required": ["question", "source_hints"],
265
- "properties": {
266
- "question": { "$ref": "#/$defs/string" },
267
- "source_hints": { "type": "array", "items": { "$ref": "#/$defs/string" } }
268
- }
269
- },
270
- "diagnostic": {
271
- "type": "object",
272
- "additionalProperties": false,
273
- "required": ["code", "message"],
274
- "properties": {
275
- "code": { "$ref": "#/$defs/string" },
276
- "message": { "$ref": "#/$defs/string" },
277
- "target": { "$ref": "#/$defs/string" }
278
- }
1841
+ },
1842
+ "required": [
1843
+ "task_key",
1844
+ "result"
1845
+ ],
1846
+ "additionalProperties": false
1847
+ },
1848
+ "minItems": 1
1849
+ }
1850
+ },
1851
+ "required": [
1852
+ "stage",
1853
+ "results"
1854
+ ],
1855
+ "additionalProperties": false
279
1856
  },
280
1857
  "postAuthor": {
281
1858
  "type": "object",
282
- "additionalProperties": false,
283
- "required": ["stage", "results"],
284
1859
  "properties": {
285
- "stage": { "const": "post-author" },
1860
+ "stage": {
1861
+ "type": "string",
1862
+ "const": "post-author"
1863
+ },
286
1864
  "results": {
287
1865
  "type": "array",
288
- "minItems": 1,
289
1866
  "items": {
290
1867
  "type": "object",
291
- "additionalProperties": false,
292
- "required": ["task_key", "result"],
293
1868
  "properties": {
294
- "task_key": { "type": "string", "pattern": "^task-[0-9]{3}$" },
295
- "result": { "$ref": "#/$defs/postAuthorResult" }
296
- }
297
- }
1869
+ "task_key": {
1870
+ "type": "string",
1871
+ "pattern": "^task-[0-9]{3}$"
1872
+ },
1873
+ "result": {
1874
+ "anyOf": [
1875
+ {
1876
+ "type": "object",
1877
+ "properties": {
1878
+ "stage": {
1879
+ "type": "string",
1880
+ "const": "post-author"
1881
+ },
1882
+ "outcome": {
1883
+ "type": "string",
1884
+ "const": "complete"
1885
+ },
1886
+ "proposals": {
1887
+ "type": "array",
1888
+ "items": {
1889
+ "type": "object",
1890
+ "properties": {
1891
+ "target": {
1892
+ "type": "string",
1893
+ "minLength": 1
1894
+ },
1895
+ "artifact_kind": {
1896
+ "type": "string",
1897
+ "minLength": 1
1898
+ },
1899
+ "title": {
1900
+ "type": "string",
1901
+ "minLength": 1
1902
+ },
1903
+ "summary": {
1904
+ "type": "string",
1905
+ "minLength": 1
1906
+ },
1907
+ "sections": {
1908
+ "type": "array",
1909
+ "items": {
1910
+ "type": "object",
1911
+ "properties": {
1912
+ "key": {
1913
+ "type": "string",
1914
+ "minLength": 1
1915
+ },
1916
+ "heading": {
1917
+ "type": "string",
1918
+ "minLength": 1
1919
+ },
1920
+ "visuals": {
1921
+ "type": "array",
1922
+ "items": {
1923
+ "type": "object",
1924
+ "properties": {
1925
+ "resource": {
1926
+ "type": "string",
1927
+ "minLength": 1
1928
+ },
1929
+ "also_read": {
1930
+ "type": "array",
1931
+ "items": {
1932
+ "type": "string",
1933
+ "minLength": 1
1934
+ }
1935
+ },
1936
+ "context": {
1937
+ "type": "array",
1938
+ "items": {
1939
+ "type": "string"
1940
+ },
1941
+ "default": []
1942
+ },
1943
+ "requirements": {
1944
+ "type": "string",
1945
+ "default": ""
1946
+ },
1947
+ "disposition": {
1948
+ "type": "string",
1949
+ "enum": [
1950
+ "converted",
1951
+ "retained"
1952
+ ]
1953
+ },
1954
+ "format": {
1955
+ "type": "string",
1956
+ "enum": [
1957
+ "mermaid",
1958
+ "table",
1959
+ "original"
1960
+ ]
1961
+ },
1962
+ "markdown": {
1963
+ "type": "string"
1964
+ },
1965
+ "reason": {
1966
+ "type": "string"
1967
+ }
1968
+ },
1969
+ "required": [
1970
+ "resource",
1971
+ "disposition",
1972
+ "format"
1973
+ ],
1974
+ "additionalProperties": false
1975
+ }
1976
+ },
1977
+ "markdown": {
1978
+ "type": "string",
1979
+ "minLength": 1
1980
+ },
1981
+ "source_refs": {
1982
+ "type": "array",
1983
+ "items": {
1984
+ "type": "string",
1985
+ "minLength": 1
1986
+ },
1987
+ "minItems": 1
1988
+ }
1989
+ },
1990
+ "required": [
1991
+ "key",
1992
+ "heading",
1993
+ "markdown",
1994
+ "source_refs"
1995
+ ],
1996
+ "additionalProperties": false
1997
+ },
1998
+ "minItems": 1
1999
+ }
2000
+ },
2001
+ "required": [
2002
+ "target",
2003
+ "artifact_kind",
2004
+ "title",
2005
+ "summary",
2006
+ "sections"
2007
+ ],
2008
+ "additionalProperties": false
2009
+ },
2010
+ "default": []
2011
+ },
2012
+ "diagnostics": {
2013
+ "type": "array",
2014
+ "items": {
2015
+ "type": "object",
2016
+ "properties": {
2017
+ "code": {
2018
+ "type": "string",
2019
+ "minLength": 1
2020
+ },
2021
+ "message": {
2022
+ "type": "string",
2023
+ "minLength": 1
2024
+ },
2025
+ "target": {
2026
+ "type": "string",
2027
+ "minLength": 1
2028
+ }
2029
+ },
2030
+ "required": [
2031
+ "code",
2032
+ "message"
2033
+ ],
2034
+ "additionalProperties": false
2035
+ },
2036
+ "default": []
2037
+ }
2038
+ },
2039
+ "required": [
2040
+ "stage",
2041
+ "outcome"
2042
+ ],
2043
+ "additionalProperties": false
2044
+ },
2045
+ {
2046
+ "type": "object",
2047
+ "properties": {
2048
+ "stage": {
2049
+ "$ref": "#/$defs/postAuthor/properties/results/items/properties/result/anyOf/0/properties/stage"
2050
+ },
2051
+ "outcome": {
2052
+ "type": "string",
2053
+ "const": "failed"
2054
+ },
2055
+ "proposals": {
2056
+ "$ref": "#/$defs/postAuthor/properties/results/items/properties/result/anyOf/0/properties/proposals"
2057
+ },
2058
+ "diagnostics": {
2059
+ "type": "array",
2060
+ "items": {
2061
+ "$ref": "#/$defs/postAuthor/properties/results/items/properties/result/anyOf/0/properties/diagnostics/items"
2062
+ },
2063
+ "minItems": 1
2064
+ }
2065
+ },
2066
+ "required": [
2067
+ "stage",
2068
+ "outcome",
2069
+ "diagnostics"
2070
+ ],
2071
+ "additionalProperties": false
2072
+ }
2073
+ ]
2074
+ }
2075
+ },
2076
+ "required": [
2077
+ "task_key",
2078
+ "result"
2079
+ ],
2080
+ "additionalProperties": false
2081
+ },
2082
+ "minItems": 1
298
2083
  }
299
- }
2084
+ },
2085
+ "required": [
2086
+ "stage",
2087
+ "results"
2088
+ ],
2089
+ "additionalProperties": false
300
2090
  },
301
- "postAuthorResult": {
302
- "type": "object",
303
- "additionalProperties": false,
304
- "required": ["stage", "outcome", "proposals", "diagnostics"],
305
- "properties": {
306
- "stage": { "const": "post-author" },
307
- "outcome": { "enum": ["complete", "failed"] },
308
- "proposals": {
309
- "type": "array",
310
- "items": {
311
- "type": "object",
312
- "additionalProperties": false,
313
- "required": ["target", "artifact_kind", "title", "summary", "sections"],
314
- "properties": {
315
- "target": { "$ref": "#/$defs/string" },
316
- "artifact_kind": { "$ref": "#/$defs/string" },
317
- "title": { "$ref": "#/$defs/string" },
318
- "summary": { "$ref": "#/$defs/string" },
319
- "sections": {
320
- "type": "array",
321
- "minItems": 1,
322
- "items": {
323
- "type": "object",
324
- "additionalProperties": false,
325
- "required": ["key", "heading", "markdown", "source_refs"],
326
- "properties": {
327
- "key": { "$ref": "#/$defs/string" },
328
- "heading": { "$ref": "#/$defs/string" },
329
- "markdown": { "$ref": "#/$defs/string" },
330
- "source_refs": {
331
- "type": "array",
332
- "minItems": 1,
333
- "items": { "$ref": "#/$defs/string" }
334
- }
335
- }
2091
+ "structureReview": {
2092
+ "anyOf": [
2093
+ {
2094
+ "type": "object",
2095
+ "properties": {
2096
+ "stage": {
2097
+ "type": "string",
2098
+ "const": "structure-review"
2099
+ },
2100
+ "knowledge_map": {
2101
+ "type": "object",
2102
+ "properties": {
2103
+ "expected_revision": {
2104
+ "type": [
2105
+ "string",
2106
+ "null"
2107
+ ]
2108
+ },
2109
+ "upsert": {
2110
+ "type": "array",
2111
+ "items": {
2112
+ "type": "object",
2113
+ "properties": {
2114
+ "key": {
2115
+ "type": "string",
2116
+ "minLength": 1
2117
+ },
2118
+ "parent": {
2119
+ "anyOf": [
2120
+ {
2121
+ "type": "string",
2122
+ "minLength": 1
2123
+ },
2124
+ {
2125
+ "type": "null"
2126
+ }
2127
+ ]
2128
+ },
2129
+ "title": {
2130
+ "type": "string",
2131
+ "minLength": 1
2132
+ },
2133
+ "order": {
2134
+ "type": "number",
2135
+ "default": 0
2136
+ },
2137
+ "target": {
2138
+ "type": "object",
2139
+ "properties": {
2140
+ "artifact_ref": {
2141
+ "type": "string",
2142
+ "minLength": 1
2143
+ },
2144
+ "section_key": {
2145
+ "type": "string",
2146
+ "minLength": 1
2147
+ }
2148
+ },
2149
+ "required": [
2150
+ "artifact_ref"
2151
+ ],
2152
+ "additionalProperties": false
2153
+ }
2154
+ },
2155
+ "required": [
2156
+ "key",
2157
+ "parent",
2158
+ "title"
2159
+ ],
2160
+ "additionalProperties": false
2161
+ },
2162
+ "default": []
2163
+ },
2164
+ "remove": {
2165
+ "type": "array",
2166
+ "items": {
2167
+ "type": "string",
2168
+ "minLength": 1
2169
+ },
2170
+ "default": []
336
2171
  }
337
- }
2172
+ },
2173
+ "required": [
2174
+ "expected_revision"
2175
+ ],
2176
+ "additionalProperties": false
2177
+ },
2178
+ "decision": {
2179
+ "type": "string",
2180
+ "const": "approved"
2181
+ },
2182
+ "feedback": {
2183
+ "type": "string",
2184
+ "minLength": 1
338
2185
  }
339
- }
2186
+ },
2187
+ "required": [
2188
+ "stage",
2189
+ "decision"
2190
+ ],
2191
+ "additionalProperties": false
340
2192
  },
341
- "diagnostics": { "type": "array", "items": { "$ref": "#/$defs/diagnostic" } }
342
- },
343
- "allOf": [
344
2193
  {
345
- "if": { "properties": { "outcome": { "const": "failed" } } },
346
- "then": {
347
- "properties": {
348
- "diagnostics": { "type": "array", "minItems": 1 }
2194
+ "type": "object",
2195
+ "properties": {
2196
+ "stage": {
2197
+ "$ref": "#/$defs/structureReview/anyOf/0/properties/stage"
2198
+ },
2199
+ "knowledge_map": {
2200
+ "$ref": "#/$defs/structureReview/anyOf/0/properties/knowledge_map"
2201
+ },
2202
+ "decision": {
2203
+ "type": "string",
2204
+ "const": "exclude-obsolete"
2205
+ },
2206
+ "feedback": {
2207
+ "$ref": "#/$defs/structureReview/anyOf/0/properties/feedback"
349
2208
  }
350
- }
351
- }
352
- ]
353
- },
354
- "structureReview": {
355
- "type": "object",
356
- "additionalProperties": false,
357
- "required": ["stage", "decision"],
358
- "properties": {
359
- "stage": { "const": "structure-review" },
360
- "decision": { "enum": ["approved", "request-adjustment"] },
361
- "feedback": { "$ref": "#/$defs/string" }
362
- },
363
- "allOf": [
2209
+ },
2210
+ "required": [
2211
+ "stage",
2212
+ "decision"
2213
+ ],
2214
+ "additionalProperties": false
2215
+ },
364
2216
  {
365
- "if": { "properties": { "decision": { "const": "request-adjustment" } } },
366
- "then": { "required": ["feedback"] }
2217
+ "type": "object",
2218
+ "properties": {
2219
+ "stage": {
2220
+ "$ref": "#/$defs/structureReview/anyOf/0/properties/stage"
2221
+ },
2222
+ "knowledge_map": {
2223
+ "$ref": "#/$defs/structureReview/anyOf/0/properties/knowledge_map"
2224
+ },
2225
+ "decision": {
2226
+ "type": "string",
2227
+ "const": "request-adjustment"
2228
+ },
2229
+ "feedback": {
2230
+ "type": "string",
2231
+ "minLength": 1
2232
+ }
2233
+ },
2234
+ "required": [
2235
+ "stage",
2236
+ "decision",
2237
+ "feedback"
2238
+ ],
2239
+ "additionalProperties": false
367
2240
  }
368
2241
  ]
369
2242
  },
370
2243
  "layoutConfirmation": {
371
- "type": "object",
372
- "additionalProperties": false,
373
- "required": ["stage", "decision"],
374
- "properties": {
375
- "stage": { "const": "layout-confirmation" },
376
- "decision": { "enum": ["approved", "rejected"] },
377
- "feedback": { "$ref": "#/$defs/string" },
378
- "paths": {
379
- "type": "array",
380
- "minItems": 1,
381
- "items": {
382
- "type": "object",
383
- "additionalProperties": false,
384
- "required": ["artifact_ref", "output_path"],
385
- "properties": {
386
- "artifact_ref": { "$ref": "#/$defs/string" },
387
- "output_path": { "$ref": "#/$defs/string" }
2244
+ "anyOf": [
2245
+ {
2246
+ "type": "object",
2247
+ "properties": {
2248
+ "stage": {
2249
+ "type": "string",
2250
+ "const": "layout-confirmation"
2251
+ },
2252
+ "decision": {
2253
+ "type": "string",
2254
+ "const": "approved"
2255
+ },
2256
+ "feedback": {
2257
+ "type": "string",
2258
+ "minLength": 1
2259
+ },
2260
+ "paths": {
2261
+ "type": "array",
2262
+ "items": {
2263
+ "type": "object",
2264
+ "properties": {
2265
+ "artifact_ref": {
2266
+ "type": "string",
2267
+ "minLength": 1
2268
+ },
2269
+ "output_path": {
2270
+ "type": "string",
2271
+ "minLength": 1
2272
+ }
2273
+ },
2274
+ "required": [
2275
+ "artifact_ref",
2276
+ "output_path"
2277
+ ],
2278
+ "additionalProperties": false
2279
+ },
2280
+ "minItems": 1
388
2281
  }
389
- }
390
- }
391
- },
392
- "allOf": [
2282
+ },
2283
+ "required": [
2284
+ "stage",
2285
+ "decision"
2286
+ ],
2287
+ "additionalProperties": false
2288
+ },
393
2289
  {
394
- "if": { "properties": { "decision": { "const": "rejected" } } },
395
- "then": { "required": ["feedback"], "not": { "required": ["paths"] } }
2290
+ "type": "object",
2291
+ "properties": {
2292
+ "stage": {
2293
+ "$ref": "#/$defs/layoutConfirmation/anyOf/0/properties/stage"
2294
+ },
2295
+ "decision": {
2296
+ "type": "string",
2297
+ "const": "rejected"
2298
+ },
2299
+ "feedback": {
2300
+ "type": "string",
2301
+ "minLength": 1
2302
+ }
2303
+ },
2304
+ "required": [
2305
+ "stage",
2306
+ "decision",
2307
+ "feedback"
2308
+ ],
2309
+ "additionalProperties": false
396
2310
  }
397
2311
  ]
398
2312
  }