wtf-p 0.8.1 → 0.8.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (464) hide show
  1. package/README.md +33 -18
  2. package/bin/lib/adapter-compiler.js +274 -56
  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/review-section.md +2 -2
  22. package/protocol/workflows/verify-work.md +4 -2
  23. package/protocol/workflows/write-section.md +2 -2
  24. package/vendors/antigravity/.wtfp-generated.json +55 -43
  25. package/vendors/antigravity/actions/advance.json +232 -0
  26. package/vendors/antigravity/actions/plan-revision.json +8 -3
  27. package/vendors/antigravity/actions/verify-work.json +6 -2
  28. package/vendors/antigravity/agents/wtfp-research-synthesizer.md +1 -1
  29. package/vendors/antigravity/aliases.lock.json +1 -0
  30. package/vendors/antigravity/catalog.json +4 -2
  31. package/vendors/antigravity/compatibility/action-availability.json +13 -1
  32. package/vendors/antigravity/plugin.json +2 -2
  33. package/vendors/antigravity/project/README.md +2 -0
  34. package/vendors/antigravity/roles/research-synthesizer.md +1 -1
  35. package/vendors/antigravity/rules/wtfp-project-state.md +2 -0
  36. package/vendors/antigravity/skills/wtfp-add-todo/SKILL.md +0 -2
  37. package/vendors/antigravity/skills/wtfp-advance/SKILL.md +18 -0
  38. package/vendors/antigravity/skills/wtfp-checkpoint/SKILL.md +0 -14
  39. package/vendors/antigravity/skills/wtfp-create-outline/SKILL.md +0 -8
  40. package/vendors/antigravity/skills/wtfp-create-poster/SKILL.md +1 -6
  41. package/vendors/antigravity/skills/wtfp-create-slides/SKILL.md +1 -6
  42. package/vendors/antigravity/skills/wtfp-discuss-section/SKILL.md +1 -5
  43. package/vendors/antigravity/skills/wtfp-execute-outline/SKILL.md +0 -10
  44. package/vendors/antigravity/skills/wtfp-help/SKILL.md +1 -1
  45. package/vendors/antigravity/skills/wtfp-list-assumptions/SKILL.md +1 -10
  46. package/vendors/antigravity/skills/wtfp-manage-project/SKILL.md +2 -1
  47. package/vendors/antigravity/skills/wtfp-manage-project/references/actions.md +29 -1
  48. package/vendors/antigravity/skills/wtfp-pause-writing/SKILL.md +0 -6
  49. package/vendors/antigravity/skills/wtfp-plan-milestone-gaps/SKILL.md +0 -6
  50. package/vendors/antigravity/skills/wtfp-plan-revision/SKILL.md +5 -11
  51. package/vendors/antigravity/skills/wtfp-plan-section/references/actions.md +1 -1
  52. package/vendors/antigravity/skills/wtfp-polish-prose/SKILL.md +0 -6
  53. package/vendors/antigravity/skills/wtfp-progress/SKILL.md +1 -22
  54. package/vendors/antigravity/skills/wtfp-quick/SKILL.md +0 -4
  55. package/vendors/antigravity/skills/wtfp-research-literature/references/actions.md +1 -1
  56. package/vendors/antigravity/skills/wtfp-resume-writing/SKILL.md +0 -12
  57. package/vendors/antigravity/skills/wtfp-review-manuscript/references/actions.md +2 -1
  58. package/vendors/antigravity/skills/wtfp-review-section/SKILL.md +2 -10
  59. package/vendors/antigravity/skills/wtfp-submit-milestone/SKILL.md +0 -12
  60. package/vendors/antigravity/skills/wtfp-verify-work/SKILL.md +6 -4
  61. package/vendors/antigravity/tools/README.md +1 -1
  62. package/vendors/antigravity/workflows/advance.md +38 -0
  63. package/vendors/antigravity/workflows/discuss-section.md +1 -1
  64. package/vendors/antigravity/workflows/plan-revision.md +3 -3
  65. package/vendors/antigravity/workflows/plan-section.md +1 -1
  66. package/vendors/antigravity/workflows/research-gap.md +3 -3
  67. package/vendors/antigravity/workflows/review-section.md +2 -2
  68. package/vendors/antigravity/workflows/verify-work.md +4 -2
  69. package/vendors/antigravity/workflows/write-section.md +2 -2
  70. package/vendors/claude/.claude-plugin/marketplace.json +2 -2
  71. package/vendors/claude/.claude-plugin/plugin.json +1 -1
  72. package/vendors/claude/.wtfp-generated.json +109 -93
  73. package/vendors/claude/actions/advance.json +232 -0
  74. package/vendors/claude/actions/plan-revision.json +8 -3
  75. package/vendors/claude/actions/verify-work.json +6 -2
  76. package/vendors/claude/agents/wtfp-research-synthesizer.md +1 -1
  77. package/vendors/claude/ai.iowarp.clio/agents/wtfp-argument-verifier.md +4 -5
  78. package/vendors/claude/ai.iowarp.clio/agents/wtfp-citation-expert.md +5 -5
  79. package/vendors/claude/ai.iowarp.clio/agents/wtfp-citation-formatter.md +3 -3
  80. package/vendors/claude/ai.iowarp.clio/agents/wtfp-coherence-checker.md +6 -7
  81. package/vendors/claude/ai.iowarp.clio/agents/wtfp-outliner.md +3 -3
  82. package/vendors/claude/ai.iowarp.clio/agents/wtfp-plan-checker.md +4 -5
  83. package/vendors/claude/ai.iowarp.clio/agents/wtfp-prose-polisher.md +4 -4
  84. package/vendors/claude/ai.iowarp.clio/agents/wtfp-research-synthesizer.md +6 -6
  85. package/vendors/claude/ai.iowarp.clio/agents/wtfp-section-planner.md +3 -3
  86. package/vendors/claude/ai.iowarp.clio/agents/wtfp-section-reviewer.md +6 -7
  87. package/vendors/claude/ai.iowarp.clio/agents/wtfp-section-writer.md +5 -3
  88. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/add-todo.md +0 -2
  89. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/advance.md +15 -0
  90. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/analyze-bib.md +4 -8
  91. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/audit-milestone.md +2 -16
  92. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/check-refs.md +4 -8
  93. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/check-todos.md +2 -0
  94. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/checkpoint.md +2 -14
  95. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/create-outline.md +4 -10
  96. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/create-poster.md +3 -6
  97. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/create-slides.md +3 -6
  98. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/discuss-section.md +3 -5
  99. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/execute-outline.md +4 -12
  100. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/export-latex.md +2 -8
  101. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/help.md +4 -1
  102. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/insert-section.md +2 -0
  103. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/list-assumptions.md +1 -10
  104. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/new-paper.md +2 -0
  105. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/pause-writing.md +0 -6
  106. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/plan-milestone-gaps.md +2 -6
  107. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/plan-revision.md +7 -11
  108. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/plan-section.md +5 -15
  109. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/polish-prose.md +4 -8
  110. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/progress.md +3 -22
  111. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/quick.md +4 -6
  112. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/research-gap.md +12 -14
  113. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/resume-writing.md +2 -12
  114. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/review-section.md +6 -12
  115. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/settings.md +2 -0
  116. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/submit-milestone.md +2 -12
  117. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/verify-work.md +8 -4
  118. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/write-section.md +6 -14
  119. package/vendors/claude/aliases.lock.json +1 -0
  120. package/vendors/claude/catalog.json +4 -2
  121. package/vendors/claude/commands/add-todo.md +0 -2
  122. package/vendors/claude/commands/advance.md +16 -0
  123. package/vendors/claude/commands/analyze-bib.md +0 -6
  124. package/vendors/claude/commands/audit-milestone.md +0 -16
  125. package/vendors/claude/commands/check-refs.md +0 -6
  126. package/vendors/claude/commands/checkpoint.md +0 -14
  127. package/vendors/claude/commands/create-outline.md +0 -8
  128. package/vendors/claude/commands/create-poster.md +1 -6
  129. package/vendors/claude/commands/create-slides.md +1 -6
  130. package/vendors/claude/commands/discuss-section.md +1 -5
  131. package/vendors/claude/commands/execute-outline.md +0 -10
  132. package/vendors/claude/commands/export-latex.md +0 -8
  133. package/vendors/claude/commands/help.md +1 -1
  134. package/vendors/claude/commands/list-assumptions.md +1 -10
  135. package/vendors/claude/commands/pause-writing.md +0 -6
  136. package/vendors/claude/commands/plan-milestone-gaps.md +0 -6
  137. package/vendors/claude/commands/plan-revision.md +5 -11
  138. package/vendors/claude/commands/plan-section.md +1 -13
  139. package/vendors/claude/commands/polish-prose.md +0 -6
  140. package/vendors/claude/commands/progress.md +1 -22
  141. package/vendors/claude/commands/quick.md +0 -4
  142. package/vendors/claude/commands/research-gap.md +3 -11
  143. package/vendors/claude/commands/resume-writing.md +0 -12
  144. package/vendors/claude/commands/review-section.md +2 -10
  145. package/vendors/claude/commands/submit-milestone.md +0 -12
  146. package/vendors/claude/commands/verify-work.md +6 -4
  147. package/vendors/claude/commands/write-section.md +2 -12
  148. package/vendors/claude/compatibility/action-availability.json +10 -1
  149. package/vendors/claude/output-styles/wtfp-academic-writing.md +2 -2
  150. package/vendors/claude/plugin.json +15 -1
  151. package/vendors/claude/project/README.md +2 -0
  152. package/vendors/claude/roles/research-synthesizer.md +1 -1
  153. package/vendors/claude/skills/wtfp-manage-project/SKILL.md +2 -1
  154. package/vendors/claude/skills/wtfp-manage-project/references/actions.md +29 -1
  155. package/vendors/claude/skills/wtfp-plan-section/references/actions.md +1 -1
  156. package/vendors/claude/skills/wtfp-research-literature/references/actions.md +1 -1
  157. package/vendors/claude/skills/wtfp-review-manuscript/references/actions.md +2 -1
  158. package/vendors/claude/tools/README.md +1 -1
  159. package/vendors/claude/workflows/advance.md +38 -0
  160. package/vendors/claude/workflows/discuss-section.md +1 -1
  161. package/vendors/claude/workflows/plan-revision.md +3 -3
  162. package/vendors/claude/workflows/plan-section.md +1 -1
  163. package/vendors/claude/workflows/research-gap.md +3 -3
  164. package/vendors/claude/workflows/review-section.md +2 -2
  165. package/vendors/claude/workflows/verify-work.md +4 -2
  166. package/vendors/claude/workflows/write-section.md +2 -2
  167. package/vendors/clio-extension/.wtfp-generated.json +56 -8
  168. package/vendors/clio-extension/actions/advance.json +232 -0
  169. package/vendors/clio-extension/actions/plan-revision.json +8 -3
  170. package/vendors/clio-extension/actions/verify-work.json +6 -2
  171. package/vendors/clio-extension/clio-coder-extension.yaml +19 -4
  172. package/vendors/clio-extension/compatibility/action-availability.json +9 -3
  173. package/vendors/clio-extension/project/templates/checkpoint.json +25 -0
  174. package/vendors/clio-extension/project/templates/config.json +31 -0
  175. package/vendors/clio-extension/project/templates/decisions.json +35 -0
  176. package/vendors/clio-extension/project/templates/evidence.json +18 -0
  177. package/vendors/clio-extension/project/templates/interaction.json +16 -0
  178. package/vendors/clio-extension/project/templates/manifest.json +30 -0
  179. package/vendors/clio-extension/project/templates/outline.json +38 -0
  180. package/vendors/clio-extension/project/templates/section.json +32 -0
  181. package/vendors/clio-extension/project/templates/source.json +20 -0
  182. package/vendors/clio-extension/project/templates/state.json +22 -0
  183. package/vendors/clio-extension/project/templates/validation.json +32 -0
  184. package/vendors/clio-extension/runtime/extension.test.ts +724 -6
  185. package/vendors/clio-extension/runtime/extension.ts +1028 -42
  186. package/vendors/clio-extension/runtime/write-guard.json +66 -0
  187. package/vendors/codex/plugins/wtfp/.codex-plugin/plugin.json +1 -1
  188. package/vendors/codex/plugins/wtfp/.wtfp-generated.json +32 -24
  189. package/vendors/codex/plugins/wtfp/actions/advance.json +232 -0
  190. package/vendors/codex/plugins/wtfp/actions/plan-revision.json +8 -3
  191. package/vendors/codex/plugins/wtfp/actions/verify-work.json +6 -2
  192. package/vendors/codex/plugins/wtfp/agents/wtfp-research-synthesizer.toml +1 -1
  193. package/vendors/codex/plugins/wtfp/aliases.lock.json +1 -0
  194. package/vendors/codex/plugins/wtfp/catalog.json +4 -2
  195. package/vendors/codex/plugins/wtfp/compatibility/action-availability.json +13 -1
  196. package/vendors/codex/plugins/wtfp/plugin.json +1 -1
  197. package/vendors/codex/plugins/wtfp/project/README.md +2 -0
  198. package/vendors/codex/plugins/wtfp/roles/research-synthesizer.md +1 -1
  199. package/vendors/codex/plugins/wtfp/skills/wtfp-manage-project/SKILL.md +2 -1
  200. package/vendors/codex/plugins/wtfp/skills/wtfp-manage-project/references/actions.md +29 -1
  201. package/vendors/codex/plugins/wtfp/skills/wtfp-plan-section/references/actions.md +1 -1
  202. package/vendors/codex/plugins/wtfp/skills/wtfp-research-literature/references/actions.md +1 -1
  203. package/vendors/codex/plugins/wtfp/skills/wtfp-review-manuscript/references/actions.md +2 -1
  204. package/vendors/codex/plugins/wtfp/tools/README.md +1 -1
  205. package/vendors/codex/plugins/wtfp/workflows/advance.md +38 -0
  206. package/vendors/codex/plugins/wtfp/workflows/discuss-section.md +1 -1
  207. package/vendors/codex/plugins/wtfp/workflows/plan-revision.md +3 -3
  208. package/vendors/codex/plugins/wtfp/workflows/plan-section.md +1 -1
  209. package/vendors/codex/plugins/wtfp/workflows/research-gap.md +3 -3
  210. package/vendors/codex/plugins/wtfp/workflows/review-section.md +2 -2
  211. package/vendors/codex/plugins/wtfp/workflows/verify-work.md +4 -2
  212. package/vendors/codex/plugins/wtfp/workflows/write-section.md +2 -2
  213. package/vendors/copilot/.wtfp-generated.json +44 -32
  214. package/vendors/copilot/marketplace.json +2 -2
  215. package/vendors/copilot/plugins/wtfp/.claude-plugin/plugin.json +1 -1
  216. package/vendors/copilot/plugins/wtfp/.wtfp-generated.json +56 -44
  217. package/vendors/copilot/plugins/wtfp/actions/advance.json +232 -0
  218. package/vendors/copilot/plugins/wtfp/actions/plan-revision.json +8 -3
  219. package/vendors/copilot/plugins/wtfp/actions/verify-work.json +6 -2
  220. package/vendors/copilot/plugins/wtfp/agents/wtfp-research-synthesizer.md +1 -1
  221. package/vendors/copilot/plugins/wtfp/aliases.lock.json +1 -0
  222. package/vendors/copilot/plugins/wtfp/catalog.json +4 -2
  223. package/vendors/copilot/plugins/wtfp/commands/wtfp-add-todo.md +0 -2
  224. package/vendors/copilot/plugins/wtfp/commands/wtfp-advance.md +17 -0
  225. package/vendors/copilot/plugins/wtfp/commands/wtfp-checkpoint.md +0 -14
  226. package/vendors/copilot/plugins/wtfp/commands/wtfp-create-outline.md +0 -8
  227. package/vendors/copilot/plugins/wtfp/commands/wtfp-create-poster.md +1 -6
  228. package/vendors/copilot/plugins/wtfp/commands/wtfp-create-slides.md +1 -6
  229. package/vendors/copilot/plugins/wtfp/commands/wtfp-discuss-section.md +1 -5
  230. package/vendors/copilot/plugins/wtfp/commands/wtfp-execute-outline.md +0 -10
  231. package/vendors/copilot/plugins/wtfp/commands/wtfp-help.md +1 -1
  232. package/vendors/copilot/plugins/wtfp/commands/wtfp-list-assumptions.md +1 -10
  233. package/vendors/copilot/plugins/wtfp/commands/wtfp-pause-writing.md +0 -6
  234. package/vendors/copilot/plugins/wtfp/commands/wtfp-plan-milestone-gaps.md +0 -6
  235. package/vendors/copilot/plugins/wtfp/commands/wtfp-plan-revision.md +5 -11
  236. package/vendors/copilot/plugins/wtfp/commands/wtfp-plan-section.md +1 -13
  237. package/vendors/copilot/plugins/wtfp/commands/wtfp-polish-prose.md +0 -6
  238. package/vendors/copilot/plugins/wtfp/commands/wtfp-progress.md +1 -22
  239. package/vendors/copilot/plugins/wtfp/commands/wtfp-quick.md +0 -4
  240. package/vendors/copilot/plugins/wtfp/commands/wtfp-resume-writing.md +0 -12
  241. package/vendors/copilot/plugins/wtfp/commands/wtfp-review-section.md +2 -10
  242. package/vendors/copilot/plugins/wtfp/commands/wtfp-submit-milestone.md +0 -12
  243. package/vendors/copilot/plugins/wtfp/commands/wtfp-verify-work.md +6 -4
  244. package/vendors/copilot/plugins/wtfp/commands/wtfp-write-section.md +2 -12
  245. package/vendors/copilot/plugins/wtfp/compatibility/action-availability.json +13 -1
  246. package/vendors/copilot/plugins/wtfp/project/README.md +2 -0
  247. package/vendors/copilot/plugins/wtfp/roles/research-synthesizer.md +1 -1
  248. package/vendors/copilot/plugins/wtfp/skills/wtfp-manage-project/SKILL.md +2 -1
  249. package/vendors/copilot/plugins/wtfp/skills/wtfp-manage-project/references/actions.md +29 -1
  250. package/vendors/copilot/plugins/wtfp/skills/wtfp-plan-section/references/actions.md +1 -1
  251. package/vendors/copilot/plugins/wtfp/skills/wtfp-research-literature/references/actions.md +1 -1
  252. package/vendors/copilot/plugins/wtfp/skills/wtfp-review-manuscript/references/actions.md +2 -1
  253. package/vendors/copilot/plugins/wtfp/tools/README.md +1 -1
  254. package/vendors/copilot/plugins/wtfp/workflows/advance.md +38 -0
  255. package/vendors/copilot/plugins/wtfp/workflows/discuss-section.md +1 -1
  256. package/vendors/copilot/plugins/wtfp/workflows/plan-revision.md +3 -3
  257. package/vendors/copilot/plugins/wtfp/workflows/plan-section.md +1 -1
  258. package/vendors/copilot/plugins/wtfp/workflows/research-gap.md +3 -3
  259. package/vendors/copilot/plugins/wtfp/workflows/review-section.md +2 -2
  260. package/vendors/copilot/plugins/wtfp/workflows/verify-work.md +4 -2
  261. package/vendors/copilot/plugins/wtfp/workflows/write-section.md +2 -2
  262. package/vendors/copilot/project/.github/agents/wtfp-research-synthesizer.agent.md +1 -1
  263. package/vendors/copilot/project/.github/prompts/wtfp-add-todo.prompt.md +0 -2
  264. package/vendors/copilot/project/.github/prompts/wtfp-advance.prompt.md +18 -0
  265. package/vendors/copilot/project/.github/prompts/wtfp-help.prompt.md +1 -1
  266. package/vendors/copilot/project/.github/prompts/wtfp-list-assumptions.prompt.md +1 -10
  267. package/vendors/copilot/project/.github/prompts/wtfp-pause-writing.prompt.md +0 -6
  268. package/vendors/copilot/project/.github/skills/wtfp-manage-project/SKILL.md +2 -1
  269. package/vendors/copilot/project/.github/skills/wtfp-manage-project/references/actions.md +25 -1
  270. package/vendors/copilot/project/.github/skills/wtfp-plan-section/references/actions.md +1 -1
  271. package/vendors/copilot/project/.github/skills/wtfp-research-literature/references/actions.md +1 -1
  272. package/vendors/copilot/project/.github/skills/wtfp-review-manuscript/references/actions.md +2 -1
  273. package/vendors/copilot/project/.github/wtfp/actions/advance.json +232 -0
  274. package/vendors/copilot/project/.github/wtfp/actions/plan-revision.json +8 -3
  275. package/vendors/copilot/project/.github/wtfp/actions/verify-work.json +6 -2
  276. package/vendors/copilot/project/.github/wtfp/aliases.lock.json +1 -0
  277. package/vendors/copilot/project/.github/wtfp/catalog.json +4 -2
  278. package/vendors/copilot/project/.github/wtfp/compatibility/action-availability.json +14 -1
  279. package/vendors/copilot/project/.github/wtfp/project/README.md +2 -0
  280. package/vendors/copilot/project/.github/wtfp/roles/research-synthesizer.md +1 -1
  281. package/vendors/copilot/project/.github/wtfp/skills/wtfp-manage-project/SKILL.md +2 -1
  282. package/vendors/copilot/project/.github/wtfp/skills/wtfp-manage-project/references/actions.md +13 -1
  283. package/vendors/copilot/project/.github/wtfp/skills/wtfp-plan-section/references/actions.md +1 -1
  284. package/vendors/copilot/project/.github/wtfp/skills/wtfp-research-literature/references/actions.md +1 -1
  285. package/vendors/copilot/project/.github/wtfp/skills/wtfp-review-manuscript/references/actions.md +2 -1
  286. package/vendors/copilot/project/.github/wtfp/workflows/advance.md +38 -0
  287. package/vendors/copilot/project/.github/wtfp/workflows/discuss-section.md +1 -1
  288. package/vendors/copilot/project/.github/wtfp/workflows/plan-revision.md +3 -3
  289. package/vendors/copilot/project/.github/wtfp/workflows/plan-section.md +1 -1
  290. package/vendors/copilot/project/.github/wtfp/workflows/research-gap.md +3 -3
  291. package/vendors/copilot/project/.github/wtfp/workflows/review-section.md +2 -2
  292. package/vendors/copilot/project/.github/wtfp/workflows/verify-work.md +4 -2
  293. package/vendors/copilot/project/.github/wtfp/workflows/write-section.md +2 -2
  294. package/vendors/copilot/project/README.md +1 -1
  295. package/vendors/gemini/.wtfp-generated.json +61 -49
  296. package/vendors/gemini/actions/advance.json +232 -0
  297. package/vendors/gemini/actions/plan-revision.json +8 -3
  298. package/vendors/gemini/actions/verify-work.json +6 -2
  299. package/vendors/gemini/agents/wtfp-research-synthesizer.md +1 -1
  300. package/vendors/gemini/aliases.lock.json +1 -0
  301. package/vendors/gemini/catalog.json +4 -2
  302. package/vendors/gemini/commands/wtfp/add-todo.toml +17 -144
  303. package/vendors/gemini/commands/wtfp/advance.toml +14 -0
  304. package/vendors/gemini/commands/wtfp/check-todos.toml +17 -2
  305. package/vendors/gemini/commands/wtfp/checkpoint.toml +17 -735
  306. package/vendors/gemini/commands/wtfp/create-outline.toml +2 -431
  307. package/vendors/gemini/commands/wtfp/create-poster.toml +3 -296
  308. package/vendors/gemini/commands/wtfp/create-slides.toml +3 -296
  309. package/vendors/gemini/commands/wtfp/discuss-section.toml +4 -259
  310. package/vendors/gemini/commands/wtfp/execute-outline.toml +2 -480
  311. package/vendors/gemini/commands/wtfp/help.toml +7 -3
  312. package/vendors/gemini/commands/wtfp/insert-section.toml +3 -1
  313. package/vendors/gemini/commands/wtfp/list-assumptions.toml +4 -510
  314. package/vendors/gemini/commands/wtfp/map-project.toml +2 -0
  315. package/vendors/gemini/commands/wtfp/new-paper.toml +2 -0
  316. package/vendors/gemini/commands/wtfp/pause-writing.toml +17 -309
  317. package/vendors/gemini/commands/wtfp/plan-milestone-gaps.toml +4 -369
  318. package/vendors/gemini/commands/wtfp/plan-revision.toml +76 -423
  319. package/vendors/gemini/commands/wtfp/plan-section.toml +4 -624
  320. package/vendors/gemini/commands/wtfp/polish-prose.toml +4 -329
  321. package/vendors/gemini/commands/wtfp/progress.toml +18 -1143
  322. package/vendors/gemini/commands/wtfp/quick.toml +2 -218
  323. package/vendors/gemini/commands/wtfp/resume-writing.toml +17 -698
  324. package/vendors/gemini/commands/wtfp/review-section.toml +6 -412
  325. package/vendors/gemini/commands/wtfp/settings.toml +17 -2
  326. package/vendors/gemini/commands/wtfp/submit-milestone.toml +2 -617
  327. package/vendors/gemini/commands/wtfp/verify-work.toml +123 -53
  328. package/vendors/gemini/commands/wtfp/write-section.toml +4 -482
  329. package/vendors/gemini/compatibility/action-availability.json +13 -1
  330. package/vendors/gemini/gemini-extension.json +1 -1
  331. package/vendors/gemini/project/README.md +2 -0
  332. package/vendors/gemini/roles/research-synthesizer.md +1 -1
  333. package/vendors/gemini/skills/wtfp-manage-project/SKILL.md +2 -1
  334. package/vendors/gemini/skills/wtfp-manage-project/references/actions.md +29 -1
  335. package/vendors/gemini/skills/wtfp-plan-section/references/actions.md +1 -1
  336. package/vendors/gemini/skills/wtfp-research-literature/references/actions.md +1 -1
  337. package/vendors/gemini/skills/wtfp-review-manuscript/references/actions.md +2 -1
  338. package/vendors/gemini/tools/README.md +1 -1
  339. package/vendors/gemini/workflows/advance.md +38 -0
  340. package/vendors/gemini/workflows/discuss-section.md +1 -1
  341. package/vendors/gemini/workflows/plan-revision.md +3 -3
  342. package/vendors/gemini/workflows/plan-section.md +1 -1
  343. package/vendors/gemini/workflows/research-gap.md +3 -3
  344. package/vendors/gemini/workflows/review-section.md +2 -2
  345. package/vendors/gemini/workflows/verify-work.md +4 -2
  346. package/vendors/gemini/workflows/write-section.md +2 -2
  347. package/vendors/opencode/.wtfp-generated.json +60 -48
  348. package/vendors/opencode/actions/advance.json +232 -0
  349. package/vendors/opencode/actions/plan-revision.json +8 -3
  350. package/vendors/opencode/actions/verify-work.json +6 -2
  351. package/vendors/opencode/agents/wtfp/research-synthesizer.md +1 -1
  352. package/vendors/opencode/aliases.lock.json +1 -0
  353. package/vendors/opencode/catalog.json +4 -2
  354. package/vendors/opencode/commands/wtfp/add-todo.md +17 -144
  355. package/vendors/opencode/commands/wtfp/advance.md +16 -0
  356. package/vendors/opencode/commands/wtfp/check-todos.md +17 -2
  357. package/vendors/opencode/commands/wtfp/checkpoint.md +17 -735
  358. package/vendors/opencode/commands/wtfp/create-outline.md +2 -431
  359. package/vendors/opencode/commands/wtfp/create-poster.md +3 -296
  360. package/vendors/opencode/commands/wtfp/create-slides.md +3 -296
  361. package/vendors/opencode/commands/wtfp/discuss-section.md +4 -259
  362. package/vendors/opencode/commands/wtfp/execute-outline.md +2 -480
  363. package/vendors/opencode/commands/wtfp/help.md +7 -3
  364. package/vendors/opencode/commands/wtfp/insert-section.md +3 -1
  365. package/vendors/opencode/commands/wtfp/list-assumptions.md +4 -510
  366. package/vendors/opencode/commands/wtfp/map-project.md +2 -0
  367. package/vendors/opencode/commands/wtfp/new-paper.md +2 -0
  368. package/vendors/opencode/commands/wtfp/pause-writing.md +17 -309
  369. package/vendors/opencode/commands/wtfp/plan-milestone-gaps.md +4 -369
  370. package/vendors/opencode/commands/wtfp/plan-revision.md +76 -423
  371. package/vendors/opencode/commands/wtfp/plan-section.md +4 -624
  372. package/vendors/opencode/commands/wtfp/polish-prose.md +4 -329
  373. package/vendors/opencode/commands/wtfp/progress.md +18 -1143
  374. package/vendors/opencode/commands/wtfp/quick.md +2 -218
  375. package/vendors/opencode/commands/wtfp/resume-writing.md +17 -698
  376. package/vendors/opencode/commands/wtfp/review-section.md +6 -412
  377. package/vendors/opencode/commands/wtfp/settings.md +17 -2
  378. package/vendors/opencode/commands/wtfp/submit-milestone.md +2 -617
  379. package/vendors/opencode/commands/wtfp/verify-work.md +123 -53
  380. package/vendors/opencode/commands/wtfp/write-section.md +4 -482
  381. package/vendors/opencode/compatibility/action-availability.json +13 -1
  382. package/vendors/opencode/project/README.md +2 -0
  383. package/vendors/opencode/roles/research-synthesizer.md +1 -1
  384. package/vendors/opencode/skills/wtfp-manage-project/SKILL.md +2 -1
  385. package/vendors/opencode/skills/wtfp-manage-project/references/actions.md +29 -1
  386. package/vendors/opencode/skills/wtfp-plan-section/references/actions.md +1 -1
  387. package/vendors/opencode/skills/wtfp-research-literature/references/actions.md +1 -1
  388. package/vendors/opencode/skills/wtfp-review-manuscript/references/actions.md +2 -1
  389. package/vendors/opencode/tools/README.md +1 -1
  390. package/vendors/opencode/workflows/advance.md +38 -0
  391. package/vendors/opencode/workflows/discuss-section.md +1 -1
  392. package/vendors/opencode/workflows/plan-revision.md +3 -3
  393. package/vendors/opencode/workflows/plan-section.md +1 -1
  394. package/vendors/opencode/workflows/research-gap.md +3 -3
  395. package/vendors/opencode/workflows/review-section.md +2 -2
  396. package/vendors/opencode/workflows/verify-work.md +4 -2
  397. package/vendors/opencode/workflows/write-section.md +2 -2
  398. package/vendors/plugin/.wtfp-generated.json +76 -64
  399. package/vendors/plugin/actions/advance.json +232 -0
  400. package/vendors/plugin/actions/plan-revision.json +8 -3
  401. package/vendors/plugin/actions/verify-work.json +6 -2
  402. package/vendors/plugin/ai.iowarp.clio/agents/wtfp-argument-verifier.md +4 -5
  403. package/vendors/plugin/ai.iowarp.clio/agents/wtfp-citation-expert.md +5 -5
  404. package/vendors/plugin/ai.iowarp.clio/agents/wtfp-citation-formatter.md +3 -3
  405. package/vendors/plugin/ai.iowarp.clio/agents/wtfp-coherence-checker.md +6 -7
  406. package/vendors/plugin/ai.iowarp.clio/agents/wtfp-outliner.md +3 -3
  407. package/vendors/plugin/ai.iowarp.clio/agents/wtfp-plan-checker.md +4 -5
  408. package/vendors/plugin/ai.iowarp.clio/agents/wtfp-prose-polisher.md +4 -4
  409. package/vendors/plugin/ai.iowarp.clio/agents/wtfp-research-synthesizer.md +6 -6
  410. package/vendors/plugin/ai.iowarp.clio/agents/wtfp-section-planner.md +3 -3
  411. package/vendors/plugin/ai.iowarp.clio/agents/wtfp-section-reviewer.md +6 -7
  412. package/vendors/plugin/ai.iowarp.clio/agents/wtfp-section-writer.md +5 -3
  413. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/add-todo.md +7 -3
  414. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/advance.md +101 -0
  415. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/analyze-bib.md +11 -19
  416. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/audit-milestone.md +10 -4
  417. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/check-refs.md +12 -6
  418. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/check-todos.md +10 -4
  419. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/checkpoint.md +10 -4
  420. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/create-outline.md +11 -19
  421. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/create-poster.md +18 -13
  422. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/create-slides.md +18 -13
  423. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/discuss-section.md +11 -5
  424. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/execute-outline.md +12 -6
  425. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/export-latex.md +10 -4
  426. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/help.md +4 -1
  427. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/insert-section.md +10 -4
  428. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/list-assumptions.md +15 -17
  429. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/map-project.md +7 -3
  430. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/new-paper.md +10 -4
  431. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/pause-writing.md +7 -3
  432. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/plan-milestone-gaps.md +10 -4
  433. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/plan-revision.md +13 -7
  434. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/plan-section.md +13 -7
  435. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/polish-prose.md +12 -6
  436. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/progress.md +19 -30
  437. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/quick.md +12 -6
  438. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/research-gap.md +20 -10
  439. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/resume-writing.md +10 -4
  440. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/review-section.md +14 -8
  441. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/settings.md +10 -4
  442. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/submit-milestone.md +12 -4
  443. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/verify-work.md +14 -6
  444. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/write-section.md +15 -9
  445. package/vendors/plugin/aliases.lock.json +1 -0
  446. package/vendors/plugin/catalog.json +4 -2
  447. package/vendors/plugin/compatibility/action-availability.json +9 -3
  448. package/vendors/plugin/plugin.json +15 -1
  449. package/vendors/plugin/project/README.md +2 -0
  450. package/vendors/plugin/roles/research-synthesizer.md +1 -1
  451. package/vendors/plugin/skills/wtfp-manage-project/SKILL.md +2 -1
  452. package/vendors/plugin/skills/wtfp-manage-project/references/actions.md +13 -1
  453. package/vendors/plugin/skills/wtfp-plan-section/references/actions.md +1 -1
  454. package/vendors/plugin/skills/wtfp-research-literature/references/actions.md +1 -1
  455. package/vendors/plugin/skills/wtfp-review-manuscript/references/actions.md +2 -1
  456. package/vendors/plugin/tools/README.md +1 -1
  457. package/vendors/plugin/workflows/advance.md +38 -0
  458. package/vendors/plugin/workflows/discuss-section.md +1 -1
  459. package/vendors/plugin/workflows/plan-revision.md +3 -3
  460. package/vendors/plugin/workflows/plan-section.md +1 -1
  461. package/vendors/plugin/workflows/research-gap.md +3 -3
  462. package/vendors/plugin/workflows/review-section.md +2 -2
  463. package/vendors/plugin/workflows/verify-work.md +4 -2
  464. package/vendors/plugin/workflows/write-section.md +2 -2
@@ -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
@@ -28,7 +29,7 @@ delegated-tools:
28
29
 
29
30
  # Review a section
30
31
 
31
- @${pluginRoot}/skills/wtfp-review-manuscript/SKILL.md
32
+ 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.
32
33
 
33
34
  ## Record contract
34
35
 
@@ -41,8 +42,8 @@ Write prose and linked artifacts with native file tools; keep their authored for
41
42
 
42
43
  ## Procedure
43
44
 
44
- 1. Resolve one manuscript section, its outline claims, context, plan, research, summary, decisions, evidence, neighboring prose, and review rubric.
45
- 2. Dispatch one read-only review of claim coverage, reasoning, evidence, citations, coherence, prose, and requirements. If the structured result is malformed, allow at most one corrective retry for result-contract compliance; never retry until a reviewer says pass, and do not retry warning-only or explicitly accepted debt.
45
+ 1. Resolve one manuscript section, its outline claims, context, plan, research, summary, decisions, evidence, neighboring prose, and review rubric. Review the current draft against the section's goal, claims, decisions, and the plans that shaped its content. A revision plan's preservation or no-change criteria governed that revision and its verification; they are not criteria for a later review.
46
+ 2. Dispatch one read-only review of claim coverage, reasoning, evidence, citations, coherence, prose, and requirements. If the structured result is malformed, allow at most one corrective retry for result-contract compliance; never retry until a reviewer says pass, and do not retry warning-only or explicitly accepted debt. A reviewer's fail verdict is the review's result, not a failed run: record the review and an `issues-found` validation with each failed check as an issue.
46
47
  3. Write layer, confidence, location, impact, recommendation, and other rich detail in the Markdown review. Encode the read-only validation using only members allowed by the closed v1 schema; issue objects contain only severity, summary, and optional evidence, and the root never gains an `input_revisions` member. Disputed findings go through a user gate; accepted warning debt remains an `issues-found` result and does not authorize manuscript edits.
47
48
  4. Update only the section record to link the review. Review does not write project state, create a pause checkpoint or handoff, invoke pause implicitly, or invent a `paused` phase; leave lifecycle transitions to their owning actions.
48
49
 
@@ -52,12 +53,15 @@ Do not initialize a repository or run branch, stage, commit, merge, push, or pub
52
53
 
53
54
  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.
54
55
 
55
- 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.
56
+ 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`.
57
+ 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.
58
+ 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.
59
+ 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.
56
60
  If desk tools are absent, follow `${pluginRoot}/workflows/review-section.md` and `${pluginRoot}/project/README.md` with native tools and `ask_user` gates.
57
61
 
58
62
  ## Bound action contract
59
63
 
60
- @${pluginRoot}/actions/review-section.json
64
+ The desk enforces `${pluginRoot}/actions/review-section.json`; this prompt states its reads, outputs, conditions, gates and roles. Read it only when a refusal needs its exact terms.
61
65
 
62
66
  ## Invocation input
63
67
 
@@ -69,12 +73,14 @@ $ARGUMENTS
69
73
 
70
74
  ## Clio user-gate binding
71
75
 
72
- 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.
76
+ 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.
77
+
78
+ 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.
73
79
 
74
80
  ## Clio role-result binding
75
81
 
76
- Dispatch the declared specialist roles using these exact Clio agent IDs: `wtfp-section-reviewer`. 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-section-reviewer` 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
+ Dispatch the declared specialist roles using these exact Clio agent IDs: `wtfp-section-reviewer`. 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-section-reviewer` is read-only: begin each task for it with "Review", because Clio refuses a read-only agent a task it reads as a change.
77
83
 
78
- 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.
84
+ 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. Clio's dispatch result calls such a run's validation failed when a check did not pass; that is the review's finding, not a failed run, so record it as the action's procedure says. 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.
79
85
 
80
86
  <!-- Generated by WTF-P adapter compiler v5 from protocol/actions/review-section; 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,7 +20,7 @@ allowed-tools:
19
20
 
20
21
  # Manage project settings
21
22
 
22
- @${pluginRoot}/skills/wtfp-manage-project/SKILL.md
23
+ 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.
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/settings.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/settings.json
54
+ The desk enforces `${pluginRoot}/actions/settings.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
+ 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.
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/settings; do not edit. -->
@@ -10,16 +10,18 @@ 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
16
17
  - extension_wtfp__measure_section
17
18
  - extension_wtfp__gate
19
+ - extension_wtfp__archive
18
20
  ---
19
21
 
20
22
  # Archive a milestone
21
23
 
22
- @${pluginRoot}/skills/wtfp-deliver-research/SKILL.md
24
+ Before acting, load the `wtfp-deliver-research` skill with `context(scope="skills", name="wtfp-deliver-research")`; it carries this action's method and stays loaded across compaction.
23
25
 
24
26
  ## Record contract
25
27
 
@@ -42,12 +44,16 @@ Do not initialize a repository or run branch, stage, commit, merge, push, or pub
42
44
 
43
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.
44
46
 
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.
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}, archive {archive}. 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.
51
+ Make the milestone archive with `extension_wtfp__archive` and its archive id: it copies every `.planning` record and artifact and every `paper/` file into `.planning/archives/<archive>/` with a sha256 manifest, so never copy files by hand. Then record the archive in the manifest and state and write the validation, as the procedure says.
46
52
  If desk tools are absent, follow `${pluginRoot}/workflows/submit-milestone.md` and `${pluginRoot}/project/README.md` with native tools and `ask_user` gates.
47
53
 
48
54
  ## Bound action contract
49
55
 
50
- @${pluginRoot}/actions/submit-milestone.json
56
+ The desk enforces `${pluginRoot}/actions/submit-milestone.json`; this prompt states its reads, outputs, conditions, gates and roles. Read it only when a refusal needs its exact terms.
51
57
 
52
58
  ## Invocation input
53
59
 
@@ -59,6 +65,8 @@ $ARGUMENTS
59
65
 
60
66
  ## Clio user-gate binding
61
67
 
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.
68
+ 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.
69
+
70
+ 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
71
 
64
72
  <!-- Generated by WTF-P adapter compiler v5 from protocol/actions/submit-milestone; 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
  # Verify written work
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
 
26
27
  Read: `project://state`, `project://sections/{section}`, `project://sections/{section}/plans/{plan}`, `project://evidence/{evidence}`, `project://paper/{artifact}`, `project://validations/{validation}`.
27
- Produce: `project://validations/{validation}` (create), `project://validations/{validation}` (update), `project://sections/{section}` (update), `project://state` (update).
28
+ Produce: `project://validations/{validation}` (create), `project://validations/{validation}` (update), `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
 
@@ -34,7 +35,9 @@ Write prose and linked artifacts with native file tools; keep their authored for
34
35
 
35
36
  1. Resolve the selected plan, section record, manuscript artifact, claims, and evidence.
36
37
  2. Run acceptance, scope, citation, argument, and decision-fidelity checks without editing the subject.
37
- 3. Write a validation, updating it after each answered check, with passed/failed checks, issues, evidence, limitations, and next actions; reconcile status only from the result.
38
+ 3. Write a validation, updating it after each answered check, with passed/failed checks, issues, evidence, limitations, and next actions.
39
+ 4. When the validation is complete, create one pending blocking `decision` checkpoint scoped to that validation's URI, with options `accept` and `revise` and `resume_action` `verify-work`, and ask the author. Only an author's `accept` marks the section `complete`; `revise` leaves it `reviewing`, and `plan-revision` owns the fix. The validation result alone never completes a section.
40
+ 5. When a rerun finds the acceptance checkpoint for the current validation already resolved, apply its resolution to the section and state instead of asking again.
38
41
 
39
42
  ## Safety and completion
40
43
 
@@ -42,12 +45,15 @@ Do not initialize a repository or run branch, stage, commit, merge, push, or pub
42
45
 
43
46
  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
47
 
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.
48
+ 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`.
49
+ 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.
50
+ 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.
51
+ 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
52
  If desk tools are absent, follow `${pluginRoot}/workflows/verify-work.md` and `${pluginRoot}/project/README.md` with native tools and `ask_user` gates.
47
53
 
48
54
  ## Bound action contract
49
55
 
50
- @${pluginRoot}/actions/verify-work.json
56
+ The desk enforces `${pluginRoot}/actions/verify-work.json`; this prompt states its reads, outputs, conditions, gates and roles. Read it only when a refusal needs its exact terms.
51
57
 
52
58
  ## Invocation input
53
59
 
@@ -59,6 +65,8 @@ $ARGUMENTS
59
65
 
60
66
  ## Clio user-gate binding
61
67
 
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.
68
+ 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. The gate is the only place its question is asked: never ask it, or a preview of it, with `ask_user`, or the author answers twice. 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.
69
+
70
+ 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
71
 
64
72
  <!-- Generated by WTF-P adapter compiler v5 from protocol/actions/verify-work; 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
  # Write a section
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
 
@@ -46,9 +47,9 @@ Write prose and linked artifacts with native file tools; keep their authored for
46
47
 
47
48
  1. Require the section's current plan, the last one linked from the section record, to be approved: with confirm_plan on, an `approve` answer on its plan checkpoint must have been given for its current bytes (see the protocol README). Resolve all linked context, research, source/evidence records, decisions, prior summary, existing target, and necessary neighboring prose before choosing create or update.
48
49
  2. Before drafting a literature-heavy section, verify that its linked research artifact and source/evidence records cover the plan's factual claims. If coverage is missing, create the declared checkpoint naming the uncovered claims and stop; `research-gap` produces the missing sources and evidence. Draft only the declared manuscript artifact; cite only resolvable sources, preserve author constraints, and stop at blocking decisions. A plausible bibliography entry, search candidate, or model memory is not a verified citation.
49
- 3. Read back the persisted manuscript, call `extension_wtfp__measure_section` with its section ID, and use the returned body count and target tolerance for validation and the summary; never use a worker self-report or hand-count words.
50
- 4. Create or update the required Markdown summary with that measured count, then read back both manuscript and summary. Missing, empty, or inconsistent output is a failed completion condition, not permission to link a path that does not exist.
51
- 5. Persist the validation, synchronize the manuscript URI in `manifest.artifacts.manuscripts`, and reconcile section/state records only after manuscript, summary, and validation readback succeeds. If blocked, create the declared checkpoint and stop; do not commit or merge automatically.
50
+ 3. Open the manuscript with the section's outline title as its only level-one heading, exactly as the outline spells it; numbering is applied at document assembly. Read the persisted manuscript text back and calculate its actual body word count with one deterministic method; never copy a worker self-report, plan target, or summary count into project records. Validate the persisted draft against its plan and word budget.
51
+ 4. A dispatched writer has no word counter, so tell it to write the summary without a count; then add the measured count to the summary yourself and read back both manuscript and summary. Missing, empty, or inconsistent output is a failed completion condition, not permission to link a path that does not exist.
52
+ 5. Persist the validation, synchronize the manuscript URI in `manifest.artifacts.manuscripts`, and reconcile section/state records only after manuscript, summary, and validation readback succeeds. A draft that satisfies its plan sets the section to `reviewing`; `writing` means the draft is still incomplete. If blocked, create the declared checkpoint and stop; do not commit or merge automatically.
52
53
 
53
54
  ## Safety and completion
54
55
 
@@ -56,13 +57,16 @@ Do not initialize a repository or run branch, stage, commit, merge, push, or pub
56
57
 
57
58
  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.
58
59
 
59
- 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.
60
+ 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`.
61
+ 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.
62
+ 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.
63
+ 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.
60
64
  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.
61
65
  If desk tools are absent, follow `${pluginRoot}/workflows/write-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/write-section.json
69
+ The desk enforces `${pluginRoot}/actions/write-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. The gate is the only place its question is asked: never ask it, or a preview of it, with `ask_user`, or the author answers twice. 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-writer`, `wtfp-argument-verifier`. 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-argument-verifier` 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-writer`, `wtfp-argument-verifier`. 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-argument-verifier` 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. Clio's dispatch result calls such a run's validation failed when a check did not pass; that is the review's finding, not a failed run, so record it as the action's procedure says. 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/write-section; do not edit. -->
@@ -3,6 +3,7 @@
3
3
  "namespace": "wtfp",
4
4
  "aliases": [
5
5
  { "action": "add-todo", "alias": "wtfp:add-todo" },
6
+ { "action": "advance", "alias": "wtfp:advance" },
6
7
  { "action": "analyze-bib", "alias": "wtfp:analyze-bib" },
7
8
  { "action": "audit-milestone", "alias": "wtfp:audit-milestone" },
8
9
  { "action": "check-refs", "alias": "wtfp:check-refs" },
@@ -3,13 +3,14 @@
3
3
  "version": 1,
4
4
  "namespace": "wtfp",
5
5
  "counts": {
6
- "actions": 36,
7
- "domainActions": 31,
6
+ "actions": 37,
7
+ "domainActions": 32,
8
8
  "operations": 5,
9
9
  "skills": 7
10
10
  },
11
11
  "actions": [
12
12
  { "contract": "protocol://actions/add-todo.json", "id": "add-todo" },
13
+ { "contract": "protocol://actions/advance.json", "id": "advance" },
13
14
  { "contract": "protocol://actions/analyze-bib.json", "id": "analyze-bib" },
14
15
  { "contract": "protocol://actions/audit-milestone.json", "id": "audit-milestone" },
15
16
  { "contract": "protocol://actions/check-refs.json", "id": "check-refs" },
@@ -69,6 +70,7 @@
69
70
  {
70
71
  "actions": [
71
72
  "add-todo",
73
+ "advance",
72
74
  "check-todos",
73
75
  "checkpoint",
74
76
  "pause-writing",
@@ -6,8 +6,7 @@
6
6
  "actionScoped": true,
7
7
  "surface": "clio:template-allowed-tools",
8
8
  "certificationAutonomy": [
9
- "read-only",
10
- "suggest"
9
+ "default"
11
10
  ],
12
11
  "undeclaredToolCall": "fail"
13
12
  },
@@ -24,7 +23,8 @@
24
23
  "tool.execute": "clio:bash",
25
24
  "user.interaction": "clio:ask_user",
26
25
  "vcs.branch": null,
27
- "vcs.commit": null
26
+ "vcs.commit": null,
27
+ "workflow.drive": "clio:wtfp-desk-driver"
28
28
  },
29
29
  "approvalBindings": {
30
30
  "none": "clio:permission-policy",
@@ -57,6 +57,12 @@
57
57
  "unavailableCapabilities": [],
58
58
  "unavailableEffects": []
59
59
  },
60
+ {
61
+ "id": "advance",
62
+ "status": "available",
63
+ "unavailableCapabilities": [],
64
+ "unavailableEffects": []
65
+ },
60
66
  {
61
67
  "id": "analyze-bib",
62
68
  "status": "available",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
3
3
  "name": "wtfp",
4
- "version": "0.8.1",
4
+ "version": "0.8.3",
5
5
  "description": "Portable, evidence-grounded academic research and writing workflows.",
6
6
  "author": {
7
7
  "name": "akougkas"
@@ -28,6 +28,20 @@
28
28
  "path": "ai.iowarp.clio/prompts/wtfp/add-todo.md",
29
29
  "requires": []
30
30
  },
31
+ {
32
+ "kind": "prompt",
33
+ "id": "advance",
34
+ "path": "ai.iowarp.clio/prompts/wtfp/advance.md",
35
+ "requires": [
36
+ "agent:outliner",
37
+ "agent:research-synthesizer",
38
+ "agent:section-planner",
39
+ "agent:plan-checker",
40
+ "agent:section-writer",
41
+ "agent:argument-verifier",
42
+ "agent:section-reviewer"
43
+ ]
44
+ },
31
45
  {
32
46
  "kind": "prompt",
33
47
  "id": "analyze-bib",
@@ -50,6 +50,8 @@ The JSON records above are the interoperable source of truth, while research and
50
50
  - Keep the manifest's `materials`, `manuscripts`, `deliverables`, and `archives` indexes synchronized with authored artifacts. Section records retain immutable plan/review history arrays, their current handoff, and linked checkpoints instead of hiding those relationships in prose.
51
51
  - Keep authored prose, context, research, plans, reviews, summaries, handoffs, and deliverables in their native format. Link those artifacts from the relevant record instead of treating a Markdown control document as project state.
52
52
  - Reconcile state from records and verified artifacts. Never infer lifecycle status from legacy `PROJECT.md`, `ROADMAP.md`, or `STATE.md` files.
53
+ - Read a large source or manuscript by section: search it, then read the bounded range that matters. A whole-file read of a long document can exhaust a host's per-turn observation budget and end the action before it asks the author anything.
54
+ - An author's request is never permission to write outside the running action's declared outputs. Do the part this action declares, then end by naming the action that owns the rest (for example `research-gap` for source or evidence records) as the next step. Do not ask again or weigh the request against the contract; the contract decides.
53
55
  - A workflow must not initialize a repository, create or switch branches, stage, commit, merge, push, or publish as an incidental side effect. An action that declares a `vcs.*` or external effect must preview the exact operation and cross a separate user gate immediately before that effect. Otherwise it may return only a non-executed handoff.
54
56
 
55
57
  ## Invariants
@@ -42,7 +42,7 @@ Investigate the literature needed to plan and write a specific section well. The
42
42
  ## Boundaries
43
43
 
44
44
  - This is a `mutation-report` role. It may write only the research and suggestion artifacts authorized by the invoking action.
45
- - An operator-configured, trusted read-only CiteNexus MCP connection may search bounded public scholarly metadata without a second per-query gate. In an explicitly selected full-auto host session for this research action, `citation-search --backend=cite-nexus` may also search `crossref`, `datacite`, `europe_pmc`, or `arxiv` without another gate. Other providers or modes require explicit network approval naming providers and query bounds. Honor offline flags and host refusals. Returned results stay candidates, and this role never performs a bibliography write.
45
+ - An operator-configured, trusted read-only CiteNexus MCP connection may search bounded public scholarly metadata without a second per-query gate. In a host session the operator explicitly started without per-call approval cards, for this research action, `citation-search --backend=cite-nexus` may also search `crossref`, `datacite`, `europe_pmc`, or `arxiv` without another gate. Other providers or modes require explicit network approval naming providers and query bounds. Honor offline flags and host refusals. Returned results stay candidates, and this role never performs a bibliography write.
46
46
  - Never fabricate a citation, identifier, quotation, metadata field, source conclusion, or claim of exhaustive coverage.
47
47
  - Never overwrite an existing `project://sources/{source}` record. Additions remain provisional until identity and provenance are verified by an authorized action.
48
48
  - Do not explore alternatives that author decisions explicitly deferred or rejected.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: wtfp-manage-project
3
- description: This skill coordinates the durable state of a research-writing project. It activates when an agent needs to report progress, pause or resume work, save or restore a checkpoint, edit project settings, capture or review todos, choose the next workflow, or perform the WTF-P progress, pause-writing, resume-writing, checkpoint, settings, add-todo, or check-todos actions.
3
+ description: This skill coordinates the durable state of a research-writing project. It activates when an agent needs to report progress, pause or resume work, save or restore a checkpoint, edit project settings, capture or review todos, choose the next workflow, run the next writing actions automatically until the author must decide, or perform the WTF-P advance, progress, pause-writing, resume-writing, checkpoint, settings, add-todo, or check-todos actions.
4
4
  ---
5
5
 
6
6
  # Manage a WTF-P Project
@@ -10,6 +10,7 @@ Keep project state honest, resumable, and useful for routing the next academic a
10
10
  ## Select the action
11
11
 
12
12
  - Use `progress` to reconcile artifacts and recommend the next step.
13
+ - Use `advance` to run the next writing actions automatically, one driver-selected step at a time, until a gate needs the author.
13
14
  - Use `pause-writing` or `resume-writing` to create and consume a session handoff.
14
15
  - Use `checkpoint` to save, list, or restore named snapshots.
15
16
  - Use `settings` to inspect and edit project policy.
@@ -10,11 +10,23 @@ Contract: [protocol/actions/progress.json](../../../actions/progress.json)
10
10
  2. Reconcile outline entries with `project://sections/{section}`, linked plans, summaries, reviews, source/evidence records, validations, manuscript outputs, handoffs, and active checkpoints.
11
11
  3. Calculate actual and target sections and words, section statuses, unresolved validation issues, and active checkpoints from records and verified artifacts. State the counting method and every discrepancy.
12
12
  4. Summarize recent factual transitions, author decisions, completed work, and blockers.
13
- 5. Route by evidence: active checkpoint to resumption; validation issue to revision planning; approved plan to writing; ready unplanned section to discussion/research/planning; written unreviewed section to review; complete outline to milestone audit.
13
+ 5. Route by evidence: active checkpoint to resumption; outline entries without a section record, or an outline without a passing outline validation, to `create-outline`, the only action that creates section records; validation issue to revision planning; approved plan to writing; ready unplanned section to discussion/research/planning; written unreviewed section to review; a reviewed section with no `verify-work` validation since its latest review to `verify-work`; a verify-work acceptance checkpoint resolved `revise` to `plan-revision`, and one resolved `accept` while the section is not yet complete back to `verify-work`, which applies it; complete outline to milestone audit.
14
14
  6. Offer one primary next action plus bounded alternatives. Do not execute it without author confirmation.
15
15
 
16
16
  Completion requires evidence-backed status, surfaced inconsistencies, and a reasoned next action without state mutation.
17
17
 
18
+ ## `advance`
19
+
20
+ Contract: [protocol/actions/advance.json](../../../actions/advance.json)
21
+
22
+ 1. Require initialized project state; otherwise name `new-paper` or `map-project` and stop.
23
+ 2. Ask the host's driver for the next step. Only the driver selects the action and section, from project state by the `progress` ladder, and it confines the step to that action's declared outputs.
24
+ 3. For a pending gate, put it to the author through the host's gate interaction. Continue only after the author's answer; a kept, declined, or unaskable gate ends the run.
25
+ 4. For an action, follow that action's own procedure and contract with the named section, including its author gates and interviews. Ask the driver again when it completes.
26
+ 5. Stop on the driver's stop reason, a failed or blocked step, or a step limit. Report each step, each author answer, and the stop reason.
27
+
28
+ Completion requires that every step ran under its own contract, that no gate was crossed without the author's answer, and an exact stop reason.
29
+
18
30
  ## `pause-writing`
19
31
 
20
32
  Contract: [protocol/actions/pause-writing.json](../../../actions/pause-writing.json)
@@ -98,7 +98,7 @@ Contract: [protocol/actions/plan-revision.json](../../../actions/plan-revision.j
98
98
  - expected revised manuscript and revision summary.
99
99
  6. Never prescribe a cosmetic rewrite for an evidence or argument defect. Route missing evidence to research and structural defects to explicit author approval.
100
100
  7. Validate that every selected issue is addressed once and every excluded issue remains visible.
101
- 8. 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 validation, and ask the author. Append the revision plan to the section's `artifacts.plans` only after an `approve` answer for its current bytes; the plan that produced the reviewed draft is never edited and remains in the history.
101
+ 8. 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 validation, and ask the author. Append the revision plan to the section's `artifacts.plans` only after an `approve` answer for its current bytes, and set the section status to `planned` when you link it; the plan that produced the reviewed draft is never edited and remains in the history.
102
102
 
103
103
  Completion requires a targeted, traceable path from finding to fix to re-verification, and a revision plan the author approved before any rewrite.
104
104
 
@@ -14,7 +14,7 @@ Contract: [protocol/actions/research-gap.json](../../../actions/research-gap.jso
14
14
  - `standard`: run a focused, reproducible search across the most relevant categories;
15
15
  - `deep`: map foundational, recent, competing, gap-defining, and methodological work, including important disagreements and intellectual lineage.
16
16
  5. Form search questions and inclusion criteria before searching. Record databases or corpora, query strings, date, filters, and stopping rule.
17
- 6. Search authoritative scholarly sources with bounded queries. Two routes need no second per-query author gate: a host connection the operator already configured and authorized for read-only public scholarly metadata search, or the bundled CiteNexus dispatcher in a host session explicitly set to full-auto for this research action when every selected provider is a free, no-key public index (`crossref`, `datacite`, `europe_pmc`, or `arxiv`). Record provider IDs, query strings, date, and result limits in the research artifact. Do not send unpublished manuscript text, private notes, or credentials as search terms. Outside those routes, first disclose the providers and bounded query set and obtain explicit author approval. The dispatcher runs only `citation-search --backend=cite-nexus` with an explicit `--providers` list; honor an operator-set offline flag or any host refusal. Returned results stay candidates, and this action performs no bibliography write. Deduplicate candidates by persistent identifier, then normalized title.
17
+ 6. Search authoritative scholarly sources with bounded queries. Two routes need no second per-query author gate: a host connection the operator already configured and authorized for read-only public scholarly metadata search, or the bundled CiteNexus dispatcher in a host session the operator explicitly started without per-call approval cards, for this research action when every selected provider is a free, no-key public index (`crossref`, `datacite`, `europe_pmc`, or `arxiv`). Record provider IDs, query strings, date, and result limits in the research artifact. Do not send unpublished manuscript text, private notes, or credentials as search terms. Outside those routes, first disclose the providers and bounded query set and obtain explicit author approval. The dispatcher runs only `citation-search --backend=cite-nexus` with an explicit `--providers` list; honor an operator-set offline flag or any host refusal. Returned results stay candidates, and this action performs no bibliography write. Deduplicate candidates by persistent identifier, then normalized title.
18
18
  7. Verify each retained source from its primary record or publication. Create a `project://sources/{source}` record with title, creators, year, source kind, identifiers, citation key, status, provenance, inspection depth, and verification time.
19
19
  8. Read enough of each source to distinguish its actual claim, method, population, result, and limitation. Do not cite an abstract-only impression as full-paper evidence.
20
20
  9. Create `project://evidence/{evidence}` separately for each retained claim-level interpretation, with relation, locator, limitations, confidence, and inspection depth. Synthesize by question rather than listing papers; identify consensus, disagreement, methodological differences, missing evidence, and defensible positioning.
@@ -35,7 +35,8 @@ Contract: [protocol/actions/verify-work.json](../../../actions/verify-work.json)
35
35
  - `issues-found` when one or more issue records remain;
36
36
  - `needs-input` when author judgment is pending;
37
37
  - `failed` when required evidence or execution cannot satisfy the contract.
38
- 9. Reconcile section and state status only from the completed validation, then route gaps to `plan-revision` or a pass to project progress.
38
+ 9. When the validation is complete, create one pending blocking `decision` checkpoint scoped to `project://validations/{validation}` with options `accept` and `revise`, `resume_action` `verify-work`, and a request that summarizes the result, then ask the author. The validation result alone never completes a section.
39
+ 10. Reconcile section and state only from the author's answer: `accept` marks the section `complete`; `revise` leaves it `reviewing` and routes to `plan-revision`. A rerun that finds this checkpoint resolved applies the resolution without asking again.
39
40
 
40
41
  Completion requires a resumable author-owned acceptance record, not an automated self-approval.
41
42
 
@@ -31,6 +31,6 @@ Run it with no argument, or with `list`, to print the declared command set as JS
31
31
  - `s2-search --query=<text> [--limit=<1-25>] [--year=<yyyy>] [--timeout=<seconds>]` → `citation.semantic-scholar` (network.fetch, network.search)
32
32
  - `rank <papers.json> [--intent=<seminal|recent|balanced>]` → `citation.rank` (no declared effects)
33
33
 
34
- For declared scholarly discovery, `citation-search --backend=cite-nexus --query="<topic>"` uses the separately installed `cite-nexus-wtfp` companion and its real MCP stdio server. Defaults are Crossref, DataCite and Europe PMC. Select providers explicitly with `--providers`. The `research-gap` full-auto route may use only free no-key public indexes (`crossref`, `datacite`, `europe_pmc`, `arxiv`) without another per-query gate; other routes require action approval naming providers and query scope. CiteNexus supports only balanced provider ordering, so omit `--intent` or use `--intent=balanced`. Results remain candidates: retain `citeNexus.sources`, field attribution, metrics, warnings and `metadata.errors`; do not infer verification or combine citation counts. The result limit is a displayed total; `metadata.total` counts the fetched deduplicated page, not the full corpus. Unavailable enrichment fails explicitly without falling back to another vendor. `WTFP_CITE_NEXUS_COMMAND` may name an absolute installed companion executable; it is operator configuration, never source content. No package is installed, server registered, or user profile changed by a tool call. Offline mode refuses this backend before process launch. Host capability blockers still apply.
34
+ For declared scholarly discovery, `citation-search --backend=cite-nexus --query="<topic>"` uses the separately installed `cite-nexus-wtfp` companion and its real MCP stdio server. Defaults are Crossref, DataCite and Europe PMC. Select providers explicitly with `--providers`. The `research-gap` yolo route may use only free no-key public indexes (`crossref`, `datacite`, `europe_pmc`, `arxiv`) without another per-query gate; other routes require action approval naming providers and query scope. CiteNexus supports only balanced provider ordering, so omit `--intent` or use `--intent=balanced`. Results remain candidates: retain `citeNexus.sources`, field attribution, metrics, warnings and `metadata.errors`; do not infer verification or combine citation counts. The result limit is a displayed total; `metadata.total` counts the fetched deduplicated page, not the full corpus. Unavailable enrichment fails explicitly without falling back to another vendor. `WTFP_CITE_NEXUS_COMMAND` may name an absolute installed companion executable; it is operator configuration, never source content. No package is installed, server registered, or user profile changed by a tool call. Offline mode refuses this backend before process launch. Host capability blockers still apply.
35
35
 
36
36
  Every command prints one JSON document on stdout and reports failures as `{"error": "..."}` on stderr with exit status 1. Queries are capped at 512 characters, file paths at 4096, and result limits at 25. A symlinked file is accepted and read through its resolved target, which must be a regular file. Commands whose effects include `network.*` perform outbound requests to the declared scholarly indexes; pass `--offline` or set `WTFP_TOOL_OFFLINE=1` to refuse them, which is the mechanical form of "do not invoke a network-capable bibliography tool through a filesystem-only permission path". Each network command has a hard wall clock, `--timeout=<seconds>` (default 20, maximum 600); on expiry it reports `{"error": "<command> timed out after N s"}` on stderr and exits 124. `bib-impact` reports batch progress on stderr. `bib-index` flags repeated keys with `duplicate: true` and lists them under `duplicates`; `--key` refuses an ambiguous key. `bib-format` emits a standard BibTeX entry (`@article`, `@inproceedings`, ...) by default; `--style=al-folio` selects the Jekyll al-folio projection, which is not valid BibTeX. Do not execute any other module in this package directly, and do not pass a logical `project://` or `wtfp://` URI as a shell argument.