@c4a/context-cli 0.6.1-beta.1 → 0.6.1-beta.3

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 (233) hide show
  1. package/README.md +32 -7
  2. package/README.zh-CN.md +17 -3
  3. package/cli.js +57906 -40477
  4. package/docs/quickstart.md +16 -5
  5. package/package.json +3 -2
  6. package/plugins/README.md +55 -118
  7. package/plugins/README_CN.md +46 -102
  8. package/plugins/VERSION +1 -1
  9. package/plugins/claude/.claude-plugin/plugin.json +1 -1
  10. package/plugins/claude/commands/continue.md +42 -10
  11. package/plugins/claude/commands/init.md +20 -10
  12. package/plugins/codex/.codex-plugin/plugin.json +2 -2
  13. package/plugins/codex/skills/continue/SKILL.md +42 -11
  14. package/plugins/codex/skills/init/SKILL.md +20 -11
  15. package/plugins/cursor/.cursor-plugin/plugin.json +2 -3
  16. package/plugins/cursor/README.md +2 -2
  17. package/plugins/cursor/commands/context-continue.md +42 -10
  18. package/plugins/cursor/commands/context-init.md +20 -10
  19. package/plugins/skills/context-continue/SKILL.md +42 -11
  20. package/plugins/skills/context-init/SKILL.md +20 -11
  21. package/providers/context/actions/align-next.yaml +5 -0
  22. package/providers/context/actions/apply-managed-review.yaml +5 -0
  23. package/providers/context/actions/apply-structure-confirmation.yaml +5 -0
  24. package/providers/context/actions/build-next.yaml +5 -0
  25. package/providers/context/actions/capture-next.yaml +5 -0
  26. package/providers/context/actions/close-approved-knowledge.yaml +5 -0
  27. package/providers/context/actions/compile-next.yaml +5 -0
  28. package/providers/context/actions/configure-code-extraction.yaml +5 -0
  29. package/providers/context/actions/configure-document-capture.yaml +5 -0
  30. package/providers/context/actions/configure-package-output.yaml +5 -0
  31. package/providers/context/actions/configure-prose-lifecycle.yaml +5 -0
  32. package/providers/context/actions/ensure-repository-sources.yaml +5 -0
  33. package/providers/context/actions/extract-next.yaml +5 -0
  34. package/providers/context/actions/inspect-document-classification.yaml +5 -0
  35. package/providers/context/actions/inspect-review.yaml +5 -0
  36. package/providers/context/actions/inspect-structure.yaml +5 -0
  37. package/providers/context/actions/maintain-evidence.yaml +6 -0
  38. package/providers/context/actions/materialize-context-view.yaml +8 -0
  39. package/providers/context/actions/register-source-batch.yaml +7 -0
  40. package/providers/context/actions/repair-project-entry.yaml +5 -0
  41. package/providers/context/actions/repair-verification.yaml +5 -0
  42. package/providers/context/actions/repair-workspace-state.yaml +5 -0
  43. package/providers/context/codes.yaml +38 -0
  44. package/providers/context/graphs/workspace.yaml +469 -0
  45. package/providers/context/manifest.json +610 -0
  46. package/providers/context/provider.yaml +12 -0
  47. package/providers/context/resources/diagnostics/verification.md +21 -0
  48. package/providers/context/resources/diagnostics/workspace-state.md +27 -0
  49. package/providers/context/resources/dialogue/code-extraction.md +34 -0
  50. package/providers/context/resources/dialogue/document-capture.md +29 -0
  51. package/providers/context/resources/dialogue/document-classification.md +32 -0
  52. package/providers/context/resources/dialogue/evidence-maintenance.md +26 -0
  53. package/providers/context/resources/dialogue/human-gates.md +34 -0
  54. package/providers/context/resources/dialogue/knowledge-review.md +27 -0
  55. package/providers/context/resources/dialogue/package-output.md +32 -0
  56. package/providers/context/resources/dialogue/source-boundary.md +29 -0
  57. package/providers/context/resources/dialogue/structure-confirmation.md +44 -0
  58. package/providers/context/resources/manuals/guides/package-outputs.md +250 -0
  59. package/providers/context/resources/manuals/reference/package-templates.md +372 -0
  60. package/providers/context/resources/manuals/reference/project-api.md +664 -0
  61. package/providers/context/resources/manuals/reference/template-variables.md +247 -0
  62. package/providers/context/resources/procedures/close-and-build.md +19 -0
  63. package/providers/context/resources/procedures/code-extraction.md +30 -0
  64. package/providers/context/resources/procedures/document-capture.md +31 -0
  65. package/providers/context/resources/procedures/document-classification.md +19 -0
  66. package/providers/context/resources/procedures/evidence-maintenance.md +20 -0
  67. package/providers/context/resources/procedures/knowledge-review.md +24 -0
  68. package/providers/context/resources/procedures/package-output.md +31 -0
  69. package/providers/context/resources/procedures/project-configuration.md +21 -0
  70. package/providers/context/resources/procedures/prose-align.md +23 -0
  71. package/providers/context/resources/procedures/prose-compile.md +20 -0
  72. package/providers/context/resources/procedures/source-boundary.md +37 -0
  73. package/{plugins/codex/skills/init/references/internal-procedures/skill-source-scope/references/capture-source.md → providers/context/resources/procedures/source-capture-detailed.md} +28 -19
  74. package/providers/context/resources/procedures/verify-and-repair.md +19 -0
  75. package/{plugins/claude/skills/skill-prose-align/references/internal-procedures/structure-planning/references → providers/context/resources/semantic/align}/candidate-resolution.md +13 -0
  76. package/{plugins/claude/skills/skill-prose-align/references/internal-procedures/structure-planning/references → providers/context/resources/semantic/align}/density-profile.md +11 -0
  77. package/{plugins/codex/skills/init/references/internal-procedures/skill-prose-align/references/internal-procedures/structure-planning/references → providers/context/resources/semantic/align}/gates.md +13 -0
  78. package/{plugins/cursor/skills/skill-prose-align/references/internal-procedures → providers/context/resources/semantic/align}/structure-planning.md +58 -11
  79. package/providers/context/resources/semantic/compile/index.md +31 -0
  80. package/providers/context/resources/views/package-current.yaml +6 -0
  81. package/providers/context/resources/views/review-current.yaml +6 -0
  82. package/providers/context/resources/views/source-current.yaml +6 -0
  83. package/providers/context/resources/views/structure-current.yaml +6 -0
  84. package/providers/context/resources/views/verification-current.yaml +6 -0
  85. package/providers/context/resources/views/workspace-current.yaml +6 -0
  86. package/providers/context/schemas/evidence-maintenance-input.schema.json +30 -0
  87. package/providers/context/schemas/source-batch-input.schema.json +189 -0
  88. package/providers/context/scripts/render-context-view.mjs +21 -0
  89. package/plugins/claude/skills/skill-continue-workflow/SKILL.md +0 -235
  90. package/plugins/claude/skills/skill-init-workspace/SKILL.md +0 -74
  91. package/plugins/claude/skills/skill-package-output/SKILL.md +0 -180
  92. package/plugins/claude/skills/skill-prose-align/SKILL.md +0 -322
  93. package/plugins/claude/skills/skill-prose-align/references/internal-procedures/structure-planning/references/gates.md +0 -263
  94. package/plugins/claude/skills/skill-prose-align/references/internal-procedures/structure-planning.md +0 -282
  95. package/plugins/claude/skills/skill-prose-compile/SKILL.md +0 -287
  96. package/plugins/claude/skills/skill-prose-compile/references/internal-procedures/close-gate.md +0 -132
  97. package/plugins/claude/skills/skill-prose-compile/references/internal-procedures/compile-actions/references/action-domain-gates.md +0 -52
  98. package/plugins/claude/skills/skill-prose-compile/references/internal-procedures/compile-actions/references/notes.md +0 -48
  99. package/plugins/claude/skills/skill-prose-compile/references/internal-procedures/compile-actions/references/refresh-and-update.md +0 -85
  100. package/plugins/claude/skills/skill-prose-compile/references/internal-procedures/compile-actions/references/structural-challenges.md +0 -73
  101. package/plugins/claude/skills/skill-prose-compile/references/internal-procedures/compile-actions.md +0 -413
  102. package/plugins/claude/skills/skill-prose-compile/references/internal-procedures/compile-judgment.md +0 -123
  103. package/plugins/claude/skills/skill-prose-compile/references/internal-procedures/semantic-judgment/references/disposition-semantics.md +0 -81
  104. package/plugins/claude/skills/skill-prose-compile/references/internal-procedures/semantic-judgment/references/leakage-and-ownership.md +0 -55
  105. package/plugins/claude/skills/skill-prose-compile/references/internal-procedures/semantic-judgment/references/scope-review-and-omit.md +0 -93
  106. package/plugins/claude/skills/skill-prose-compile/references/internal-procedures/semantic-judgment/references/temporal-and-evidence.md +0 -79
  107. package/plugins/claude/skills/skill-prose-compile/references/internal-procedures/semantic-judgment/references/user-confirmation.md +0 -111
  108. package/plugins/claude/skills/skill-prose-compile/references/internal-procedures/semantic-judgment.md +0 -194
  109. package/plugins/claude/skills/skill-review-gate/SKILL.md +0 -138
  110. package/plugins/claude/skills/skill-source-scope/SKILL.md +0 -525
  111. package/plugins/claude/skills/skill-source-scope/references/capture-source.md +0 -201
  112. package/plugins/codex/skills/continue/references/internal-procedures/skill-continue-workflow.md +0 -235
  113. package/plugins/codex/skills/continue/references/internal-procedures/skill-init-workspace.md +0 -74
  114. package/plugins/codex/skills/continue/references/internal-procedures/skill-package-output.md +0 -180
  115. package/plugins/codex/skills/continue/references/internal-procedures/skill-prose-align/references/internal-procedures/structure-planning/references/candidate-resolution.md +0 -91
  116. package/plugins/codex/skills/continue/references/internal-procedures/skill-prose-align/references/internal-procedures/structure-planning/references/density-profile.md +0 -30
  117. package/plugins/codex/skills/continue/references/internal-procedures/skill-prose-align/references/internal-procedures/structure-planning/references/gates.md +0 -263
  118. package/plugins/codex/skills/continue/references/internal-procedures/skill-prose-align/references/internal-procedures/structure-planning.md +0 -282
  119. package/plugins/codex/skills/continue/references/internal-procedures/skill-prose-align.md +0 -322
  120. package/plugins/codex/skills/continue/references/internal-procedures/skill-prose-compile/references/internal-procedures/close-gate.md +0 -132
  121. package/plugins/codex/skills/continue/references/internal-procedures/skill-prose-compile/references/internal-procedures/compile-actions/references/action-domain-gates.md +0 -52
  122. package/plugins/codex/skills/continue/references/internal-procedures/skill-prose-compile/references/internal-procedures/compile-actions/references/notes.md +0 -48
  123. package/plugins/codex/skills/continue/references/internal-procedures/skill-prose-compile/references/internal-procedures/compile-actions/references/refresh-and-update.md +0 -85
  124. package/plugins/codex/skills/continue/references/internal-procedures/skill-prose-compile/references/internal-procedures/compile-actions/references/structural-challenges.md +0 -73
  125. package/plugins/codex/skills/continue/references/internal-procedures/skill-prose-compile/references/internal-procedures/compile-actions.md +0 -413
  126. package/plugins/codex/skills/continue/references/internal-procedures/skill-prose-compile/references/internal-procedures/compile-judgment.md +0 -123
  127. package/plugins/codex/skills/continue/references/internal-procedures/skill-prose-compile/references/internal-procedures/semantic-judgment/references/disposition-semantics.md +0 -81
  128. package/plugins/codex/skills/continue/references/internal-procedures/skill-prose-compile/references/internal-procedures/semantic-judgment/references/leakage-and-ownership.md +0 -55
  129. package/plugins/codex/skills/continue/references/internal-procedures/skill-prose-compile/references/internal-procedures/semantic-judgment/references/scope-review-and-omit.md +0 -93
  130. package/plugins/codex/skills/continue/references/internal-procedures/skill-prose-compile/references/internal-procedures/semantic-judgment/references/temporal-and-evidence.md +0 -79
  131. package/plugins/codex/skills/continue/references/internal-procedures/skill-prose-compile/references/internal-procedures/semantic-judgment/references/user-confirmation.md +0 -111
  132. package/plugins/codex/skills/continue/references/internal-procedures/skill-prose-compile/references/internal-procedures/semantic-judgment.md +0 -194
  133. package/plugins/codex/skills/continue/references/internal-procedures/skill-prose-compile.md +0 -287
  134. package/plugins/codex/skills/continue/references/internal-procedures/skill-review-gate.md +0 -138
  135. package/plugins/codex/skills/continue/references/internal-procedures/skill-source-scope/references/capture-source.md +0 -201
  136. package/plugins/codex/skills/continue/references/internal-procedures/skill-source-scope.md +0 -525
  137. package/plugins/codex/skills/init/references/internal-procedures/skill-continue-workflow.md +0 -235
  138. package/plugins/codex/skills/init/references/internal-procedures/skill-init-workspace.md +0 -74
  139. package/plugins/codex/skills/init/references/internal-procedures/skill-package-output.md +0 -180
  140. package/plugins/codex/skills/init/references/internal-procedures/skill-prose-align/references/internal-procedures/structure-planning/references/candidate-resolution.md +0 -91
  141. package/plugins/codex/skills/init/references/internal-procedures/skill-prose-align/references/internal-procedures/structure-planning/references/density-profile.md +0 -30
  142. package/plugins/codex/skills/init/references/internal-procedures/skill-prose-align/references/internal-procedures/structure-planning.md +0 -282
  143. package/plugins/codex/skills/init/references/internal-procedures/skill-prose-align.md +0 -322
  144. package/plugins/codex/skills/init/references/internal-procedures/skill-prose-compile/references/internal-procedures/close-gate.md +0 -132
  145. package/plugins/codex/skills/init/references/internal-procedures/skill-prose-compile/references/internal-procedures/compile-actions/references/action-domain-gates.md +0 -52
  146. package/plugins/codex/skills/init/references/internal-procedures/skill-prose-compile/references/internal-procedures/compile-actions/references/notes.md +0 -48
  147. package/plugins/codex/skills/init/references/internal-procedures/skill-prose-compile/references/internal-procedures/compile-actions/references/refresh-and-update.md +0 -85
  148. package/plugins/codex/skills/init/references/internal-procedures/skill-prose-compile/references/internal-procedures/compile-actions/references/structural-challenges.md +0 -73
  149. package/plugins/codex/skills/init/references/internal-procedures/skill-prose-compile/references/internal-procedures/compile-actions.md +0 -413
  150. package/plugins/codex/skills/init/references/internal-procedures/skill-prose-compile/references/internal-procedures/compile-judgment.md +0 -123
  151. package/plugins/codex/skills/init/references/internal-procedures/skill-prose-compile/references/internal-procedures/semantic-judgment/references/disposition-semantics.md +0 -81
  152. package/plugins/codex/skills/init/references/internal-procedures/skill-prose-compile/references/internal-procedures/semantic-judgment/references/leakage-and-ownership.md +0 -55
  153. package/plugins/codex/skills/init/references/internal-procedures/skill-prose-compile/references/internal-procedures/semantic-judgment/references/scope-review-and-omit.md +0 -93
  154. package/plugins/codex/skills/init/references/internal-procedures/skill-prose-compile/references/internal-procedures/semantic-judgment/references/temporal-and-evidence.md +0 -79
  155. package/plugins/codex/skills/init/references/internal-procedures/skill-prose-compile/references/internal-procedures/semantic-judgment/references/user-confirmation.md +0 -111
  156. package/plugins/codex/skills/init/references/internal-procedures/skill-prose-compile/references/internal-procedures/semantic-judgment.md +0 -194
  157. package/plugins/codex/skills/init/references/internal-procedures/skill-prose-compile.md +0 -287
  158. package/plugins/codex/skills/init/references/internal-procedures/skill-review-gate.md +0 -138
  159. package/plugins/codex/skills/init/references/internal-procedures/skill-source-scope.md +0 -525
  160. package/plugins/cursor/skills/skill-continue-workflow/SKILL.md +0 -235
  161. package/plugins/cursor/skills/skill-init-workspace/SKILL.md +0 -74
  162. package/plugins/cursor/skills/skill-package-output/SKILL.md +0 -180
  163. package/plugins/cursor/skills/skill-prose-align/SKILL.md +0 -322
  164. package/plugins/cursor/skills/skill-prose-align/references/internal-procedures/structure-planning/references/candidate-resolution.md +0 -91
  165. package/plugins/cursor/skills/skill-prose-align/references/internal-procedures/structure-planning/references/density-profile.md +0 -30
  166. package/plugins/cursor/skills/skill-prose-align/references/internal-procedures/structure-planning/references/gates.md +0 -263
  167. package/plugins/cursor/skills/skill-prose-compile/SKILL.md +0 -287
  168. package/plugins/cursor/skills/skill-prose-compile/references/internal-procedures/close-gate.md +0 -132
  169. package/plugins/cursor/skills/skill-prose-compile/references/internal-procedures/compile-actions/references/action-domain-gates.md +0 -52
  170. package/plugins/cursor/skills/skill-prose-compile/references/internal-procedures/compile-actions/references/notes.md +0 -48
  171. package/plugins/cursor/skills/skill-prose-compile/references/internal-procedures/compile-actions/references/refresh-and-update.md +0 -85
  172. package/plugins/cursor/skills/skill-prose-compile/references/internal-procedures/compile-actions/references/structural-challenges.md +0 -73
  173. package/plugins/cursor/skills/skill-prose-compile/references/internal-procedures/compile-actions.md +0 -413
  174. package/plugins/cursor/skills/skill-prose-compile/references/internal-procedures/compile-judgment.md +0 -123
  175. package/plugins/cursor/skills/skill-prose-compile/references/internal-procedures/semantic-judgment/references/disposition-semantics.md +0 -81
  176. package/plugins/cursor/skills/skill-prose-compile/references/internal-procedures/semantic-judgment/references/leakage-and-ownership.md +0 -55
  177. package/plugins/cursor/skills/skill-prose-compile/references/internal-procedures/semantic-judgment/references/scope-review-and-omit.md +0 -93
  178. package/plugins/cursor/skills/skill-prose-compile/references/internal-procedures/semantic-judgment/references/temporal-and-evidence.md +0 -79
  179. package/plugins/cursor/skills/skill-prose-compile/references/internal-procedures/semantic-judgment/references/user-confirmation.md +0 -111
  180. package/plugins/cursor/skills/skill-prose-compile/references/internal-procedures/semantic-judgment.md +0 -194
  181. package/plugins/cursor/skills/skill-review-gate/SKILL.md +0 -138
  182. package/plugins/cursor/skills/skill-source-scope/SKILL.md +0 -525
  183. package/plugins/cursor/skills/skill-source-scope/references/capture-source.md +0 -201
  184. package/plugins/skills/context-continue/references/internal-procedures/skill-continue-workflow.md +0 -235
  185. package/plugins/skills/context-continue/references/internal-procedures/skill-init-workspace.md +0 -74
  186. package/plugins/skills/context-continue/references/internal-procedures/skill-package-output.md +0 -180
  187. package/plugins/skills/context-continue/references/internal-procedures/skill-prose-align/references/internal-procedures/structure-planning/references/candidate-resolution.md +0 -91
  188. package/plugins/skills/context-continue/references/internal-procedures/skill-prose-align/references/internal-procedures/structure-planning/references/density-profile.md +0 -30
  189. package/plugins/skills/context-continue/references/internal-procedures/skill-prose-align/references/internal-procedures/structure-planning/references/gates.md +0 -263
  190. package/plugins/skills/context-continue/references/internal-procedures/skill-prose-align/references/internal-procedures/structure-planning.md +0 -282
  191. package/plugins/skills/context-continue/references/internal-procedures/skill-prose-align.md +0 -322
  192. package/plugins/skills/context-continue/references/internal-procedures/skill-prose-compile/references/internal-procedures/close-gate.md +0 -132
  193. package/plugins/skills/context-continue/references/internal-procedures/skill-prose-compile/references/internal-procedures/compile-actions/references/action-domain-gates.md +0 -52
  194. package/plugins/skills/context-continue/references/internal-procedures/skill-prose-compile/references/internal-procedures/compile-actions/references/notes.md +0 -48
  195. package/plugins/skills/context-continue/references/internal-procedures/skill-prose-compile/references/internal-procedures/compile-actions/references/refresh-and-update.md +0 -85
  196. package/plugins/skills/context-continue/references/internal-procedures/skill-prose-compile/references/internal-procedures/compile-actions/references/structural-challenges.md +0 -73
  197. package/plugins/skills/context-continue/references/internal-procedures/skill-prose-compile/references/internal-procedures/compile-actions.md +0 -413
  198. package/plugins/skills/context-continue/references/internal-procedures/skill-prose-compile/references/internal-procedures/compile-judgment.md +0 -123
  199. package/plugins/skills/context-continue/references/internal-procedures/skill-prose-compile/references/internal-procedures/semantic-judgment/references/disposition-semantics.md +0 -81
  200. package/plugins/skills/context-continue/references/internal-procedures/skill-prose-compile/references/internal-procedures/semantic-judgment/references/leakage-and-ownership.md +0 -55
  201. package/plugins/skills/context-continue/references/internal-procedures/skill-prose-compile/references/internal-procedures/semantic-judgment/references/scope-review-and-omit.md +0 -93
  202. package/plugins/skills/context-continue/references/internal-procedures/skill-prose-compile/references/internal-procedures/semantic-judgment/references/temporal-and-evidence.md +0 -79
  203. package/plugins/skills/context-continue/references/internal-procedures/skill-prose-compile/references/internal-procedures/semantic-judgment/references/user-confirmation.md +0 -111
  204. package/plugins/skills/context-continue/references/internal-procedures/skill-prose-compile/references/internal-procedures/semantic-judgment.md +0 -194
  205. package/plugins/skills/context-continue/references/internal-procedures/skill-prose-compile.md +0 -287
  206. package/plugins/skills/context-continue/references/internal-procedures/skill-review-gate.md +0 -138
  207. package/plugins/skills/context-continue/references/internal-procedures/skill-source-scope/references/capture-source.md +0 -201
  208. package/plugins/skills/context-continue/references/internal-procedures/skill-source-scope.md +0 -525
  209. package/plugins/skills/context-init/references/internal-procedures/skill-continue-workflow.md +0 -235
  210. package/plugins/skills/context-init/references/internal-procedures/skill-init-workspace.md +0 -74
  211. package/plugins/skills/context-init/references/internal-procedures/skill-package-output.md +0 -180
  212. package/plugins/skills/context-init/references/internal-procedures/skill-prose-align/references/internal-procedures/structure-planning/references/candidate-resolution.md +0 -91
  213. package/plugins/skills/context-init/references/internal-procedures/skill-prose-align/references/internal-procedures/structure-planning/references/density-profile.md +0 -30
  214. package/plugins/skills/context-init/references/internal-procedures/skill-prose-align/references/internal-procedures/structure-planning/references/gates.md +0 -263
  215. package/plugins/skills/context-init/references/internal-procedures/skill-prose-align/references/internal-procedures/structure-planning.md +0 -282
  216. package/plugins/skills/context-init/references/internal-procedures/skill-prose-align.md +0 -322
  217. package/plugins/skills/context-init/references/internal-procedures/skill-prose-compile/references/internal-procedures/close-gate.md +0 -132
  218. package/plugins/skills/context-init/references/internal-procedures/skill-prose-compile/references/internal-procedures/compile-actions/references/action-domain-gates.md +0 -52
  219. package/plugins/skills/context-init/references/internal-procedures/skill-prose-compile/references/internal-procedures/compile-actions/references/notes.md +0 -48
  220. package/plugins/skills/context-init/references/internal-procedures/skill-prose-compile/references/internal-procedures/compile-actions/references/refresh-and-update.md +0 -85
  221. package/plugins/skills/context-init/references/internal-procedures/skill-prose-compile/references/internal-procedures/compile-actions/references/structural-challenges.md +0 -73
  222. package/plugins/skills/context-init/references/internal-procedures/skill-prose-compile/references/internal-procedures/compile-actions.md +0 -413
  223. package/plugins/skills/context-init/references/internal-procedures/skill-prose-compile/references/internal-procedures/compile-judgment.md +0 -123
  224. package/plugins/skills/context-init/references/internal-procedures/skill-prose-compile/references/internal-procedures/semantic-judgment/references/disposition-semantics.md +0 -81
  225. package/plugins/skills/context-init/references/internal-procedures/skill-prose-compile/references/internal-procedures/semantic-judgment/references/leakage-and-ownership.md +0 -55
  226. package/plugins/skills/context-init/references/internal-procedures/skill-prose-compile/references/internal-procedures/semantic-judgment/references/scope-review-and-omit.md +0 -93
  227. package/plugins/skills/context-init/references/internal-procedures/skill-prose-compile/references/internal-procedures/semantic-judgment/references/temporal-and-evidence.md +0 -79
  228. package/plugins/skills/context-init/references/internal-procedures/skill-prose-compile/references/internal-procedures/semantic-judgment/references/user-confirmation.md +0 -111
  229. package/plugins/skills/context-init/references/internal-procedures/skill-prose-compile/references/internal-procedures/semantic-judgment.md +0 -194
  230. package/plugins/skills/context-init/references/internal-procedures/skill-prose-compile.md +0 -287
  231. package/plugins/skills/context-init/references/internal-procedures/skill-review-gate.md +0 -138
  232. package/plugins/skills/context-init/references/internal-procedures/skill-source-scope/references/capture-source.md +0 -201
  233. package/plugins/skills/context-init/references/internal-procedures/skill-source-scope.md +0 -525
@@ -13,33 +13,64 @@ Public Context entry for agents that expose skills instead of slash commands.
13
13
  - Public entry: `continue`
14
14
  - Host command names are installation-specific; use the command or skill surfaced by the current host instead of deriving a filesystem path from an example name.
15
15
  - CLI primitive prefix: `context ...`
16
- - Internal procedures live under `references/internal-procedures/`; read each referenced file in full before following that step.
17
16
 
18
17
  ---
19
18
 
20
19
  ## Workflow
21
20
 
22
- Use this as the conversational entry for an existing Context workspace. There is
23
- no `context continue` CLI primitive; the command runs lower-level `context ...`
24
- commands only when the workspace state requires them.
21
+ Use this as the conversational entry for an existing Context workspace. There
22
+ is no `context continue` CLI primitive. Start with:
23
+
24
+ ```bash
25
+ context status --format json
26
+ ```
27
+
28
+ Use `context status --managed --format json` only when the user explicitly
29
+ requested fully managed operation in this conversation. Never persist or reuse
30
+ that authority in another conversation. While the request remains active, use
31
+ `--managed` for every status evaluation; stop using it when the conversation
32
+ ends or the user revokes it.
25
33
 
26
34
  If the user is starting a new workspace or a new batch from a raw repository
27
35
  root, do not run `context status` first. Use the public Context init entry or
28
36
  `context init` to create the workspace, complete the init setup command, then
29
37
  return here from the initialized workspace.
30
38
 
31
- If `context status` reports `workspace-not-found` and points at a configured
32
- `context.workspaceDir`, do not keep working from the host repository root. Enter
33
- that workspace when it exists, or initialize it through the init workflow after
34
- confirming with the user.
39
+ For an explicitly managed conversation, the CLI can collapse consecutive
40
+ mechanical routes:
41
+
42
+ ```bash
43
+ context run --managed --until blocked-or-complete --format json
44
+ ```
45
+
46
+ Pass an additional `--authority` only when the user explicitly granted that
47
+ non-managed authority in this conversation. This loop executes only one
48
+ revision-bound command at a time and re-evaluates after every receipt. It stops
49
+ before read-only interpretation, project configuration, unresolved authority,
50
+ diagnostics, or a non-unique command plan. On stop, resume from the returned
51
+ `workflow.current`; do not derive a command from earlier steps.
35
52
 
36
53
  Language policy: explain, ask, confirm, and summarize in the user's current
37
54
  conversation language. Keep CLI commands, flags, paths, ids, status enum values,
38
55
  JSONL payload keys, `source_ref` values, and copied CLI output tokens unchanged.
39
56
 
40
- Use the procedure in `references/internal-procedures/skill-continue-workflow.md` end to end. It owns the
41
- status loop, safe mechanical next steps, source/scope gate, review gate, package
42
- gate, and final report rules.
57
+ Treat `workflow.current` as the current-step authority:
58
+
59
+ 1. Read every `resources.required` item. Read a `path` directly; for a resource
60
+ with `command`, execute that command and read the returned file.
61
+ 2. At a Gate, keep conditional context phase-local. An `inspection_action`
62
+ Skill or Schema is read only when performing that pre-decision inspection;
63
+ a `resolution_action` Skill or Schema is read only after the user confirms
64
+ the Gate. Neither replaces ordinary `resources.required`.
65
+ 3. Execute only `commands` returned by the Route, preserving revision and
66
+ authority flags exactly. A command marked `after-human-confirmation` must
67
+ wait for the current Gate decision.
68
+ 4. If `configuration` is present, edit only the named project file using the
69
+ selected resources as its contract.
70
+ 5. After every action or configuration change, run status again. The managed
71
+ `--until` loop performs this re-evaluation internally. A phase-local
72
+ `next_action` can continue that operation but never replaces the workspace
73
+ Route.
43
74
 
44
75
  Do not infer repo sources, extraction scope, review decisions, or package output
45
76
  choices from surrounding files. Do not call source-repo operations such as
@@ -13,22 +13,31 @@ Public Context entry for agents that expose skills instead of slash commands.
13
13
  - Public entry: `init`
14
14
  - Host command names are installation-specific; use the command or skill surfaced by the current host instead of deriving a filesystem path from an example name.
15
15
  - CLI primitive prefix: `context ...`
16
- - Internal procedures live under `references/internal-procedures/`; read each referenced file in full before following that step.
17
16
 
18
17
  ---
19
18
 
20
19
  ## Workflow
21
20
 
22
- Initialize a Context workspace with the global CLI, then continue only through
23
- safe mechanical setup steps until the first human decision gate.
21
+ Initialize a Context workspace with the global CLI, complete the returned setup
22
+ step, then hand control to the current workflow route.
24
23
 
25
- Language policy: explain, ask, confirm, and summarize in the user's current
26
- conversation language. Keep CLI commands, flags, file paths, package names,
27
- enum values, payload keys, and copied CLI output tokens unchanged.
24
+ Use the user's language for conversation. Keep command and payload tokens
25
+ unchanged.
28
26
 
29
- Use the procedure in `references/internal-procedures/skill-init-workspace.md` end to end. It owns
30
- the `context init` invocation, dependency install follow-up, generated
31
- `AGENTS.md` handoff, status handoff, and stop conditions.
27
+ Run `context init [project-dir] [--name <name>]` with only the arguments the
28
+ user supplied. Never substitute `.` when `project-dir` was omitted; the default
29
+ is `context/`. Use `--dev` only for an explicitly requested local-link test.
32
30
 
33
- Do not add extra project-local agent setup. Do not infer repo sources or
34
- extraction scope from the surrounding monorepo after setup.
31
+ If init reports `init-target-nonempty`, explain that existing files would share
32
+ the workspace root. Run the returned `--allow-nonempty` command only after
33
+ explicit confirmation.
34
+
35
+ Execute the returned setup command, enter the project root, and read its
36
+ generated `AGENTS.md`. Then run `context status --format json`, adding
37
+ `--managed` only for fully managed operation explicitly authorized in this
38
+ conversation. Treat `workflow.current` as authoritative: read its required
39
+ resources, execute only exact commands, honor unresolved human gates, and
40
+ reevaluate status after each action.
41
+
42
+ Do not add extra project-local agent setup or infer sources from the surrounding
43
+ monorepo.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "context",
3
3
  "displayName": "C4A Context",
4
- "version": "0.6.1-beta.1",
4
+ "version": "0.6.1-beta.3",
5
5
  "description": "Maintain a project-local knowledge workspace through init and next-step agent guidance.",
6
6
  "author": {
7
7
  "name": "Context4AI",
@@ -24,6 +24,5 @@
24
24
  "agent-skills",
25
25
  "citations"
26
26
  ],
27
- "commands": "./commands/",
28
- "skills": "./skills/"
27
+ "commands": "./commands/"
29
28
  }
@@ -6,8 +6,8 @@ Edit `packages/context-cli/plugin/` and rerun the build instead.
6
6
 
7
7
  Install shape:
8
8
 
9
- - Marketplace/GitHub plugin shape: this directory is a plugin root with `.cursor-plugin/plugin.json`, `commands/`, and `skills/`.
9
+ - Marketplace/GitHub plugin shape: this directory is a plugin root with `.cursor-plugin/plugin.json` and `commands/`.
10
10
  - User entries are under `commands/`; Cursor command files are prefixed as `context-*` to avoid global slash-command collisions.
11
11
  - Local plugin fallback: symlink or copy this directory to `~/.cursor/plugins/local/context/` only when Marketplace import is unavailable.
12
12
 
13
- Do not copy these files into `.cursor/skills/` as the main install path. Cursor Marketplace installs this plugin root directly.
13
+ Cursor Marketplace installs this plugin root directly.
@@ -10,27 +10,59 @@ Continue the Context workflow from the current workspace state.
10
10
 
11
11
  ## Workflow
12
12
 
13
- Use this as the conversational entry for an existing Context workspace. There is
14
- no `context continue` CLI primitive; the command runs lower-level `context ...`
15
- commands only when the workspace state requires them.
13
+ Use this as the conversational entry for an existing Context workspace. There
14
+ is no `context continue` CLI primitive. Start with:
15
+
16
+ ```bash
17
+ context status --format json
18
+ ```
19
+
20
+ Use `context status --managed --format json` only when the user explicitly
21
+ requested fully managed operation in this conversation. Never persist or reuse
22
+ that authority in another conversation. While the request remains active, use
23
+ `--managed` for every status evaluation; stop using it when the conversation
24
+ ends or the user revokes it.
16
25
 
17
26
  If the user is starting a new workspace or a new batch from a raw repository
18
27
  root, do not run `context status` first. Use the public Context init entry or
19
28
  `context init` to create the workspace, complete the init setup command, then
20
29
  return here from the initialized workspace.
21
30
 
22
- If `context status` reports `workspace-not-found` and points at a configured
23
- `context.workspaceDir`, do not keep working from the host repository root. Enter
24
- that workspace when it exists, or initialize it through the init workflow after
25
- confirming with the user.
31
+ For an explicitly managed conversation, the CLI can collapse consecutive
32
+ mechanical routes:
33
+
34
+ ```bash
35
+ context run --managed --until blocked-or-complete --format json
36
+ ```
37
+
38
+ Pass an additional `--authority` only when the user explicitly granted that
39
+ non-managed authority in this conversation. This loop executes only one
40
+ revision-bound command at a time and re-evaluates after every receipt. It stops
41
+ before read-only interpretation, project configuration, unresolved authority,
42
+ diagnostics, or a non-unique command plan. On stop, resume from the returned
43
+ `workflow.current`; do not derive a command from earlier steps.
26
44
 
27
45
  Language policy: explain, ask, confirm, and summarize in the user's current
28
46
  conversation language. Keep CLI commands, flags, paths, ids, status enum values,
29
47
  JSONL payload keys, `source_ref` values, and copied CLI output tokens unchanged.
30
48
 
31
- Use the procedure in `../skills/skill-continue-workflow/SKILL.md` end to end. It owns the
32
- status loop, safe mechanical next steps, source/scope gate, review gate, package
33
- gate, and final report rules.
49
+ Treat `workflow.current` as the current-step authority:
50
+
51
+ 1. Read every `resources.required` item. Read a `path` directly; for a resource
52
+ with `command`, execute that command and read the returned file.
53
+ 2. At a Gate, keep conditional context phase-local. An `inspection_action`
54
+ Skill or Schema is read only when performing that pre-decision inspection;
55
+ a `resolution_action` Skill or Schema is read only after the user confirms
56
+ the Gate. Neither replaces ordinary `resources.required`.
57
+ 3. Execute only `commands` returned by the Route, preserving revision and
58
+ authority flags exactly. A command marked `after-human-confirmation` must
59
+ wait for the current Gate decision.
60
+ 4. If `configuration` is present, edit only the named project file using the
61
+ selected resources as its contract.
62
+ 5. After every action or configuration change, run status again. The managed
63
+ `--until` loop performs this re-evaluation internally. A phase-local
64
+ `next_action` can continue that operation but never replaces the workspace
65
+ Route.
34
66
 
35
67
  Do not infer repo sources, extraction scope, review decisions, or package output
36
68
  choices from surrounding files. Do not call source-repo operations such as
@@ -10,16 +10,26 @@ Initialize a Context knowledge workspace.
10
10
 
11
11
  ## Workflow
12
12
 
13
- Initialize a Context workspace with the global CLI, then continue only through
14
- safe mechanical setup steps until the first human decision gate.
13
+ Initialize a Context workspace with the global CLI, complete the returned setup
14
+ step, then hand control to the current workflow route.
15
15
 
16
- Language policy: explain, ask, confirm, and summarize in the user's current
17
- conversation language. Keep CLI commands, flags, file paths, package names,
18
- enum values, payload keys, and copied CLI output tokens unchanged.
16
+ Use the user's language for conversation. Keep command and payload tokens
17
+ unchanged.
19
18
 
20
- Use the procedure in `../skills/skill-init-workspace/SKILL.md` end to end. It owns
21
- the `context init` invocation, dependency install follow-up, generated
22
- `AGENTS.md` handoff, status handoff, and stop conditions.
19
+ Run `context init [project-dir] [--name <name>]` with only the arguments the
20
+ user supplied. Never substitute `.` when `project-dir` was omitted; the default
21
+ is `context/`. Use `--dev` only for an explicitly requested local-link test.
23
22
 
24
- Do not add extra project-local agent setup. Do not infer repo sources or
25
- extraction scope from the surrounding monorepo after setup.
23
+ If init reports `init-target-nonempty`, explain that existing files would share
24
+ the workspace root. Run the returned `--allow-nonempty` command only after
25
+ explicit confirmation.
26
+
27
+ Execute the returned setup command, enter the project root, and read its
28
+ generated `AGENTS.md`. Then run `context status --format json`, adding
29
+ `--managed` only for fully managed operation explicitly authorized in this
30
+ conversation. Treat `workflow.current` as authoritative: read its required
31
+ resources, execute only exact commands, honor unresolved human gates, and
32
+ reevaluate status after each action.
33
+
34
+ Do not add extra project-local agent setup or infer sources from the surrounding
35
+ monorepo.
@@ -13,33 +13,64 @@ Public Context entry for agents that expose skills instead of slash commands.
13
13
  - Public entry: `context-continue`
14
14
  - Host command names are installation-specific; use the command or skill surfaced by the current host instead of deriving a filesystem path from an example name.
15
15
  - CLI primitive prefix: `context ...`
16
- - Internal procedures live under `references/internal-procedures/`; read each referenced file in full before following that step.
17
16
 
18
17
  ---
19
18
 
20
19
  ## Workflow
21
20
 
22
- Use this as the conversational entry for an existing Context workspace. There is
23
- no `context continue` CLI primitive; the command runs lower-level `context ...`
24
- commands only when the workspace state requires them.
21
+ Use this as the conversational entry for an existing Context workspace. There
22
+ is no `context continue` CLI primitive. Start with:
23
+
24
+ ```bash
25
+ context status --format json
26
+ ```
27
+
28
+ Use `context status --managed --format json` only when the user explicitly
29
+ requested fully managed operation in this conversation. Never persist or reuse
30
+ that authority in another conversation. While the request remains active, use
31
+ `--managed` for every status evaluation; stop using it when the conversation
32
+ ends or the user revokes it.
25
33
 
26
34
  If the user is starting a new workspace or a new batch from a raw repository
27
35
  root, do not run `context status` first. Use the public Context init entry or
28
36
  `context init` to create the workspace, complete the init setup command, then
29
37
  return here from the initialized workspace.
30
38
 
31
- If `context status` reports `workspace-not-found` and points at a configured
32
- `context.workspaceDir`, do not keep working from the host repository root. Enter
33
- that workspace when it exists, or initialize it through the init workflow after
34
- confirming with the user.
39
+ For an explicitly managed conversation, the CLI can collapse consecutive
40
+ mechanical routes:
41
+
42
+ ```bash
43
+ context run --managed --until blocked-or-complete --format json
44
+ ```
45
+
46
+ Pass an additional `--authority` only when the user explicitly granted that
47
+ non-managed authority in this conversation. This loop executes only one
48
+ revision-bound command at a time and re-evaluates after every receipt. It stops
49
+ before read-only interpretation, project configuration, unresolved authority,
50
+ diagnostics, or a non-unique command plan. On stop, resume from the returned
51
+ `workflow.current`; do not derive a command from earlier steps.
35
52
 
36
53
  Language policy: explain, ask, confirm, and summarize in the user's current
37
54
  conversation language. Keep CLI commands, flags, paths, ids, status enum values,
38
55
  JSONL payload keys, `source_ref` values, and copied CLI output tokens unchanged.
39
56
 
40
- Use the procedure in `references/internal-procedures/skill-continue-workflow.md` end to end. It owns the
41
- status loop, safe mechanical next steps, source/scope gate, review gate, package
42
- gate, and final report rules.
57
+ Treat `workflow.current` as the current-step authority:
58
+
59
+ 1. Read every `resources.required` item. Read a `path` directly; for a resource
60
+ with `command`, execute that command and read the returned file.
61
+ 2. At a Gate, keep conditional context phase-local. An `inspection_action`
62
+ Skill or Schema is read only when performing that pre-decision inspection;
63
+ a `resolution_action` Skill or Schema is read only after the user confirms
64
+ the Gate. Neither replaces ordinary `resources.required`.
65
+ 3. Execute only `commands` returned by the Route, preserving revision and
66
+ authority flags exactly. A command marked `after-human-confirmation` must
67
+ wait for the current Gate decision.
68
+ 4. If `configuration` is present, edit only the named project file using the
69
+ selected resources as its contract.
70
+ 5. After every action or configuration change, run status again. The managed
71
+ `--until` loop performs this re-evaluation internally. A phase-local
72
+ `next_action` can continue that operation but never replaces the workspace
73
+ Route.
43
74
 
44
75
  Do not infer repo sources, extraction scope, review decisions, or package output
45
76
  choices from surrounding files. Do not call source-repo operations such as
@@ -13,22 +13,31 @@ Public Context entry for agents that expose skills instead of slash commands.
13
13
  - Public entry: `context-init`
14
14
  - Host command names are installation-specific; use the command or skill surfaced by the current host instead of deriving a filesystem path from an example name.
15
15
  - CLI primitive prefix: `context ...`
16
- - Internal procedures live under `references/internal-procedures/`; read each referenced file in full before following that step.
17
16
 
18
17
  ---
19
18
 
20
19
  ## Workflow
21
20
 
22
- Initialize a Context workspace with the global CLI, then continue only through
23
- safe mechanical setup steps until the first human decision gate.
21
+ Initialize a Context workspace with the global CLI, complete the returned setup
22
+ step, then hand control to the current workflow route.
24
23
 
25
- Language policy: explain, ask, confirm, and summarize in the user's current
26
- conversation language. Keep CLI commands, flags, file paths, package names,
27
- enum values, payload keys, and copied CLI output tokens unchanged.
24
+ Use the user's language for conversation. Keep command and payload tokens
25
+ unchanged.
28
26
 
29
- Use the procedure in `references/internal-procedures/skill-init-workspace.md` end to end. It owns
30
- the `context init` invocation, dependency install follow-up, generated
31
- `AGENTS.md` handoff, status handoff, and stop conditions.
27
+ Run `context init [project-dir] [--name <name>]` with only the arguments the
28
+ user supplied. Never substitute `.` when `project-dir` was omitted; the default
29
+ is `context/`. Use `--dev` only for an explicitly requested local-link test.
32
30
 
33
- Do not add extra project-local agent setup. Do not infer repo sources or
34
- extraction scope from the surrounding monorepo after setup.
31
+ If init reports `init-target-nonempty`, explain that existing files would share
32
+ the workspace root. Run the returned `--allow-nonempty` command only after
33
+ explicit confirmation.
34
+
35
+ Execute the returned setup command, enter the project root, and read its
36
+ generated `AGENTS.md`. Then run `context status --format json`, adding
37
+ `--managed` only for fully managed operation explicitly authorized in this
38
+ conversation. Treat `workflow.current` as authoritative: read its required
39
+ resources, execute only exact commands, honor unresolved human gates, and
40
+ reevaluate status after each action.
41
+
42
+ Do not add extra project-local agent setup or infer sources from the surrounding
43
+ monorepo.
@@ -0,0 +1,5 @@
1
+ schema: agent-graph.action.v1
2
+ id: align-next
3
+ runner: host
4
+ effect: write
5
+ handler: context.align.next
@@ -0,0 +1,5 @@
1
+ schema: agent-graph.action.v1
2
+ id: apply-managed-review
3
+ runner: host
4
+ effect: write
5
+ handler: context.review.approve-current
@@ -0,0 +1,5 @@
1
+ schema: agent-graph.action.v1
2
+ id: apply-structure-confirmation
3
+ runner: host
4
+ effect: write
5
+ handler: context.structure.confirm
@@ -0,0 +1,5 @@
1
+ schema: agent-graph.action.v1
2
+ id: build-next
3
+ runner: command
4
+ effect: write
5
+ command: context build --format json
@@ -0,0 +1,5 @@
1
+ schema: agent-graph.action.v1
2
+ id: capture-next
3
+ runner: host
4
+ effect: external
5
+ handler: context.capture.next
@@ -0,0 +1,5 @@
1
+ schema: agent-graph.action.v1
2
+ id: close-approved-knowledge
3
+ runner: command
4
+ effect: write
5
+ command: context close --format json
@@ -0,0 +1,5 @@
1
+ schema: agent-graph.action.v1
2
+ id: compile-next
3
+ runner: host
4
+ effect: write
5
+ handler: context.compile.next
@@ -0,0 +1,5 @@
1
+ schema: agent-graph.action.v1
2
+ id: configure-code-extraction
3
+ runner: host
4
+ effect: write
5
+ handler: context.project.configure-extraction
@@ -0,0 +1,5 @@
1
+ schema: agent-graph.action.v1
2
+ id: configure-document-capture
3
+ runner: host
4
+ effect: write
5
+ handler: context.project.configure-capture
@@ -0,0 +1,5 @@
1
+ schema: agent-graph.action.v1
2
+ id: configure-package-output
3
+ runner: host
4
+ effect: write
5
+ handler: context.project.configure-package
@@ -0,0 +1,5 @@
1
+ schema: agent-graph.action.v1
2
+ id: configure-prose-lifecycle
3
+ runner: host
4
+ effect: write
5
+ handler: context.project.configure-prose
@@ -0,0 +1,5 @@
1
+ schema: agent-graph.action.v1
2
+ id: ensure-repository-sources
3
+ runner: command
4
+ effect: external
5
+ command: context source ensure --format json
@@ -0,0 +1,5 @@
1
+ schema: agent-graph.action.v1
2
+ id: extract-next
3
+ runner: host
4
+ effect: write
5
+ handler: context.extract.next
@@ -0,0 +1,5 @@
1
+ schema: agent-graph.action.v1
2
+ id: inspect-document-classification
3
+ runner: host
4
+ effect: read
5
+ handler: context.document.inspect-classification
@@ -0,0 +1,5 @@
1
+ schema: agent-graph.action.v1
2
+ id: inspect-review
3
+ runner: host
4
+ effect: read
5
+ handler: context.review.inspect-current
@@ -0,0 +1,5 @@
1
+ schema: agent-graph.action.v1
2
+ id: inspect-structure
3
+ runner: host
4
+ effect: read
5
+ handler: context.structure.inspect
@@ -0,0 +1,6 @@
1
+ schema: agent-graph.action.v1
2
+ id: maintain-evidence
3
+ runner: command
4
+ effect: write
5
+ command: context review maintain --input - --format json
6
+ inputSchema: schemas/evidence-maintenance-input.schema.json
@@ -0,0 +1,8 @@
1
+ schema: agent-graph.action.v1
2
+ id: materialize-context-view
3
+ description: Emit a Context-owned, revision-bound Markdown view supplied by the host adapter.
4
+ runner: script
5
+ effect: read
6
+ entry: scripts/render-context-view.mjs
7
+ runtime: node
8
+ cwd: workspace
@@ -0,0 +1,7 @@
1
+ schema: agent-graph.action.v1
2
+ id: register-source-batch
3
+ description: Register the source batch explicitly confirmed in the current conversation.
4
+ runner: command
5
+ effect: write
6
+ command: context source add batch --input - --format json
7
+ inputSchema: schemas/source-batch-input.schema.json
@@ -0,0 +1,5 @@
1
+ schema: agent-graph.action.v1
2
+ id: repair-project-entry
3
+ runner: host
4
+ effect: write
5
+ handler: context.project.repair-entry
@@ -0,0 +1,5 @@
1
+ schema: agent-graph.action.v1
2
+ id: repair-verification
3
+ runner: command
4
+ effect: read
5
+ command: context verify --format json
@@ -0,0 +1,5 @@
1
+ schema: agent-graph.action.v1
2
+ id: repair-workspace-state
3
+ runner: host
4
+ effect: read
5
+ handler: context.workspace.inspect-diagnostics
@@ -0,0 +1,38 @@
1
+ schema: agent-graph.code-catalog.v1
2
+ codes:
3
+ - { code: diagnostic.project-entry-invalid, kind: diagnostic, severity: error, summary: The Context project entry cannot be loaded., document: resources/diagnostics/workspace-state.md }
4
+ - { code: diagnostic.workspace-state-invalid, kind: diagnostic, severity: error, summary: Context cannot establish valid lifecycle facts for the workspace., document: resources/diagnostics/workspace-state.md }
5
+ - { code: diagnostic.structure-snapshot-invalid, kind: diagnostic, severity: error, summary: An active source-bound structure snapshot is invalid., document: resources/diagnostics/workspace-state.md }
6
+ - { code: diagnostic.phase-source-unresolved, kind: diagnostic, severity: error, summary: A document lifecycle phase cannot resolve its canonical source., document: resources/diagnostics/workspace-state.md }
7
+ - { code: diagnostic.structure-route-unresolved, kind: diagnostic, severity: error, summary: A staged structure cannot resolve to one source and collection lifecycle., document: resources/diagnostics/workspace-state.md }
8
+ - { code: diagnostic.compile-route-ambiguous, kind: diagnostic, severity: error, summary: More than one compile lifecycle owns the same source and collection., document: resources/diagnostics/workspace-state.md }
9
+ - { code: diagnostic.structure-snapshot-missing, kind: diagnostic, severity: error, summary: A compile batch references a missing confirmed structure snapshot., document: resources/diagnostics/workspace-state.md }
10
+ - { code: diagnostic.verify-failed, kind: diagnostic, severity: error, summary: Verification found one or more blocking findings., document: resources/diagnostics/verification.md }
11
+ - { code: diagnostic.evidence-degraded, kind: diagnostic, severity: warning, summary: Approved knowledge has evidence that cannot currently be rechecked., document: resources/diagnostics/verification.md }
12
+ - { code: diagnostic.evidence-stale, kind: diagnostic, severity: warning, summary: Approved knowledge evidence is stale against its registered source., document: resources/diagnostics/verification.md }
13
+ - { code: diagnostic.evidence-orphaned, kind: diagnostic, severity: warning, summary: Approved knowledge no longer resolves to registered source evidence., document: resources/diagnostics/verification.md }
14
+ - { code: route.workspace.project-entry-invalid, kind: route-reason, summary: Repair the Context project entry before continuing., document: resources/procedures/project-configuration.md }
15
+ - { code: route.workspace.state-invalid, kind: route-reason, summary: Inspect and repair the invalid workspace facts., document: resources/diagnostics/workspace-state.md }
16
+ - { code: route.verify.failed, kind: route-reason, summary: Resolve blocking verification findings before other lifecycle writes., document: resources/procedures/verify-and-repair.md }
17
+ - { code: route.evidence.decision-required, kind: route-reason, summary: A source-evidence change needs an explicit maintenance decision., document: resources/procedures/evidence-maintenance.md }
18
+ - { code: route.evidence.maintenance-required, kind: route-reason, summary: Apply the selected evidence-maintenance action., document: resources/procedures/evidence-maintenance.md }
19
+ - { code: route.source.boundary-required, kind: route-reason, summary: No knowledge source boundary has been registered., document: resources/procedures/source-boundary.md }
20
+ - { code: route.source.repository-not-ready, kind: route-reason, summary: A registered repository source is not ready locally., document: resources/procedures/source-boundary.md }
21
+ - { code: route.capture.configuration-required, kind: route-reason, summary: Registered document sources are missing capture declarations., document: resources/procedures/project-configuration.md }
22
+ - { code: route.capture.permission-required, kind: route-reason, summary: External document capture requires source-read permission., document: resources/procedures/document-capture.md }
23
+ - { code: route.capture.pending-target, kind: route-reason, summary: Capture the next declared document target., document: resources/procedures/document-capture.md }
24
+ - { code: route.extract.scope-required, kind: route-reason, summary: Code extraction scope has not been confirmed., document: resources/procedures/code-extraction.md }
25
+ - { code: route.extract.configuration-required, kind: route-reason, summary: Registered repository sources are missing extraction declarations., document: resources/procedures/project-configuration.md }
26
+ - { code: route.extract.pending-target, kind: route-reason, summary: Extract the next pending code target before another workflow family., document: resources/procedures/code-extraction.md }
27
+ - { code: route.document.classification-required, kind: route-reason, summary: A captured document needs an evidence-backed collection decision., document: resources/procedures/document-classification.md }
28
+ - { code: route.prose.configuration-required, kind: route-reason, summary: A document target is missing a complete prose lifecycle declaration., document: resources/procedures/project-configuration.md }
29
+ - { code: route.structure.pending-target, kind: route-reason, summary: Prepare the next document structure slot from source evidence., document: resources/procedures/prose-align.md }
30
+ - { code: route.structure.confirmation-required, kind: route-reason, summary: A staged structure is waiting for confirmation., document: resources/procedures/prose-align.md }
31
+ - { code: route.structure.confirm, kind: route-reason, summary: Persist the confirmed structure slot., document: resources/procedures/prose-align.md }
32
+ - { code: route.compile.pending-target, kind: route-reason, summary: Compile the next planned source-bound knowledge view., document: resources/procedures/prose-compile.md }
33
+ - { code: route.review.decision-required, kind: route-reason, summary: The complete current candidate batch needs one review decision set., document: resources/procedures/knowledge-review.md }
34
+ - { code: route.review.apply-managed, kind: route-reason, summary: Apply the current candidate batch under explicit session-managed authority., document: resources/procedures/knowledge-review.md }
35
+ - { code: route.close.projection-stale, kind: route-reason, summary: Rebuild the deterministic approved structure projection., document: resources/procedures/close-and-build.md }
36
+ - { code: route.package.output-required, kind: route-reason, summary: Approved knowledge has no confirmed package output., document: resources/procedures/package-output.md }
37
+ - { code: route.package.configuration-required, kind: route-reason, summary: Declare the confirmed package output in the Context project., document: resources/procedures/package-output.md }
38
+ - { code: route.build.package-stale, kind: route-reason, summary: Build the declared package outputs from current approved knowledge., document: resources/procedures/close-and-build.md }