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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (345) hide show
  1. package/cli.js +59387 -99747
  2. package/indexers/bundles/context-code-indexer/SKILL.md +19 -44
  3. package/indexers/bundles/context-code-indexer/context-indexer.yaml +2 -19
  4. package/indexers/bundles/context-code-indexer/references/composers/contracts-and-chains.md +7 -2
  5. package/indexers/bundles/context-code-indexer/references/composers/cross-module-chain.md +7 -2
  6. package/indexers/bundles/context-code-indexer/references/composers/development-and-delivery.md +7 -2
  7. package/indexers/bundles/context-code-indexer/references/composers/event-flow.md +7 -2
  8. package/indexers/bundles/context-code-indexer/references/composers/examples-and-documentation.md +7 -2
  9. package/indexers/bundles/context-code-indexer/references/composers/persistence-boundary.md +7 -2
  10. package/indexers/bundles/context-code-indexer/references/composers/protocol-boundary.md +8 -3
  11. package/indexers/bundles/context-code-indexer/references/composers/public-contract.md +9 -4
  12. package/indexers/bundles/context-code-indexer/references/indexer.md +137 -328
  13. package/indexers/bundles/context-code-indexer/references/metrics.md +1 -1
  14. package/indexers/bundles/context-code-indexer/templates/adapter-integration-maintenance-guide.md +1 -9
  15. package/indexers/bundles/context-code-indexer/templates/adapter-integration-request-adaptation-guide.md +1 -9
  16. package/indexers/bundles/context-code-indexer/templates/adapter-integration-usage-guide.md +1 -9
  17. package/indexers/bundles/context-code-indexer/templates/api-service-maintenance-guide.md +1 -9
  18. package/indexers/bundles/context-code-indexer/templates/api-service-public-api-reference.md +1 -9
  19. package/indexers/bundles/context-code-indexer/templates/background-runtime-maintenance-guide.md +1 -9
  20. package/indexers/bundles/context-code-indexer/templates/background-runtime-task-runtime-guide.md +1 -9
  21. package/indexers/bundles/context-code-indexer/templates/cli-tool-maintenance-guide.md +1 -9
  22. package/indexers/bundles/context-code-indexer/templates/cli-tool-public-api-reference.md +1 -9
  23. package/indexers/bundles/context-code-indexer/templates/cli-tool-usage-guide.md +1 -9
  24. package/indexers/bundles/context-code-indexer/templates/component-library-maintenance-guide.md +1 -9
  25. package/indexers/bundles/context-code-indexer/templates/component-library-public-api-reference.md +1 -9
  26. package/indexers/bundles/context-code-indexer/templates/component-library-usage-guide.md +1 -9
  27. package/indexers/bundles/context-code-indexer/templates/contract-source-public-api-reference.md +1 -9
  28. package/indexers/bundles/context-code-indexer/templates/contract-source-usage-guide.md +1 -9
  29. package/indexers/bundles/context-code-indexer/templates/data-sync-reconciliation-maintenance-guide.md +1 -9
  30. package/indexers/bundles/context-code-indexer/templates/data-sync-reconciliation-task-runtime-guide.md +1 -9
  31. package/indexers/bundles/context-code-indexer/templates/data-sync-reconciliation.md +5 -6
  32. package/indexers/bundles/context-code-indexer/templates/derived-generated-source-public-api-reference.md +1 -9
  33. package/indexers/bundles/context-code-indexer/templates/derived-generated-source-usage-guide.md +1 -9
  34. package/indexers/bundles/context-code-indexer/templates/domain-service-maintenance-guide.md +1 -9
  35. package/indexers/bundles/context-code-indexer/templates/domain-service-public-api-reference.md +1 -9
  36. package/indexers/bundles/context-code-indexer/templates/event-consumer-maintenance-guide.md +1 -9
  37. package/indexers/bundles/context-code-indexer/templates/event-consumer-task-runtime-guide.md +1 -9
  38. package/indexers/bundles/context-code-indexer/templates/gateway-facade-maintenance-guide.md +1 -9
  39. package/indexers/bundles/context-code-indexer/templates/gateway-facade-public-api-reference.md +1 -9
  40. package/indexers/bundles/context-code-indexer/templates/gateway-facade-request-adaptation-guide.md +1 -9
  41. package/indexers/bundles/context-code-indexer/templates/monorepo-container-maintenance-guide.md +1 -9
  42. package/indexers/bundles/context-code-indexer/templates/monorepo-container-usage-guide.md +1 -9
  43. package/indexers/bundles/context-code-indexer/templates/plugin-extension-maintenance-guide.md +1 -9
  44. package/indexers/bundles/context-code-indexer/templates/plugin-extension-public-api-reference.md +1 -9
  45. package/indexers/bundles/context-code-indexer/templates/plugin-extension-usage-guide.md +1 -9
  46. package/indexers/bundles/context-code-indexer/templates/sdk-library-maintenance-guide.md +1 -9
  47. package/indexers/bundles/context-code-indexer/templates/sdk-library-public-api-reference.md +1 -9
  48. package/indexers/bundles/context-code-indexer/templates/sdk-library-usage-guide.md +1 -9
  49. package/indexers/bundles/context-code-indexer/templates/storage-repository-maintenance-guide.md +1 -9
  50. package/indexers/bundles/context-code-indexer/templates/storage-repository-public-api-reference.md +1 -9
  51. package/indexers/bundles/context-code-indexer/templates/web-application-federation-guide.md +1 -9
  52. package/indexers/bundles/context-code-indexer/templates/web-application-maintenance-guide.md +1 -9
  53. package/indexers/bundles/context-code-indexer/templates/web-application-page-task-guide.md +1 -9
  54. package/indexers/bundles/context-code-indexer/tests/fixtures/composers.json +8 -8
  55. package/indexers/bundles/context-code-indexer/tests/fixtures/profiles.json +240 -48
  56. package/indexers/bundles/context-markdown-indexer/SKILL.md +20 -24
  57. package/indexers/bundles/context-markdown-indexer/context-indexer.yaml +2 -2
  58. package/indexers/bundles/context-markdown-indexer/references/classification.md +28 -63
  59. package/indexers/bundles/context-markdown-indexer/references/editorial-policy.md +2 -2
  60. package/indexers/bundles/context-markdown-indexer/references/indexer.md +57 -113
  61. package/indexers/bundles/context-markdown-indexer/references/semantic-planning.md +48 -176
  62. package/indexers/bundles/context-markdown-indexer/references/structure-and-artifacts.md +33 -115
  63. package/indexers/bundles/context-markdown-indexer/tests/fixtures/anonymous.json +0 -6
  64. package/indexers/bundles/context-markdown-indexer/tests/fixtures/profiles.json +195 -39
  65. package/indexers/bundles/context-note-indexer/SKILL.md +20 -5
  66. package/indexers/bundles/context-note-indexer/context-indexer.yaml +2 -371
  67. package/indexers/bundles/context-note-indexer/references/classification.md +22 -49
  68. package/indexers/bundles/context-note-indexer/references/customization.md +19 -32
  69. package/indexers/bundles/context-note-indexer/references/extension-placement.md +13 -39
  70. package/indexers/bundles/context-note-indexer/references/indexer.md +6 -2
  71. package/indexers/bundles/context-note-indexer/references/updates-and-composition.md +26 -32
  72. package/indexers/bundles/context-note-indexer/references/writing.md +4 -4
  73. package/indexers/bundles/context-note-indexer/tests/fixtures/profiles.json +0 -54
  74. package/indexers/bundles/context-sessions-indexer/SKILL.md +20 -5
  75. package/indexers/bundles/context-sessions-indexer/context-indexer.yaml +2 -371
  76. package/indexers/bundles/context-sessions-indexer/references/classification.md +22 -50
  77. package/indexers/bundles/context-sessions-indexer/references/customization.md +19 -32
  78. package/indexers/bundles/context-sessions-indexer/references/extension-placement.md +12 -39
  79. package/indexers/bundles/context-sessions-indexer/references/indexer.md +6 -2
  80. package/indexers/bundles/context-sessions-indexer/references/updates-and-composition.md +26 -32
  81. package/indexers/bundles/context-sessions-indexer/references/writing.md +4 -4
  82. package/indexers/bundles/context-sessions-indexer/tests/fixtures/profiles.json +0 -54
  83. package/indexers/contracts/operator-contract.json +2 -4
  84. package/indexers/contracts/profile-contract.json +246 -940
  85. package/indexers/release-manifest.json +94 -98
  86. package/package.json +12 -12
  87. package/parserEntryWorker.js +2759 -16446
  88. package/plugins/VERSION +1 -1
  89. package/plugins/claude/.claude-plugin/plugin.json +1 -1
  90. package/plugins/claude/commands/context.md +6 -7
  91. package/plugins/claude/skills/context-indexer-create/SKILL.md +31 -70
  92. package/plugins/claude/skills/context-indexer-create/references/guides/indexer-skill-creation.md +107 -97
  93. package/plugins/codex/.codex-plugin/plugin.json +2 -2
  94. package/plugins/codex/skills/context/SKILL.md +6 -7
  95. package/plugins/codex/skills/context-indexer-create/SKILL.md +31 -70
  96. package/plugins/codex/skills/context-indexer-create/references/guides/indexer-skill-creation.md +107 -97
  97. package/plugins/cursor/.cursor-plugin/plugin.json +1 -1
  98. package/plugins/cursor/commands/c4a-context.md +6 -7
  99. package/plugins/cursor/skills/context-indexer-create/SKILL.md +31 -70
  100. package/plugins/cursor/skills/context-indexer-create/references/guides/indexer-skill-creation.md +107 -97
  101. package/plugins/skills/context/SKILL.md +6 -7
  102. package/plugins/skills/context-code-indexer/SKILL.md +19 -44
  103. package/plugins/skills/context-code-indexer/context-indexer.yaml +2 -19
  104. package/plugins/skills/context-code-indexer/references/composers/contracts-and-chains.md +7 -2
  105. package/plugins/skills/context-code-indexer/references/composers/cross-module-chain.md +7 -2
  106. package/plugins/skills/context-code-indexer/references/composers/development-and-delivery.md +7 -2
  107. package/plugins/skills/context-code-indexer/references/composers/event-flow.md +7 -2
  108. package/plugins/skills/context-code-indexer/references/composers/examples-and-documentation.md +7 -2
  109. package/plugins/skills/context-code-indexer/references/composers/persistence-boundary.md +7 -2
  110. package/plugins/skills/context-code-indexer/references/composers/protocol-boundary.md +8 -3
  111. package/plugins/skills/context-code-indexer/references/composers/public-contract.md +9 -4
  112. package/plugins/skills/context-code-indexer/references/indexer.md +137 -328
  113. package/plugins/skills/context-code-indexer/references/metrics.md +1 -1
  114. package/plugins/skills/context-code-indexer/templates/adapter-integration-maintenance-guide.md +1 -9
  115. package/plugins/skills/context-code-indexer/templates/adapter-integration-request-adaptation-guide.md +1 -9
  116. package/plugins/skills/context-code-indexer/templates/adapter-integration-usage-guide.md +1 -9
  117. package/plugins/skills/context-code-indexer/templates/api-service-maintenance-guide.md +1 -9
  118. package/plugins/skills/context-code-indexer/templates/api-service-public-api-reference.md +1 -9
  119. package/plugins/skills/context-code-indexer/templates/background-runtime-maintenance-guide.md +1 -9
  120. package/plugins/skills/context-code-indexer/templates/background-runtime-task-runtime-guide.md +1 -9
  121. package/plugins/skills/context-code-indexer/templates/cli-tool-maintenance-guide.md +1 -9
  122. package/plugins/skills/context-code-indexer/templates/cli-tool-public-api-reference.md +1 -9
  123. package/plugins/skills/context-code-indexer/templates/cli-tool-usage-guide.md +1 -9
  124. package/plugins/skills/context-code-indexer/templates/component-library-maintenance-guide.md +1 -9
  125. package/plugins/skills/context-code-indexer/templates/component-library-public-api-reference.md +1 -9
  126. package/plugins/skills/context-code-indexer/templates/component-library-usage-guide.md +1 -9
  127. package/plugins/skills/context-code-indexer/templates/contract-source-public-api-reference.md +1 -9
  128. package/plugins/skills/context-code-indexer/templates/contract-source-usage-guide.md +1 -9
  129. package/plugins/skills/context-code-indexer/templates/data-sync-reconciliation-maintenance-guide.md +1 -9
  130. package/plugins/skills/context-code-indexer/templates/data-sync-reconciliation-task-runtime-guide.md +1 -9
  131. package/plugins/skills/context-code-indexer/templates/data-sync-reconciliation.md +5 -6
  132. package/plugins/skills/context-code-indexer/templates/derived-generated-source-public-api-reference.md +1 -9
  133. package/plugins/skills/context-code-indexer/templates/derived-generated-source-usage-guide.md +1 -9
  134. package/plugins/skills/context-code-indexer/templates/domain-service-maintenance-guide.md +1 -9
  135. package/plugins/skills/context-code-indexer/templates/domain-service-public-api-reference.md +1 -9
  136. package/plugins/skills/context-code-indexer/templates/event-consumer-maintenance-guide.md +1 -9
  137. package/plugins/skills/context-code-indexer/templates/event-consumer-task-runtime-guide.md +1 -9
  138. package/plugins/skills/context-code-indexer/templates/gateway-facade-maintenance-guide.md +1 -9
  139. package/plugins/skills/context-code-indexer/templates/gateway-facade-public-api-reference.md +1 -9
  140. package/plugins/skills/context-code-indexer/templates/gateway-facade-request-adaptation-guide.md +1 -9
  141. package/plugins/skills/context-code-indexer/templates/monorepo-container-maintenance-guide.md +1 -9
  142. package/plugins/skills/context-code-indexer/templates/monorepo-container-usage-guide.md +1 -9
  143. package/plugins/skills/context-code-indexer/templates/plugin-extension-maintenance-guide.md +1 -9
  144. package/plugins/skills/context-code-indexer/templates/plugin-extension-public-api-reference.md +1 -9
  145. package/plugins/skills/context-code-indexer/templates/plugin-extension-usage-guide.md +1 -9
  146. package/plugins/skills/context-code-indexer/templates/sdk-library-maintenance-guide.md +1 -9
  147. package/plugins/skills/context-code-indexer/templates/sdk-library-public-api-reference.md +1 -9
  148. package/plugins/skills/context-code-indexer/templates/sdk-library-usage-guide.md +1 -9
  149. package/plugins/skills/context-code-indexer/templates/storage-repository-maintenance-guide.md +1 -9
  150. package/plugins/skills/context-code-indexer/templates/storage-repository-public-api-reference.md +1 -9
  151. package/plugins/skills/context-code-indexer/templates/web-application-federation-guide.md +1 -9
  152. package/plugins/skills/context-code-indexer/templates/web-application-maintenance-guide.md +1 -9
  153. package/plugins/skills/context-code-indexer/templates/web-application-page-task-guide.md +1 -9
  154. package/plugins/skills/context-code-indexer/tests/fixtures/composers.json +8 -8
  155. package/plugins/skills/context-code-indexer/tests/fixtures/profiles.json +240 -48
  156. package/plugins/skills/context-indexer-create/SKILL.md +31 -70
  157. package/plugins/skills/context-indexer-create/references/guides/indexer-skill-creation.md +107 -97
  158. package/plugins/skills/context-markdown-indexer/SKILL.md +20 -24
  159. package/plugins/skills/context-markdown-indexer/context-indexer.yaml +2 -2
  160. package/plugins/skills/context-markdown-indexer/references/classification.md +28 -63
  161. package/plugins/skills/context-markdown-indexer/references/editorial-policy.md +2 -2
  162. package/plugins/skills/context-markdown-indexer/references/indexer.md +57 -113
  163. package/plugins/skills/context-markdown-indexer/references/semantic-planning.md +48 -176
  164. package/plugins/skills/context-markdown-indexer/references/structure-and-artifacts.md +33 -115
  165. package/plugins/skills/context-markdown-indexer/tests/fixtures/anonymous.json +0 -6
  166. package/plugins/skills/context-markdown-indexer/tests/fixtures/profiles.json +195 -39
  167. package/plugins/skills/context-note-indexer/SKILL.md +20 -5
  168. package/plugins/skills/context-note-indexer/context-indexer.yaml +2 -371
  169. package/plugins/skills/context-note-indexer/references/classification.md +22 -49
  170. package/plugins/skills/context-note-indexer/references/customization.md +19 -32
  171. package/plugins/skills/context-note-indexer/references/extension-placement.md +13 -39
  172. package/plugins/skills/context-note-indexer/references/indexer.md +6 -2
  173. package/plugins/skills/context-note-indexer/references/updates-and-composition.md +26 -32
  174. package/plugins/skills/context-note-indexer/references/writing.md +4 -4
  175. package/plugins/skills/context-note-indexer/tests/fixtures/profiles.json +0 -54
  176. package/plugins/skills/context-sessions-indexer/SKILL.md +20 -5
  177. package/plugins/skills/context-sessions-indexer/context-indexer.yaml +2 -371
  178. package/plugins/skills/context-sessions-indexer/references/classification.md +22 -50
  179. package/plugins/skills/context-sessions-indexer/references/customization.md +19 -32
  180. package/plugins/skills/context-sessions-indexer/references/extension-placement.md +12 -39
  181. package/plugins/skills/context-sessions-indexer/references/indexer.md +6 -2
  182. package/plugins/skills/context-sessions-indexer/references/updates-and-composition.md +26 -32
  183. package/plugins/skills/context-sessions-indexer/references/writing.md +4 -4
  184. package/plugins/skills/context-sessions-indexer/tests/fixtures/profiles.json +0 -54
  185. package/providers/context/actions/approve-production-report.yaml +5 -0
  186. package/providers/context/actions/configure-production-requirements.yaml +5 -0
  187. package/providers/context/actions/prepare-production-stage.yaml +5 -0
  188. package/providers/context/actions/register-source-batch.yaml +1 -1
  189. package/providers/context/actions/run-indexer-lifecycle.yaml +4 -1
  190. package/providers/context/actions/work-production-stage.yaml +5 -0
  191. package/providers/context/codes.yaml +10 -7
  192. package/providers/context/graphs/indexer.yaml +127 -596
  193. package/providers/context/graphs/workspace.yaml +2 -37
  194. package/providers/context/manifest.json +106 -813
  195. package/providers/context/provider.yaml +1 -1
  196. package/providers/context/resources/contracts/indexer-provider-guide.yaml +2 -2
  197. package/providers/context/resources/diagnostics/verification.md +4 -6
  198. package/providers/context/resources/dialogue/source-boundary.md +5 -7
  199. package/providers/context/resources/manuals/guides/code-indexer-skill-authoring.md +84 -0
  200. package/providers/context/resources/manuals/guides/indexer-provider-and-customization.md +117 -0
  201. package/providers/context/resources/manuals/guides/knowledge-updates.md +35 -14
  202. package/providers/context/resources/manuals/guides/markdown-indexer-skill-authoring.md +65 -0
  203. package/providers/context/resources/manuals/reference/package-templates.md +39 -65
  204. package/providers/context/resources/manuals/reference/template-variables.md +2 -3
  205. package/providers/context/resources/procedures/approved-revision.md +28 -35
  206. package/providers/context/resources/procedures/knowledge-review.md +1 -1
  207. package/providers/context/resources/procedures/knowledge-updates.md +35 -14
  208. package/providers/context/resources/procedures/parallel-agent-batch.md +33 -134
  209. package/providers/context/resources/procedures/production-requirements.md +61 -0
  210. package/providers/context/resources/procedures/production-stage-files.md +57 -0
  211. package/providers/context/resources/procedures/source-boundary.md +8 -10
  212. package/providers/context/resources/procedures/task-recovery.md +15 -20
  213. package/providers/context/resources/procedures/work-start-report.md +91 -413
  214. package/providers/context/resources/templates/indexer-agent-worker.md +20 -61
  215. package/providers/context/resources/templates/work-start-report.md +43 -279
  216. package/providers/context/schemas/approved-revision-result.schema.json +61 -2
  217. package/providers/context/schemas/indexer-agent-step-result.schema.json +128 -2043
  218. package/providers/context/schemas/source-batch-input.schema.json +0 -14
  219. package/providers/context/skills/resolve-current-indexer-gate/SKILL.md +11 -50
  220. package/providers/context/skills/run-indexer-agent-step/SKILL.md +19 -425
  221. package/providers/context/skills/run-indexer-lifecycle/SKILL.md +28 -214
  222. package/providers/context/skills/work-production-stage/SKILL.md +35 -0
  223. package/indexers/bundles/context-markdown-indexer/tests/fixtures/migration-equivalence.json +0 -186
  224. package/plugins/claude/skills/context-indexer-create/references/guides/code-indexer-skill-authoring.md +0 -180
  225. package/plugins/claude/skills/context-indexer-create/references/guides/indexer-manifest-example.md +0 -103
  226. package/plugins/claude/skills/context-indexer-create/references/guides/indexer-provider-and-customization.md +0 -471
  227. package/plugins/claude/skills/context-indexer-create/references/guides/markdown-indexer-skill-authoring.md +0 -136
  228. package/plugins/claude/skills/context-indexer-create/references/guides/note.md +0 -37
  229. package/plugins/claude/skills/context-indexer-create/references/guides/sessions.md +0 -50
  230. package/plugins/claude/skills/context-indexer-create/references/reference/indexer-provider-protocol.md +0 -854
  231. package/plugins/codex/skills/context-indexer-create/references/guides/code-indexer-skill-authoring.md +0 -180
  232. package/plugins/codex/skills/context-indexer-create/references/guides/indexer-manifest-example.md +0 -103
  233. package/plugins/codex/skills/context-indexer-create/references/guides/indexer-provider-and-customization.md +0 -471
  234. package/plugins/codex/skills/context-indexer-create/references/guides/markdown-indexer-skill-authoring.md +0 -136
  235. package/plugins/codex/skills/context-indexer-create/references/guides/note.md +0 -37
  236. package/plugins/codex/skills/context-indexer-create/references/guides/sessions.md +0 -50
  237. package/plugins/codex/skills/context-indexer-create/references/reference/indexer-provider-protocol.md +0 -854
  238. package/plugins/cursor/skills/context-indexer-create/references/guides/code-indexer-skill-authoring.md +0 -180
  239. package/plugins/cursor/skills/context-indexer-create/references/guides/indexer-manifest-example.md +0 -103
  240. package/plugins/cursor/skills/context-indexer-create/references/guides/indexer-provider-and-customization.md +0 -471
  241. package/plugins/cursor/skills/context-indexer-create/references/guides/markdown-indexer-skill-authoring.md +0 -136
  242. package/plugins/cursor/skills/context-indexer-create/references/guides/note.md +0 -37
  243. package/plugins/cursor/skills/context-indexer-create/references/guides/sessions.md +0 -50
  244. package/plugins/cursor/skills/context-indexer-create/references/reference/indexer-provider-protocol.md +0 -854
  245. package/plugins/skills/context-indexer-create/references/guides/code-indexer-skill-authoring.md +0 -180
  246. package/plugins/skills/context-indexer-create/references/guides/indexer-manifest-example.md +0 -103
  247. package/plugins/skills/context-indexer-create/references/guides/indexer-provider-and-customization.md +0 -471
  248. package/plugins/skills/context-indexer-create/references/guides/markdown-indexer-skill-authoring.md +0 -136
  249. package/plugins/skills/context-indexer-create/references/guides/note.md +0 -37
  250. package/plugins/skills/context-indexer-create/references/guides/sessions.md +0 -50
  251. package/plugins/skills/context-indexer-create/references/reference/indexer-provider-protocol.md +0 -854
  252. package/plugins/skills/context-markdown-indexer/tests/fixtures/migration-equivalence.json +0 -186
  253. package/providers/context/actions/advance-current-indexer-lifecycle.yaml +0 -6
  254. package/providers/context/actions/apply-indexer-project.yaml +0 -7
  255. package/providers/context/actions/authorize-current-indexer-provider-program.yaml +0 -6
  256. package/providers/context/actions/authorize-indexer-dependencies.yaml +0 -7
  257. package/providers/context/actions/authorize-indexer-program-execution.yaml +0 -7
  258. package/providers/context/actions/compile-indexer-candidates.yaml +0 -8
  259. package/providers/context/actions/configure-community-indexer-fallback.yaml +0 -6
  260. package/providers/context/actions/configure-indexer-providers.yaml +0 -6
  261. package/providers/context/actions/confirm-index-requirement-workset.yaml +0 -8
  262. package/providers/context/actions/confirm-subject-reidentification.yaml +0 -8
  263. package/providers/context/actions/discover-markdown-indexer-providers.yaml +0 -6
  264. package/providers/context/actions/finalize-current-indexer-provider-selection.yaml +0 -5
  265. package/providers/context/actions/inspect-indexer-dependencies.yaml +0 -7
  266. package/providers/context/actions/inspect-indexer-program-execution.yaml +0 -7
  267. package/providers/context/actions/inspect-indexer-project-proposal.yaml +0 -7
  268. package/providers/context/actions/inspect-markdown-provider-capture.yaml +0 -7
  269. package/providers/context/actions/maintain-evidence.yaml +0 -6
  270. package/providers/context/actions/materialize-indexer-instructions.yaml +0 -7
  271. package/providers/context/actions/materialize-indexer-workset-view.yaml +0 -7
  272. package/providers/context/actions/observe-indexer-project.yaml +0 -7
  273. package/providers/context/actions/prepare-indexer-customization-project.yaml +0 -7
  274. package/providers/context/actions/propose-indexer-customization.yaml +0 -7
  275. package/providers/context/actions/propose-overlay-question-amendment.yaml +0 -7
  276. package/providers/context/actions/rebind-indexer-selection-to-requirement.yaml +0 -7
  277. package/providers/context/actions/report-indexer-incremental-impact.yaml +0 -8
  278. package/providers/context/actions/resolve-current-indexer-provider.yaml +0 -6
  279. package/providers/context/actions/route-index-requirement-confirmation.yaml +0 -8
  280. package/providers/context/actions/route-indexer-provider-selection.yaml +0 -7
  281. package/providers/context/actions/run-indexer-agent-step.yaml +0 -7
  282. package/providers/context/actions/run-indexer-post-author-composer.yaml +0 -7
  283. package/providers/context/actions/validate-indexer-contract-overlays.yaml +0 -7
  284. package/providers/context/actions/validate-indexer-customization.yaml +0 -7
  285. package/providers/context/actions/validate-indexer-selection-proposal.yaml +0 -7
  286. package/providers/context/actions/validate-main-index-run.yaml +0 -7
  287. package/providers/context/actions/validate-markdown-provider-selection.yaml +0 -7
  288. package/providers/context/actions/validate-subject-key-schemas.yaml +0 -8
  289. package/providers/context/resources/dialogue/evidence-maintenance.md +0 -26
  290. package/providers/context/resources/procedures/evidence-maintenance.md +0 -20
  291. package/providers/context/resources/views/authorized-indexer-workset-view.yaml +0 -15
  292. package/providers/context/resources/views/resolved-indexer-instructions.yaml +0 -21
  293. package/providers/context/schemas/evidence-maintenance-input.schema.json +0 -30
  294. package/providers/context/schemas/indexer-agent-step-input.schema.json +0 -80
  295. package/providers/context/schemas/indexer-authorized-workset-view.schema.json +0 -65
  296. package/providers/context/schemas/indexer-candidate-compile-input.schema.json +0 -57
  297. package/providers/context/schemas/indexer-candidate-compile-output.schema.json +0 -38
  298. package/providers/context/schemas/indexer-contract-overlay-validation-input.schema.json +0 -48
  299. package/providers/context/schemas/indexer-contract-overlay-validation-result.schema.json +0 -63
  300. package/providers/context/schemas/indexer-customization-project-preparation-result.schema.json +0 -44
  301. package/providers/context/schemas/indexer-customization-proposal-draft.schema.json +0 -83
  302. package/providers/context/schemas/indexer-customization-validation-result.schema.json +0 -36
  303. package/providers/context/schemas/indexer-dependency-authorization-input.schema.json +0 -71
  304. package/providers/context/schemas/indexer-dependency-authorization-result.schema.json +0 -138
  305. package/providers/context/schemas/indexer-incremental-impact-input.schema.json +0 -31
  306. package/providers/context/schemas/indexer-incremental-impact-output.schema.json +0 -52
  307. package/providers/context/schemas/indexer-main-lifecycle-input.schema.json +0 -180
  308. package/providers/context/schemas/indexer-main-lifecycle-output.schema.json +0 -194
  309. package/providers/context/schemas/indexer-markdown-provider-capture-input.schema.json +0 -17
  310. package/providers/context/schemas/indexer-markdown-provider-capture-output.schema.json +0 -54
  311. package/providers/context/schemas/indexer-markdown-provider-validation-input.schema.json +0 -34
  312. package/providers/context/schemas/indexer-markdown-provider-validation-output.schema.json +0 -75
  313. package/providers/context/schemas/indexer-materialize-request.schema.json +0 -49
  314. package/providers/context/schemas/indexer-materialized-resource.schema.json +0 -64
  315. package/providers/context/schemas/indexer-overlay-question-amendment.schema.json +0 -13
  316. package/providers/context/schemas/indexer-overlay-question-proposal-input.schema.json +0 -89
  317. package/providers/context/schemas/indexer-overlay-question-rebind-input.schema.json +0 -35
  318. package/providers/context/schemas/indexer-overlay-question-rebind-result.schema.json +0 -25
  319. package/providers/context/schemas/indexer-program-execution-authorization-input.schema.json +0 -145
  320. package/providers/context/schemas/indexer-program-execution-authorization-result.schema.json +0 -60
  321. package/providers/context/schemas/indexer-project-action-result.schema.json +0 -19
  322. package/providers/context/schemas/indexer-project-gate-input.schema.json +0 -100
  323. package/providers/context/schemas/indexer-project-observation-input.schema.json +0 -16
  324. package/providers/context/schemas/indexer-project-observation-result.schema.json +0 -42
  325. package/providers/context/schemas/indexer-provider-route-input.schema.json +0 -55
  326. package/providers/context/schemas/indexer-provider-route-report.schema.json +0 -188
  327. package/providers/context/schemas/indexer-requirement-confirmation-input.schema.json +0 -27
  328. package/providers/context/schemas/indexer-requirement-confirmation-output.schema.json +0 -24
  329. package/providers/context/schemas/indexer-selection-proposal-input.schema.json +0 -12
  330. package/providers/context/schemas/indexer-selection-proposal-validation.schema.json +0 -23
  331. package/providers/context/schemas/indexer-subject-reidentification-input.schema.json +0 -37
  332. package/providers/context/schemas/indexer-subject-reidentification-output.schema.json +0 -31
  333. package/providers/context/schemas/indexer-workset-view-materialization-request.schema.json +0 -35
  334. package/providers/context/skills/authorize-current-indexer-provider-program/SKILL.md +0 -20
  335. package/providers/context/skills/configure-indexer-providers/SKILL.md +0 -137
  336. package/providers/context/skills/configure-indexer-providers/references/guides/code-indexer-skill-authoring.md +0 -180
  337. package/providers/context/skills/configure-indexer-providers/references/guides/indexer-provider-and-customization.md +0 -471
  338. package/providers/context/skills/configure-indexer-providers/references/guides/markdown-indexer-skill-authoring.md +0 -136
  339. package/providers/context/skills/configure-indexer-providers/references/guides/note.md +0 -37
  340. package/providers/context/skills/configure-indexer-providers/references/guides/sessions.md +0 -50
  341. package/providers/context/skills/configure-indexer-providers/references/reference/indexer-provider-protocol.md +0 -854
  342. package/providers/context/skills/prepare-indexer-customization-project/SKILL.md +0 -31
  343. package/providers/context/skills/propose-indexer-customization/SKILL.md +0 -40
  344. package/providers/context/skills/resolve-current-indexer-provider/SKILL.md +0 -20
  345. package/providers/context/skills/run-indexer-post-author-composer/SKILL.md +0 -122
@@ -1,229 +1,43 @@
1
1
  ---
2
2
  name: context-run-indexer-lifecycle
3
- description: Continue the sole Context registry-and-Provider indexing route; use only when the workspace Graph selects route.indexer.lifecycle-required.
3
+ description: Continue Context investigation and article production only when selected by the workspace Route.
4
4
  metadata:
5
5
  agent-graph: path:../../provider.yaml
6
6
  agent-graph.graph: workspace
7
7
  agent-graph.entry: context
8
8
  ---
9
9
 
10
- # Run The Indexer Lifecycle
10
+ # Continue current knowledge work
11
11
 
12
- Before dependent bulk work, follow
13
- [the shared homogeneous-source review](../../resources/procedures/homogeneous-source-review.md).
14
- Reuse explicit group decisions; when a newly observed group needs user choice,
15
- present its concrete scope and pause before parsing or submitting dependent work.
12
+ Use the current Route's command, resources and file contract. This outer action
13
+ has no submission of its own. Reuse the user's settled reader purpose and source
14
+ scope; ask only about a missing decision that changes the work, including in
15
+ managed mode. Explain decisions in the user's conversation language.
16
16
 
17
+ Start with authorized code skeletons and document outlines. Read original text
18
+ selectively to decide article topics and writing batches, then more deeply for
19
+ the actual claims being written. Skill guidance is optional assistance with
20
+ discovery and writing, not a version-bound production credential.
17
21
 
18
- This Action continues the sole registry-and-Provider indexing route. Use the
19
- current Indexer subroute for semantic partitioning, structure review, authoring,
20
- composition, layout, Candidate compilation, and repair. Existing approved
21
- knowledge is an input to incremental planning, never a parallel authoring path.
22
+ Submit the lightweight plan, present the work-start report and wait for explicit
23
+ user feedback before writing. Use the report resources selected by the Route;
24
+ unchanged scope does not need another report merely because a batch ends.
22
25
 
23
- Read
24
- the `context.indexer.provider-guide` resource at the exact path in the current Route,
25
- then follow the root `context` Skill's Indexer instructions and the exact
26
- structured outcomes returned by `context indexer ...`. Start by forming and
27
- confirming requirements when `src/indexers.yaml` is absent or stale. When the
28
- Route returns `configuration`, edit the named project file and re-evaluate;
29
- do not submit a lifecycle Result or repeatedly run an unconfigured project. Otherwise
30
- continue the current registry selection, Provider resolution, execution,
31
- reconciliation, mechanical validation, layout, and Candidate compile subroute. The Indexer
32
- Graph is the authority for each substep. Never skip directly to compile and
33
- never synthesize a Provider Result or a default plan.
26
+ Write in the issued Agent directories and submit completed subsets using the
27
+ returned file contract. Reuse available shared materials and follow the next
28
+ directory or recovery command; do not query full status between ready batches.
29
+ Only receipts establish acceptance. Distinguish drafted, accepted, reviewed and
30
+ built articles when reporting progress; no slice count proves whole-task completion.
34
31
 
35
- A large `complete-current` reply may use `context.action.completion-summary/v1`.
36
- Read its `result_file` for complete task diagnostics and `next_route.file` for the
37
- exact next Route. Counts and shortened messages are only a summary; never resubmit
38
- committed tasks to obtain missing output. If `next_preparation` failed, use its
39
- recovery command; committed tasks remain saved. For a long submission use a UTF-8
40
- JSON/YAML file in `.tmp/` with `--input <file>` rather than feeding a long line into
41
- an interactive PTY. Keep the Route revision and completion command unchanged.
32
+ Use multiple workers only when the current host supports them and the invocation
33
+ declares that capability. The coordinator owns shared CLI writes and each worker
34
+ uses its assigned draft directory. Keep all process state in `.tmp`.
42
35
 
43
- After the registered source overview and representative reading, resolve only
44
- missing reader purpose and substantive scope before planning. Reuse the user's
45
- explicit request and existing goals; a missing `purpose` alone is not a reason
46
- to ask. Source-read authorization does not settle purpose, depth or version scope.
47
- Fully managed execution does not authorize choosing an unclear purpose. Ask and
48
- wait when these choices remain unresolved, without re-asking explicit decisions.
49
- Ask at most three questions in one round, without filling unused slots: combine
50
- reader and task into one question, then clarify substantive scope, then only a
51
- real tradeoff. Use the current conversation language and a shared human/Agent
52
- knowledge package by default; do not ask about reading audience or language.
53
- Recommend organization and templates, and test that recommendation with the
54
- first small delivery instead of asking abstract classification questions.
55
- Save the short conclusion as `purpose` in the existing requirement, with scopes
56
- and exclusions in their existing fields. When an agreed exclusion maps to exact
57
- repository files or directories, set `exclusions[].paths` to those repository-relative
58
- paths and retain its `scope` and `reason`. No wildcards are accepted. Context filters
59
- these before Parser/Partition work; an omitted `paths` means the whole stated scope.
60
- Do not translate a vague age or naming clue into an exclusion. A shared Indexer
61
- retains files still needed by another applicable requirement. Confirm the scope
62
- before bulk work: unnecessary inputs consume tokens and slow useful delivery. Do not store a questionnaire or add
63
- another confirmation after an explicit answer. Silence is not approval.
64
- During the authorized source overview and representative reading, actively assess
65
- which regions serve the reader's task, which only support it, and which appear
66
- unnecessary. Check available entrypoints, maintained guidance and lifecycle or
67
- version notices; deprecation is one possible scope concern, not the sole trigger.
68
- Names, age, file counts and generated status are clues, not exclusion rules.
69
- Propose concrete boundaries with reasons. Explain a material tradeoff once:
70
- including large irrelevant regions increases token use and processing time and
71
- can dilute useful knowledge with repetitive or conflicting pages. Do not claim
72
- measured savings or reduce requested coverage merely to make the run faster.
73
- Resolve meaningful unanswered scope choices with the user before dependent bulk
74
- work, including in managed mode, unless the user explicitly delegated that scope
75
- choice. General managed/no-review permission alone is not that delegation. Reuse
76
- an applicable inclusion/exclusion decision in later structure previews; do not
77
- turn the same decision into another human gate. Ask only about material new
78
- findings and describe the wait as a scope question, not a CLI failure. Carry out settled choices within existing
79
- authorization without asking per file. Use available counts with their unit and
80
- coverage, not an exhaustive scan just to obtain a number. If the relevant boundary
81
- is not yet checked, say what remains to inspect rather than declaring it absent.
82
- Preserve decisions in existing requirements and the report when applicable.
83
- Revisit only material new findings on continuation; do not restart accepted work
84
- or delete existing knowledge to implement a proposed scope reduction.
85
- Read authorized captured sources before raising material gaps; only unresolved
86
- core questions requiring new sources or human knowledge need another question.
36
+ For explicitly requested early delivery, use `context run --deliver --format json`
37
+ and follow Review, close and build. A successful delivery resumes remaining work;
38
+ `context run --resume-writing --format json` cancels the pause without discarding
39
+ drafts. Do not automatically request delivery after every subset submission.
87
40
 
88
- The first production task in a new workspace already has a work-start report from
89
- the source-boundary Gate. Reuse and update that report with the confirmed
90
- requirements, actual Provider choices and later task inventory before semantic
91
- planning. Do not replace it or create another report per Indexer or batch. For an
92
- existing workspace task that legitimately had no first-task report, follow the
93
- Route's `procedure.work-start-report` and `template.work-start-report` when the
94
- task is substantial or preserves material choices. The source-boundary Gate owns
95
- the initial user feedback; do not add a second report approval state here.
96
-
97
- When the current subroute is a Gate, follow `gate.resolution_action` rather
98
- than looking for a top-level `action`. Read its Skill and output schema, use its
99
- Route input, and submit the resulting value through the Route completion
100
- command. The Indexer Graph owns the Gate identity, authority, delegation and
101
- resolution Action; do not replace them with an inferred command or handler.
102
-
103
- Stop on the first Host permission, non-delegatable Gate, validation failure, or
104
- human decision. Once current Candidates have been compiled, return control to
105
- `context status --format json`; the workspace Graph will select Knowledge
106
- Review. This outer Action has no payload of its own and must never be submitted
107
- through `complete-current`. Context projects it to the one current Indexer
108
- subroute; follow that Route's command and output schema exactly. If project
109
- configuration was edited, re-run `context status --format json` to obtain the
110
- new revision instead of inventing a lifecycle continuation result.
111
-
112
- ## Readable delivery batches
113
-
114
- Planning can pause at a settled ready-theme wave while unfinished Partition
115
- entries remain saved. After the wave's structure/content Review, close and build,
116
- resume the fresh Route back to planning. Never call the workspace complete from
117
- one wave's Author or build count. The `planning` progress block includes the
118
- suspended remainder. Later material may improve an already delivered subject;
119
- retain its identity and approved prose instead of treating it as a new page.
120
-
121
-
122
- Follow the current Context Route through Review, close, and build as soon as a
123
- page delivery is ready. Automatic theme waves grow as 3, 7, 10, 20, 30, 30,
124
- then 50. A fully planned scope with fewer than 10 themes stays together. A final
125
- remainder may be smaller. Each wave completes Review/close/build before the
126
- next; repairs or build failures hold the next wave at the current step.
127
- Theme targets are not guaranteed output-page counts. For an explicit user
128
- preference, `context run --delivery-size 20 --format json` sets future waves
129
- for this task; `--delivery-size auto` restores automatic sizing. Existing active
130
- waves remain intact. Fixed sizes accept 1–50.
131
- Count pages, not Author calls or worksets. An accepted multi-page Result can
132
- span deliveries without resubmission. A successful package build is a delivery
133
- checkpoint, not evidence that every Author task is complete: evaluate the Route
134
- again and continue pending work. Never manually clear accepted runtime state.
135
-
136
- If the user explicitly asks to inspect the current work earlier, run
137
- `context run --deliver --format json`, then follow its current Route. This asks
138
- for an earlier checkpoint; it does not authorize content or bypass Review.
139
- The Author Route exposes this user-requested alternative under `delivery`,
140
- including accepted pages waiting and the actual waiting condition. It is not an
141
- automatic command to run on every batch. If Author work is already running,
142
- finish that current batch; the next lifecycle advance selects complete accepted
143
- pages before starting another batch. Follow any required Composer, Review,
144
- close and build steps, then resume the remaining Author work with its new Route.
145
- `delivery_boundary: false` only means no explicit reader-task boundary; it does
146
- not disable the automatic delivery-wave checkpoint. Never predict all tasks must
147
- finish from that flag. A user asking when pages will appear needs this
148
- explanation; asking to see them now authorizes the early-delivery request.
149
- Ordinary mode retains the current batch's approval Gate. Existing managed
150
- approval covers delegatable batch Gates without another mode questionnaire.
151
- A failed build retains the same current pages; fix the reported build problem
152
- and rerun the returned command before authoring another batch.
153
-
154
- At workflow completion, return to the Context entry and reconcile the user's
155
- remaining requests with delivered pages and registered maintenance targets.
156
- Composer tasks are derivation checks, not a list of queued page revisions.
157
- Empty proposals may finish an already delivered scope without another Review or
158
- build. Continue authorized, unregistered revisions through the normal entry;
159
- do not resubmit accepted Composer tasks or treat an empty queue as proof that
160
- every conversational request was completed.
161
-
162
- ## Continue the current handoff
163
-
164
- An `agent-required` handoff asks you to do the next task in this authorized
165
- conversation. Read the current Route, perform its task and follow its returned
166
- `next_route.file`; do not end after a successful small batch just because the
167
- CLI returned. Stop for a real missing decision, external blocker, completion or
168
- a Host limit, and state the exact continuation point. Reuse material whose
169
- content digest and source scope are unchanged and which is still available in
170
- your context; a new Route revision alone does not require reading it all again.
171
-
172
- `batch_budget` describes a transport batch, not a delivery or approval boundary.
173
- For Partition its input-byte scope excludes optional detail files and independent
174
- source exploration. It is not an actual token bill or the total eventual reading
175
- cost. Read linked details where the compact overview cannot resolve the task.
176
- The input bytes include shared instructions and deduplicated material; they are
177
- not tokens. A task cap, input/output budget, View budget or Provider boundary can
178
- limit the batch without indicating an error. Keep every task's authorized input
179
- and outcome complete.
180
-
181
- For generated APIs, `table-complete` permits omitting a declaration already
182
- expressed by the table, `component-wrapper` omits only the redundant wrapper,
183
- and `not-provided` means these facts contain no separate declaration. None
184
- proves that a page meets its purpose. Verify the actual changed rows and sources;
185
- resolve an explicit request for a complete declaration with the user instead
186
- of repeatedly repairing identical inputs or silently changing that request.
187
-
188
- ## User-facing progress
189
-
190
- Use CLI `progress.scopes` (or `indexerProgress.scopes` in status) as the
191
- single source for progress in conversation and reports. It separates:
192
- - `overall`: delivered pages and cumulative planning for the current Indexer run;
193
- - `wave`: writing tasks, observed pages and composition for the current wave;
194
- - `slice`: tasks in the currently active Route slice.
195
-
196
- Planning completed counts currently valid accepted tasks, not lifetime effort.
197
- When overall.planning.needs_recheck is nonzero, report “规划当前有效 X/Y 项;Z 项因任务绑定变化待复核”.
198
- Do not describe a lower valid count as lost pages or silently restarting from zero.
199
- The CLI reason identifies binding changes, not proof that source code changed;
200
- do not invent a more specific cause.
201
-
202
- Keep these scopes separate. A wave or pause target never replaces the overall
203
- scope. Preserve overall planning across Author, Composer and Review transitions.
204
- Use each counter's `unit`: task means 项/任务, page means 页. A writing task is
205
- not automatically one page. A null total means 总数待确定, not zero or the
206
- number of currently prepared tasks. Revisions can overlap delivered pages;
207
- do not add wave tasks to delivered pages to invent a page total.
208
-
209
- Use two bold progress lines. The first combines `overall` and a clearly labelled
210
- `wave` supplement; the second describes the current action, using `slice` counts
211
- when available. Internal wave/slice names need not appear in user-facing text. For example, with matching CLI values:
212
- **[总体进展:已交付 33 页,总页数待确定;规划完成 50/122 项;本轮写作完成 30/30 项]**
213
- **[当前进展:补充内容检查 0/8 项]**
214
-
215
- A completion receipt's `submitted_slice` describes the slice just submitted;
216
- `progress.scopes.slice` can already describe the next Route. Use the former when
217
- reporting submission success and the latter when announcing the next slice.
218
- Never combine their numerators and denominators. A null slice means no active
219
- Agent task slice, not that the workflow is complete. During Review/build, state
220
- the returned Route action briefly rather than inventing a slice ratio.
221
- Before counters exist or after task cleanup, describe the known stage and current
222
- action instead of repeatedly saying counters are unavailable. For example:
223
- **[总体进展:正在准备知识工作区]**
224
- **[当前进展:已读取启动清单,正在整理仓库与文档范围]**
225
- During review or packaging, name that action rather than a nonexistent slice.
226
- Do not turn the last wave into the overall scope or report delivery as zero.
227
- Continue authorized work after an update; only the agreed delivery stop or an
228
- actual unresolved blocker permits stopping. This format governs progress, not
229
- answers, review findings or necessary questions.
41
+ Continue authorized work until its actual delivery boundary or a real missing
42
+ decision, source, permission or host limit. After cleanup, a new request starts
43
+ fresh production from formal articles and sources, not an old process ledger.
@@ -0,0 +1,35 @@
1
+ ---
2
+ name: work-production-stage
3
+ description: Investigate or write within the current Context production directory, or present its work-start report, when selected by the workflow Route.
4
+ ---
5
+
6
+ Use only the current Route's stage and authorized materials. Explain decisions
7
+ in the user's conversation language.
8
+
9
+ For investigation, use the supplied directory and its submission schema. Start
10
+ with code skeletons and document outlines; selectively read original material
11
+ where needed to decide reader topics, source grouping and writing batches.
12
+ Indexer guidance discovers a skeleton, not a mandatory deep parse or a ledger
13
+ of every symbol. Declare relevant available skills and record planned uses;
14
+ do not collect skill hashes, versions or article ownership credentials.
15
+ Submit the plan before presenting the work-start report. Planning does not
16
+ authorize writing or approve the report.
17
+
18
+ At the work-start-report Gate, read the planned topics and selected report
19
+ resources, present the proposal, and wait for explicit user feedback. Managed
20
+ execution does not replace this confirmation. Submit approval only after that
21
+ feedback; requested changes belong in the plan before writing.
22
+
23
+ For writing, read the stage entry and issued batch directories. Choose how to
24
+ read and write within those tasks. Use child Agents only when the current host
25
+ supports them and the call explicitly enables multi-agent scheduling; otherwise
26
+ finish the one issued batch. Workers edit their assigned drafts, and one
27
+ coordinator submits completed task subsets.
28
+
29
+ Follow the file contract selected by the Route. Keep long content in the Agent
30
+ temporary directory, not CLI arguments. Use the returned task handles unchanged.
31
+ Follow the returned next directory or preparation-retry command after submission;
32
+ do not repeat accepted tasks or query full workspace status between ready batches.
33
+
34
+ Drafts, candidate receipts, skill choices and process state stay in `.tmp`.
35
+ A cleared temporary directory means a new production run, not recovery from Git.
@@ -1,186 +0,0 @@
1
- {
2
- "protocol": "context.indexer.markdown-migration-equivalence-fixture-set/v1",
3
- "anonymized": true,
4
- "cases": [
5
- {
6
- "id": "evidence-first",
7
- "rule_id": "evidence-first",
8
- "authority": "community-instructions",
9
- "source_shape": "A captured page has an operations-looking path but its body is a product acceptance specification.",
10
- "expected_decision": "classify-from-body-authority-and-reader-task",
11
- "forbidden_decision": "classify-from-path",
12
- "recovery": "Read the complete authorized evidence before returning a Section intent."
13
- },
14
- {
15
- "id": "complete-evidence-read",
16
- "rule_id": "complete-evidence-read",
17
- "authority": "community-instructions",
18
- "source_shape": "A long page preview shows only headings while the required evidence view still has unread pages.",
19
- "expected_decision": "continue-current-evidence-read",
20
- "forbidden_decision": "decide-from-heading-preview",
21
- "recovery": "Follow the current workset evidence continuation before authoring."
22
- },
23
- {
24
- "id": "mixed-section-intents",
25
- "rule_id": "mixed-section-intents",
26
- "authority": "community-instructions",
27
- "source_shape": "One document contains product behavior, technical design, and a recovery procedure.",
28
- "expected_decision": "classify-each-section",
29
- "forbidden_decision": "force-one-document-classification",
30
- "recovery": "Split along continuous reader-task boundaries and return registered intents."
31
- },
32
- {
33
- "id": "reuse-exact-subject",
34
- "rule_id": "reuse-exact-subject",
35
- "authority": "community-instructions",
36
- "source_shape": "The target-resolution view contains an exact current subject with matching evidence.",
37
- "expected_decision": "reuse-existing",
38
- "forbidden_decision": "create-title-alias",
39
- "recovery": "Use the supplied target identity and leave identity derivation to Context."
40
- },
41
- {
42
- "id": "independent-subject",
43
- "rule_id": "independent-subject",
44
- "authority": "community-instructions",
45
- "source_shape": "A separately named component has its own contract, lifecycle, and standalone reader questions.",
46
- "expected_decision": "create-independent",
47
- "forbidden_decision": "merge-into-unrelated-parent",
48
- "recovery": "Bind the independent decision to current evidence and a permitted SubjectKey schema."
49
- },
50
- {
51
- "id": "local-heading-stays-section",
52
- "rule_id": "local-heading-stays-section",
53
- "authority": "community-instructions",
54
- "source_shape": "A local heading contains one warning that only makes sense inside the parent guide.",
55
- "expected_decision": "retain-section-group",
56
- "forbidden_decision": "create-thin-subject",
57
- "recovery": "Keep the warning as a source-backed Section under the owning Artifact."
58
- },
59
- {
60
- "id": "navigation-only",
61
- "rule_id": "navigation-only",
62
- "authority": "community-instructions",
63
- "source_shape": "A page contains labels and unresolved links but no citable reader content.",
64
- "expected_decision": "request-material",
65
- "forbidden_decision": "publish-empty-artifact",
66
- "recovery": "Return the registered missing-material or unsupported disposition."
67
- },
68
- {
69
- "id": "density-only-guides-reading",
70
- "rule_id": "density-only-guides-reading",
71
- "authority": "community-instructions",
72
- "source_shape": "A fragmented note contains many short independent claims.",
73
- "expected_decision": "use-micro-reading",
74
- "forbidden_decision": "infer-quality-from-density",
75
- "recovery": "Keep evidence windows narrow, then apply the normal semantic gates."
76
- },
77
- {
78
- "id": "duplicate-same-boundary",
79
- "rule_id": "duplicate-same-boundary",
80
- "authority": "community-instructions",
81
- "source_shape": "Two paragraphs repeat the same claim for the same reader task and authority.",
82
- "expected_decision": "collapse-duplicate",
83
- "forbidden_decision": "publish-repeated-sections",
84
- "recovery": "Retain one canonical statement with its evidence boundary."
85
- },
86
- {
87
- "id": "conflicting-evidence",
88
- "rule_id": "conflicting-evidence",
89
- "authority": "community-instructions",
90
- "source_shape": "Two current sources disagree and the workset supplies no precedence.",
91
- "expected_decision": "keep-unresolved",
92
- "forbidden_decision": "choose-by-file-order",
93
- "recovery": "Return a material question or supported diagnostic instead of guessing."
94
- },
95
- {
96
- "id": "source-backed-relation",
97
- "rule_id": "source-backed-relation",
98
- "authority": "community-instructions",
99
- "source_shape": "A cited Section explicitly states that one authorized component consumes another component's output.",
100
- "expected_decision": "emit-owned-cited-claim",
101
- "forbidden_decision": "emit-endpoint-only-relation",
102
- "recovery": "Keep the claim only under the Section carrying relation evidence."
103
- },
104
- {
105
- "id": "source-authored-uncertainty",
106
- "rule_id": "source-authored-uncertainty",
107
- "authority": "community-instructions",
108
- "source_shape": "The source explicitly describes a possible cause, while the structured schema has no confidence field.",
109
- "expected_decision": "preserve-uncertainty-in-prose",
110
- "forbidden_decision": "invent-confidence-field",
111
- "recovery": "Keep Agent uncertainty unresolved and preserve only source-authored uncertainty."
112
- },
113
- {
114
- "id": "canonical-layout-identity",
115
- "rule_id": "canonical-layout-identity",
116
- "authority": "context-layout",
117
- "source_shape": "An accepted Result carries a current SubjectKey and Section projection intents.",
118
- "expected_decision": "derive-node-artifact-view-section-and-path",
119
- "forbidden_decision": "accept-hand-authored-path",
120
- "recovery": "Recompute the proposal from the current Result and contract."
121
- },
122
- {
123
- "id": "layout-collision",
124
- "rule_id": "layout-collision",
125
- "authority": "context-layout",
126
- "source_shape": "Two proposals claim the same Node, Artifact, Section, or output path.",
127
- "expected_decision": "reject-collision",
128
- "forbidden_decision": "resolve-with-alias",
129
- "recovery": "Return to current subject resolution instead of mutating a path."
130
- },
131
- {
132
- "id": "destructive-layout-change",
133
- "rule_id": "destructive-layout-change",
134
- "authority": "context-layout",
135
- "source_shape": "A current Artifact would be removed or moved after a new Result.",
136
- "expected_decision": "require-confirm-layout-change",
137
- "forbidden_decision": "apply-destructive-change-silently",
138
- "recovery": "Bind one human confirmation to the exact base and target digests."
139
- },
140
- {
141
- "id": "eligible-omission",
142
- "rule_id": "eligible-omission",
143
- "authority": "community-instructions",
144
- "source_shape": "A Section is only an unanswered placeholder and the analyzer supplies an eligible omission reason.",
145
- "expected_decision": "omit-with-exact-reason",
146
- "forbidden_decision": "publish-placeholder",
147
- "recovery": "Use the exact eligible omission reason and preserve lifecycle audit in Context."
148
- },
149
- {
150
- "id": "protected-knowledge-retention",
151
- "rule_id": "protected-knowledge-retention",
152
- "authority": "community-instructions",
153
- "source_shape": "A question has an evidence-backed answer and a deprecation names its replacement.",
154
- "expected_decision": "retain-knowledge",
155
- "forbidden_decision": "omit-by-label",
156
- "recovery": "Repair or reshape without removing the answer or replacement."
157
- },
158
- {
159
- "id": "missing-input",
160
- "rule_id": "missing-input",
161
- "authority": "community-instructions",
162
- "source_shape": "A Section contains an ambiguous owner or link purpose that current evidence cannot recover.",
163
- "expected_decision": "request-input",
164
- "forbidden_decision": "keep-to-avoid-pause",
165
- "recovery": "Ask one concise batched question after completing independent safe work."
166
- },
167
- {
168
- "id": "stale-recovery",
169
- "rule_id": "stale-recovery",
170
- "authority": "context-layout",
171
- "source_shape": "The workset, profile contract, or source digest changes before layout acceptance.",
172
- "expected_decision": "reject-stale-and-recompute",
173
- "forbidden_decision": "patch-digest-or-path",
174
- "recovery": "Resume from the fresh Context route and recompute the bound Result and layout."
175
- },
176
- {
177
- "id": "three-attempt-guidance",
178
- "rule_id": "three-attempt-guidance",
179
- "authority": "context-revision",
180
- "source_shape": "The same current quality problem survives three accepted revision attempts while other Sections pass.",
181
- "expected_decision": "request-aggregated-guidance",
182
- "forbidden_decision": "restart-passing-sections",
183
- "recovery": "Ask for content organization, source fidelity, or missing material once."
184
- }
185
- ]
186
- }