@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
@@ -0,0 +1,428 @@
1
+ ---
2
+ id: procedure.knowledge-updates
3
+ kind: procedure
4
+ mediaType: text/markdown
5
+ ---
6
+
7
+ # Update existing knowledge
8
+
9
+ Use the same Context conversation and the current workspace. Identify whether
10
+ this is a continuation, an adjustment to the current task, a correction to one
11
+ page, or an independent task. An old Route does not incorporate a new request.
12
+ For explicit workspace preparation, Git commit or historical restoration, use
13
+ [prepare](workspace-prepare.md), [commit](workspace-commit.md) or
14
+ [restore](workspace-restore.md); these Agent-led operations do not automatically
15
+ start production. Otherwise, do not start an independent task while another remains: explain what is saved
16
+ and unfinished, and obtain the user's choice to finish or roll back the current
17
+ work. Do not delete runtime files to simulate rollback.
18
+
19
+ For an unambiguous page correction, use `context revise "<path or title>"
20
+ --instruction "<correction>" --format json`. Context supplies the existing text
21
+ and continues through Review and delivery. Expression-only changes need no
22
+ source capture or Parser. Preserve prior confirmed contributions; distinguish
23
+ actual behavior, a confirmed decision, and a proposal that is not implemented.
24
+
25
+ ## First-task intake budget
26
+
27
+ Before registration and capture, the Agent uses the user's task instructions and
28
+ reads batch metadata titles across the explicitly supplied document list. Lark
29
+ metadata requests accept at most 200 entries each, not 200 words or 200 documents
30
+ overall. H1/H2 may be reused only when metadata returns them without
31
+ body retrieval; Lark batch metadata returns titles, not headings. Batch failure
32
+ falls back to at most 10 unresolved document title lookups total, unless a shared
33
+ authentication failure makes those calls redundant. The Agent does not fetch
34
+ source bodies, outlines, images or attachments. Missing title metadata is
35
+ optional: preserve the original URL without falling back to body retrieval or
36
+ changing credentials. Resolve intent from the conversation; refine provisional
37
+ chapters and module boundaries from evidence after formal capture.
38
+
39
+ ## Workspace versions and changelog
40
+
41
+ `package.json.version` is the workspace SemVer. At completed-scope delivery the
42
+ workflow asks the Agent to inspect formal changes and record an increasing version
43
+ with a concise changelog. Added modules or expanded material coverage increment
44
+ minor; corrections, existing-module updates, navigation and persistent status
45
+ changes increment patch. Major requires an explicit user instruction. Temporary
46
+ progress under `.tmp/` never causes a version increase.
47
+
48
+ Version recording runs at completed-scope delivery after Review, Close and package
49
+ configuration/template approval, before the final build. The record response
50
+ returns the next workspace Route, so no extra status call is needed. Build retries
51
+ reuse the recorded version when formal content is unchanged. Intermediate batches
52
+ do not each receive a version.
53
+
54
+ The workspace AGENTS.md and version-writing instructions require each entry's
55
+ details to stay within 1500 visible characters, including punctuation across the
56
+ title, changes, trigger descriptions and actor display name, excluding protocol
57
+ keys, version and date. The Agent compresses longer drafts before submission,
58
+ preserving main changes, impact and triggers instead of truncating text or splitting
59
+ the iteration into extra versions. This is an Agent writing rule, not a prose-quality
60
+ CLI gate.
61
+
62
+ `context version inspect --format json` returns changed paths and a digest. The
63
+ coordinator submits `context version record --input <file> --format json` with:
64
+
65
+ ```yaml
66
+ expected_digest: "<digest returned by inspect>"
67
+ version: 0.2.0
68
+ title: Add module recovery guidance
69
+ changes:
70
+ - Document recovery conditions and the supported retry flow.
71
+ triggers:
72
+ - kind: module
73
+ description: Additional module material requested in this iteration.
74
+ actor:
75
+ kind: lark
76
+ name: Example User
77
+ ```
78
+
79
+ `actor` is optional; omit it to use local Git `user.name` when configured. Use a
80
+ Lark display name only when explicitly known from the conversation. Trigger kinds
81
+ are `initial`, `note`, `sessions`, `mr`, `module`, `document`, `navigation`,
82
+ `repair`, `dist`, and `other`. Agent-written fields describe the actual diff and
83
+ conversation; they must not expose credentials, raw transcripts or private IDs.
84
+
85
+ The CLI writes `changelog.yaml`, generated `CHANGELOG.md`, `package.json` and the
86
+ `.context-version.json` content baseline together. Keep these formal files with
87
+ the workspace; do not hand-edit generated baselines. Git-managed and unignored
88
+ new files are compared (without Git, non-runtime workspace files are compared).
89
+ Version metadata itself, `dist`, `.tmp` and dependencies do not cause changes.
90
+
91
+ Successful builds record version and per-package hashes in `.context-builds.json`.
92
+ They do not increase versions. Before publishing, `context version publish-check
93
+ --format json` compares against `.context-published.json`. A same-version changed
94
+ output requires a patch using `version inspect --publish` and a `dist` trigger,
95
+ then a rebuild. Record `version published --hash <checked-hash> --receipt
96
+ <successful-publication-reference> --format json` only after external success.
97
+ No command commits, tags or uploads automatically.
98
+
99
+ Website history is available at `changelog.html`: cards are newest first, the
100
+ latest three expanded and older cards collapsed. The History button beside the
101
+ theme switch and footer update timestamps link there. KB and LLMS outputs carry
102
+ the same workspace version and changelog.
103
+
104
+ ## Customize the knowledge map at any time
105
+
106
+ For a knowledge-map-only change, use the existing `context task adjust
107
+ --input <file|-> --format json` action with `knowledge_map`. Supply its
108
+ current `expected_revision`, explicit `upsert` entries and `remove` keys. Each
109
+ entry retains its stable key, parent, title and order; optional targets use
110
+ article identity and section key. The current structure preview supplies those
111
+ identities. Read the persistent `src/knowledge-map.yaml`; use
112
+ `expected_revision: null` only when no knowledge map exists.
113
+ After adjustment, follow status to rebuild affected packages. This changes the
114
+ reading organization without capturing sources or rewriting approved prose.
115
+ Do not directly edit generated package navigation or use titles as identities.
116
+
117
+ Users can ask in conversation to move a topic, rename a directory, change order,
118
+ or organize the same articles for another reader task. Handle this during ongoing
119
+ production or after completion through the same adjustment; no active Indexer
120
+ task, source recapture or new mode choice is required. Finish or revoke active
121
+ worker assignments before changing the map. Preserve unrelated entries and page
122
+ identities. The map controls website navigation and LLMS organization together.
123
+
124
+ For each new or changed article, the Agent decides whether to retain its current
125
+ placement, add another placement, move it, or create a warranted category. Check
126
+ these choices against the user's settled organization before structure approval
127
+ and delivery. New articles must be bound even if the map revision has not changed;
128
+ modifying a title alone is not a reason to change article identity. Never satisfy
129
+ coverage by mechanically placing every new page under an unrelated catch-all.
130
+ Build reports missing bindings for the Agent to resolve; it does not classify
131
+ content. Moving a menu entry does not change the article URL.
132
+
133
+ ## Edit one section or review part of a batch
134
+
135
+ The current approved-revision Route accepts either full `markdown` or explicit
136
+ `sections` edits. Use an existing `writing_context.current_sections` ID and an
137
+ ordered `content` list of `{ "markdown": "new text" }` and/or
138
+ `{ "program": "exact current program token" }`. Unchanged sections and the
139
+ selected section's source references remain intact. Use full Markdown when
140
+ changing structure, adding a page or when a section has no unambiguous ID.
141
+
142
+ For an optional check, append `--preview` to the current `action complete-current`
143
+ command with the same revision and input file. It validates and returns the
144
+ assembled page and previous text without accepting the edit. Submit the same
145
+ input without that flag to continue. A preview is not approval and does not make
146
+ a stale revision valid.
147
+
148
+ Review can approve checked pages while leaving repair pages pending. The HTML
149
+ review code includes pending positions; managed Review provides the same current
150
+ scope as a JSON template. Send decisions only for pages actually reviewed. Omit
151
+ means a durable exclusion, not repair. Partial approval alone does not build.
152
+
153
+ When the user requests an earlier delivery, use the Route's `context run
154
+ --deliver` request. Independently approved pages can pass close/build while
155
+ pending candidates remain for Review or repair. Links to pending or missing
156
+ pages keep their necessary scope together. Source processing baselines advance
157
+ only after the entire update finishes. Failed builds retain the selected delivery
158
+ and pending work; repair the cause and follow the current Route.
159
+
160
+ ## Acquire the selected change once
161
+
162
+ Use the host's existing Git, code-hosting or document tools and their installed
163
+ guidance. Context does not poll a platform, discover remote changes, or infer
164
+ that a merge request is merged. Reading an already selected source does not
165
+ require a new permission question when access was already authorized. Do not
166
+ change the user's checkout or fetch another repository without that scope.
167
+
168
+ For a branch or MR/PR, establish the repository, intended target branch, merge
169
+ state and actual fixed target commit. An unmerged proposal is not the current
170
+ mainline. A merge, squash or rebase can produce different commit identities;
171
+ use the target branch's actual result, not the feature branch SHA. Include
172
+ other intervening changes between the last processed version and the selected
173
+ target when they affect the registered modules. Reverts are real changes.
174
+
175
+ Use already available local Git objects to compare the selected module trees
176
+ and necessary diffs. A new repository commit with unchanged module trees can
177
+ be a no-knowledge-change conclusion. That conclusion must also account for any
178
+ new note or development context. If a baseline is unavailable after force push,
179
+ a shallow checkout or history cleanup, state that a complete old diff is
180
+ unavailable; compare current material with approved knowledge in the confirmed
181
+ scope. Do not claim no change because a Git command failed. A repeated MR may
182
+ still bring new relevant context; it does not justify moving the code baseline
183
+ backwards or summarizing unrelated commits as part of that MR.
184
+
185
+ For documents, a revision shortcut is valid only if the host actually exposes a
186
+ reliable version for the selected document and its needed images/attachments.
187
+ Otherwise read that selected document and resources. Keep the returned bytes
188
+ for the existing capture/import action; do not fetch them again as verification.
189
+ An unchanged body does not prove images are unchanged. Distinguish lack of
190
+ permission, deleted content, and moved content; a read failure is not permission
191
+ to retire a knowledge page. CLI status describes local acquisition only.
192
+
193
+ After the current source configuration and material identify the chosen fixed
194
+ versions, submit the update with `context update --input <file|-> --format json`.
195
+ Write ordinary YAML or JSON with the host's editor, without a generated wrapper
196
+ program. Input files belong under this workspace's `.tmp/`.
197
+
198
+ ```yaml
199
+ scopes:
200
+ - requirement_ref: reader-guide
201
+ source_ref: repo:20260901/library
202
+ changes: The selected change adds one public option; inspect its explanation and examples.
203
+ ```
204
+
205
+ `requirement_ref` is the existing requirement id. Omit `module_refs` for a whole
206
+ confirmed source scope. `processed_version` may be supplied to bind the exact
207
+ acquired commit or document content digest; otherwise Context captures it from
208
+ the existing local material. A supplied version must match that material.
209
+ Follow the returned Route. The candidate list is a conservative source match,
210
+ not a list of pages that must change. Read the actual change and current pages,
211
+ also checking additions that have no old page reference. The scope is complete
212
+ only after every required change is reviewed, closed and built, or after an
213
+ explicit conclusion that it needs no knowledge changes.
214
+
215
+ Before importing a `note`, read [note source preparation](note.md).
216
+ Before importing `sessions`, read [development summary preparation](sessions.md).
217
+ Choose the reference for the actual input; do not read both by default.
218
+
219
+ ## Save text without an external file
220
+
221
+ Use `context source import --input <file|-> --format json`:
222
+
223
+ ```yaml
224
+ type: note
225
+ name: 20260907/decision-context.md
226
+ markdown: |
227
+ # Decision context
228
+
229
+ The selected discussion confirmed this exception for the stated situation.
230
+ The implementation has not yet changed. Source: the discussion supplied here.
231
+ ```
232
+
233
+ The body is saved directly under `sources/note/` or `sources/sessions/`; no
234
+ external `local`, capture, registry or second copy is required. Use a readable
235
+ semantic filename under an eight-digit date directory. Do not put a date, hash
236
+ or session id into the filename again. Keep the path for retries and later
237
+ edits. To revise an existing source, read it and pass its current `base_digest`
238
+ with the replacement Markdown. Distinct same-day material needs a distinct
239
+ semantic name, never a silent overwrite. `source list`, `source get` and
240
+ `source inspect` expose the actual source paths. Removal uses the existing
241
+ preview and exact plan digest, and refuses still-referenced text.
242
+
243
+ Saving alone does not start indexing. If the user only wants the source saved,
244
+ report its path and stop. For production, reuse the existing requirement:
245
+ put independent content in `target_scope`; put supporting material in
246
+ `evidence_source_scope` and ensure the selected Indexer's existing `read_scope`
247
+ covers it. Do not create a separate Markdown production target for a supporting
248
+ explanation of a code page. In the source-update decision, include its exact
249
+ `supporting_sources` on the affected page. Include that source's scope in this
250
+ update so completion can distinguish code from newly processed context.
251
+
252
+ ## Development context accompanying a commit
253
+
254
+ Use `trace-session` only as this conditional source-preparation step. If the MR,
255
+ code and existing design already explain the relevant information, cite them.
256
+ Write a `sessions` source only when real, explicitly available development
257
+ context contains useful decisions, reasons or limits missing from those sources.
258
+ Do not fabricate discussion from a diff, search host session storage, ask for
259
+ nonessential history, or create an empty/skip report. This is only the code-related subcase. An authorized conversation summary
260
+ without an MR or commit is also `sessions`; see the sessions source guide.
261
+ Optional `changes` belongs in the source frontmatter, not knowledge headers.
262
+
263
+ Use the available merge date, or commit date for a pure commit, for the initial
264
+ directory; if unavailable or saving an unmerged discussion explicitly, use the
265
+ current collection date and explain the context. Do not query a platform just
266
+ for this date. Keep the path when later adding a reference or retrying another
267
+ day. One coherent change can share one summary; separate unrelated changes.
268
+
269
+ The shortest useful body is the real repository/MR/commit reference plus one
270
+ paragraph explaining what the code does not tell a later reader. Describe only
271
+ the actually associated commit subset. Omit a full change recap, transcript,
272
+ test log, session id and formal approval claim. Write confirmed decisions as
273
+ such, alternatives as alternatives, and unresolved proposals as unresolved.
274
+ Do not claim execution or tests that were not observed. The writing aid below
275
+ is optional; no section is mandatory:
276
+
277
+ ```markdown
278
+ # <Change topic>
279
+
280
+ <Reference the actual repository and MR or concrete commits already available.>
281
+
282
+ <Explain the useful decision, reason or constraint absent from the code/design.
283
+ State its applicability and distinguish implemented behavior from a proposal.>
284
+ ```
285
+
286
+ Late context can update a page even when the code version is already processed.
287
+ Reuse that fixed code version and current approved prose; do not restart Parser
288
+ merely because a summary arrived. Import once, then include the necessary
289
+ context with the same knowledge update. Saved context survives a failed build;
290
+ saving it does not mean its knowledge impact has been delivered.
291
+
292
+ ## Optional correction of an upstream document
293
+
294
+ Local knowledge approval and fully managed execution do not authorize a remote
295
+ write. First determine whether the knowledge misunderstood correct source text,
296
+ a confirmed decision has not reached the source, or the conclusion is still
297
+ uncertain. The first needs only a local correction; the second can use a note
298
+ locally while an upstream change is considered; uncertainty is not a fact.
299
+
300
+ Present the exact document, affected passage, proposed before/after text, reason
301
+ and affected knowledge. Reuse existing authorization for that concrete edit;
302
+ otherwise ask for it. Before writing, read the affected passage again using the
303
+ host document tool. Adapt only within the authorized scope if another person
304
+ has edited it; ask again only when the requested change materially differs.
305
+
306
+ Execute with the host tool and read back the result. If the write result is
307
+ uncertain, read back before retrying an insertion. Only the actual returned
308
+ source text and resources may refresh its snapshot. Feed them into the same
309
+ local capture/update route; a note or proposed patch is not a remote snapshot.
310
+ If the remote edit succeeded but local build failed, resume local delivery;
311
+ do not repeat the remote edit. Explain remote and local outcomes separately.
312
+ Do not automatically delete an absorbed note, post comments, notify groups or
313
+ change permissions. Permission failure can leave a concrete suggestion for
314
+ the user without blocking an independently supported local correction.
315
+
316
+ ## Import a document response already read by the host
317
+
318
+ For a registered Lark source, retain the actual full JSON response from
319
+ `lark-cli docs +fetch` and each returned continuation page. Do not reconstruct a
320
+ response from a summary. Use the same source import command:
321
+
322
+ ```yaml
323
+ type: lark
324
+ name: 20260907/guide
325
+ access_identity: user
326
+ response_files: [.tmp/guide-response.json]
327
+ media_files:
328
+ actual-image-token: .tmp/downloaded-image.png
329
+ ```
330
+
331
+ Only include real media tokens and downloaded files. Context runs the ordinary
332
+ capture normalization and resource checks on these bytes. It does not fetch the
333
+ provided document again; missing required resources follow existing capture
334
+ handling. Partial outline/section fragments cannot replace a full snapshot.
335
+ Use the identity that actually produced the response, not a credential fallback
336
+ chosen to bypass permissions. Subsequent local updates use the captured version
337
+ and the same Review/build route.
338
+
339
+ ## Adjust or roll back current work
340
+
341
+ For an explicit same-task change to native Indexer source inputs, use
342
+ `context task adjust --input <file|-> --format json` with `scopes` containing the
343
+ selected `source_ref` and optional `module_refs`, plus an `instruction` explaining
344
+ the adjustment. It invalidates those old worksets and retains independent work.
345
+ Import the fixed replacement material before following the refreshed Route.
346
+ Do not execute the old batch payload. A local page correction still uses
347
+ `revise`; it is not a reason to invalidate an entire source.
348
+
349
+ For an independent task, complete the old Route unless the user chooses a
350
+ concrete rollback. Without an identifiable baseline or attribution of changes,
351
+ ask about that gap or offer completion; never guess original bytes. Prepare
352
+ `context task rollback --input <file|-> --format json` using:
353
+
354
+ ```yaml
355
+ summary: Restore the selected page and discard unfinished follow-up drafts; keep other work.
356
+ discard_unfinished: true
357
+ files:
358
+ - path: knowledge/guides/selected-page.md
359
+ base_digest: sha256:<current-file-digest>
360
+ content: |
361
+ <exact recoverable original Markdown, not a newly generated replacement>
362
+ ```
363
+
364
+ `files` contains only the explicitly selected reversions. `content: null` removes
365
+ an explicitly selected file that this task added; `base_digest: null` is for
366
+ restoring an absent file. Include changed sources/configuration/processed scopes
367
+ when they belong to the rollback. Leave unrelated and pre-existing edits alone.
368
+ An empty list only discards unfinished work and must not be described as undoing
369
+ already delivered pages. The preview shows actual before/after contents and
370
+ draft loss. Once the user approves that exact scope, run the preview's apply
371
+ command with its plan digest. Then follow the rollback Route through close,
372
+ build and cleanup. A failed build retries delivery, not the already-applied
373
+ reversions. Begin the independent task only after cleanup succeeds.
374
+
375
+ A managed source can be explicitly renamed with `context source rename
376
+ "<note:... or sessions:...>" --name "YYYYMMDD/new-name.md" --format json` after
377
+ its active work is finished. Review the file/reference changes, then apply the
378
+ returned digest-bound command. Existing references move with it; the original
379
+ body is not copied into another source type. Follow status to refresh affected
380
+ knowledge structure and packages.
381
+
382
+ To move an approved page, use `context revise "<old path>" --move-to "<new path>"
383
+ --instruction "<requested move and content changes>" --format json`. The new
384
+ path stays in the same collection. The revision retains the page identity,
385
+ rebases outgoing links and updates incoming Markdown links at approval. A new
386
+ subject name alone only needs a title/content revision; do not create duplicate
387
+ pages. Retirement is a content decision: explain the inapplicable material and
388
+ supported replacement before changing its page and referring navigation.
389
+
390
+ ### Adjust inputs while a local update is unfinished
391
+
392
+ `context task adjust --input <file> --format json` also applies to an active
393
+ approved-page revision or source-update queue. Keep `scopes` and `instruction`
394
+ explicit. First call without `refresh`; it authorizes replacing only those
395
+ inputs and blocks page completion while acquisition is pending. Import the
396
+ selected new material, then repeat with `refresh: true` to bind the actual local
397
+ versions and obtain the new Route. Do not submit the old revision. Current
398
+ prose and queued pages remain; an affected draft returns to writing/review.
399
+ An unrelated queued page does not revoke an unchanged current page's review.
400
+ If a page has already been applied, finish its close/build before changing its
401
+ inputs. Only the final completed scope advances its processed baseline.
402
+
403
+ For several documents, `source import` also accepts a JSON/YAML array of the same
404
+ single-document inputs. Its receipt reports each zero-based input index and
405
+ success or error separately; a partial batch returns a nonzero exit code.
406
+ Keep successful sources and retry only failed entries. It does not fetch a
407
+ successful prefetched document again or roll back an unrelated saved note.
408
+
409
+ To add a new supporting source to an unfinished local revision, first save it
410
+ and include it in the current requirement's evidence scope and the selected
411
+ Indexer's read scope. Its `task adjust` scope also supplies the explicit
412
+ `requirement_ref`. This extends the current page's available sources and keeps
413
+ queued pages; it does not silently start another task or another Indexer.
414
+
415
+ ### Replacing supporting article identities
416
+
417
+ When an upstream article is split, merged or removed, start `context revise` for
418
+ its consumer and use `context task adjust --input - --format json` with
419
+ `instruction` and `knowledge_dependencies: { dependencies }`. Each dependency
420
+ uses an approved `artifact_ref`, optional `section_refs`, and `required` flag.
421
+ The current Author input returns authorized replacement facts and their evidence.
422
+ Repeat the adjustment with `knowledge_dependencies.sections`, selecting each
423
+ retained `section_key` and its full `fact_refs` and `evidence_refs` support. Then
424
+ revise the explanation and complete normal Review, close and build. An explicit
425
+ empty dependency list removes the relationship only when remaining sections have
426
+ valid direct support. Missing dependencies, changed approvals and invalid source
427
+ references cannot silently become current evidence. Writing quality remains an
428
+ Agent/Review decision; no chapter-count or wording gate is introduced.
@@ -0,0 +1,43 @@
1
+ ---
2
+ id: procedure.note
3
+ kind: procedure
4
+ mediaType: text/markdown
5
+ ---
6
+
7
+ # Prepare a note source
8
+
9
+ Read this before importing or correcting a note. The CLI saves supplied Markdown;
10
+ source preparation happens before knowledge production.
11
+
12
+ A note may contain supplied original text, selected verbatim excerpts, a summary,
13
+ or a useful combination. Do not require raw text plus a summary for every note.
14
+ If both exist, distinguish them with readable headings or prose. Preserve short
15
+ original text when useful; do not duplicate it just to fill a form. Label an
16
+ external or Agent summary as a summary, never an original transcript.
17
+
18
+ For long inputs, retain relevant excerpts or summarize within the agreed purpose.
19
+ Keep qualifications, exceptions, disagreement and unresolved questions that affect
20
+ the conclusion. State the available origin and selected scope, including material
21
+ omissions when consequential. Quote only actual verbatim input. Do not invent
22
+ links, speakers, dates or confirmation. A link does not mean its target was read;
23
+ ask about essential missing context rather than fetching everything for a label.
24
+
25
+ Save the body under sources/note/YYYYMMDD/topic.md with the existing import action.
26
+ No extra raw/summary fields, sidecar, duplicate file or mandatory section template
27
+ is needed. Saving alone does not start indexing. Independent reader topics can
28
+ use the selected Note Provider (default or business replacement); supporting
29
+ explanations use the current page's evidence/read scope, retaining its primary.
30
+ When specialized interpretation is needed, explicitly select a compatible
31
+ extension layer. Do not enable another skill merely because a note exists.
32
+
33
+ Knowledge integrates the useful information into explanations, rules or steps
34
+ for the reader. Do not copy the note wholesale or turn proposals into facts.
35
+ An exact short passage is appropriate when its wording matters. Cite the stored
36
+ material actually read, without claiming access to an unavailable original.
37
+
38
+ If the note misrepresents the supplied material, explicitly correct the source
39
+ with its current base_digest, following task adjust first for pinned inputs.
40
+ Do not overwrite original text merely to fit new prose. If the source is correct
41
+ but the knowledge is misleading, revise only that page through Author/Review.
42
+ A confirmed future decision may differ from current implementation; make the
43
+ boundary clear. Knowledge approval does not change or remove the note.
@@ -6,11 +6,14 @@ mediaType: text/markdown
6
6
 
7
7
  # Package output
8
8
 
9
+ Before editing, read `context.sdk.package-outputs`, especially its Agent configuration
10
+ and delivery recipe. It contains the concrete SDK declarations and preview steps.
11
+
9
12
  Package selection decides how approved knowledge is presented to downstream
10
13
  agents or text consumers. Explain the available Context package kinds and their
11
14
  directory shape before asking the user to choose.
12
15
 
13
- After confirmation, declare the package in `src/index.ts` using the SDK schema
16
+ Using the settled multi-select choice or current session authority, declare the packages in `src/index.ts` using the SDK schema
14
17
  resource. The current Route's `configuration.contract` lists the supported
15
18
  output choices, required fields, mechanical defaults, and follow-up status
16
19
  command; do not infer another factory or hidden default. Templates may customize presentation, but they must not overwrite
@@ -46,3 +49,19 @@ external links and accepts responsibility for publishing and access. Use a
46
49
  confirmed immutable HTTPS prefix where possible; do not infer or probe an
47
50
  unknown host convention. Explicit omission keeps unresolved links and must be
48
51
  described as such.
52
+
53
+ For a new workspace without explicit output preferences, use KB + website. Enable
54
+ `site: { title: <workspace title>, lang: <workspace language> }` on the same
55
+ `kbPackage` in `src/index.ts`; selecting LLMS also adds `llmsPackage`. Omit `site`
56
+ when the user deselects the website. Existing declarations are not automatically
57
+ changed. A request to generate a documentation website follows this same route,
58
+ including after initial delivery. Inspect existing declarations before editing;
59
+ do not register the request itself as source material or re-index unchanged knowledge.
60
+
61
+ Validate reading targets before build. Website navigation uses the approved reading
62
+ structure; repair missing bindings through the current structure adjustment action.
63
+ Build cost is rendering and local search generation, not another Indexer run.
64
+ Report measured cost only; do not promise a fixed duration for all workspaces.
65
+ Website failure preserves the previous package and requires repair or an explicit
66
+ change of output choice. Publishing is a separate action handled by the user's
67
+ chosen deployment tool; producing a website never authorizes deployment.
@@ -0,0 +1,140 @@
1
+ ---
2
+ id: procedure.parallel-agent-batch
3
+ kind: procedure
4
+ mediaType: text/markdown
5
+ ---
6
+
7
+ # Parallel Partition and Author tasks
8
+
9
+ This procedure applies only to a current Partition or Author Action with
10
+ `tasks[]`. The Host runs the workers; Context does not launch models. The current
11
+ Route, required readings and output schema remain authoritative. Delegation does
12
+ not grant source access, approve a Gate or change the accepted scope.
13
+
14
+ ## Choose execution once per batch
15
+
16
+ Use available native Host delegation only when current user/Host permissions
17
+ allow it, at least two independent tasks are ready, and workers can read the
18
+ assigned material and return their result without writing files. Respect an
19
+ explicit single-Agent preference and Host capacity or budget limits. Do not
20
+ install another agent runner, start nested CLI sessions or request broader
21
+ permissions just to parallelize. If these conditions are absent, continue the
22
+ same batch sequentially without a new user question.
23
+
24
+ Resolve any existing scope or human decision before dispatching dependent tasks.
25
+ Permission to use multiple Agents does not waive that decision.
26
+
27
+ Choose `min(4, ready task count, available worker slots)` concurrent workers,
28
+ excluding the coordinator. Use parallel mode only when that value is at least
29
+ two. Do not split one task or enlarge a CLI batch to fill slots. Schedule later
30
+ tasks from the same batch as workers finish; never prepare the next batch while
31
+ this one is active. Known dependencies between tasks require sequential handling
32
+ by the coordinator. A worker result never becomes evidence for a peer.
33
+
34
+ Tell the user briefly, in their language, how many planning or writing workers
35
+ will run when first enabling delegation or changing its concurrency/mode. Reuse
36
+ that announcement across unchanged batches. Report a fallback once when it happens. Worker completion is draft
37
+ progress; only CLI receipts establish accepted production progress.
38
+
39
+ ## Single coordinator and read-only workers
40
+
41
+ The coordinator reads the Route, output schema and shared instructions, resolves
42
+ existing human decisions, and owns all Context commands, receipts and writes.
43
+ Workers consume only their assigned task reading and its authorized shared/detail
44
+ files and captured source access. Material requiring CLI preparation is requested
45
+ from the coordinator. Never let a worker run `context status`, a materializer,
46
+ preview, completion, capture, parser, review, close or build.
47
+
48
+ Use a Host read-only worker/tool profile when available. Workers must not run
49
+ shell commands, Git, scripts or other tools that can change files or external
50
+ state, and must not spawn workers. If the Host cannot honor this boundary, use
51
+ single-Agent execution. Workers return results through Host messages; they do
52
+ not write even scratch files. If a task cannot fit a complete response within
53
+ the Host's output budget, the coordinator handles it sequentially and writes
54
+ the payload itself. Do not truncate a result or publish a stub to fit transport.
55
+
56
+ The coordinator alone writes the final payload under the workspace's
57
+ `.tmp/agent-payloads/`, using a new file for each submission attempt. Never edit
58
+ runtime readings or ledgers. This prevents worker file collisions without
59
+ depending on filenames, worktrees or the project write lock to isolate them.
60
+
61
+ ## Assign and collect
62
+
63
+ Use `template.indexer-agent-worker` from the current Route. Bind each assignment
64
+ in coordinator memory to the current Route revision, Action `input_digest`,
65
+ task manifest, instruction/resource digests and a unique attempt identifier.
66
+ Task keys repeat across batches, so `task_key` alone is not an assignment ID.
67
+ Copy these values; never compute or repair authority values from prose.
68
+
69
+ Send one task entry, its exact Route-provided reading location and applicable
70
+ shared instructions, the relevant output schema, and settled reader/scope
71
+ decisions. Give enough instruction content or exact resource locations for the
72
+ worker to read independently. A parent's reading does not populate a worker's
73
+ context or authorize an unread receipt. Do not broadcast the entire batch,
74
+ conversation, live repository or sibling task readings.
75
+
76
+ Keep a mapping from Host worker ID to assignment attempt. Before dispatch, choose
77
+ a finite task deadline supported by the Host (default ten minutes; shorten to
78
+ the remaining session budget). Wait using native completion notifications or
79
+ bounded waits while continuing user progress updates. A deadline is a Host
80
+ execution limit, not a statement that evidence is missing.
81
+
82
+ Accept a reply only from the active attempt for that task and only after it is
83
+ complete. The worker uses the template's Host reply envelope to echo assignment
84
+ identifiers separately from its single `{task_key, result}` entry. Check the Host
85
+ worker ID and that binding against the saved assignment;
86
+ do not insert coordination metadata into the Context semantic Result. Retain
87
+ successful drafts in coordinator memory until the batch is assembled.
88
+
89
+ ## Merge and submit
90
+
91
+ Reconcile Partition proposals against the settled reader purpose and accepted
92
+ subjects, especially overlapping identities, primary member ownership and
93
+ unresolved cross-task boundaries. Do not silently rename a subject or discard a
94
+ member to make proposals fit. Resolve disagreements from authorized material
95
+ in the coordinator; use the current schema's unresolved outcome when necessary.
96
+
97
+ For Author, review consistency with the accepted page plans, evidence boundaries
98
+ and reader terminology. A task may contain several planned articles: assign the
99
+ whole task, not independent writers for its sections or articles. CLI performs
100
+ the existing schema, ownership, reference and coverage validation.
101
+
102
+ Assemble one entry per current task in task-key order, keeping the normal
103
+ single-Agent output shape. Use the current Author preview when needed, then
104
+ submit the complete batch once through the saved revision-bound command. Do not
105
+ submit as each worker finishes or turn Host errors into `unsupported`,
106
+ `catalog-only` or empty semantic results. Resolve unfinished work locally first.
107
+
108
+ Finish or revoke every active assignment before any command that may change the batch or its material.
109
+ Do not poll status merely to check workers. The revision-bound CLI command is
110
+ the final freshness check; if an external change is observed, invalidate the
111
+ assignments and obtain the current Route before submitting.
112
+
113
+ ## Failures and sequential fallback
114
+
115
+ | Event | Coordinator action |
116
+ | --- | --- |
117
+ | Delegation unavailable, denied, or capacity below two before dispatch | Execute the batch sequentially. Do not retry permission prompts or simulate workers. |
118
+ | Spawn failure, rate limit, timeout, tool failure, context loss or truncated reply | Stop dispatching for this batch. Revoke the failed attempt, cancel/close it if supported, and finish that task and unassigned tasks sequentially. Let healthy read-only peers finish within their deadlines. |
119
+ | Missing/foreign task key, wrong attempt/revision, malformed or incomplete result | Discard that reply; take over its task sequentially using the original authorized input. Do not repeatedly respawn or treat the draft as committed. |
120
+ | Conflicting proposals | Reconcile affected tasks in the coordinator; preserve unaffected drafts. Unresolved scope decisions follow the existing human Gate. |
121
+ | Worker attempts a write, unauthorized tool or source access | Revoke all workers and stop parallel dispatch. Inspect any reported effects before continuing. If workspace integrity or authority is uncertain, follow current recovery guidance or report the concrete blocker. |
122
+ | Route, task set or material binding changes | Revoke old attempts; discard incompatible drafts and follow the fresh Route. Never relabel an old reply with new digests or task keys. |
123
+ | CLI accepts only part of a submission | Read `outcomes` and the returned next Route/task-only retry. Preserve committed peers; repair only the returned unfinished tasks sequentially. |
124
+ | Completion reply is lost or next preparation fails | Inspect current status or the supplied recovery command before retrying. Accepted tasks may already be saved; never blindly replay the payload. |
125
+ | Project write lock is held | Wait for the active writer using existing recovery guidance. Never remove its lock or launch another writer. |
126
+
127
+ Revocation means marking the attempt inactive before taking over. Ignore all late
128
+ replies, even if cancellation is unsupported. Such workers remain read-only;
129
+ do not reuse their slots until the Host confirms termination. Do not start a
130
+ new parallel batch while revoked workers are still active. A revoked read-only
131
+ worker does not block the coordinator's sequential takeover or completion;
132
+ its obsolete reply can no longer be accepted. If its read-only boundary is in
133
+ doubt, use the violation handling above instead. After any execution
134
+ failure, keep the rest of this batch sequential and reassess capability only at
135
+ the next fresh batch. A user request to stay single-Agent persists.
136
+
137
+ Sequential fallback preserves evidence, scope, review and completion requirements.
138
+ If the coordinator also cannot complete the task, retain drafts and report the
139
+ actual missing material, permission or Host limit through the existing workflow.
140
+ Do not clear runtime state, widen sources or lower coverage to force progress.
@@ -9,6 +9,12 @@ mediaType: text/markdown
9
9
  Use the current route facts and Context SDK documentation to make only the
10
10
  declaration requested by the route in `src/index.ts`.
11
11
 
12
+ Complete the required readings and run their `acknowledge-current` / `after_read`
13
+ command **before editing**. Use the resulting current configuration Route for the
14
+ edit. Editing changes the revision: afterwards refresh status, never run an
15
+ acknowledgement bound to the pre-edit revision. Reading acknowledgement confirms
16
+ the inputs, not approval or completion of the configuration change.
17
+
12
18
  - Do not invent sources, modules, collections, or output types.
13
19
  - Ask for a user decision when the route is gated and no current-session
14
20
  authority is present.