wtf-p 0.8.1 → 0.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (455) hide show
  1. package/README.md +33 -18
  2. package/bin/lib/adapter-compiler.js +269 -55
  3. package/package.json +1 -1
  4. package/protocol/actions/advance.json +232 -0
  5. package/protocol/actions/plan-revision.json +8 -3
  6. package/protocol/actions/verify-work.json +6 -2
  7. package/protocol/aliases.lock.json +1 -0
  8. package/protocol/catalog.json +4 -2
  9. package/protocol/project/README.md +2 -0
  10. package/protocol/roles/research-synthesizer.md +1 -1
  11. package/protocol/skills/wtfp-manage-project/SKILL.md +2 -1
  12. package/protocol/skills/wtfp-manage-project/references/actions.md +13 -1
  13. package/protocol/skills/wtfp-plan-section/references/actions.md +1 -1
  14. package/protocol/skills/wtfp-research-literature/references/actions.md +1 -1
  15. package/protocol/skills/wtfp-review-manuscript/references/actions.md +2 -1
  16. package/protocol/workflows/advance.md +38 -0
  17. package/protocol/workflows/discuss-section.md +1 -1
  18. package/protocol/workflows/plan-revision.md +3 -3
  19. package/protocol/workflows/plan-section.md +1 -1
  20. package/protocol/workflows/research-gap.md +3 -3
  21. package/protocol/workflows/verify-work.md +4 -2
  22. package/protocol/workflows/write-section.md +2 -2
  23. package/vendors/antigravity/.wtfp-generated.json +54 -42
  24. package/vendors/antigravity/actions/advance.json +232 -0
  25. package/vendors/antigravity/actions/plan-revision.json +8 -3
  26. package/vendors/antigravity/actions/verify-work.json +6 -2
  27. package/vendors/antigravity/agents/wtfp-research-synthesizer.md +1 -1
  28. package/vendors/antigravity/aliases.lock.json +1 -0
  29. package/vendors/antigravity/catalog.json +4 -2
  30. package/vendors/antigravity/compatibility/action-availability.json +13 -1
  31. package/vendors/antigravity/plugin.json +2 -2
  32. package/vendors/antigravity/project/README.md +2 -0
  33. package/vendors/antigravity/roles/research-synthesizer.md +1 -1
  34. package/vendors/antigravity/rules/wtfp-project-state.md +2 -0
  35. package/vendors/antigravity/skills/wtfp-add-todo/SKILL.md +0 -2
  36. package/vendors/antigravity/skills/wtfp-advance/SKILL.md +18 -0
  37. package/vendors/antigravity/skills/wtfp-checkpoint/SKILL.md +0 -14
  38. package/vendors/antigravity/skills/wtfp-create-outline/SKILL.md +0 -8
  39. package/vendors/antigravity/skills/wtfp-create-poster/SKILL.md +1 -6
  40. package/vendors/antigravity/skills/wtfp-create-slides/SKILL.md +1 -6
  41. package/vendors/antigravity/skills/wtfp-discuss-section/SKILL.md +1 -5
  42. package/vendors/antigravity/skills/wtfp-execute-outline/SKILL.md +0 -10
  43. package/vendors/antigravity/skills/wtfp-help/SKILL.md +1 -1
  44. package/vendors/antigravity/skills/wtfp-list-assumptions/SKILL.md +1 -10
  45. package/vendors/antigravity/skills/wtfp-manage-project/SKILL.md +2 -1
  46. package/vendors/antigravity/skills/wtfp-manage-project/references/actions.md +29 -1
  47. package/vendors/antigravity/skills/wtfp-pause-writing/SKILL.md +0 -6
  48. package/vendors/antigravity/skills/wtfp-plan-milestone-gaps/SKILL.md +0 -6
  49. package/vendors/antigravity/skills/wtfp-plan-revision/SKILL.md +5 -11
  50. package/vendors/antigravity/skills/wtfp-plan-section/references/actions.md +1 -1
  51. package/vendors/antigravity/skills/wtfp-polish-prose/SKILL.md +0 -6
  52. package/vendors/antigravity/skills/wtfp-progress/SKILL.md +1 -22
  53. package/vendors/antigravity/skills/wtfp-quick/SKILL.md +0 -4
  54. package/vendors/antigravity/skills/wtfp-research-literature/references/actions.md +1 -1
  55. package/vendors/antigravity/skills/wtfp-resume-writing/SKILL.md +0 -12
  56. package/vendors/antigravity/skills/wtfp-review-manuscript/references/actions.md +2 -1
  57. package/vendors/antigravity/skills/wtfp-review-section/SKILL.md +0 -8
  58. package/vendors/antigravity/skills/wtfp-submit-milestone/SKILL.md +0 -12
  59. package/vendors/antigravity/skills/wtfp-verify-work/SKILL.md +6 -4
  60. package/vendors/antigravity/tools/README.md +1 -1
  61. package/vendors/antigravity/workflows/advance.md +38 -0
  62. package/vendors/antigravity/workflows/discuss-section.md +1 -1
  63. package/vendors/antigravity/workflows/plan-revision.md +3 -3
  64. package/vendors/antigravity/workflows/plan-section.md +1 -1
  65. package/vendors/antigravity/workflows/research-gap.md +3 -3
  66. package/vendors/antigravity/workflows/verify-work.md +4 -2
  67. package/vendors/antigravity/workflows/write-section.md +2 -2
  68. package/vendors/claude/.claude-plugin/marketplace.json +2 -2
  69. package/vendors/claude/.claude-plugin/plugin.json +1 -1
  70. package/vendors/claude/.wtfp-generated.json +108 -92
  71. package/vendors/claude/actions/advance.json +232 -0
  72. package/vendors/claude/actions/plan-revision.json +8 -3
  73. package/vendors/claude/actions/verify-work.json +6 -2
  74. package/vendors/claude/agents/wtfp-research-synthesizer.md +1 -1
  75. package/vendors/claude/ai.iowarp.clio/agents/wtfp-argument-verifier.md +4 -5
  76. package/vendors/claude/ai.iowarp.clio/agents/wtfp-citation-expert.md +5 -5
  77. package/vendors/claude/ai.iowarp.clio/agents/wtfp-citation-formatter.md +3 -3
  78. package/vendors/claude/ai.iowarp.clio/agents/wtfp-coherence-checker.md +6 -7
  79. package/vendors/claude/ai.iowarp.clio/agents/wtfp-outliner.md +3 -3
  80. package/vendors/claude/ai.iowarp.clio/agents/wtfp-plan-checker.md +4 -5
  81. package/vendors/claude/ai.iowarp.clio/agents/wtfp-prose-polisher.md +4 -4
  82. package/vendors/claude/ai.iowarp.clio/agents/wtfp-research-synthesizer.md +6 -6
  83. package/vendors/claude/ai.iowarp.clio/agents/wtfp-section-planner.md +3 -3
  84. package/vendors/claude/ai.iowarp.clio/agents/wtfp-section-reviewer.md +6 -7
  85. package/vendors/claude/ai.iowarp.clio/agents/wtfp-section-writer.md +3 -3
  86. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/add-todo.md +0 -2
  87. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/advance.md +15 -0
  88. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/analyze-bib.md +4 -8
  89. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/audit-milestone.md +2 -16
  90. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/check-refs.md +4 -8
  91. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/check-todos.md +2 -0
  92. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/checkpoint.md +2 -14
  93. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/create-outline.md +4 -10
  94. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/create-poster.md +3 -6
  95. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/create-slides.md +3 -6
  96. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/discuss-section.md +3 -5
  97. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/execute-outline.md +4 -12
  98. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/export-latex.md +2 -8
  99. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/help.md +4 -1
  100. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/insert-section.md +2 -0
  101. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/list-assumptions.md +1 -10
  102. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/new-paper.md +2 -0
  103. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/pause-writing.md +0 -6
  104. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/plan-milestone-gaps.md +2 -6
  105. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/plan-revision.md +7 -11
  106. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/plan-section.md +5 -15
  107. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/polish-prose.md +4 -8
  108. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/progress.md +3 -22
  109. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/quick.md +4 -6
  110. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/research-gap.md +12 -14
  111. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/resume-writing.md +2 -12
  112. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/review-section.md +4 -10
  113. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/settings.md +2 -0
  114. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/submit-milestone.md +2 -12
  115. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/verify-work.md +8 -4
  116. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/write-section.md +6 -14
  117. package/vendors/claude/aliases.lock.json +1 -0
  118. package/vendors/claude/catalog.json +4 -2
  119. package/vendors/claude/commands/add-todo.md +0 -2
  120. package/vendors/claude/commands/advance.md +16 -0
  121. package/vendors/claude/commands/analyze-bib.md +0 -6
  122. package/vendors/claude/commands/audit-milestone.md +0 -16
  123. package/vendors/claude/commands/check-refs.md +0 -6
  124. package/vendors/claude/commands/checkpoint.md +0 -14
  125. package/vendors/claude/commands/create-outline.md +0 -8
  126. package/vendors/claude/commands/create-poster.md +1 -6
  127. package/vendors/claude/commands/create-slides.md +1 -6
  128. package/vendors/claude/commands/discuss-section.md +1 -5
  129. package/vendors/claude/commands/execute-outline.md +0 -10
  130. package/vendors/claude/commands/export-latex.md +0 -8
  131. package/vendors/claude/commands/help.md +1 -1
  132. package/vendors/claude/commands/list-assumptions.md +1 -10
  133. package/vendors/claude/commands/pause-writing.md +0 -6
  134. package/vendors/claude/commands/plan-milestone-gaps.md +0 -6
  135. package/vendors/claude/commands/plan-revision.md +5 -11
  136. package/vendors/claude/commands/plan-section.md +1 -13
  137. package/vendors/claude/commands/polish-prose.md +0 -6
  138. package/vendors/claude/commands/progress.md +1 -22
  139. package/vendors/claude/commands/quick.md +0 -4
  140. package/vendors/claude/commands/research-gap.md +3 -11
  141. package/vendors/claude/commands/resume-writing.md +0 -12
  142. package/vendors/claude/commands/review-section.md +0 -8
  143. package/vendors/claude/commands/submit-milestone.md +0 -12
  144. package/vendors/claude/commands/verify-work.md +6 -4
  145. package/vendors/claude/commands/write-section.md +2 -12
  146. package/vendors/claude/compatibility/action-availability.json +10 -1
  147. package/vendors/claude/output-styles/wtfp-academic-writing.md +2 -2
  148. package/vendors/claude/plugin.json +15 -1
  149. package/vendors/claude/project/README.md +2 -0
  150. package/vendors/claude/roles/research-synthesizer.md +1 -1
  151. package/vendors/claude/skills/wtfp-manage-project/SKILL.md +2 -1
  152. package/vendors/claude/skills/wtfp-manage-project/references/actions.md +29 -1
  153. package/vendors/claude/skills/wtfp-plan-section/references/actions.md +1 -1
  154. package/vendors/claude/skills/wtfp-research-literature/references/actions.md +1 -1
  155. package/vendors/claude/skills/wtfp-review-manuscript/references/actions.md +2 -1
  156. package/vendors/claude/tools/README.md +1 -1
  157. package/vendors/claude/workflows/advance.md +38 -0
  158. package/vendors/claude/workflows/discuss-section.md +1 -1
  159. package/vendors/claude/workflows/plan-revision.md +3 -3
  160. package/vendors/claude/workflows/plan-section.md +1 -1
  161. package/vendors/claude/workflows/research-gap.md +3 -3
  162. package/vendors/claude/workflows/verify-work.md +4 -2
  163. package/vendors/claude/workflows/write-section.md +2 -2
  164. package/vendors/clio-extension/.wtfp-generated.json +56 -8
  165. package/vendors/clio-extension/actions/advance.json +232 -0
  166. package/vendors/clio-extension/actions/plan-revision.json +8 -3
  167. package/vendors/clio-extension/actions/verify-work.json +6 -2
  168. package/vendors/clio-extension/clio-coder-extension.yaml +19 -4
  169. package/vendors/clio-extension/compatibility/action-availability.json +9 -3
  170. package/vendors/clio-extension/project/templates/checkpoint.json +25 -0
  171. package/vendors/clio-extension/project/templates/config.json +31 -0
  172. package/vendors/clio-extension/project/templates/decisions.json +35 -0
  173. package/vendors/clio-extension/project/templates/evidence.json +18 -0
  174. package/vendors/clio-extension/project/templates/interaction.json +16 -0
  175. package/vendors/clio-extension/project/templates/manifest.json +30 -0
  176. package/vendors/clio-extension/project/templates/outline.json +38 -0
  177. package/vendors/clio-extension/project/templates/section.json +32 -0
  178. package/vendors/clio-extension/project/templates/source.json +20 -0
  179. package/vendors/clio-extension/project/templates/state.json +22 -0
  180. package/vendors/clio-extension/project/templates/validation.json +32 -0
  181. package/vendors/clio-extension/runtime/extension.test.ts +656 -6
  182. package/vendors/clio-extension/runtime/extension.ts +885 -41
  183. package/vendors/clio-extension/runtime/write-guard.json +66 -0
  184. package/vendors/codex/plugins/wtfp/.codex-plugin/plugin.json +1 -1
  185. package/vendors/codex/plugins/wtfp/.wtfp-generated.json +31 -23
  186. package/vendors/codex/plugins/wtfp/actions/advance.json +232 -0
  187. package/vendors/codex/plugins/wtfp/actions/plan-revision.json +8 -3
  188. package/vendors/codex/plugins/wtfp/actions/verify-work.json +6 -2
  189. package/vendors/codex/plugins/wtfp/agents/wtfp-research-synthesizer.toml +1 -1
  190. package/vendors/codex/plugins/wtfp/aliases.lock.json +1 -0
  191. package/vendors/codex/plugins/wtfp/catalog.json +4 -2
  192. package/vendors/codex/plugins/wtfp/compatibility/action-availability.json +13 -1
  193. package/vendors/codex/plugins/wtfp/plugin.json +1 -1
  194. package/vendors/codex/plugins/wtfp/project/README.md +2 -0
  195. package/vendors/codex/plugins/wtfp/roles/research-synthesizer.md +1 -1
  196. package/vendors/codex/plugins/wtfp/skills/wtfp-manage-project/SKILL.md +2 -1
  197. package/vendors/codex/plugins/wtfp/skills/wtfp-manage-project/references/actions.md +29 -1
  198. package/vendors/codex/plugins/wtfp/skills/wtfp-plan-section/references/actions.md +1 -1
  199. package/vendors/codex/plugins/wtfp/skills/wtfp-research-literature/references/actions.md +1 -1
  200. package/vendors/codex/plugins/wtfp/skills/wtfp-review-manuscript/references/actions.md +2 -1
  201. package/vendors/codex/plugins/wtfp/tools/README.md +1 -1
  202. package/vendors/codex/plugins/wtfp/workflows/advance.md +38 -0
  203. package/vendors/codex/plugins/wtfp/workflows/discuss-section.md +1 -1
  204. package/vendors/codex/plugins/wtfp/workflows/plan-revision.md +3 -3
  205. package/vendors/codex/plugins/wtfp/workflows/plan-section.md +1 -1
  206. package/vendors/codex/plugins/wtfp/workflows/research-gap.md +3 -3
  207. package/vendors/codex/plugins/wtfp/workflows/verify-work.md +4 -2
  208. package/vendors/codex/plugins/wtfp/workflows/write-section.md +2 -2
  209. package/vendors/copilot/.wtfp-generated.json +43 -31
  210. package/vendors/copilot/marketplace.json +2 -2
  211. package/vendors/copilot/plugins/wtfp/.claude-plugin/plugin.json +1 -1
  212. package/vendors/copilot/plugins/wtfp/.wtfp-generated.json +55 -43
  213. package/vendors/copilot/plugins/wtfp/actions/advance.json +232 -0
  214. package/vendors/copilot/plugins/wtfp/actions/plan-revision.json +8 -3
  215. package/vendors/copilot/plugins/wtfp/actions/verify-work.json +6 -2
  216. package/vendors/copilot/plugins/wtfp/agents/wtfp-research-synthesizer.md +1 -1
  217. package/vendors/copilot/plugins/wtfp/aliases.lock.json +1 -0
  218. package/vendors/copilot/plugins/wtfp/catalog.json +4 -2
  219. package/vendors/copilot/plugins/wtfp/commands/wtfp-add-todo.md +0 -2
  220. package/vendors/copilot/plugins/wtfp/commands/wtfp-advance.md +17 -0
  221. package/vendors/copilot/plugins/wtfp/commands/wtfp-checkpoint.md +0 -14
  222. package/vendors/copilot/plugins/wtfp/commands/wtfp-create-outline.md +0 -8
  223. package/vendors/copilot/plugins/wtfp/commands/wtfp-create-poster.md +1 -6
  224. package/vendors/copilot/plugins/wtfp/commands/wtfp-create-slides.md +1 -6
  225. package/vendors/copilot/plugins/wtfp/commands/wtfp-discuss-section.md +1 -5
  226. package/vendors/copilot/plugins/wtfp/commands/wtfp-execute-outline.md +0 -10
  227. package/vendors/copilot/plugins/wtfp/commands/wtfp-help.md +1 -1
  228. package/vendors/copilot/plugins/wtfp/commands/wtfp-list-assumptions.md +1 -10
  229. package/vendors/copilot/plugins/wtfp/commands/wtfp-pause-writing.md +0 -6
  230. package/vendors/copilot/plugins/wtfp/commands/wtfp-plan-milestone-gaps.md +0 -6
  231. package/vendors/copilot/plugins/wtfp/commands/wtfp-plan-revision.md +5 -11
  232. package/vendors/copilot/plugins/wtfp/commands/wtfp-plan-section.md +1 -13
  233. package/vendors/copilot/plugins/wtfp/commands/wtfp-polish-prose.md +0 -6
  234. package/vendors/copilot/plugins/wtfp/commands/wtfp-progress.md +1 -22
  235. package/vendors/copilot/plugins/wtfp/commands/wtfp-quick.md +0 -4
  236. package/vendors/copilot/plugins/wtfp/commands/wtfp-resume-writing.md +0 -12
  237. package/vendors/copilot/plugins/wtfp/commands/wtfp-review-section.md +0 -8
  238. package/vendors/copilot/plugins/wtfp/commands/wtfp-submit-milestone.md +0 -12
  239. package/vendors/copilot/plugins/wtfp/commands/wtfp-verify-work.md +6 -4
  240. package/vendors/copilot/plugins/wtfp/commands/wtfp-write-section.md +2 -12
  241. package/vendors/copilot/plugins/wtfp/compatibility/action-availability.json +13 -1
  242. package/vendors/copilot/plugins/wtfp/project/README.md +2 -0
  243. package/vendors/copilot/plugins/wtfp/roles/research-synthesizer.md +1 -1
  244. package/vendors/copilot/plugins/wtfp/skills/wtfp-manage-project/SKILL.md +2 -1
  245. package/vendors/copilot/plugins/wtfp/skills/wtfp-manage-project/references/actions.md +29 -1
  246. package/vendors/copilot/plugins/wtfp/skills/wtfp-plan-section/references/actions.md +1 -1
  247. package/vendors/copilot/plugins/wtfp/skills/wtfp-research-literature/references/actions.md +1 -1
  248. package/vendors/copilot/plugins/wtfp/skills/wtfp-review-manuscript/references/actions.md +2 -1
  249. package/vendors/copilot/plugins/wtfp/tools/README.md +1 -1
  250. package/vendors/copilot/plugins/wtfp/workflows/advance.md +38 -0
  251. package/vendors/copilot/plugins/wtfp/workflows/discuss-section.md +1 -1
  252. package/vendors/copilot/plugins/wtfp/workflows/plan-revision.md +3 -3
  253. package/vendors/copilot/plugins/wtfp/workflows/plan-section.md +1 -1
  254. package/vendors/copilot/plugins/wtfp/workflows/research-gap.md +3 -3
  255. package/vendors/copilot/plugins/wtfp/workflows/verify-work.md +4 -2
  256. package/vendors/copilot/plugins/wtfp/workflows/write-section.md +2 -2
  257. package/vendors/copilot/project/.github/agents/wtfp-research-synthesizer.agent.md +1 -1
  258. package/vendors/copilot/project/.github/prompts/wtfp-add-todo.prompt.md +0 -2
  259. package/vendors/copilot/project/.github/prompts/wtfp-advance.prompt.md +18 -0
  260. package/vendors/copilot/project/.github/prompts/wtfp-help.prompt.md +1 -1
  261. package/vendors/copilot/project/.github/prompts/wtfp-list-assumptions.prompt.md +1 -10
  262. package/vendors/copilot/project/.github/prompts/wtfp-pause-writing.prompt.md +0 -6
  263. package/vendors/copilot/project/.github/skills/wtfp-manage-project/SKILL.md +2 -1
  264. package/vendors/copilot/project/.github/skills/wtfp-manage-project/references/actions.md +25 -1
  265. package/vendors/copilot/project/.github/skills/wtfp-plan-section/references/actions.md +1 -1
  266. package/vendors/copilot/project/.github/skills/wtfp-research-literature/references/actions.md +1 -1
  267. package/vendors/copilot/project/.github/skills/wtfp-review-manuscript/references/actions.md +2 -1
  268. package/vendors/copilot/project/.github/wtfp/actions/advance.json +232 -0
  269. package/vendors/copilot/project/.github/wtfp/actions/plan-revision.json +8 -3
  270. package/vendors/copilot/project/.github/wtfp/actions/verify-work.json +6 -2
  271. package/vendors/copilot/project/.github/wtfp/aliases.lock.json +1 -0
  272. package/vendors/copilot/project/.github/wtfp/catalog.json +4 -2
  273. package/vendors/copilot/project/.github/wtfp/compatibility/action-availability.json +14 -1
  274. package/vendors/copilot/project/.github/wtfp/project/README.md +2 -0
  275. package/vendors/copilot/project/.github/wtfp/roles/research-synthesizer.md +1 -1
  276. package/vendors/copilot/project/.github/wtfp/skills/wtfp-manage-project/SKILL.md +2 -1
  277. package/vendors/copilot/project/.github/wtfp/skills/wtfp-manage-project/references/actions.md +13 -1
  278. package/vendors/copilot/project/.github/wtfp/skills/wtfp-plan-section/references/actions.md +1 -1
  279. package/vendors/copilot/project/.github/wtfp/skills/wtfp-research-literature/references/actions.md +1 -1
  280. package/vendors/copilot/project/.github/wtfp/skills/wtfp-review-manuscript/references/actions.md +2 -1
  281. package/vendors/copilot/project/.github/wtfp/workflows/advance.md +38 -0
  282. package/vendors/copilot/project/.github/wtfp/workflows/discuss-section.md +1 -1
  283. package/vendors/copilot/project/.github/wtfp/workflows/plan-revision.md +3 -3
  284. package/vendors/copilot/project/.github/wtfp/workflows/plan-section.md +1 -1
  285. package/vendors/copilot/project/.github/wtfp/workflows/research-gap.md +3 -3
  286. package/vendors/copilot/project/.github/wtfp/workflows/verify-work.md +4 -2
  287. package/vendors/copilot/project/.github/wtfp/workflows/write-section.md +2 -2
  288. package/vendors/copilot/project/README.md +1 -1
  289. package/vendors/gemini/.wtfp-generated.json +60 -48
  290. package/vendors/gemini/actions/advance.json +232 -0
  291. package/vendors/gemini/actions/plan-revision.json +8 -3
  292. package/vendors/gemini/actions/verify-work.json +6 -2
  293. package/vendors/gemini/agents/wtfp-research-synthesizer.md +1 -1
  294. package/vendors/gemini/aliases.lock.json +1 -0
  295. package/vendors/gemini/catalog.json +4 -2
  296. package/vendors/gemini/commands/wtfp/add-todo.toml +17 -144
  297. package/vendors/gemini/commands/wtfp/advance.toml +14 -0
  298. package/vendors/gemini/commands/wtfp/check-todos.toml +17 -2
  299. package/vendors/gemini/commands/wtfp/checkpoint.toml +17 -735
  300. package/vendors/gemini/commands/wtfp/create-outline.toml +2 -431
  301. package/vendors/gemini/commands/wtfp/create-poster.toml +3 -296
  302. package/vendors/gemini/commands/wtfp/create-slides.toml +3 -296
  303. package/vendors/gemini/commands/wtfp/discuss-section.toml +4 -259
  304. package/vendors/gemini/commands/wtfp/execute-outline.toml +2 -480
  305. package/vendors/gemini/commands/wtfp/help.toml +7 -3
  306. package/vendors/gemini/commands/wtfp/insert-section.toml +3 -1
  307. package/vendors/gemini/commands/wtfp/list-assumptions.toml +4 -510
  308. package/vendors/gemini/commands/wtfp/map-project.toml +2 -0
  309. package/vendors/gemini/commands/wtfp/new-paper.toml +2 -0
  310. package/vendors/gemini/commands/wtfp/pause-writing.toml +17 -309
  311. package/vendors/gemini/commands/wtfp/plan-milestone-gaps.toml +4 -369
  312. package/vendors/gemini/commands/wtfp/plan-revision.toml +76 -423
  313. package/vendors/gemini/commands/wtfp/plan-section.toml +4 -624
  314. package/vendors/gemini/commands/wtfp/polish-prose.toml +4 -329
  315. package/vendors/gemini/commands/wtfp/progress.toml +18 -1143
  316. package/vendors/gemini/commands/wtfp/quick.toml +2 -218
  317. package/vendors/gemini/commands/wtfp/resume-writing.toml +17 -698
  318. package/vendors/gemini/commands/wtfp/review-section.toml +4 -410
  319. package/vendors/gemini/commands/wtfp/settings.toml +17 -2
  320. package/vendors/gemini/commands/wtfp/submit-milestone.toml +2 -617
  321. package/vendors/gemini/commands/wtfp/verify-work.toml +123 -53
  322. package/vendors/gemini/commands/wtfp/write-section.toml +4 -482
  323. package/vendors/gemini/compatibility/action-availability.json +13 -1
  324. package/vendors/gemini/gemini-extension.json +1 -1
  325. package/vendors/gemini/project/README.md +2 -0
  326. package/vendors/gemini/roles/research-synthesizer.md +1 -1
  327. package/vendors/gemini/skills/wtfp-manage-project/SKILL.md +2 -1
  328. package/vendors/gemini/skills/wtfp-manage-project/references/actions.md +29 -1
  329. package/vendors/gemini/skills/wtfp-plan-section/references/actions.md +1 -1
  330. package/vendors/gemini/skills/wtfp-research-literature/references/actions.md +1 -1
  331. package/vendors/gemini/skills/wtfp-review-manuscript/references/actions.md +2 -1
  332. package/vendors/gemini/tools/README.md +1 -1
  333. package/vendors/gemini/workflows/advance.md +38 -0
  334. package/vendors/gemini/workflows/discuss-section.md +1 -1
  335. package/vendors/gemini/workflows/plan-revision.md +3 -3
  336. package/vendors/gemini/workflows/plan-section.md +1 -1
  337. package/vendors/gemini/workflows/research-gap.md +3 -3
  338. package/vendors/gemini/workflows/verify-work.md +4 -2
  339. package/vendors/gemini/workflows/write-section.md +2 -2
  340. package/vendors/opencode/.wtfp-generated.json +59 -47
  341. package/vendors/opencode/actions/advance.json +232 -0
  342. package/vendors/opencode/actions/plan-revision.json +8 -3
  343. package/vendors/opencode/actions/verify-work.json +6 -2
  344. package/vendors/opencode/agents/wtfp/research-synthesizer.md +1 -1
  345. package/vendors/opencode/aliases.lock.json +1 -0
  346. package/vendors/opencode/catalog.json +4 -2
  347. package/vendors/opencode/commands/wtfp/add-todo.md +17 -144
  348. package/vendors/opencode/commands/wtfp/advance.md +16 -0
  349. package/vendors/opencode/commands/wtfp/check-todos.md +17 -2
  350. package/vendors/opencode/commands/wtfp/checkpoint.md +17 -735
  351. package/vendors/opencode/commands/wtfp/create-outline.md +2 -431
  352. package/vendors/opencode/commands/wtfp/create-poster.md +3 -296
  353. package/vendors/opencode/commands/wtfp/create-slides.md +3 -296
  354. package/vendors/opencode/commands/wtfp/discuss-section.md +4 -259
  355. package/vendors/opencode/commands/wtfp/execute-outline.md +2 -480
  356. package/vendors/opencode/commands/wtfp/help.md +7 -3
  357. package/vendors/opencode/commands/wtfp/insert-section.md +3 -1
  358. package/vendors/opencode/commands/wtfp/list-assumptions.md +4 -510
  359. package/vendors/opencode/commands/wtfp/map-project.md +2 -0
  360. package/vendors/opencode/commands/wtfp/new-paper.md +2 -0
  361. package/vendors/opencode/commands/wtfp/pause-writing.md +17 -309
  362. package/vendors/opencode/commands/wtfp/plan-milestone-gaps.md +4 -369
  363. package/vendors/opencode/commands/wtfp/plan-revision.md +76 -423
  364. package/vendors/opencode/commands/wtfp/plan-section.md +4 -624
  365. package/vendors/opencode/commands/wtfp/polish-prose.md +4 -329
  366. package/vendors/opencode/commands/wtfp/progress.md +18 -1143
  367. package/vendors/opencode/commands/wtfp/quick.md +2 -218
  368. package/vendors/opencode/commands/wtfp/resume-writing.md +17 -698
  369. package/vendors/opencode/commands/wtfp/review-section.md +4 -410
  370. package/vendors/opencode/commands/wtfp/settings.md +17 -2
  371. package/vendors/opencode/commands/wtfp/submit-milestone.md +2 -617
  372. package/vendors/opencode/commands/wtfp/verify-work.md +123 -53
  373. package/vendors/opencode/commands/wtfp/write-section.md +4 -482
  374. package/vendors/opencode/compatibility/action-availability.json +13 -1
  375. package/vendors/opencode/project/README.md +2 -0
  376. package/vendors/opencode/roles/research-synthesizer.md +1 -1
  377. package/vendors/opencode/skills/wtfp-manage-project/SKILL.md +2 -1
  378. package/vendors/opencode/skills/wtfp-manage-project/references/actions.md +29 -1
  379. package/vendors/opencode/skills/wtfp-plan-section/references/actions.md +1 -1
  380. package/vendors/opencode/skills/wtfp-research-literature/references/actions.md +1 -1
  381. package/vendors/opencode/skills/wtfp-review-manuscript/references/actions.md +2 -1
  382. package/vendors/opencode/tools/README.md +1 -1
  383. package/vendors/opencode/workflows/advance.md +38 -0
  384. package/vendors/opencode/workflows/discuss-section.md +1 -1
  385. package/vendors/opencode/workflows/plan-revision.md +3 -3
  386. package/vendors/opencode/workflows/plan-section.md +1 -1
  387. package/vendors/opencode/workflows/research-gap.md +3 -3
  388. package/vendors/opencode/workflows/verify-work.md +4 -2
  389. package/vendors/opencode/workflows/write-section.md +2 -2
  390. package/vendors/plugin/.wtfp-generated.json +75 -63
  391. package/vendors/plugin/actions/advance.json +232 -0
  392. package/vendors/plugin/actions/plan-revision.json +8 -3
  393. package/vendors/plugin/actions/verify-work.json +6 -2
  394. package/vendors/plugin/ai.iowarp.clio/agents/wtfp-argument-verifier.md +4 -5
  395. package/vendors/plugin/ai.iowarp.clio/agents/wtfp-citation-expert.md +5 -5
  396. package/vendors/plugin/ai.iowarp.clio/agents/wtfp-citation-formatter.md +3 -3
  397. package/vendors/plugin/ai.iowarp.clio/agents/wtfp-coherence-checker.md +6 -7
  398. package/vendors/plugin/ai.iowarp.clio/agents/wtfp-outliner.md +3 -3
  399. package/vendors/plugin/ai.iowarp.clio/agents/wtfp-plan-checker.md +4 -5
  400. package/vendors/plugin/ai.iowarp.clio/agents/wtfp-prose-polisher.md +4 -4
  401. package/vendors/plugin/ai.iowarp.clio/agents/wtfp-research-synthesizer.md +6 -6
  402. package/vendors/plugin/ai.iowarp.clio/agents/wtfp-section-planner.md +3 -3
  403. package/vendors/plugin/ai.iowarp.clio/agents/wtfp-section-reviewer.md +6 -7
  404. package/vendors/plugin/ai.iowarp.clio/agents/wtfp-section-writer.md +3 -3
  405. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/add-todo.md +7 -3
  406. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/advance.md +101 -0
  407. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/analyze-bib.md +11 -19
  408. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/audit-milestone.md +10 -4
  409. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/check-refs.md +12 -6
  410. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/check-todos.md +10 -4
  411. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/checkpoint.md +10 -4
  412. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/create-outline.md +11 -19
  413. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/create-poster.md +18 -13
  414. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/create-slides.md +18 -13
  415. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/discuss-section.md +11 -5
  416. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/execute-outline.md +12 -6
  417. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/export-latex.md +10 -4
  418. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/help.md +4 -1
  419. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/insert-section.md +10 -4
  420. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/list-assumptions.md +15 -17
  421. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/map-project.md +7 -3
  422. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/new-paper.md +10 -4
  423. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/pause-writing.md +7 -3
  424. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/plan-milestone-gaps.md +10 -4
  425. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/plan-revision.md +13 -7
  426. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/plan-section.md +13 -7
  427. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/polish-prose.md +12 -6
  428. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/progress.md +19 -30
  429. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/quick.md +12 -6
  430. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/research-gap.md +20 -10
  431. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/resume-writing.md +10 -4
  432. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/review-section.md +12 -6
  433. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/settings.md +10 -4
  434. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/submit-milestone.md +12 -4
  435. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/verify-work.md +14 -6
  436. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/write-section.md +14 -8
  437. package/vendors/plugin/aliases.lock.json +1 -0
  438. package/vendors/plugin/catalog.json +4 -2
  439. package/vendors/plugin/compatibility/action-availability.json +9 -3
  440. package/vendors/plugin/plugin.json +15 -1
  441. package/vendors/plugin/project/README.md +2 -0
  442. package/vendors/plugin/roles/research-synthesizer.md +1 -1
  443. package/vendors/plugin/skills/wtfp-manage-project/SKILL.md +2 -1
  444. package/vendors/plugin/skills/wtfp-manage-project/references/actions.md +13 -1
  445. package/vendors/plugin/skills/wtfp-plan-section/references/actions.md +1 -1
  446. package/vendors/plugin/skills/wtfp-research-literature/references/actions.md +1 -1
  447. package/vendors/plugin/skills/wtfp-review-manuscript/references/actions.md +2 -1
  448. package/vendors/plugin/tools/README.md +1 -1
  449. package/vendors/plugin/workflows/advance.md +38 -0
  450. package/vendors/plugin/workflows/discuss-section.md +1 -1
  451. package/vendors/plugin/workflows/plan-revision.md +3 -3
  452. package/vendors/plugin/workflows/plan-section.md +1 -1
  453. package/vendors/plugin/workflows/research-gap.md +3 -3
  454. package/vendors/plugin/workflows/verify-work.md +4 -2
  455. package/vendors/plugin/workflows/write-section.md +2 -2
@@ -10,6 +10,7 @@ allowed-tools:
10
10
  - write
11
11
  - edit
12
12
  - ask_user
13
+ - extension_wtfp__status
13
14
  - extension_wtfp__record
14
15
  - extension_wtfp__read_record
15
16
  - extension_wtfp__readiness
@@ -19,7 +20,7 @@ allowed-tools:
19
20
 
20
21
  # Start a new paper
21
22
 
22
- @${pluginRoot}/skills/wtfp-start-project/SKILL.md
23
+ Before acting, load the `wtfp-start-project` skill with `context(scope="skills", name="wtfp-start-project")`; it carries this action's method and stays loaded across compaction.
23
24
 
24
25
  ## Record contract
25
26
 
@@ -47,12 +48,15 @@ Do not initialize a repository or run branch, stage, commit, merge, push, or pub
47
48
 
48
49
  Report the logical resources read, created, updated, archived, or deleted; the gates crossed; validation results; unresolved checkpoints; and the safest next action. Never claim a mutation that was not verified.
49
50
 
50
- Discover the named tools with `gateway(op="describe", capability="extension_wtfp__record")` (and the corresponding `read_record`, `readiness`, `measure_section` or `gate` name), then use `gateway(op="call", capability="<exact name>", args={...})`. A present tool's error or refusal stops the action; never bypass it with a manual write or shell script.
51
+ Call desk tools with `gateway(op="call", capability="extension_wtfp__<tool>", args={...})`, without a describe first; args: status {}, record {uri, record: {<every field of the record>}, expect_revision|expect_sha256} or {writes:[{uri, record, expect_...}]}, with no record field outside `record`, read_record {uri}, readiness {section}, measure_section {section}, gate {checkpoint}. Describe one only after it rejects its arguments. A record write that would not validate, or reports a stale read or a missing version, asks you to fix the record or read it again and resend; that is not a refusal. Any other error or refusal stops the action; never bypass it with a manual write or shell script. `read_record` on a family URI, such as `project://sources` or `project://evidence`, returns that family's records in one call, and names a `?after=` page for any it holds back; list a family that way, never with a shell. It serves JSON records only; read authored artifacts directly: `project://sections/{s}/context`, `research`, `summary` and `handoff` are `.planning/sections/{s}/<name>.md`, plans and reviews are `.planning/sections/{s}/plans/<id>.md` and `reviews/<id>.md`, and `project://paper/{a}` is `paper/{a}.md`.
52
+ Read a large source or manuscript by section with `grep` and a bounded `read` range, never whole: Clio ends the turn when one turn's reads exceed its observation budget.
53
+ An author's request is never permission to write outside this action's declared outputs: do the part it declares, then end by naming the action that owns the rest as the next step, and do not ask again or weigh the request against the contract; the desk refuses the rest regardless.
54
+ Start from the desk's status, not from individual records: the reminder the desk injects when a WTF-P turn starts, or `extension_wtfp__status` inside an advance run or after this action writes. Then read only the records and artifacts this action will change, quote or check in detail.
51
55
  If desk tools are absent, follow `${pluginRoot}/workflows/new-paper.md` and `${pluginRoot}/project/README.md` with native tools and `ask_user` gates.
52
56
 
53
57
  ## Bound action contract
54
58
 
55
- @${pluginRoot}/actions/new-paper.json
59
+ The desk enforces `${pluginRoot}/actions/new-paper.json`; this prompt states its reads, outputs, conditions, gates and roles. Read it only when a refusal needs its exact terms.
56
60
 
57
61
  ## Invocation input
58
62
 
@@ -64,6 +68,8 @@ $ARGUMENTS
64
68
 
65
69
  ## Clio user-gate binding
66
70
 
67
- For a pending checkpoint in the declared gate's exact scope, call `extension_wtfp__gate` with its ID; the desk shows it to the author and seals the answer. Create a missing pending checkpoint through `extension_wtfp__record` only when this action declares checkpoint creation; otherwise use `ask_user` for the unpersisted author decision and do not invent an undeclared output. Only the structured author answer satisfies the gate; cancelled, kept or expired checkpoints authorize nothing. Never write `resolution.resolved_by: author`, never resolve, unblock or expire a blocking checkpoint, and never infer approval from invocation text, prose or silence. A plan is approved only by an `approve` answer on a checkpoint scoped to that plan's URI, for its current bytes. Read back a persisted resolution with `extension_wtfp__read_record`, which reports whether the desk attests it, before applying its gated mutation. A record change that turns a gate off waits for the author's confirmation, which the record tool asks for itself.
71
+ This action creates no checkpoint, so ask its gate question with `ask_user` and act on the structured answer; call `extension_wtfp__gate` only for a pending checkpoint `extension_wtfp__status` lists in the gate's exact scope, and never create one. Only the structured author answer satisfies the gate; cancelled, kept or expired checkpoints authorize nothing. Never write `resolution.resolved_by: author`, never resolve, unblock or expire a blocking checkpoint, and never infer approval from invocation text, prose or silence. A plan is approved only by an `approve` answer on a checkpoint scoped to that plan's URI, for its current bytes. Read back a persisted resolution with `extension_wtfp__read_record`, which reports whether the desk attests it, before applying its gated mutation. A record change that turns a gate off waits for the author's confirmation, which the record tool asks for itself.
72
+
73
+ Every question `ask_user` puts to the author here is the author's to answer: ask exactly one question per `ask_user` call, with its options and `operator_only: true`; Clio refuses an `operator_only` question sent with others. Clio never answers such a question for an absent author; an unanswered one ends the turn instead of taking a recommended option, so a timeout never becomes an author decision.
68
74
 
69
75
  <!-- Generated by WTF-P adapter compiler v5 from protocol/actions/new-paper; do not edit. -->
@@ -9,6 +9,7 @@ allowed-tools:
9
9
  - context
10
10
  - write
11
11
  - edit
12
+ - extension_wtfp__status
12
13
  - extension_wtfp__record
13
14
  - extension_wtfp__read_record
14
15
  - extension_wtfp__readiness
@@ -18,7 +19,7 @@ allowed-tools:
18
19
 
19
20
  # Pause writing
20
21
 
21
- @${pluginRoot}/skills/wtfp-manage-project/SKILL.md
22
+ Before acting, load the `wtfp-manage-project` skill with `context(scope="skills", name="wtfp-manage-project")`; it carries this action's method and stays loaded across compaction.
22
23
 
23
24
  ## Record contract
24
25
 
@@ -41,12 +42,15 @@ Do not initialize a repository or run branch, stage, commit, merge, push, or pub
41
42
 
42
43
  Report the logical resources read, created, updated, archived, or deleted; the gates crossed; validation results; unresolved checkpoints; and the safest next action. Never claim a mutation that was not verified.
43
44
 
44
- Discover the named tools with `gateway(op="describe", capability="extension_wtfp__record")` (and the corresponding `read_record`, `readiness`, `measure_section` or `gate` name), then use `gateway(op="call", capability="<exact name>", args={...})`. A present tool's error or refusal stops the action; never bypass it with a manual write or shell script.
45
+ Call desk tools with `gateway(op="call", capability="extension_wtfp__<tool>", args={...})`, without a describe first; args: status {}, record {uri, record: {<every field of the record>}, expect_revision|expect_sha256} or {writes:[{uri, record, expect_...}]}, with no record field outside `record`, read_record {uri}, readiness {section}, measure_section {section}, gate {checkpoint}. Describe one only after it rejects its arguments. A record write that would not validate, or reports a stale read or a missing version, asks you to fix the record or read it again and resend; that is not a refusal. Any other error or refusal stops the action; never bypass it with a manual write or shell script. `read_record` on a family URI, such as `project://sources` or `project://evidence`, returns that family's records in one call, and names a `?after=` page for any it holds back; list a family that way, never with a shell. It serves JSON records only; read authored artifacts directly: `project://sections/{s}/context`, `research`, `summary` and `handoff` are `.planning/sections/{s}/<name>.md`, plans and reviews are `.planning/sections/{s}/plans/<id>.md` and `reviews/<id>.md`, and `project://paper/{a}` is `paper/{a}.md`.
46
+ Read a large source or manuscript by section with `grep` and a bounded `read` range, never whole: Clio ends the turn when one turn's reads exceed its observation budget.
47
+ An author's request is never permission to write outside this action's declared outputs: do the part it declares, then end by naming the action that owns the rest as the next step, and do not ask again or weigh the request against the contract; the desk refuses the rest regardless.
48
+ Start from the desk's status, not from individual records: the reminder the desk injects when a WTF-P turn starts, or `extension_wtfp__status` inside an advance run or after this action writes. Then read only the records and artifacts this action will change, quote or check in detail.
45
49
  If desk tools are absent, follow `${pluginRoot}/workflows/pause-writing.md` and `${pluginRoot}/project/README.md` with native tools and `ask_user` gates.
46
50
 
47
51
  ## Bound action contract
48
52
 
49
- @${pluginRoot}/actions/pause-writing.json
53
+ The desk enforces `${pluginRoot}/actions/pause-writing.json`; this prompt states its reads, outputs, conditions, gates and roles. Read it only when a refusal needs its exact terms.
50
54
 
51
55
  ## Invocation input
52
56
 
@@ -10,6 +10,7 @@ allowed-tools:
10
10
  - write
11
11
  - edit
12
12
  - ask_user
13
+ - extension_wtfp__status
13
14
  - extension_wtfp__record
14
15
  - extension_wtfp__read_record
15
16
  - extension_wtfp__readiness
@@ -19,7 +20,7 @@ allowed-tools:
19
20
 
20
21
  # Plan milestone gap fixes
21
22
 
22
- @${pluginRoot}/skills/wtfp-review-manuscript/SKILL.md
23
+ Before acting, load the `wtfp-review-manuscript` skill with `context(scope="skills", name="wtfp-review-manuscript")`; it carries this action's method and stays loaded across compaction.
23
24
 
24
25
  ## Record contract
25
26
 
@@ -42,12 +43,15 @@ Do not initialize a repository or run branch, stage, commit, merge, push, or pub
42
43
 
43
44
  Report the logical resources read, created, updated, archived, or deleted; the gates crossed; validation results; unresolved checkpoints; and the safest next action. Never claim a mutation that was not verified.
44
45
 
45
- Discover the named tools with `gateway(op="describe", capability="extension_wtfp__record")` (and the corresponding `read_record`, `readiness`, `measure_section` or `gate` name), then use `gateway(op="call", capability="<exact name>", args={...})`. A present tool's error or refusal stops the action; never bypass it with a manual write or shell script.
46
+ Call desk tools with `gateway(op="call", capability="extension_wtfp__<tool>", args={...})`, without a describe first; args: status {}, record {uri, record: {<every field of the record>}, expect_revision|expect_sha256} or {writes:[{uri, record, expect_...}]}, with no record field outside `record`, read_record {uri}, readiness {section}, measure_section {section}, gate {checkpoint}. Describe one only after it rejects its arguments. A record write that would not validate, or reports a stale read or a missing version, asks you to fix the record or read it again and resend; that is not a refusal. Any other error or refusal stops the action; never bypass it with a manual write or shell script. `read_record` on a family URI, such as `project://sources` or `project://evidence`, returns that family's records in one call, and names a `?after=` page for any it holds back; list a family that way, never with a shell. It serves JSON records only; read authored artifacts directly: `project://sections/{s}/context`, `research`, `summary` and `handoff` are `.planning/sections/{s}/<name>.md`, plans and reviews are `.planning/sections/{s}/plans/<id>.md` and `reviews/<id>.md`, and `project://paper/{a}` is `paper/{a}.md`.
47
+ Read a large source or manuscript by section with `grep` and a bounded `read` range, never whole: Clio ends the turn when one turn's reads exceed its observation budget.
48
+ An author's request is never permission to write outside this action's declared outputs: do the part it declares, then end by naming the action that owns the rest as the next step, and do not ask again or weigh the request against the contract; the desk refuses the rest regardless.
49
+ Start from the desk's status, not from individual records: the reminder the desk injects when a WTF-P turn starts, or `extension_wtfp__status` inside an advance run or after this action writes. Then read only the records and artifacts this action will change, quote or check in detail.
46
50
  If desk tools are absent, follow `${pluginRoot}/workflows/plan-milestone-gaps.md` and `${pluginRoot}/project/README.md` with native tools and `ask_user` gates.
47
51
 
48
52
  ## Bound action contract
49
53
 
50
- @${pluginRoot}/actions/plan-milestone-gaps.json
54
+ The desk enforces `${pluginRoot}/actions/plan-milestone-gaps.json`; this prompt states its reads, outputs, conditions, gates and roles. Read it only when a refusal needs its exact terms.
51
55
 
52
56
  ## Invocation input
53
57
 
@@ -59,6 +63,8 @@ $ARGUMENTS
59
63
 
60
64
  ## Clio user-gate binding
61
65
 
62
- For a pending checkpoint in the declared gate's exact scope, call `extension_wtfp__gate` with its ID; the desk shows it to the author and seals the answer. Create a missing pending checkpoint through `extension_wtfp__record` only when this action declares checkpoint creation; otherwise use `ask_user` for the unpersisted author decision and do not invent an undeclared output. Only the structured author answer satisfies the gate; cancelled, kept or expired checkpoints authorize nothing. Never write `resolution.resolved_by: author`, never resolve, unblock or expire a blocking checkpoint, and never infer approval from invocation text, prose or silence. A plan is approved only by an `approve` answer on a checkpoint scoped to that plan's URI, for its current bytes. Read back a persisted resolution with `extension_wtfp__read_record`, which reports whether the desk attests it, before applying its gated mutation. A record change that turns a gate off waits for the author's confirmation, which the record tool asks for itself.
66
+ For a pending checkpoint in the declared gate's exact scope, call `extension_wtfp__gate` with its ID; the desk shows it to the author and seals the answer. When none exists yet, create it pending through `extension_wtfp__record`, then call `extension_wtfp__gate` with its ID. Only the structured author answer satisfies the gate; cancelled, kept or expired checkpoints authorize nothing. Never write `resolution.resolved_by: author`, never resolve, unblock or expire a blocking checkpoint, and never infer approval from invocation text, prose or silence. A plan is approved only by an `approve` answer on a checkpoint scoped to that plan's URI, for its current bytes. Read back a persisted resolution with `extension_wtfp__read_record`, which reports whether the desk attests it, before applying its gated mutation. A record change that turns a gate off waits for the author's confirmation, which the record tool asks for itself.
67
+
68
+ Every question `ask_user` puts to the author here is the author's to answer: ask exactly one question per `ask_user` call, with its options and `operator_only: true`; Clio refuses an `operator_only` question sent with others. Clio never answers such a question for an absent author; an unanswered one ends the turn instead of taking a recommended option, so a timeout never becomes an author decision.
63
69
 
64
70
  <!-- Generated by WTF-P adapter compiler v5 from protocol/actions/plan-milestone-gaps; do not edit. -->
@@ -10,6 +10,7 @@ allowed-tools:
10
10
  - write
11
11
  - edit
12
12
  - ask_user
13
+ - extension_wtfp__status
13
14
  - extension_wtfp__record
14
15
  - extension_wtfp__read_record
15
16
  - extension_wtfp__readiness
@@ -19,12 +20,12 @@ allowed-tools:
19
20
 
20
21
  # Plan a revision
21
22
 
22
- @${pluginRoot}/skills/wtfp-plan-section/SKILL.md
23
+ Before acting, load the `wtfp-plan-section` skill with `context(scope="skills", name="wtfp-plan-section")`; it carries this action's method and stays loaded across compaction.
23
24
 
24
25
  ## Record contract
25
26
 
26
- Read: `project://manifest`, `project://config`, `project://decisions`, `project://sections/{section}`, `project://sections/{section}/plans/{plan}`, `project://sections/{section}/reviews/{review}`, `project://sections/{section}/summary`, `project://validations/{validation}`, `project://paper/{artifact}`.
27
- Produce: `project://sections/{section}/plans/{plan}` (create), `project://checkpoints/{checkpoint}` (create), `project://sections/{section}` (update).
27
+ Read: `project://manifest`, `project://config`, `project://state`, `project://decisions`, `project://sections/{section}`, `project://sections/{section}/plans/{plan}`, `project://sections/{section}/reviews/{review}`, `project://sections/{section}/summary`, `project://validations/{validation}`, `project://paper/{artifact}`.
28
+ Produce: `project://sections/{section}/plans/{plan}` (create), `project://checkpoints/{checkpoint}` (create), `project://sections/{section}` (update), `project://state` (update).
28
29
 
29
30
  Use `extension_wtfp__record` for each declared JSON record write. Read an existing record first with `extension_wtfp__read_record` and pass back the version it returns: `expect_revision` for state, outline and decisions, `expect_sha256` for every other record; a create passes neither. When one transition changes several records, such as a checkpoint and the state that lists it, pass them together as `writes` so they commit together. The tool validates, bumps revisions and timestamps, commits under the project lock and reads back. It refuses author resolutions and any record this action does not declare; preserve stable IDs and author decisions.
30
31
 
@@ -35,7 +36,7 @@ Write prose and linked artifacts with native file tools; keep their authored for
35
36
  1. Resolve manifest requirements, the selected section, linked review or failed validation findings, prior summary, current draft, original plan, and decisions.
36
37
  2. Separate required fixes, optional improvements, protected text, dependencies, and verification criteria.
37
38
  3. Write a new immutable plan artifact after the author approves the revision priorities; never overwrite the plan that produced the reviewed draft.
38
- 4. When confirm_plan is on, create a blocking `decision` checkpoint scoped to the plan's URI whose options include `approve`, `revise`, and `reject`, preview the plan, and ask the author. Append the plan to the section's `artifacts.plans` only after an `approve` answer for its current bytes; any other answer leaves the earlier plan current and the revision unlinked. With confirm_plan off, append it directly.
39
+ 4. When confirm_plan is on, create a blocking `decision` checkpoint scoped to the plan's URI whose options include `approve`, `revise`, and `reject`, preview the plan, and ask the author. Append the plan to the section's `artifacts.plans` only after an `approve` answer for its current bytes; any other answer leaves the earlier plan current and the revision unlinked. With confirm_plan off, append it directly. Linking the revision plan sets the section status to `planned`, so the next step writes from it.
39
40
 
40
41
  ## Safety and completion
41
42
 
@@ -43,12 +44,15 @@ Do not initialize a repository or run branch, stage, commit, merge, push, or pub
43
44
 
44
45
  Report the logical resources read, created, updated, archived, or deleted; the gates crossed; validation results; unresolved checkpoints; and the safest next action. Never claim a mutation that was not verified.
45
46
 
46
- Discover the named tools with `gateway(op="describe", capability="extension_wtfp__record")` (and the corresponding `read_record`, `readiness`, `measure_section` or `gate` name), then use `gateway(op="call", capability="<exact name>", args={...})`. A present tool's error or refusal stops the action; never bypass it with a manual write or shell script.
47
+ Call desk tools with `gateway(op="call", capability="extension_wtfp__<tool>", args={...})`, without a describe first; args: status {}, record {uri, record: {<every field of the record>}, expect_revision|expect_sha256} or {writes:[{uri, record, expect_...}]}, with no record field outside `record`, read_record {uri}, readiness {section}, measure_section {section}, gate {checkpoint}. Describe one only after it rejects its arguments. A record write that would not validate, or reports a stale read or a missing version, asks you to fix the record or read it again and resend; that is not a refusal. Any other error or refusal stops the action; never bypass it with a manual write or shell script. `read_record` on a family URI, such as `project://sources` or `project://evidence`, returns that family's records in one call, and names a `?after=` page for any it holds back; list a family that way, never with a shell. It serves JSON records only; read authored artifacts directly: `project://sections/{s}/context`, `research`, `summary` and `handoff` are `.planning/sections/{s}/<name>.md`, plans and reviews are `.planning/sections/{s}/plans/<id>.md` and `reviews/<id>.md`, and `project://paper/{a}` is `paper/{a}.md`.
48
+ Read a large source or manuscript by section with `grep` and a bounded `read` range, never whole: Clio ends the turn when one turn's reads exceed its observation budget.
49
+ An author's request is never permission to write outside this action's declared outputs: do the part it declares, then end by naming the action that owns the rest as the next step, and do not ask again or weigh the request against the contract; the desk refuses the rest regardless.
50
+ Start from the desk's status, not from individual records: the reminder the desk injects when a WTF-P turn starts, or `extension_wtfp__status` inside an advance run or after this action writes. Then read only the records and artifacts this action will change, quote or check in detail.
47
51
  If desk tools are absent, follow `${pluginRoot}/workflows/plan-revision.md` and `${pluginRoot}/project/README.md` with native tools and `ask_user` gates.
48
52
 
49
53
  ## Bound action contract
50
54
 
51
- @${pluginRoot}/actions/plan-revision.json
55
+ The desk enforces `${pluginRoot}/actions/plan-revision.json`; this prompt states its reads, outputs, conditions, gates and roles. Read it only when a refusal needs its exact terms.
52
56
 
53
57
  ## Invocation input
54
58
 
@@ -60,6 +64,8 @@ $ARGUMENTS
60
64
 
61
65
  ## Clio user-gate binding
62
66
 
63
- For a pending checkpoint in the declared gate's exact scope, call `extension_wtfp__gate` with its ID; the desk shows it to the author and seals the answer. Create a missing pending checkpoint through `extension_wtfp__record` only when this action declares checkpoint creation; otherwise use `ask_user` for the unpersisted author decision and do not invent an undeclared output. Only the structured author answer satisfies the gate; cancelled, kept or expired checkpoints authorize nothing. Never write `resolution.resolved_by: author`, never resolve, unblock or expire a blocking checkpoint, and never infer approval from invocation text, prose or silence. A plan is approved only by an `approve` answer on a checkpoint scoped to that plan's URI, for its current bytes. Read back a persisted resolution with `extension_wtfp__read_record`, which reports whether the desk attests it, before applying its gated mutation. A record change that turns a gate off waits for the author's confirmation, which the record tool asks for itself.
67
+ For a pending checkpoint in the declared gate's exact scope, call `extension_wtfp__gate` with its ID; the desk shows it to the author and seals the answer. When none exists yet, create it pending through `extension_wtfp__record`, then call `extension_wtfp__gate` with its ID. Only the structured author answer satisfies the gate; cancelled, kept or expired checkpoints authorize nothing. Never write `resolution.resolved_by: author`, never resolve, unblock or expire a blocking checkpoint, and never infer approval from invocation text, prose or silence. A plan is approved only by an `approve` answer on a checkpoint scoped to that plan's URI, for its current bytes. Read back a persisted resolution with `extension_wtfp__read_record`, which reports whether the desk attests it, before applying its gated mutation. A record change that turns a gate off waits for the author's confirmation, which the record tool asks for itself.
68
+
69
+ Every question `ask_user` puts to the author here is the author's to answer: ask exactly one question per `ask_user` call, with its options and `operator_only: true`; Clio refuses an `operator_only` question sent with others. Clio never answers such a question for an absent author; an unanswered one ends the turn instead of taking a recommended option, so a timeout never becomes an author decision.
64
70
 
65
71
  <!-- Generated by WTF-P adapter compiler v5 from protocol/actions/plan-revision; do not edit. -->
@@ -12,6 +12,7 @@ allowed-tools:
12
12
  - ask_user
13
13
  - dispatch
14
14
  - monitor
15
+ - extension_wtfp__status
15
16
  - extension_wtfp__record
16
17
  - extension_wtfp__read_record
17
18
  - extension_wtfp__readiness
@@ -31,7 +32,7 @@ delegated-tools:
31
32
 
32
33
  # Plan a section
33
34
 
34
- @${pluginRoot}/skills/wtfp-plan-section/SKILL.md
35
+ Before acting, load the `wtfp-plan-section` skill with `context(scope="skills", name="wtfp-plan-section")`; it carries this action's method and stays loaded across compaction.
35
36
 
36
37
  ## Record contract
37
38
 
@@ -48,7 +49,7 @@ Write prose and linked artifacts with native file tools; keep their authored for
48
49
  2. Filter those records to candidates whose `subject_uri` is exactly `project://structure/outline` and whose `action_id` is exactly `create-outline`. A candidate is current only when `executed_at >= outline.updated_at`. Because the v1 validation schema carries no outline revision or content hash, disclose that this timestamp test is a conservative freshness proxy.
49
50
  3. Require exactly one current candidate and require its `status` to be `passed`. Separately verify that the current outline and target section are consistent with all current locked and deferred author choices: honor locked choices and do not treat deferred choices as resolved. A missing, stale, ambiguous, or non-passing candidate, or a decision contradiction, blocks all specialist dispatch and every plan, section, state, or validation write. Only a recovery checkpoint may be proposed on this blocked path, and it may be written only after a complete record preview and explicit author approval.
50
51
  4. For a literature-heavy section, first require a section-specific research artifact plus resolvable source/evidence records that cover the planned claims. If they are absent or insufficient, stop planning: create a research checkpoint naming the uncovered claims and recommend `research-gap` as the next action. Sources and evidence are `research-gap` outputs, never written by this action. Never invent citations or treat search candidates as verified sources.
51
- 5. Only after those prerequisites pass, delegate a bounded plan to `section-planner`, then require a fresh `plan-checker` pass over claim coverage, dependencies, file scope, citations, and decision fidelity. Dispatch the exact WTF-P specialist roles; generic coder and verifier roles do not satisfy this workflow.
52
+ 5. Only after those prerequisites pass, delegate a bounded plan to `section-planner`, then require a fresh `plan-checker` pass over claim coverage, dependencies, file scope, citations, and decision fidelity. Dispatch the exact WTF-P specialist roles; generic coder and verifier roles do not satisfy this workflow. When the check fails, return its findings to `section-planner` for a revised plan and check that plan afresh, at most twice; a finding that contradicts an author decision goes to the author instead of the planner. Record each check as a validation of the plan it read. A plan that still fails is never put to the author for approval: create a checkpoint naming its open findings and stop.
52
53
  6. At confirm_plan, create a blocking `decision` checkpoint scoped to the plan's URI whose options include `approve`, `revise`, and `reject`, preview the plan and validation, and ask the author. Only an `approve` answer for the plan as it now is approves it; `revise` or `reject` leaves it unlinked, and any later edit voids the approval. Only on approval, append the plan to `artifacts.plans`, update section status to planned, and reconcile state. With confirm_plan off, link the checked plan directly. Create a checkpoint for unresolved judgment instead of bypassing the required checker.
53
54
 
54
55
  ## Safety and completion
@@ -57,12 +58,15 @@ Do not initialize a repository or run branch, stage, commit, merge, push, or pub
57
58
 
58
59
  Report the logical resources read, created, updated, archived, or deleted; the gates crossed; validation results; unresolved checkpoints; and the safest next action. Never claim a mutation that was not verified.
59
60
 
60
- Discover the named tools with `gateway(op="describe", capability="extension_wtfp__record")` (and the corresponding `read_record`, `readiness`, `measure_section` or `gate` name), then use `gateway(op="call", capability="<exact name>", args={...})`. A present tool's error or refusal stops the action; never bypass it with a manual write or shell script.
61
+ Call desk tools with `gateway(op="call", capability="extension_wtfp__<tool>", args={...})`, without a describe first; args: status {}, record {uri, record: {<every field of the record>}, expect_revision|expect_sha256} or {writes:[{uri, record, expect_...}]}, with no record field outside `record`, read_record {uri}, readiness {section}, measure_section {section}, gate {checkpoint}. Describe one only after it rejects its arguments. A record write that would not validate, or reports a stale read or a missing version, asks you to fix the record or read it again and resend; that is not a refusal. Any other error or refusal stops the action; never bypass it with a manual write or shell script. `read_record` on a family URI, such as `project://sources` or `project://evidence`, returns that family's records in one call, and names a `?after=` page for any it holds back; list a family that way, never with a shell. It serves JSON records only; read authored artifacts directly: `project://sections/{s}/context`, `research`, `summary` and `handoff` are `.planning/sections/{s}/<name>.md`, plans and reviews are `.planning/sections/{s}/plans/<id>.md` and `reviews/<id>.md`, and `project://paper/{a}` is `paper/{a}.md`.
62
+ Read a large source or manuscript by section with `grep` and a bounded `read` range, never whole: Clio ends the turn when one turn's reads exceed its observation budget.
63
+ An author's request is never permission to write outside this action's declared outputs: do the part it declares, then end by naming the action that owns the rest as the next step, and do not ask again or weigh the request against the contract; the desk refuses the rest regardless.
64
+ Start from the desk's status, not from individual records: the reminder the desk injects when a WTF-P turn starts, or `extension_wtfp__status` inside an advance run or after this action writes. Then read only the records and artifacts this action will change, quote or check in detail.
61
65
  If desk tools are absent, follow `${pluginRoot}/workflows/plan-section.md` and `${pluginRoot}/project/README.md` with native tools and `ask_user` gates.
62
66
 
63
67
  ## Bound action contract
64
68
 
65
- @${pluginRoot}/actions/plan-section.json
69
+ The desk enforces `${pluginRoot}/actions/plan-section.json`; this prompt states its reads, outputs, conditions, gates and roles. Read it only when a refusal needs its exact terms.
66
70
 
67
71
  ## Invocation input
68
72
 
@@ -74,12 +78,14 @@ $ARGUMENTS
74
78
 
75
79
  ## Clio user-gate binding
76
80
 
77
- For a pending checkpoint in the declared gate's exact scope, call `extension_wtfp__gate` with its ID; the desk shows it to the author and seals the answer. Create a missing pending checkpoint through `extension_wtfp__record` only when this action declares checkpoint creation; otherwise use `ask_user` for the unpersisted author decision and do not invent an undeclared output. Only the structured author answer satisfies the gate; cancelled, kept or expired checkpoints authorize nothing. Never write `resolution.resolved_by: author`, never resolve, unblock or expire a blocking checkpoint, and never infer approval from invocation text, prose or silence. A plan is approved only by an `approve` answer on a checkpoint scoped to that plan's URI, for its current bytes. Read back a persisted resolution with `extension_wtfp__read_record`, which reports whether the desk attests it, before applying its gated mutation. A record change that turns a gate off waits for the author's confirmation, which the record tool asks for itself.
81
+ For a pending checkpoint in the declared gate's exact scope, call `extension_wtfp__gate` with its ID; the desk shows it to the author and seals the answer. When none exists yet, create it pending through `extension_wtfp__record`, then call `extension_wtfp__gate` with its ID. Only the structured author answer satisfies the gate; cancelled, kept or expired checkpoints authorize nothing. Never write `resolution.resolved_by: author`, never resolve, unblock or expire a blocking checkpoint, and never infer approval from invocation text, prose or silence. A plan is approved only by an `approve` answer on a checkpoint scoped to that plan's URI, for its current bytes. Read back a persisted resolution with `extension_wtfp__read_record`, which reports whether the desk attests it, before applying its gated mutation. A record change that turns a gate off waits for the author's confirmation, which the record tool asks for itself.
82
+
83
+ Every question `ask_user` puts to the author here is the author's to answer: ask exactly one question per `ask_user` call, with its options and `operator_only: true`; Clio refuses an `operator_only` question sent with others. Clio never answers such a question for an absent author; an unanswered one ends the turn instead of taking a recommended option, so a timeout never becomes an author decision.
78
84
 
79
85
  ## Clio role-result binding
80
86
 
81
- Dispatch the declared specialist roles using these exact Clio agent IDs: `wtfp-section-planner`, `wtfp-plan-checker`. Do not substitute generic coder or verifier agents. If a named agent is unavailable, report that blocker and stop instead of silently changing roles. `wtfp-plan-checker` is read-only: begin each task for it with "Review", because Clio refuses a read-only agent a task it reads as a change.
87
+ Dispatch the declared specialist roles using these exact Clio agent IDs: `wtfp-section-planner`, `wtfp-plan-checker`. Do not substitute generic coder or verifier agents. Give every dispatched task an `agent` and an `intent` with workspace-relative `read_roots`, and keep absolute paths and `project://` URIs out of the task text, so Clio admits the scope you declare instead of inferring one from the prose. If a named agent is unavailable, report that blocker and stop instead of silently changing roles. `wtfp-plan-checker` is read-only: begin each task for it with "Review", because Clio refuses a read-only agent a task it reads as a change.
82
88
 
83
- Read the single wtfp.role-result entry in native validations/checks and parse its evidence string as portable role-result JSON. Validate its schema, role and action against the dispatched task. Missing, duplicate or malformed outcomes fail closed. On needs_input ask the author through ask_user and redispatch with the response; on blocked or failed stop and report the issue. Only completed permits downstream work, and it never substitutes for an author gate or artifact readback.
89
+ Read the single wtfp.role-result entry in native validations and parse its evidence string as portable role-result JSON. A read-only reviewer returns only a verdict and checks, no wtfp.role-result entry: treat its report as completed, each failed check as an issue, and a fail verdict as a revise recommendation. Validate its schema, role and action against the dispatched task. Missing, duplicate or malformed outcomes fail closed. On needs_input ask the author through ask_user and redispatch with the response; on blocked or failed stop and report the issue. Only completed permits downstream work, and it never substitutes for an author gate or artifact readback.
84
90
 
85
91
  <!-- Generated by WTF-P adapter compiler v5 from protocol/actions/plan-section; do not edit. -->
@@ -12,6 +12,7 @@ allowed-tools:
12
12
  - ask_user
13
13
  - dispatch
14
14
  - monitor
15
+ - extension_wtfp__status
15
16
  - extension_wtfp__record
16
17
  - extension_wtfp__read_record
17
18
  - extension_wtfp__readiness
@@ -31,7 +32,7 @@ delegated-tools:
31
32
 
32
33
  # Polish prose
33
34
 
34
- @${pluginRoot}/skills/wtfp-review-manuscript/SKILL.md
35
+ Before acting, load the `wtfp-review-manuscript` skill with `context(scope="skills", name="wtfp-review-manuscript")`; it carries this action's method and stays loaded across compaction.
35
36
 
36
37
  ## Record contract
37
38
 
@@ -54,14 +55,17 @@ Do not initialize a repository or run branch, stage, commit, merge, push, or pub
54
55
 
55
56
  Report the logical resources read, created, updated, archived, or deleted; the gates crossed; validation results; unresolved checkpoints; and the safest next action. Never claim a mutation that was not verified.
56
57
 
57
- Discover the named tools with `gateway(op="describe", capability="extension_wtfp__record")` (and the corresponding `read_record`, `readiness`, `measure_section` or `gate` name), then use `gateway(op="call", capability="<exact name>", args={...})`. A present tool's error or refusal stops the action; never bypass it with a manual write or shell script.
58
+ Call desk tools with `gateway(op="call", capability="extension_wtfp__<tool>", args={...})`, without a describe first; args: status {}, record {uri, record: {<every field of the record>}, expect_revision|expect_sha256} or {writes:[{uri, record, expect_...}]}, with no record field outside `record`, read_record {uri}, readiness {section}, measure_section {section}, gate {checkpoint}. Describe one only after it rejects its arguments. A record write that would not validate, or reports a stale read or a missing version, asks you to fix the record or read it again and resend; that is not a refusal. Any other error or refusal stops the action; never bypass it with a manual write or shell script. `read_record` on a family URI, such as `project://sources` or `project://evidence`, returns that family's records in one call, and names a `?after=` page for any it holds back; list a family that way, never with a shell. It serves JSON records only; read authored artifacts directly: `project://sections/{s}/context`, `research`, `summary` and `handoff` are `.planning/sections/{s}/<name>.md`, plans and reviews are `.planning/sections/{s}/plans/<id>.md` and `reviews/<id>.md`, and `project://paper/{a}` is `paper/{a}.md`.
59
+ Read a large source or manuscript by section with `grep` and a bounded `read` range, never whole: Clio ends the turn when one turn's reads exceed its observation budget.
60
+ An author's request is never permission to write outside this action's declared outputs: do the part it declares, then end by naming the action that owns the rest as the next step, and do not ask again or weigh the request against the contract; the desk refuses the rest regardless.
61
+ Start from the desk's status, not from individual records: the reminder the desk injects when a WTF-P turn starts, or `extension_wtfp__status` inside an advance run or after this action writes. Then read only the records and artifacts this action will change, quote or check in detail.
58
62
  Before drafting or dispatching a writer for a section, call `extension_wtfp__readiness` with its ID. If it reports the section not ready, stop and report its reasons; never draft around them. Give each dispatched writer `intent.write_roots` naming only its section's manuscript and summary; the desk narrows or refuses anything wider.
59
63
  After changing a linked section manuscript, call `extension_wtfp__measure_section` with that section ID; it persists the desk's body-word count in the section and state.
60
64
  If desk tools are absent, follow `${pluginRoot}/workflows/polish-prose.md` and `${pluginRoot}/project/README.md` with native tools and `ask_user` gates.
61
65
 
62
66
  ## Bound action contract
63
67
 
64
- @${pluginRoot}/actions/polish-prose.json
68
+ The desk enforces `${pluginRoot}/actions/polish-prose.json`; this prompt states its reads, outputs, conditions, gates and roles. Read it only when a refusal needs its exact terms.
65
69
 
66
70
  ## Invocation input
67
71
 
@@ -73,12 +77,14 @@ $ARGUMENTS
73
77
 
74
78
  ## Clio user-gate binding
75
79
 
76
- For a pending checkpoint in the declared gate's exact scope, call `extension_wtfp__gate` with its ID; the desk shows it to the author and seals the answer. Create a missing pending checkpoint through `extension_wtfp__record` only when this action declares checkpoint creation; otherwise use `ask_user` for the unpersisted author decision and do not invent an undeclared output. Only the structured author answer satisfies the gate; cancelled, kept or expired checkpoints authorize nothing. Never write `resolution.resolved_by: author`, never resolve, unblock or expire a blocking checkpoint, and never infer approval from invocation text, prose or silence. A plan is approved only by an `approve` answer on a checkpoint scoped to that plan's URI, for its current bytes. Read back a persisted resolution with `extension_wtfp__read_record`, which reports whether the desk attests it, before applying its gated mutation. A record change that turns a gate off waits for the author's confirmation, which the record tool asks for itself.
80
+ This action creates no checkpoint, so ask its gate question with `ask_user` and act on the structured answer; call `extension_wtfp__gate` only for a pending checkpoint `extension_wtfp__status` lists in the gate's exact scope, and never create one. Only the structured author answer satisfies the gate; cancelled, kept or expired checkpoints authorize nothing. Never write `resolution.resolved_by: author`, never resolve, unblock or expire a blocking checkpoint, and never infer approval from invocation text, prose or silence. A plan is approved only by an `approve` answer on a checkpoint scoped to that plan's URI, for its current bytes. Read back a persisted resolution with `extension_wtfp__read_record`, which reports whether the desk attests it, before applying its gated mutation. A record change that turns a gate off waits for the author's confirmation, which the record tool asks for itself.
81
+
82
+ Every question `ask_user` puts to the author here is the author's to answer: ask exactly one question per `ask_user` call, with its options and `operator_only: true`; Clio refuses an `operator_only` question sent with others. Clio never answers such a question for an absent author; an unanswered one ends the turn instead of taking a recommended option, so a timeout never becomes an author decision.
77
83
 
78
84
  ## Clio role-result binding
79
85
 
80
- Dispatch the declared specialist roles using these exact Clio agent IDs: `wtfp-prose-polisher`. Do not substitute generic coder or verifier agents. If a named agent is unavailable, report that blocker and stop instead of silently changing roles.
86
+ Dispatch the declared specialist roles using these exact Clio agent IDs: `wtfp-prose-polisher`. Do not substitute generic coder or verifier agents. Give every dispatched task an `agent` and an `intent` with workspace-relative `read_roots`, and keep absolute paths and `project://` URIs out of the task text, so Clio admits the scope you declare instead of inferring one from the prose. If a named agent is unavailable, report that blocker and stop instead of silently changing roles.
81
87
 
82
- Read the single wtfp.role-result entry in native validations/checks and parse its evidence string as portable role-result JSON. Validate its schema, role and action against the dispatched task. Missing, duplicate or malformed outcomes fail closed. On needs_input ask the author through ask_user and redispatch with the response; on blocked or failed stop and report the issue. Only completed permits downstream work, and it never substitutes for an author gate or artifact readback.
88
+ Read the single wtfp.role-result entry in native validations and parse its evidence string as portable role-result JSON. Validate its schema, role and action against the dispatched task. Missing, duplicate or malformed outcomes fail closed. On needs_input ask the author through ask_user and redispatch with the response; on blocked or failed stop and report the issue. Only completed permits downstream work, and it never substitutes for an author gate or artifact readback.
83
89
 
84
90
  <!-- Generated by WTF-P adapter compiler v5 from protocol/actions/polish-prose; do not edit. -->
@@ -8,22 +8,24 @@ allowed-tools:
8
8
  - ls
9
9
  - context
10
10
  - ask_user
11
+ - extension_wtfp__status
12
+ - extension_wtfp__read_record
13
+ - extension_wtfp__readiness
14
+ - extension_wtfp__gate
11
15
  ---
12
16
 
13
17
  # Show project progress
14
18
 
15
- @${pluginRoot}/project/README.md
16
- @${pluginRoot}/skills/wtfp-manage-project/SKILL.md
17
- @${pluginRoot}/skills/wtfp-manage-project/references/actions.md
19
+ Before acting, load the `wtfp-manage-project` skill with `context(scope="skills", name="wtfp-manage-project")`; it carries this action's method and stays loaded across compaction.
18
20
 
19
21
  ## Record contract
20
22
 
21
23
  Read: `project://manifest`, `project://config`, `project://state`, `project://decisions`, `project://structure/outline`, `project://sections/{section}`, `project://sections/{section}/plans/{plan}`, `project://sections/{section}/reviews/{review}`, `project://sections/{section}/summary`, `project://sections/{section}/handoff`, `project://sources/{source}`, `project://evidence/{evidence}`, `project://checkpoints/{checkpoint}`, `project://validations/{validation}`, `project://paper/{artifact}`.
22
24
  Produce: none.
23
25
 
24
- Resolve every logical URI through the host adapter. Portable v1 JSON records are the source of truth: schema-validate before a write, preserve stable IDs, update revision and timestamps where required, and replace records atomically. Never pass a literal logical URI to a shell command or infer record state from a legacy Markdown control file.
26
+ Read each JSON record with `extension_wtfp__read_record` at its logical URI; it returns the record, its revision and SHA-256, and for a checkpoint whether the author's answer is attested. This action writes no JSON record.
25
27
 
26
- Manuscript prose and supporting context, research, plan, review, summary, handoff, and deliverable artifacts retain their authored format (normally Markdown). Link them from the relevant v1 record; do not convert manuscript prose into project-state JSON.
28
+ Write prose and linked artifacts with native file tools; keep their authored formats. The record tool handles JSON records only, never manuscript text, deletion or archives.
27
29
 
28
30
  ## Procedure
29
31
 
@@ -37,30 +39,15 @@ Do not initialize a repository or run branch, stage, commit, merge, push, or pub
37
39
 
38
40
  Report the logical resources read, created, updated, archived, or deleted; the gates crossed; validation results; unresolved checkpoints; and the safest next action. Never claim a mutation that was not verified.
39
41
 
40
- ## Bound action contract and schemas
41
-
42
- @${pluginRoot}/actions/progress.json
43
- @${pluginRoot}/project/schemas/common.schema.json
44
- @${pluginRoot}/project/schemas/checkpoint.schema.json
45
- @${pluginRoot}/project/templates/checkpoint.json
46
- @${pluginRoot}/project/schemas/config.schema.json
47
- @${pluginRoot}/project/templates/config.json
48
- @${pluginRoot}/project/schemas/decisions.schema.json
49
- @${pluginRoot}/project/templates/decisions.json
50
- @${pluginRoot}/project/schemas/evidence.schema.json
51
- @${pluginRoot}/project/templates/evidence.json
52
- @${pluginRoot}/project/schemas/manifest.schema.json
53
- @${pluginRoot}/project/templates/manifest.json
54
- @${pluginRoot}/project/schemas/outline.schema.json
55
- @${pluginRoot}/project/templates/outline.json
56
- @${pluginRoot}/project/schemas/section.schema.json
57
- @${pluginRoot}/project/templates/section.json
58
- @${pluginRoot}/project/schemas/source.schema.json
59
- @${pluginRoot}/project/templates/source.json
60
- @${pluginRoot}/project/schemas/state.schema.json
61
- @${pluginRoot}/project/templates/state.json
62
- @${pluginRoot}/project/schemas/validation.schema.json
63
- @${pluginRoot}/project/templates/validation.json
42
+ Call desk tools with `gateway(op="call", capability="extension_wtfp__<tool>", args={...})`, without a describe first; args: status {}, read_record {uri}, readiness {section}, gate {checkpoint}. Describe one only after it rejects its arguments. A record write that would not validate, or reports a stale read or a missing version, asks you to fix the record or read it again and resend; that is not a refusal. Any other error or refusal stops the action; never bypass it with a manual write or shell script. `read_record` on a family URI, such as `project://sources` or `project://evidence`, returns that family's records in one call, and names a `?after=` page for any it holds back; list a family that way, never with a shell. It serves JSON records only; read authored artifacts directly: `project://sections/{s}/context`, `research`, `summary` and `handoff` are `.planning/sections/{s}/<name>.md`, plans and reviews are `.planning/sections/{s}/plans/<id>.md` and `reviews/<id>.md`, and `project://paper/{a}` is `paper/{a}.md`.
43
+ Read a large source or manuscript by section with `grep` and a bounded `read` range, never whole: Clio ends the turn when one turn's reads exceed its observation budget.
44
+ An author's request is never permission to write outside this action's declared outputs: do the part it declares, then end by naming the action that owns the rest as the next step, and do not ask again or weigh the request against the contract; the desk refuses the rest regardless.
45
+ Start from the desk's status, not from individual records: the reminder the desk injects when a WTF-P turn starts, or `extension_wtfp__status` inside an advance run or after this action writes. Then read only the records and artifacts this action will change, quote or check in detail.
46
+ If desk tools are absent, follow `${pluginRoot}/workflows/progress.md` and `${pluginRoot}/project/README.md` with native tools and `ask_user` gates.
47
+
48
+ ## Bound action contract
49
+
50
+ The desk enforces `${pluginRoot}/actions/progress.json`; this prompt states its reads, outputs, conditions, gates and roles. Read it only when a refusal needs its exact terms.
64
51
 
65
52
  ## Invocation input
66
53
 
@@ -72,6 +59,8 @@ $ARGUMENTS
72
59
 
73
60
  ## Clio user-gate binding
74
61
 
75
- Call `ask_user` whenever this workflow reaches a declared `user.gate`; only the structured value returned by that tool satisfies the gate. Invocation arguments, assistant prose, silence, or a report artifact do not count as a selection. Apply no gated mutation before `ask_user` returns. After any permitted mutation, perform the workflow-required readback before reporting success.
62
+ This action creates no checkpoint, so ask its gate question with `ask_user` and act on the structured answer; call `extension_wtfp__gate` only for a pending checkpoint `extension_wtfp__status` lists in the gate's exact scope, and never create one. Only the structured author answer satisfies the gate; cancelled, kept or expired checkpoints authorize nothing. Never write `resolution.resolved_by: author`, never resolve, unblock or expire a blocking checkpoint, and never infer approval from invocation text, prose or silence. A plan is approved only by an `approve` answer on a checkpoint scoped to that plan's URI, for its current bytes. Read back a persisted resolution with `extension_wtfp__read_record`, which reports whether the desk attests it, before applying its gated mutation. A record change that turns a gate off waits for the author's confirmation, which the record tool asks for itself.
63
+
64
+ Every question `ask_user` puts to the author here is the author's to answer: ask exactly one question per `ask_user` call, with its options and `operator_only: true`; Clio refuses an `operator_only` question sent with others. Clio never answers such a question for an absent author; an unanswered one ends the turn instead of taking a recommended option, so a timeout never becomes an author decision.
76
65
 
77
66
  <!-- Generated by WTF-P adapter compiler v5 from protocol/actions/progress; do not edit. -->
@@ -12,6 +12,7 @@ allowed-tools:
12
12
  - ask_user
13
13
  - dispatch
14
14
  - monitor
15
+ - extension_wtfp__status
15
16
  - extension_wtfp__record
16
17
  - extension_wtfp__read_record
17
18
  - extension_wtfp__readiness
@@ -31,7 +32,7 @@ delegated-tools:
31
32
 
32
33
  # Make a quick writing change
33
34
 
34
- @${pluginRoot}/skills/wtfp-write-section/SKILL.md
35
+ Before acting, load the `wtfp-write-section` skill with `context(scope="skills", name="wtfp-write-section")`; it carries this action's method and stays loaded across compaction.
35
36
 
36
37
  ## Record contract
37
38
 
@@ -54,14 +55,17 @@ Do not initialize a repository or run branch, stage, commit, merge, push, or pub
54
55
 
55
56
  Report the logical resources read, created, updated, archived, or deleted; the gates crossed; validation results; unresolved checkpoints; and the safest next action. Never claim a mutation that was not verified.
56
57
 
57
- Discover the named tools with `gateway(op="describe", capability="extension_wtfp__record")` (and the corresponding `read_record`, `readiness`, `measure_section` or `gate` name), then use `gateway(op="call", capability="<exact name>", args={...})`. A present tool's error or refusal stops the action; never bypass it with a manual write or shell script.
58
+ Call desk tools with `gateway(op="call", capability="extension_wtfp__<tool>", args={...})`, without a describe first; args: status {}, record {uri, record: {<every field of the record>}, expect_revision|expect_sha256} or {writes:[{uri, record, expect_...}]}, with no record field outside `record`, read_record {uri}, readiness {section}, measure_section {section}, gate {checkpoint}. Describe one only after it rejects its arguments. A record write that would not validate, or reports a stale read or a missing version, asks you to fix the record or read it again and resend; that is not a refusal. Any other error or refusal stops the action; never bypass it with a manual write or shell script. `read_record` on a family URI, such as `project://sources` or `project://evidence`, returns that family's records in one call, and names a `?after=` page for any it holds back; list a family that way, never with a shell. It serves JSON records only; read authored artifacts directly: `project://sections/{s}/context`, `research`, `summary` and `handoff` are `.planning/sections/{s}/<name>.md`, plans and reviews are `.planning/sections/{s}/plans/<id>.md` and `reviews/<id>.md`, and `project://paper/{a}` is `paper/{a}.md`.
59
+ Read a large source or manuscript by section with `grep` and a bounded `read` range, never whole: Clio ends the turn when one turn's reads exceed its observation budget.
60
+ An author's request is never permission to write outside this action's declared outputs: do the part it declares, then end by naming the action that owns the rest as the next step, and do not ask again or weigh the request against the contract; the desk refuses the rest regardless.
61
+ Start from the desk's status, not from individual records: the reminder the desk injects when a WTF-P turn starts, or `extension_wtfp__status` inside an advance run or after this action writes. Then read only the records and artifacts this action will change, quote or check in detail.
58
62
  Before drafting or dispatching a writer for a section, call `extension_wtfp__readiness` with its ID. If it reports the section not ready, stop and report its reasons; never draft around them. Give each dispatched writer `intent.write_roots` naming only its section's manuscript and summary; the desk narrows or refuses anything wider.
59
63
  After changing a linked section manuscript, call `extension_wtfp__measure_section` with that section ID; it persists the desk's body-word count in the section and state.
60
64
  If desk tools are absent, follow `${pluginRoot}/workflows/quick.md` and `${pluginRoot}/project/README.md` with native tools and `ask_user` gates.
61
65
 
62
66
  ## Bound action contract
63
67
 
64
- @${pluginRoot}/actions/quick.json
68
+ The desk enforces `${pluginRoot}/actions/quick.json`; this prompt states its reads, outputs, conditions, gates and roles. Read it only when a refusal needs its exact terms.
65
69
 
66
70
  ## Invocation input
67
71
 
@@ -73,12 +77,14 @@ $ARGUMENTS
73
77
 
74
78
  ## Clio user-gate binding
75
79
 
76
- For a pending checkpoint in the declared gate's exact scope, call `extension_wtfp__gate` with its ID; the desk shows it to the author and seals the answer. Create a missing pending checkpoint through `extension_wtfp__record` only when this action declares checkpoint creation; otherwise use `ask_user` for the unpersisted author decision and do not invent an undeclared output. Only the structured author answer satisfies the gate; cancelled, kept or expired checkpoints authorize nothing. Never write `resolution.resolved_by: author`, never resolve, unblock or expire a blocking checkpoint, and never infer approval from invocation text, prose or silence. A plan is approved only by an `approve` answer on a checkpoint scoped to that plan's URI, for its current bytes. Read back a persisted resolution with `extension_wtfp__read_record`, which reports whether the desk attests it, before applying its gated mutation. A record change that turns a gate off waits for the author's confirmation, which the record tool asks for itself.
80
+ This action creates no checkpoint, so ask its gate question with `ask_user` and act on the structured answer; call `extension_wtfp__gate` only for a pending checkpoint `extension_wtfp__status` lists in the gate's exact scope, and never create one. Only the structured author answer satisfies the gate; cancelled, kept or expired checkpoints authorize nothing. Never write `resolution.resolved_by: author`, never resolve, unblock or expire a blocking checkpoint, and never infer approval from invocation text, prose or silence. A plan is approved only by an `approve` answer on a checkpoint scoped to that plan's URI, for its current bytes. Read back a persisted resolution with `extension_wtfp__read_record`, which reports whether the desk attests it, before applying its gated mutation. A record change that turns a gate off waits for the author's confirmation, which the record tool asks for itself.
81
+
82
+ Every question `ask_user` puts to the author here is the author's to answer: ask exactly one question per `ask_user` call, with its options and `operator_only: true`; Clio refuses an `operator_only` question sent with others. Clio never answers such a question for an absent author; an unanswered one ends the turn instead of taking a recommended option, so a timeout never becomes an author decision.
77
83
 
78
84
  ## Clio role-result binding
79
85
 
80
- Dispatch the declared specialist roles using these exact Clio agent IDs: `wtfp-section-writer`. Do not substitute generic coder or verifier agents. If a named agent is unavailable, report that blocker and stop instead of silently changing roles.
86
+ Dispatch the declared specialist roles using these exact Clio agent IDs: `wtfp-section-writer`. Do not substitute generic coder or verifier agents. Give every dispatched task an `agent` and an `intent` with workspace-relative `read_roots`, and keep absolute paths and `project://` URIs out of the task text, so Clio admits the scope you declare instead of inferring one from the prose. If a named agent is unavailable, report that blocker and stop instead of silently changing roles.
81
87
 
82
- Read the single wtfp.role-result entry in native validations/checks and parse its evidence string as portable role-result JSON. Validate its schema, role and action against the dispatched task. Missing, duplicate or malformed outcomes fail closed. On needs_input ask the author through ask_user and redispatch with the response; on blocked or failed stop and report the issue. Only completed permits downstream work, and it never substitutes for an author gate or artifact readback.
88
+ Read the single wtfp.role-result entry in native validations and parse its evidence string as portable role-result JSON. Validate its schema, role and action against the dispatched task. Missing, duplicate or malformed outcomes fail closed. On needs_input ask the author through ask_user and redispatch with the response; on blocked or failed stop and report the issue. Only completed permits downstream work, and it never substitutes for an author gate or artifact readback.
83
89
 
84
90
  <!-- Generated by WTF-P adapter compiler v5 from protocol/actions/quick; do not edit. -->