wtf-p 0.8.0 → 0.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (656) hide show
  1. package/README.md +34 -19
  2. package/bin/lib/adapter-compiler.js +411 -78
  3. package/bin/lib/clio-registration.js +44 -17
  4. package/bin/uninstall.js +19 -4
  5. package/package.json +3 -3
  6. package/protocol/actions/advance.json +232 -0
  7. package/protocol/actions/checkpoint.json +10 -1
  8. package/protocol/actions/execute-outline.json +10 -2
  9. package/protocol/actions/export-latex.json +15 -2
  10. package/protocol/actions/plan-revision.json +22 -4
  11. package/protocol/actions/polish-prose.json +13 -3
  12. package/protocol/actions/research-gap.json +16 -3
  13. package/protocol/actions/verify-work.json +13 -4
  14. package/protocol/aliases.lock.json +1 -0
  15. package/protocol/catalog.json +4 -2
  16. package/protocol/project/README.md +39 -0
  17. package/protocol/project/schemas/interaction.schema.json +100 -0
  18. package/protocol/project/templates/interaction.json +16 -0
  19. package/protocol/roles/research-synthesizer.md +1 -1
  20. package/protocol/skills/wtfp-deliver-research/SKILL.md +1 -1
  21. package/protocol/skills/wtfp-deliver-research/references/actions.md +2 -2
  22. package/protocol/skills/wtfp-manage-project/SKILL.md +2 -1
  23. package/protocol/skills/wtfp-manage-project/references/actions.md +13 -1
  24. package/protocol/skills/wtfp-plan-section/SKILL.md +1 -1
  25. package/protocol/skills/wtfp-plan-section/references/actions.md +4 -3
  26. package/protocol/skills/wtfp-research-literature/SKILL.md +1 -1
  27. package/protocol/skills/wtfp-research-literature/references/actions.md +1 -1
  28. package/protocol/skills/wtfp-review-manuscript/SKILL.md +1 -1
  29. package/protocol/skills/wtfp-review-manuscript/references/actions.md +2 -1
  30. package/protocol/skills/wtfp-write-section/SKILL.md +1 -1
  31. package/protocol/skills/wtfp-write-section/references/actions.md +1 -1
  32. package/protocol/workflows/advance.md +38 -0
  33. package/protocol/workflows/checkpoint.md +2 -2
  34. package/protocol/workflows/discuss-section.md +1 -1
  35. package/protocol/workflows/execute-outline.md +2 -2
  36. package/protocol/workflows/export-latex.md +4 -4
  37. package/protocol/workflows/plan-revision.md +4 -3
  38. package/protocol/workflows/plan-section.md +3 -3
  39. package/protocol/workflows/polish-prose.md +3 -3
  40. package/protocol/workflows/research-gap.md +5 -5
  41. package/protocol/workflows/verify-work.md +5 -3
  42. package/protocol/workflows/write-section.md +4 -4
  43. package/vendors/antigravity/.wtfp-generated.json +195 -183
  44. package/vendors/antigravity/actions/advance.json +232 -0
  45. package/vendors/antigravity/actions/checkpoint.json +10 -1
  46. package/vendors/antigravity/actions/execute-outline.json +10 -2
  47. package/vendors/antigravity/actions/export-latex.json +15 -2
  48. package/vendors/antigravity/actions/plan-revision.json +22 -4
  49. package/vendors/antigravity/actions/polish-prose.json +13 -3
  50. package/vendors/antigravity/actions/research-gap.json +16 -3
  51. package/vendors/antigravity/actions/verify-work.json +13 -4
  52. package/vendors/antigravity/agents/wtfp-research-synthesizer.md +1 -1
  53. package/vendors/antigravity/aliases.lock.json +1 -0
  54. package/vendors/antigravity/catalog.json +4 -2
  55. package/vendors/antigravity/compatibility/action-availability.json +13 -1
  56. package/vendors/antigravity/plugin.json +2 -1
  57. package/vendors/antigravity/project/README.md +39 -0
  58. package/vendors/antigravity/project/schemas/interaction.schema.json +100 -0
  59. package/vendors/antigravity/project/templates/interaction.json +16 -0
  60. package/vendors/antigravity/roles/research-synthesizer.md +1 -1
  61. package/vendors/antigravity/rules/wtfp-project-state.md +43 -1
  62. package/vendors/antigravity/{commands/wtfp-add-todo.md → skills/wtfp-add-todo/SKILL.md} +2 -3
  63. package/vendors/antigravity/skills/wtfp-advance/SKILL.md +18 -0
  64. package/vendors/antigravity/{commands/wtfp-analyze-bib.md → skills/wtfp-analyze-bib/SKILL.md} +2 -1
  65. package/vendors/antigravity/{commands/wtfp-audit-milestone.md → skills/wtfp-audit-milestone/SKILL.md} +2 -1
  66. package/vendors/antigravity/{commands/wtfp-check-refs.md → skills/wtfp-check-refs/SKILL.md} +2 -1
  67. package/vendors/antigravity/{commands/wtfp-check-todos.md → skills/wtfp-check-todos/SKILL.md} +2 -1
  68. package/vendors/antigravity/{commands/wtfp-checkpoint.md → skills/wtfp-checkpoint/SKILL.md} +4 -17
  69. package/vendors/antigravity/{commands/wtfp-contribute.md → skills/wtfp-contribute/SKILL.md} +2 -1
  70. package/vendors/antigravity/{commands/wtfp-create-outline.md → skills/wtfp-create-outline/SKILL.md} +2 -9
  71. package/vendors/antigravity/{commands/wtfp-create-poster.md → skills/wtfp-create-poster/SKILL.md} +3 -7
  72. package/vendors/antigravity/{commands/wtfp-create-slides.md → skills/wtfp-create-slides/SKILL.md} +3 -7
  73. package/vendors/antigravity/skills/wtfp-deliver-research/SKILL.md +1 -1
  74. package/vendors/antigravity/skills/wtfp-deliver-research/references/actions.md +2 -2
  75. package/vendors/antigravity/{commands/wtfp-discuss-section.md → skills/wtfp-discuss-section/SKILL.md} +3 -6
  76. package/vendors/antigravity/{commands/wtfp-execute-outline.md → skills/wtfp-execute-outline/SKILL.md} +4 -13
  77. package/vendors/antigravity/{commands/wtfp-export-latex.md → skills/wtfp-export-latex/SKILL.md} +2 -1
  78. package/vendors/antigravity/{commands/wtfp-help.md → skills/wtfp-help/SKILL.md} +4 -3
  79. package/vendors/antigravity/{commands/wtfp-insert-section.md → skills/wtfp-insert-section/SKILL.md} +2 -1
  80. package/vendors/antigravity/{commands/wtfp-list-assumptions.md → skills/wtfp-list-assumptions/SKILL.md} +3 -11
  81. package/vendors/antigravity/skills/wtfp-manage-project/SKILL.md +2 -1
  82. package/vendors/antigravity/skills/wtfp-manage-project/references/actions.md +29 -1
  83. package/vendors/antigravity/{commands/wtfp-map-project.md → skills/wtfp-map-project/SKILL.md} +2 -1
  84. package/vendors/antigravity/{commands/wtfp-new-paper.md → skills/wtfp-new-paper/SKILL.md} +2 -1
  85. package/vendors/antigravity/{commands/wtfp-pause-writing.md → skills/wtfp-pause-writing/SKILL.md} +2 -7
  86. package/vendors/antigravity/{commands/wtfp-plan-milestone-gaps.md → skills/wtfp-plan-milestone-gaps/SKILL.md} +2 -7
  87. package/vendors/antigravity/{commands/wtfp-plan-revision.md → skills/wtfp-plan-revision/SKILL.md} +10 -10
  88. package/vendors/antigravity/skills/wtfp-plan-section/SKILL.md +1 -1
  89. package/vendors/antigravity/skills/wtfp-plan-section/references/actions.md +4 -3
  90. package/vendors/antigravity/{commands/wtfp-polish-prose.md → skills/wtfp-polish-prose/SKILL.md} +9 -10
  91. package/vendors/antigravity/{commands/wtfp-progress.md → skills/wtfp-progress/SKILL.md} +3 -23
  92. package/vendors/antigravity/{commands/wtfp-quick.md → skills/wtfp-quick/SKILL.md} +2 -5
  93. package/vendors/antigravity/{commands/wtfp-remove-section.md → skills/wtfp-remove-section/SKILL.md} +2 -1
  94. package/vendors/antigravity/{commands/wtfp-report-bug.md → skills/wtfp-report-bug/SKILL.md} +2 -1
  95. package/vendors/antigravity/{commands/wtfp-request-feature.md → skills/wtfp-request-feature/SKILL.md} +2 -1
  96. package/vendors/antigravity/{commands/wtfp-research-gap.md → skills/wtfp-research-gap/SKILL.md} +2 -1
  97. package/vendors/antigravity/skills/wtfp-research-literature/SKILL.md +1 -1
  98. package/vendors/antigravity/skills/wtfp-research-literature/references/actions.md +1 -1
  99. package/vendors/antigravity/{commands/wtfp-resume-writing.md → skills/wtfp-resume-writing/SKILL.md} +2 -13
  100. package/vendors/antigravity/skills/wtfp-review-manuscript/SKILL.md +1 -1
  101. package/vendors/antigravity/skills/wtfp-review-manuscript/references/actions.md +2 -1
  102. package/vendors/antigravity/{commands/wtfp-review-section.md → skills/wtfp-review-section/SKILL.md} +2 -9
  103. package/vendors/antigravity/{commands/wtfp-settings.md → skills/wtfp-settings/SKILL.md} +2 -1
  104. package/vendors/antigravity/{commands/wtfp-submit-milestone.md → skills/wtfp-submit-milestone/SKILL.md} +2 -13
  105. package/vendors/antigravity/{commands/wtfp-update.md → skills/wtfp-update/SKILL.md} +2 -1
  106. package/vendors/antigravity/{commands/wtfp-verify-work.md → skills/wtfp-verify-work/SKILL.md} +9 -6
  107. package/vendors/antigravity/skills/wtfp-write-section/SKILL.md +1 -1
  108. package/vendors/antigravity/skills/wtfp-write-section/references/actions.md +1 -1
  109. package/vendors/antigravity/tools/README.md +1 -1
  110. package/vendors/antigravity/workflows/advance.md +38 -0
  111. package/vendors/antigravity/workflows/checkpoint.md +2 -2
  112. package/vendors/antigravity/workflows/discuss-section.md +1 -1
  113. package/vendors/antigravity/workflows/execute-outline.md +2 -2
  114. package/vendors/antigravity/workflows/export-latex.md +4 -4
  115. package/vendors/antigravity/workflows/plan-revision.md +4 -3
  116. package/vendors/antigravity/workflows/plan-section.md +3 -3
  117. package/vendors/antigravity/workflows/polish-prose.md +3 -3
  118. package/vendors/antigravity/workflows/research-gap.md +5 -5
  119. package/vendors/antigravity/workflows/verify-work.md +5 -3
  120. package/vendors/antigravity/workflows/write-section.md +4 -4
  121. package/vendors/claude/.claude-plugin/marketplace.json +2 -2
  122. package/vendors/claude/.claude-plugin/plugin.json +1 -1
  123. package/vendors/claude/.wtfp-generated.json +135 -111
  124. package/vendors/claude/actions/advance.json +232 -0
  125. package/vendors/claude/actions/checkpoint.json +10 -1
  126. package/vendors/claude/actions/execute-outline.json +10 -2
  127. package/vendors/claude/actions/export-latex.json +15 -2
  128. package/vendors/claude/actions/plan-revision.json +22 -4
  129. package/vendors/claude/actions/polish-prose.json +13 -3
  130. package/vendors/claude/actions/research-gap.json +16 -3
  131. package/vendors/claude/actions/verify-work.json +13 -4
  132. package/vendors/claude/agents/wtfp-research-synthesizer.md +1 -1
  133. package/vendors/claude/ai.iowarp.clio/agents/wtfp-argument-verifier.md +7 -8
  134. package/vendors/claude/ai.iowarp.clio/agents/wtfp-citation-expert.md +5 -5
  135. package/vendors/claude/ai.iowarp.clio/agents/wtfp-citation-formatter.md +3 -3
  136. package/vendors/claude/ai.iowarp.clio/agents/wtfp-coherence-checker.md +9 -10
  137. package/vendors/claude/ai.iowarp.clio/agents/wtfp-outliner.md +3 -3
  138. package/vendors/claude/ai.iowarp.clio/agents/wtfp-plan-checker.md +7 -8
  139. package/vendors/claude/ai.iowarp.clio/agents/wtfp-prose-polisher.md +4 -4
  140. package/vendors/claude/ai.iowarp.clio/agents/wtfp-research-synthesizer.md +6 -6
  141. package/vendors/claude/ai.iowarp.clio/agents/wtfp-section-planner.md +3 -3
  142. package/vendors/claude/ai.iowarp.clio/agents/wtfp-section-reviewer.md +9 -10
  143. package/vendors/claude/ai.iowarp.clio/agents/wtfp-section-writer.md +3 -3
  144. package/vendors/claude/ai.iowarp.clio/fleets/wtfp-draft-review.md +1 -1
  145. package/vendors/claude/ai.iowarp.clio/fleets/wtfp-plan-section.md +1 -1
  146. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/add-todo.md +8 -2
  147. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/advance.md +15 -0
  148. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/analyze-bib.md +26 -8
  149. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/audit-milestone.md +12 -16
  150. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/check-refs.md +26 -8
  151. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/check-todos.md +11 -0
  152. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/checkpoint.md +13 -16
  153. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/create-outline.md +25 -10
  154. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/create-poster.md +12 -6
  155. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/create-slides.md +12 -6
  156. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/discuss-section.md +12 -5
  157. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/execute-outline.md +27 -14
  158. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/export-latex.md +16 -12
  159. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/help.md +4 -1
  160. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/insert-section.md +11 -0
  161. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/list-assumptions.md +7 -10
  162. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/map-project.md +8 -0
  163. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/new-paper.md +11 -0
  164. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/pause-writing.md +8 -6
  165. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/plan-milestone-gaps.md +11 -6
  166. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/plan-revision.md +19 -9
  167. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/plan-section.md +28 -17
  168. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/polish-prose.md +32 -11
  169. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/progress.md +10 -22
  170. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/quick.md +25 -6
  171. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/research-gap.md +37 -16
  172. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/resume-writing.md +11 -12
  173. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/review-section.md +22 -10
  174. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/settings.md +11 -0
  175. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/submit-milestone.md +11 -12
  176. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/verify-work.md +18 -5
  177. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/write-section.md +29 -16
  178. package/vendors/claude/aliases.lock.json +1 -0
  179. package/vendors/claude/catalog.json +4 -2
  180. package/vendors/claude/commands/add-todo.md +0 -2
  181. package/vendors/claude/commands/advance.md +16 -0
  182. package/vendors/claude/commands/analyze-bib.md +0 -6
  183. package/vendors/claude/commands/audit-milestone.md +0 -16
  184. package/vendors/claude/commands/check-refs.md +0 -6
  185. package/vendors/claude/commands/checkpoint.md +2 -16
  186. package/vendors/claude/commands/create-outline.md +0 -8
  187. package/vendors/claude/commands/create-poster.md +1 -6
  188. package/vendors/claude/commands/create-slides.md +1 -6
  189. package/vendors/claude/commands/discuss-section.md +1 -5
  190. package/vendors/claude/commands/execute-outline.md +2 -12
  191. package/vendors/claude/commands/export-latex.md +4 -12
  192. package/vendors/claude/commands/help.md +1 -1
  193. package/vendors/claude/commands/list-assumptions.md +1 -10
  194. package/vendors/claude/commands/pause-writing.md +0 -6
  195. package/vendors/claude/commands/plan-milestone-gaps.md +0 -6
  196. package/vendors/claude/commands/plan-revision.md +8 -9
  197. package/vendors/claude/commands/plan-section.md +3 -15
  198. package/vendors/claude/commands/polish-prose.md +7 -9
  199. package/vendors/claude/commands/progress.md +1 -22
  200. package/vendors/claude/commands/quick.md +0 -4
  201. package/vendors/claude/commands/research-gap.md +5 -13
  202. package/vendors/claude/commands/resume-writing.md +0 -12
  203. package/vendors/claude/commands/review-section.md +0 -8
  204. package/vendors/claude/commands/submit-milestone.md +0 -12
  205. package/vendors/claude/commands/verify-work.md +7 -5
  206. package/vendors/claude/commands/write-section.md +4 -14
  207. package/vendors/claude/compatibility/action-availability.json +10 -1
  208. package/vendors/claude/output-styles/wtfp-academic-writing.md +7 -7
  209. package/vendors/claude/plugin.json +15 -1
  210. package/vendors/claude/project/README.md +39 -0
  211. package/vendors/claude/project/schemas/interaction.schema.json +100 -0
  212. package/vendors/claude/project/templates/interaction.json +16 -0
  213. package/vendors/claude/roles/research-synthesizer.md +1 -1
  214. package/vendors/claude/skills/wtfp-deliver-research/SKILL.md +1 -1
  215. package/vendors/claude/skills/wtfp-deliver-research/references/actions.md +2 -2
  216. package/vendors/claude/skills/wtfp-manage-project/SKILL.md +2 -1
  217. package/vendors/claude/skills/wtfp-manage-project/references/actions.md +29 -1
  218. package/vendors/claude/skills/wtfp-plan-section/SKILL.md +1 -1
  219. package/vendors/claude/skills/wtfp-plan-section/references/actions.md +4 -3
  220. package/vendors/claude/skills/wtfp-research-literature/SKILL.md +1 -1
  221. package/vendors/claude/skills/wtfp-research-literature/references/actions.md +1 -1
  222. package/vendors/claude/skills/wtfp-review-manuscript/SKILL.md +1 -1
  223. package/vendors/claude/skills/wtfp-review-manuscript/references/actions.md +2 -1
  224. package/vendors/claude/skills/wtfp-write-section/SKILL.md +1 -1
  225. package/vendors/claude/skills/wtfp-write-section/references/actions.md +1 -1
  226. package/vendors/claude/tools/README.md +1 -1
  227. package/vendors/claude/workflows/advance.md +38 -0
  228. package/vendors/claude/workflows/checkpoint.md +2 -2
  229. package/vendors/claude/workflows/discuss-section.md +1 -1
  230. package/vendors/claude/workflows/execute-outline.md +2 -2
  231. package/vendors/claude/workflows/export-latex.md +4 -4
  232. package/vendors/claude/workflows/plan-revision.md +4 -3
  233. package/vendors/claude/workflows/plan-section.md +3 -3
  234. package/vendors/claude/workflows/polish-prose.md +3 -3
  235. package/vendors/claude/workflows/research-gap.md +5 -5
  236. package/vendors/claude/workflows/verify-work.md +5 -3
  237. package/vendors/claude/workflows/write-section.md +4 -4
  238. package/vendors/clio-extension/.wtfp-generated.json +73 -13
  239. package/vendors/clio-extension/actions/advance.json +232 -0
  240. package/vendors/clio-extension/actions/checkpoint.json +10 -1
  241. package/vendors/clio-extension/actions/execute-outline.json +10 -2
  242. package/vendors/clio-extension/actions/export-latex.json +15 -2
  243. package/vendors/clio-extension/actions/plan-revision.json +22 -4
  244. package/vendors/clio-extension/actions/polish-prose.json +13 -3
  245. package/vendors/clio-extension/actions/research-gap.json +16 -3
  246. package/vendors/clio-extension/actions/verify-work.json +13 -4
  247. package/vendors/clio-extension/clio-coder-extension.yaml +48 -10
  248. package/vendors/clio-extension/compatibility/action-availability.json +11 -5
  249. package/vendors/clio-extension/project/schemas/interaction.schema.json +100 -0
  250. package/vendors/clio-extension/project/templates/checkpoint.json +25 -0
  251. package/vendors/clio-extension/project/templates/config.json +31 -0
  252. package/vendors/clio-extension/project/templates/decisions.json +35 -0
  253. package/vendors/clio-extension/project/templates/evidence.json +18 -0
  254. package/vendors/clio-extension/project/templates/interaction.json +16 -0
  255. package/vendors/clio-extension/project/templates/manifest.json +30 -0
  256. package/vendors/clio-extension/project/templates/outline.json +38 -0
  257. package/vendors/clio-extension/project/templates/section.json +32 -0
  258. package/vendors/clio-extension/project/templates/source.json +20 -0
  259. package/vendors/clio-extension/project/templates/state.json +22 -0
  260. package/vendors/clio-extension/project/templates/validation.json +32 -0
  261. package/vendors/clio-extension/runtime/claim-coverage.cjs +332 -0
  262. package/vendors/clio-extension/runtime/desk-trust.cjs +112 -0
  263. package/vendors/clio-extension/runtime/extension.test.ts +2034 -65
  264. package/vendors/clio-extension/runtime/extension.ts +3032 -435
  265. package/vendors/clio-extension/runtime/write-guard.json +629 -18
  266. package/vendors/codex/plugins/wtfp/.codex-plugin/plugin.json +1 -1
  267. package/vendors/codex/plugins/wtfp/.wtfp-generated.json +55 -39
  268. package/vendors/codex/plugins/wtfp/actions/advance.json +232 -0
  269. package/vendors/codex/plugins/wtfp/actions/checkpoint.json +10 -1
  270. package/vendors/codex/plugins/wtfp/actions/execute-outline.json +10 -2
  271. package/vendors/codex/plugins/wtfp/actions/export-latex.json +15 -2
  272. package/vendors/codex/plugins/wtfp/actions/plan-revision.json +22 -4
  273. package/vendors/codex/plugins/wtfp/actions/polish-prose.json +13 -3
  274. package/vendors/codex/plugins/wtfp/actions/research-gap.json +16 -3
  275. package/vendors/codex/plugins/wtfp/actions/verify-work.json +13 -4
  276. package/vendors/codex/plugins/wtfp/agents/wtfp-research-synthesizer.toml +1 -1
  277. package/vendors/codex/plugins/wtfp/aliases.lock.json +1 -0
  278. package/vendors/codex/plugins/wtfp/catalog.json +4 -2
  279. package/vendors/codex/plugins/wtfp/compatibility/action-availability.json +13 -1
  280. package/vendors/codex/plugins/wtfp/plugin.json +1 -1
  281. package/vendors/codex/plugins/wtfp/project/README.md +39 -0
  282. package/vendors/codex/plugins/wtfp/project/schemas/interaction.schema.json +100 -0
  283. package/vendors/codex/plugins/wtfp/project/templates/interaction.json +16 -0
  284. package/vendors/codex/plugins/wtfp/roles/research-synthesizer.md +1 -1
  285. package/vendors/codex/plugins/wtfp/skills/wtfp-deliver-research/SKILL.md +1 -1
  286. package/vendors/codex/plugins/wtfp/skills/wtfp-deliver-research/references/actions.md +2 -2
  287. package/vendors/codex/plugins/wtfp/skills/wtfp-manage-project/SKILL.md +2 -1
  288. package/vendors/codex/plugins/wtfp/skills/wtfp-manage-project/references/actions.md +29 -1
  289. package/vendors/codex/plugins/wtfp/skills/wtfp-plan-section/SKILL.md +1 -1
  290. package/vendors/codex/plugins/wtfp/skills/wtfp-plan-section/references/actions.md +4 -3
  291. package/vendors/codex/plugins/wtfp/skills/wtfp-research-literature/SKILL.md +1 -1
  292. package/vendors/codex/plugins/wtfp/skills/wtfp-research-literature/references/actions.md +1 -1
  293. package/vendors/codex/plugins/wtfp/skills/wtfp-review-manuscript/SKILL.md +1 -1
  294. package/vendors/codex/plugins/wtfp/skills/wtfp-review-manuscript/references/actions.md +2 -1
  295. package/vendors/codex/plugins/wtfp/skills/wtfp-write-section/SKILL.md +1 -1
  296. package/vendors/codex/plugins/wtfp/skills/wtfp-write-section/references/actions.md +1 -1
  297. package/vendors/codex/plugins/wtfp/tools/README.md +1 -1
  298. package/vendors/codex/plugins/wtfp/workflows/advance.md +38 -0
  299. package/vendors/codex/plugins/wtfp/workflows/checkpoint.md +2 -2
  300. package/vendors/codex/plugins/wtfp/workflows/discuss-section.md +1 -1
  301. package/vendors/codex/plugins/wtfp/workflows/execute-outline.md +2 -2
  302. package/vendors/codex/plugins/wtfp/workflows/export-latex.md +4 -4
  303. package/vendors/codex/plugins/wtfp/workflows/plan-revision.md +4 -3
  304. package/vendors/codex/plugins/wtfp/workflows/plan-section.md +3 -3
  305. package/vendors/codex/plugins/wtfp/workflows/polish-prose.md +3 -3
  306. package/vendors/codex/plugins/wtfp/workflows/research-gap.md +5 -5
  307. package/vendors/codex/plugins/wtfp/workflows/verify-work.md +5 -3
  308. package/vendors/codex/plugins/wtfp/workflows/write-section.md +4 -4
  309. package/vendors/copilot/.wtfp-generated.json +74 -54
  310. package/vendors/copilot/marketplace.json +2 -2
  311. package/vendors/copilot/plugins/wtfp/.claude-plugin/plugin.json +1 -1
  312. package/vendors/copilot/plugins/wtfp/.wtfp-generated.json +79 -59
  313. package/vendors/copilot/plugins/wtfp/actions/advance.json +232 -0
  314. package/vendors/copilot/plugins/wtfp/actions/checkpoint.json +10 -1
  315. package/vendors/copilot/plugins/wtfp/actions/execute-outline.json +10 -2
  316. package/vendors/copilot/plugins/wtfp/actions/export-latex.json +15 -2
  317. package/vendors/copilot/plugins/wtfp/actions/plan-revision.json +22 -4
  318. package/vendors/copilot/plugins/wtfp/actions/polish-prose.json +13 -3
  319. package/vendors/copilot/plugins/wtfp/actions/research-gap.json +16 -3
  320. package/vendors/copilot/plugins/wtfp/actions/verify-work.json +13 -4
  321. package/vendors/copilot/plugins/wtfp/agents/wtfp-research-synthesizer.md +1 -1
  322. package/vendors/copilot/plugins/wtfp/aliases.lock.json +1 -0
  323. package/vendors/copilot/plugins/wtfp/catalog.json +4 -2
  324. package/vendors/copilot/plugins/wtfp/commands/wtfp-add-todo.md +0 -2
  325. package/vendors/copilot/plugins/wtfp/commands/wtfp-advance.md +17 -0
  326. package/vendors/copilot/plugins/wtfp/commands/wtfp-checkpoint.md +2 -16
  327. package/vendors/copilot/plugins/wtfp/commands/wtfp-create-outline.md +0 -8
  328. package/vendors/copilot/plugins/wtfp/commands/wtfp-create-poster.md +1 -6
  329. package/vendors/copilot/plugins/wtfp/commands/wtfp-create-slides.md +1 -6
  330. package/vendors/copilot/plugins/wtfp/commands/wtfp-discuss-section.md +1 -5
  331. package/vendors/copilot/plugins/wtfp/commands/wtfp-execute-outline.md +2 -12
  332. package/vendors/copilot/plugins/wtfp/commands/wtfp-help.md +1 -1
  333. package/vendors/copilot/plugins/wtfp/commands/wtfp-list-assumptions.md +1 -10
  334. package/vendors/copilot/plugins/wtfp/commands/wtfp-pause-writing.md +0 -6
  335. package/vendors/copilot/plugins/wtfp/commands/wtfp-plan-milestone-gaps.md +0 -6
  336. package/vendors/copilot/plugins/wtfp/commands/wtfp-plan-revision.md +8 -9
  337. package/vendors/copilot/plugins/wtfp/commands/wtfp-plan-section.md +3 -15
  338. package/vendors/copilot/plugins/wtfp/commands/wtfp-polish-prose.md +7 -9
  339. package/vendors/copilot/plugins/wtfp/commands/wtfp-progress.md +1 -22
  340. package/vendors/copilot/plugins/wtfp/commands/wtfp-quick.md +0 -4
  341. package/vendors/copilot/plugins/wtfp/commands/wtfp-resume-writing.md +0 -12
  342. package/vendors/copilot/plugins/wtfp/commands/wtfp-review-section.md +0 -8
  343. package/vendors/copilot/plugins/wtfp/commands/wtfp-submit-milestone.md +0 -12
  344. package/vendors/copilot/plugins/wtfp/commands/wtfp-verify-work.md +7 -5
  345. package/vendors/copilot/plugins/wtfp/commands/wtfp-write-section.md +4 -14
  346. package/vendors/copilot/plugins/wtfp/compatibility/action-availability.json +13 -1
  347. package/vendors/copilot/plugins/wtfp/project/README.md +39 -0
  348. package/vendors/copilot/plugins/wtfp/project/schemas/interaction.schema.json +100 -0
  349. package/vendors/copilot/plugins/wtfp/project/templates/interaction.json +16 -0
  350. package/vendors/copilot/plugins/wtfp/roles/research-synthesizer.md +1 -1
  351. package/vendors/copilot/plugins/wtfp/skills/wtfp-deliver-research/SKILL.md +1 -1
  352. package/vendors/copilot/plugins/wtfp/skills/wtfp-deliver-research/references/actions.md +2 -2
  353. package/vendors/copilot/plugins/wtfp/skills/wtfp-manage-project/SKILL.md +2 -1
  354. package/vendors/copilot/plugins/wtfp/skills/wtfp-manage-project/references/actions.md +29 -1
  355. package/vendors/copilot/plugins/wtfp/skills/wtfp-plan-section/SKILL.md +1 -1
  356. package/vendors/copilot/plugins/wtfp/skills/wtfp-plan-section/references/actions.md +4 -3
  357. package/vendors/copilot/plugins/wtfp/skills/wtfp-research-literature/SKILL.md +1 -1
  358. package/vendors/copilot/plugins/wtfp/skills/wtfp-research-literature/references/actions.md +1 -1
  359. package/vendors/copilot/plugins/wtfp/skills/wtfp-review-manuscript/SKILL.md +1 -1
  360. package/vendors/copilot/plugins/wtfp/skills/wtfp-review-manuscript/references/actions.md +2 -1
  361. package/vendors/copilot/plugins/wtfp/skills/wtfp-write-section/SKILL.md +1 -1
  362. package/vendors/copilot/plugins/wtfp/skills/wtfp-write-section/references/actions.md +1 -1
  363. package/vendors/copilot/plugins/wtfp/tools/README.md +1 -1
  364. package/vendors/copilot/plugins/wtfp/workflows/advance.md +38 -0
  365. package/vendors/copilot/plugins/wtfp/workflows/checkpoint.md +2 -2
  366. package/vendors/copilot/plugins/wtfp/workflows/discuss-section.md +1 -1
  367. package/vendors/copilot/plugins/wtfp/workflows/execute-outline.md +2 -2
  368. package/vendors/copilot/plugins/wtfp/workflows/export-latex.md +4 -4
  369. package/vendors/copilot/plugins/wtfp/workflows/plan-revision.md +4 -3
  370. package/vendors/copilot/plugins/wtfp/workflows/plan-section.md +3 -3
  371. package/vendors/copilot/plugins/wtfp/workflows/polish-prose.md +3 -3
  372. package/vendors/copilot/plugins/wtfp/workflows/research-gap.md +5 -5
  373. package/vendors/copilot/plugins/wtfp/workflows/verify-work.md +5 -3
  374. package/vendors/copilot/plugins/wtfp/workflows/write-section.md +4 -4
  375. package/vendors/copilot/project/.github/agents/wtfp-research-synthesizer.agent.md +1 -1
  376. package/vendors/copilot/project/.github/prompts/wtfp-add-todo.prompt.md +0 -2
  377. package/vendors/copilot/project/.github/prompts/wtfp-advance.prompt.md +18 -0
  378. package/vendors/copilot/project/.github/prompts/wtfp-help.prompt.md +1 -1
  379. package/vendors/copilot/project/.github/prompts/wtfp-list-assumptions.prompt.md +1 -10
  380. package/vendors/copilot/project/.github/prompts/wtfp-pause-writing.prompt.md +0 -6
  381. package/vendors/copilot/project/.github/skills/wtfp-deliver-research/SKILL.md +1 -1
  382. package/vendors/copilot/project/.github/skills/wtfp-deliver-research/references/actions.md +2 -2
  383. package/vendors/copilot/project/.github/skills/wtfp-manage-project/SKILL.md +2 -1
  384. package/vendors/copilot/project/.github/skills/wtfp-manage-project/references/actions.md +25 -1
  385. package/vendors/copilot/project/.github/skills/wtfp-plan-section/SKILL.md +1 -1
  386. package/vendors/copilot/project/.github/skills/wtfp-plan-section/references/actions.md +4 -3
  387. package/vendors/copilot/project/.github/skills/wtfp-research-literature/SKILL.md +1 -1
  388. package/vendors/copilot/project/.github/skills/wtfp-research-literature/references/actions.md +1 -1
  389. package/vendors/copilot/project/.github/skills/wtfp-review-manuscript/SKILL.md +1 -1
  390. package/vendors/copilot/project/.github/skills/wtfp-review-manuscript/references/actions.md +2 -1
  391. package/vendors/copilot/project/.github/skills/wtfp-write-section/SKILL.md +1 -1
  392. package/vendors/copilot/project/.github/skills/wtfp-write-section/references/actions.md +1 -1
  393. package/vendors/copilot/project/.github/wtfp/actions/advance.json +232 -0
  394. package/vendors/copilot/project/.github/wtfp/actions/checkpoint.json +10 -1
  395. package/vendors/copilot/project/.github/wtfp/actions/execute-outline.json +10 -2
  396. package/vendors/copilot/project/.github/wtfp/actions/export-latex.json +15 -2
  397. package/vendors/copilot/project/.github/wtfp/actions/plan-revision.json +22 -4
  398. package/vendors/copilot/project/.github/wtfp/actions/polish-prose.json +13 -3
  399. package/vendors/copilot/project/.github/wtfp/actions/research-gap.json +16 -3
  400. package/vendors/copilot/project/.github/wtfp/actions/verify-work.json +13 -4
  401. package/vendors/copilot/project/.github/wtfp/aliases.lock.json +1 -0
  402. package/vendors/copilot/project/.github/wtfp/catalog.json +4 -2
  403. package/vendors/copilot/project/.github/wtfp/compatibility/action-availability.json +14 -1
  404. package/vendors/copilot/project/.github/wtfp/project/README.md +39 -0
  405. package/vendors/copilot/project/.github/wtfp/project/schemas/interaction.schema.json +100 -0
  406. package/vendors/copilot/project/.github/wtfp/project/templates/interaction.json +16 -0
  407. package/vendors/copilot/project/.github/wtfp/roles/research-synthesizer.md +1 -1
  408. package/vendors/copilot/project/.github/wtfp/skills/wtfp-deliver-research/SKILL.md +1 -1
  409. package/vendors/copilot/project/.github/wtfp/skills/wtfp-deliver-research/references/actions.md +2 -2
  410. package/vendors/copilot/project/.github/wtfp/skills/wtfp-manage-project/SKILL.md +2 -1
  411. package/vendors/copilot/project/.github/wtfp/skills/wtfp-manage-project/references/actions.md +13 -1
  412. package/vendors/copilot/project/.github/wtfp/skills/wtfp-plan-section/SKILL.md +1 -1
  413. package/vendors/copilot/project/.github/wtfp/skills/wtfp-plan-section/references/actions.md +4 -3
  414. package/vendors/copilot/project/.github/wtfp/skills/wtfp-research-literature/SKILL.md +1 -1
  415. package/vendors/copilot/project/.github/wtfp/skills/wtfp-research-literature/references/actions.md +1 -1
  416. package/vendors/copilot/project/.github/wtfp/skills/wtfp-review-manuscript/SKILL.md +1 -1
  417. package/vendors/copilot/project/.github/wtfp/skills/wtfp-review-manuscript/references/actions.md +2 -1
  418. package/vendors/copilot/project/.github/wtfp/skills/wtfp-write-section/SKILL.md +1 -1
  419. package/vendors/copilot/project/.github/wtfp/skills/wtfp-write-section/references/actions.md +1 -1
  420. package/vendors/copilot/project/.github/wtfp/workflows/advance.md +38 -0
  421. package/vendors/copilot/project/.github/wtfp/workflows/checkpoint.md +2 -2
  422. package/vendors/copilot/project/.github/wtfp/workflows/discuss-section.md +1 -1
  423. package/vendors/copilot/project/.github/wtfp/workflows/execute-outline.md +2 -2
  424. package/vendors/copilot/project/.github/wtfp/workflows/export-latex.md +4 -4
  425. package/vendors/copilot/project/.github/wtfp/workflows/plan-revision.md +4 -3
  426. package/vendors/copilot/project/.github/wtfp/workflows/plan-section.md +3 -3
  427. package/vendors/copilot/project/.github/wtfp/workflows/polish-prose.md +3 -3
  428. package/vendors/copilot/project/.github/wtfp/workflows/research-gap.md +5 -5
  429. package/vendors/copilot/project/.github/wtfp/workflows/verify-work.md +5 -3
  430. package/vendors/copilot/project/.github/wtfp/workflows/write-section.md +4 -4
  431. package/vendors/copilot/project/README.md +1 -1
  432. package/vendors/gemini/.wtfp-generated.json +84 -64
  433. package/vendors/gemini/actions/advance.json +232 -0
  434. package/vendors/gemini/actions/checkpoint.json +10 -1
  435. package/vendors/gemini/actions/execute-outline.json +10 -2
  436. package/vendors/gemini/actions/export-latex.json +15 -2
  437. package/vendors/gemini/actions/plan-revision.json +22 -4
  438. package/vendors/gemini/actions/polish-prose.json +13 -3
  439. package/vendors/gemini/actions/research-gap.json +16 -3
  440. package/vendors/gemini/actions/verify-work.json +13 -4
  441. package/vendors/gemini/agents/wtfp-research-synthesizer.md +1 -1
  442. package/vendors/gemini/aliases.lock.json +1 -0
  443. package/vendors/gemini/catalog.json +4 -2
  444. package/vendors/gemini/commands/wtfp/add-todo.toml +54 -144
  445. package/vendors/gemini/commands/wtfp/advance.toml +14 -0
  446. package/vendors/gemini/commands/wtfp/check-todos.toml +54 -2
  447. package/vendors/gemini/commands/wtfp/checkpoint.toml +66 -738
  448. package/vendors/gemini/commands/wtfp/create-outline.toml +39 -431
  449. package/vendors/gemini/commands/wtfp/create-poster.toml +43 -299
  450. package/vendors/gemini/commands/wtfp/create-slides.toml +43 -299
  451. package/vendors/gemini/commands/wtfp/discuss-section.toml +45 -262
  452. package/vendors/gemini/commands/wtfp/execute-outline.toml +53 -486
  453. package/vendors/gemini/commands/wtfp/help.toml +44 -3
  454. package/vendors/gemini/commands/wtfp/insert-section.toml +44 -4
  455. package/vendors/gemini/commands/wtfp/list-assumptions.toml +45 -513
  456. package/vendors/gemini/commands/wtfp/map-project.toml +39 -0
  457. package/vendors/gemini/commands/wtfp/new-paper.toml +39 -0
  458. package/vendors/gemini/commands/wtfp/pause-writing.toml +54 -309
  459. package/vendors/gemini/commands/wtfp/plan-milestone-gaps.toml +42 -370
  460. package/vendors/gemini/commands/wtfp/plan-revision.toml +229 -277
  461. package/vendors/gemini/commands/wtfp/plan-section.toml +47 -629
  462. package/vendors/gemini/commands/wtfp/polish-prose.toml +217 -268
  463. package/vendors/gemini/commands/wtfp/progress.toml +55 -1143
  464. package/vendors/gemini/commands/wtfp/quick.toml +41 -220
  465. package/vendors/gemini/commands/wtfp/resume-writing.toml +54 -698
  466. package/vendors/gemini/commands/wtfp/review-section.toml +42 -411
  467. package/vendors/gemini/commands/wtfp/settings.toml +54 -2
  468. package/vendors/gemini/commands/wtfp/submit-milestone.toml +42 -620
  469. package/vendors/gemini/commands/wtfp/verify-work.toml +169 -57
  470. package/vendors/gemini/commands/wtfp/write-section.toml +45 -486
  471. package/vendors/gemini/compatibility/action-availability.json +13 -1
  472. package/vendors/gemini/gemini-extension.json +1 -1
  473. package/vendors/gemini/project/README.md +39 -0
  474. package/vendors/gemini/project/schemas/interaction.schema.json +100 -0
  475. package/vendors/gemini/project/templates/interaction.json +16 -0
  476. package/vendors/gemini/roles/research-synthesizer.md +1 -1
  477. package/vendors/gemini/skills/wtfp-deliver-research/SKILL.md +1 -1
  478. package/vendors/gemini/skills/wtfp-deliver-research/references/actions.md +2 -2
  479. package/vendors/gemini/skills/wtfp-manage-project/SKILL.md +2 -1
  480. package/vendors/gemini/skills/wtfp-manage-project/references/actions.md +29 -1
  481. package/vendors/gemini/skills/wtfp-plan-section/SKILL.md +1 -1
  482. package/vendors/gemini/skills/wtfp-plan-section/references/actions.md +4 -3
  483. package/vendors/gemini/skills/wtfp-research-literature/SKILL.md +1 -1
  484. package/vendors/gemini/skills/wtfp-research-literature/references/actions.md +1 -1
  485. package/vendors/gemini/skills/wtfp-review-manuscript/SKILL.md +1 -1
  486. package/vendors/gemini/skills/wtfp-review-manuscript/references/actions.md +2 -1
  487. package/vendors/gemini/skills/wtfp-write-section/SKILL.md +1 -1
  488. package/vendors/gemini/skills/wtfp-write-section/references/actions.md +1 -1
  489. package/vendors/gemini/tools/README.md +1 -1
  490. package/vendors/gemini/workflows/advance.md +38 -0
  491. package/vendors/gemini/workflows/checkpoint.md +2 -2
  492. package/vendors/gemini/workflows/discuss-section.md +1 -1
  493. package/vendors/gemini/workflows/execute-outline.md +2 -2
  494. package/vendors/gemini/workflows/export-latex.md +4 -4
  495. package/vendors/gemini/workflows/plan-revision.md +4 -3
  496. package/vendors/gemini/workflows/plan-section.md +3 -3
  497. package/vendors/gemini/workflows/polish-prose.md +3 -3
  498. package/vendors/gemini/workflows/research-gap.md +5 -5
  499. package/vendors/gemini/workflows/verify-work.md +5 -3
  500. package/vendors/gemini/workflows/write-section.md +4 -4
  501. package/vendors/opencode/.wtfp-generated.json +83 -63
  502. package/vendors/opencode/actions/advance.json +232 -0
  503. package/vendors/opencode/actions/checkpoint.json +10 -1
  504. package/vendors/opencode/actions/execute-outline.json +10 -2
  505. package/vendors/opencode/actions/export-latex.json +15 -2
  506. package/vendors/opencode/actions/plan-revision.json +22 -4
  507. package/vendors/opencode/actions/polish-prose.json +13 -3
  508. package/vendors/opencode/actions/research-gap.json +16 -3
  509. package/vendors/opencode/actions/verify-work.json +13 -4
  510. package/vendors/opencode/agents/wtfp/research-synthesizer.md +1 -1
  511. package/vendors/opencode/aliases.lock.json +1 -0
  512. package/vendors/opencode/catalog.json +4 -2
  513. package/vendors/opencode/commands/wtfp/add-todo.md +54 -144
  514. package/vendors/opencode/commands/wtfp/advance.md +16 -0
  515. package/vendors/opencode/commands/wtfp/check-todos.md +54 -2
  516. package/vendors/opencode/commands/wtfp/checkpoint.md +66 -738
  517. package/vendors/opencode/commands/wtfp/create-outline.md +39 -431
  518. package/vendors/opencode/commands/wtfp/create-poster.md +43 -299
  519. package/vendors/opencode/commands/wtfp/create-slides.md +43 -299
  520. package/vendors/opencode/commands/wtfp/discuss-section.md +45 -262
  521. package/vendors/opencode/commands/wtfp/execute-outline.md +53 -486
  522. package/vendors/opencode/commands/wtfp/help.md +44 -3
  523. package/vendors/opencode/commands/wtfp/insert-section.md +44 -4
  524. package/vendors/opencode/commands/wtfp/list-assumptions.md +45 -513
  525. package/vendors/opencode/commands/wtfp/map-project.md +39 -0
  526. package/vendors/opencode/commands/wtfp/new-paper.md +39 -0
  527. package/vendors/opencode/commands/wtfp/pause-writing.md +54 -309
  528. package/vendors/opencode/commands/wtfp/plan-milestone-gaps.md +42 -370
  529. package/vendors/opencode/commands/wtfp/plan-revision.md +229 -277
  530. package/vendors/opencode/commands/wtfp/plan-section.md +47 -629
  531. package/vendors/opencode/commands/wtfp/polish-prose.md +217 -268
  532. package/vendors/opencode/commands/wtfp/progress.md +55 -1143
  533. package/vendors/opencode/commands/wtfp/quick.md +41 -220
  534. package/vendors/opencode/commands/wtfp/resume-writing.md +54 -698
  535. package/vendors/opencode/commands/wtfp/review-section.md +42 -411
  536. package/vendors/opencode/commands/wtfp/settings.md +54 -2
  537. package/vendors/opencode/commands/wtfp/submit-milestone.md +42 -620
  538. package/vendors/opencode/commands/wtfp/verify-work.md +169 -57
  539. package/vendors/opencode/commands/wtfp/write-section.md +45 -486
  540. package/vendors/opencode/compatibility/action-availability.json +13 -1
  541. package/vendors/opencode/project/README.md +39 -0
  542. package/vendors/opencode/project/schemas/interaction.schema.json +100 -0
  543. package/vendors/opencode/project/templates/interaction.json +16 -0
  544. package/vendors/opencode/roles/research-synthesizer.md +1 -1
  545. package/vendors/opencode/skills/wtfp-deliver-research/SKILL.md +1 -1
  546. package/vendors/opencode/skills/wtfp-deliver-research/references/actions.md +2 -2
  547. package/vendors/opencode/skills/wtfp-manage-project/SKILL.md +2 -1
  548. package/vendors/opencode/skills/wtfp-manage-project/references/actions.md +29 -1
  549. package/vendors/opencode/skills/wtfp-plan-section/SKILL.md +1 -1
  550. package/vendors/opencode/skills/wtfp-plan-section/references/actions.md +4 -3
  551. package/vendors/opencode/skills/wtfp-research-literature/SKILL.md +1 -1
  552. package/vendors/opencode/skills/wtfp-research-literature/references/actions.md +1 -1
  553. package/vendors/opencode/skills/wtfp-review-manuscript/SKILL.md +1 -1
  554. package/vendors/opencode/skills/wtfp-review-manuscript/references/actions.md +2 -1
  555. package/vendors/opencode/skills/wtfp-write-section/SKILL.md +1 -1
  556. package/vendors/opencode/skills/wtfp-write-section/references/actions.md +1 -1
  557. package/vendors/opencode/tools/README.md +1 -1
  558. package/vendors/opencode/workflows/advance.md +38 -0
  559. package/vendors/opencode/workflows/checkpoint.md +2 -2
  560. package/vendors/opencode/workflows/discuss-section.md +1 -1
  561. package/vendors/opencode/workflows/execute-outline.md +2 -2
  562. package/vendors/opencode/workflows/export-latex.md +4 -4
  563. package/vendors/opencode/workflows/plan-revision.md +4 -3
  564. package/vendors/opencode/workflows/plan-section.md +3 -3
  565. package/vendors/opencode/workflows/polish-prose.md +3 -3
  566. package/vendors/opencode/workflows/research-gap.md +5 -5
  567. package/vendors/opencode/workflows/verify-work.md +5 -3
  568. package/vendors/opencode/workflows/write-section.md +4 -4
  569. package/vendors/plugin/.wtfp-generated.json +101 -81
  570. package/vendors/plugin/actions/advance.json +232 -0
  571. package/vendors/plugin/actions/checkpoint.json +10 -1
  572. package/vendors/plugin/actions/execute-outline.json +10 -2
  573. package/vendors/plugin/actions/export-latex.json +15 -2
  574. package/vendors/plugin/actions/plan-revision.json +22 -4
  575. package/vendors/plugin/actions/polish-prose.json +13 -3
  576. package/vendors/plugin/actions/research-gap.json +16 -3
  577. package/vendors/plugin/actions/verify-work.json +13 -4
  578. package/vendors/plugin/ai.iowarp.clio/agents/wtfp-argument-verifier.md +7 -8
  579. package/vendors/plugin/ai.iowarp.clio/agents/wtfp-citation-expert.md +5 -5
  580. package/vendors/plugin/ai.iowarp.clio/agents/wtfp-citation-formatter.md +3 -3
  581. package/vendors/plugin/ai.iowarp.clio/agents/wtfp-coherence-checker.md +9 -10
  582. package/vendors/plugin/ai.iowarp.clio/agents/wtfp-outliner.md +3 -3
  583. package/vendors/plugin/ai.iowarp.clio/agents/wtfp-plan-checker.md +7 -8
  584. package/vendors/plugin/ai.iowarp.clio/agents/wtfp-prose-polisher.md +4 -4
  585. package/vendors/plugin/ai.iowarp.clio/agents/wtfp-research-synthesizer.md +6 -6
  586. package/vendors/plugin/ai.iowarp.clio/agents/wtfp-section-planner.md +3 -3
  587. package/vendors/plugin/ai.iowarp.clio/agents/wtfp-section-reviewer.md +9 -10
  588. package/vendors/plugin/ai.iowarp.clio/agents/wtfp-section-writer.md +3 -3
  589. package/vendors/plugin/ai.iowarp.clio/playbooks/wtfp-draft-review.md +1 -1
  590. package/vendors/plugin/ai.iowarp.clio/playbooks/wtfp-plan-section.md +1 -1
  591. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/add-todo.md +21 -4
  592. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/advance.md +101 -0
  593. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/analyze-bib.md +27 -8
  594. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/audit-milestone.md +26 -5
  595. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/check-refs.md +40 -7
  596. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/check-todos.md +25 -5
  597. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/checkpoint.md +27 -7
  598. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/create-outline.md +26 -8
  599. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/create-poster.md +27 -13
  600. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/create-slides.md +27 -13
  601. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/discuss-section.md +26 -6
  602. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/execute-outline.md +42 -9
  603. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/export-latex.md +35 -24
  604. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/help.md +4 -1
  605. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/insert-section.md +25 -5
  606. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/list-assumptions.md +21 -17
  607. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/map-project.md +21 -4
  608. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/new-paper.md +25 -5
  609. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/pause-writing.md +21 -4
  610. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/plan-milestone-gaps.md +25 -5
  611. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/plan-revision.md +33 -20
  612. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/plan-section.md +42 -10
  613. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/polish-prose.md +43 -10
  614. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/progress.md +26 -30
  615. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/quick.md +40 -7
  616. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/research-gap.md +51 -13
  617. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/resume-writing.md +25 -5
  618. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/review-section.md +36 -7
  619. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/settings.md +25 -5
  620. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/submit-milestone.md +27 -5
  621. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/verify-work.md +30 -8
  622. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/write-section.md +44 -11
  623. package/vendors/plugin/aliases.lock.json +1 -0
  624. package/vendors/plugin/catalog.json +4 -2
  625. package/vendors/plugin/compatibility/action-availability.json +11 -5
  626. package/vendors/plugin/plugin.json +16 -2
  627. package/vendors/plugin/project/README.md +39 -0
  628. package/vendors/plugin/project/schemas/interaction.schema.json +100 -0
  629. package/vendors/plugin/project/templates/interaction.json +16 -0
  630. package/vendors/plugin/roles/research-synthesizer.md +1 -1
  631. package/vendors/plugin/skills/wtfp-deliver-research/SKILL.md +1 -1
  632. package/vendors/plugin/skills/wtfp-deliver-research/references/actions.md +2 -2
  633. package/vendors/plugin/skills/wtfp-manage-project/SKILL.md +2 -1
  634. package/vendors/plugin/skills/wtfp-manage-project/references/actions.md +13 -1
  635. package/vendors/plugin/skills/wtfp-plan-section/SKILL.md +1 -1
  636. package/vendors/plugin/skills/wtfp-plan-section/references/actions.md +4 -3
  637. package/vendors/plugin/skills/wtfp-research-literature/SKILL.md +1 -1
  638. package/vendors/plugin/skills/wtfp-research-literature/references/actions.md +1 -1
  639. package/vendors/plugin/skills/wtfp-review-manuscript/SKILL.md +1 -1
  640. package/vendors/plugin/skills/wtfp-review-manuscript/references/actions.md +2 -1
  641. package/vendors/plugin/skills/wtfp-write-section/SKILL.md +1 -1
  642. package/vendors/plugin/skills/wtfp-write-section/references/actions.md +1 -1
  643. package/vendors/plugin/tools/README.md +1 -1
  644. package/vendors/plugin/workflows/advance.md +38 -0
  645. package/vendors/plugin/workflows/checkpoint.md +2 -2
  646. package/vendors/plugin/workflows/discuss-section.md +1 -1
  647. package/vendors/plugin/workflows/execute-outline.md +2 -2
  648. package/vendors/plugin/workflows/export-latex.md +4 -4
  649. package/vendors/plugin/workflows/plan-revision.md +4 -3
  650. package/vendors/plugin/workflows/plan-section.md +3 -3
  651. package/vendors/plugin/workflows/polish-prose.md +3 -3
  652. package/vendors/plugin/workflows/research-gap.md +5 -5
  653. package/vendors/plugin/workflows/verify-work.md +5 -3
  654. package/vendors/plugin/workflows/write-section.md +4 -4
  655. package/vendors/antigravity/commands/wtfp-plan-section.md +0 -78
  656. package/vendors/antigravity/commands/wtfp-write-section.md +0 -77
@@ -39,7 +39,8 @@ const CAPABILITY_IDS = Object.freeze([
39
39
  'tool.execute',
40
40
  'user.interaction',
41
41
  'vcs.branch',
42
- 'vcs.commit'
42
+ 'vcs.commit',
43
+ 'workflow.drive'
43
44
  ]);
44
45
 
45
46
  // Effects are portable semantic declarations. Each effect must have one exact
@@ -77,6 +78,11 @@ const EFFECT_CAPABILITY_BINDINGS = Object.freeze({
77
78
  // Clio's `network.search` is bound to the same executor because the only
78
79
  // scholarly search WTF-P declares is the bundled Semantic Scholar / Google
79
80
  // Scholar client; Clio exposes `web_fetch` but no native web-search tool.
81
+ //
82
+ // `workflow.drive` is a host driver that selects each next step from portable
83
+ // project state and confines that step to its own action contract. Only the
84
+ // Clio desk provides one (`extension_wtfp__next_step`), so `advance` fails
85
+ // closed everywhere else instead of letting a model choose its own steps.
80
86
  const TARGET_POLICIES = Object.freeze({
81
87
  clio: Object.freeze({ capabilities: Object.freeze({
82
88
  'agent.delegate': 'clio:plugin-agent',
@@ -91,7 +97,8 @@ const TARGET_POLICIES = Object.freeze({
91
97
  'tool.execute': 'clio:bash',
92
98
  'user.interaction': 'clio:ask_user',
93
99
  'vcs.branch': null,
94
- 'vcs.commit': null
100
+ 'vcs.commit': null,
101
+ 'workflow.drive': 'clio:wtfp-desk-driver'
95
102
  }), approvals: Object.freeze({ none: 'clio:permission-policy', implicit: 'clio:permission-policy', explicit: 'clio:ask_user' }) }),
96
103
  claude: Object.freeze({ capabilities: Object.freeze({
97
104
  'agent.delegate': 'claude:Task',
@@ -106,7 +113,8 @@ const TARGET_POLICIES = Object.freeze({
106
113
  'tool.execute': 'claude:Bash',
107
114
  'user.interaction': 'claude:AskUserQuestion',
108
115
  'vcs.branch': null,
109
- 'vcs.commit': null
116
+ 'vcs.commit': null,
117
+ 'workflow.drive': null
110
118
  }), approvals: Object.freeze({ none: 'claude:allowed-tools', implicit: 'claude:allowed-tools', explicit: 'claude:AskUserQuestion' }) }),
111
119
  codex: Object.freeze({ capabilities: Object.freeze({
112
120
  'agent.delegate': 'codex:subagent',
@@ -121,7 +129,8 @@ const TARGET_POLICIES = Object.freeze({
121
129
  'tool.execute': null,
122
130
  'user.interaction': 'codex:conversation',
123
131
  'vcs.branch': null,
124
- 'vcs.commit': null
132
+ 'vcs.commit': null,
133
+ 'workflow.drive': null
125
134
  }), approvals: Object.freeze({ none: 'codex:sandbox-policy', implicit: 'codex:sandbox-policy', explicit: 'codex:conversation-confirmation' }) }),
126
135
  copilot: Object.freeze({ capabilities: Object.freeze({
127
136
  'agent.delegate': 'copilot:Task',
@@ -136,7 +145,8 @@ const TARGET_POLICIES = Object.freeze({
136
145
  'tool.execute': null,
137
146
  'user.interaction': 'copilot:AskUserQuestion',
138
147
  'vcs.branch': null,
139
- 'vcs.commit': null
148
+ 'vcs.commit': null,
149
+ 'workflow.drive': null
140
150
  }), approvals: Object.freeze({ none: 'copilot:allowed-tools', implicit: 'copilot:allowed-tools', explicit: 'copilot:AskUserQuestion' }) }),
141
151
  'copilot-cloud': Object.freeze({ capabilities: Object.freeze({
142
152
  'agent.delegate': 'copilot-cloud:agent',
@@ -151,7 +161,8 @@ const TARGET_POLICIES = Object.freeze({
151
161
  'tool.execute': null,
152
162
  'user.interaction': 'copilot-cloud:input-approval',
153
163
  'vcs.branch': null,
154
- 'vcs.commit': null
164
+ 'vcs.commit': null,
165
+ 'workflow.drive': null
155
166
  }), approvals: Object.freeze({ none: 'copilot-cloud:tool-policy', implicit: 'copilot-cloud:tool-policy', explicit: null }) }),
156
167
  opencode: Object.freeze({ capabilities: Object.freeze({
157
168
  'agent.delegate': 'opencode:agent',
@@ -166,7 +177,8 @@ const TARGET_POLICIES = Object.freeze({
166
177
  'tool.execute': null,
167
178
  'user.interaction': 'opencode:conversation',
168
179
  'vcs.branch': null,
169
- 'vcs.commit': null
180
+ 'vcs.commit': null,
181
+ 'workflow.drive': null
170
182
  }), approvals: Object.freeze({ none: 'opencode:permission-policy', implicit: 'opencode:permission-policy', explicit: 'opencode:conversation-confirmation' }) }),
171
183
  antigravity: Object.freeze({ capabilities: Object.freeze({
172
184
  'agent.delegate': 'antigravity:Task',
@@ -181,7 +193,8 @@ const TARGET_POLICIES = Object.freeze({
181
193
  'tool.execute': null,
182
194
  'user.interaction': 'antigravity:AskUserQuestion',
183
195
  'vcs.branch': null,
184
- 'vcs.commit': null
196
+ 'vcs.commit': null,
197
+ 'workflow.drive': null
185
198
  }), approvals: Object.freeze({ none: 'antigravity:allowed-tools', implicit: 'antigravity:allowed-tools', explicit: 'antigravity:AskUserQuestion' }) }),
186
199
  gemini: Object.freeze({ capabilities: Object.freeze({
187
200
  'agent.delegate': 'gemini:agent',
@@ -196,21 +209,24 @@ const TARGET_POLICIES = Object.freeze({
196
209
  'tool.execute': null,
197
210
  'user.interaction': 'gemini:conversation',
198
211
  'vcs.branch': null,
199
- 'vcs.commit': null
212
+ 'vcs.commit': null,
213
+ 'workflow.drive': null
200
214
  }), approvals: Object.freeze({ none: 'gemini:permission-policy', implicit: 'gemini:permission-policy', explicit: 'gemini:conversation-confirmation' }) })
201
215
  });
202
216
 
203
217
  // Availability says that a target has a native binding for every required
204
218
  // capability and effect. It does not imply that every host can narrow its
205
- // main-agent tool surface for one prompt. Clio plugin prompt templates expand
206
- // into an ordinary user turn and therefore inherit the session tool surface.
207
- // Keep that limitation machine-readable so an evaluation cannot mistake a
208
- // semantic binding for action-scoped enforcement.
219
+ // main-agent tool surface for one prompt; keep that machine-readable so an
220
+ // evaluation cannot mistake a declaration for enforcement. Clio prompts
221
+ // declare allowed-tools and delegated-tools per action, and Clio 0.6.3, which
222
+ // the desk requires, narrows a template turn to them and caps its workers.
209
223
  const TARGET_HOST_TOOL_ENFORCEMENT = Object.freeze({
210
224
  clio: Object.freeze({
211
- actionScoped: false,
212
- surface: 'clio:session-tools',
213
- certificationAutonomy: Object.freeze(['read-only', 'suggest']),
225
+ actionScoped: true,
226
+ surface: 'clio:template-allowed-tools',
227
+ // Clio 0.8 has two levels; the 0.6.3 read-only and suggest spellings it was
228
+ // certified under now read as `default`.
229
+ certificationAutonomy: Object.freeze(['default']),
214
230
  undeclaredToolCall: 'fail'
215
231
  })
216
232
  });
@@ -465,6 +481,11 @@ function nativeWorkflowBody(workflowBody, target) {
465
481
  body = body.replaceAll('protocol://', '.github/wtfp/');
466
482
  } else if (target === 'antigravity') {
467
483
  body = body.replaceAll('protocol://', '${PLUGIN_ROOT}/');
484
+ // Antigravity exposes plugin actions only as skills, invoked by skill name.
485
+ body = body.replace(
486
+ "this host's own invocation syntax, `/wtfp:<action>`. Do not invent a second spelling, a bare `wtfp-<action>` form, or a host-specific prefix.",
487
+ "Antigravity's invocation syntax, `/wtfp-<action>`, because Antigravity loads plugin actions as skills. Do not invent a second spelling."
488
+ );
468
489
  } else if (target === 'gemini' || target === 'opencode' || target === 'codex') {
469
490
  // None of these hosts exposes a reliable runtime variable for resolving
470
491
  // files in command/agent prompt text. Embed the referenced resources so
@@ -475,27 +496,42 @@ function nativeWorkflowBody(workflowBody, target) {
475
496
  return body;
476
497
  }
477
498
 
499
+ // Schemas and templates shape writes. A record an action only reads describes
500
+ // itself, so a read-only action carries none, and an action carries only the
501
+ // record types it creates or updates. Authored artifacts under a section, such
502
+ // as plans and reviews, are Markdown and have no record schema.
503
+ const RECORD_SCHEMAS = [
504
+ [/^project:\/\/manifest$/, 'manifest'],
505
+ [/^project:\/\/config$/, 'config'],
506
+ [/^project:\/\/state$/, 'state'],
507
+ [/^project:\/\/decisions$/, 'decisions'],
508
+ [/^project:\/\/structure\/outline$/, 'outline'],
509
+ [/^project:\/\/sections\/[^/]+$/, 'section'],
510
+ [/^project:\/\/sources\/[^/]+$/, 'source'],
511
+ [/^project:\/\/evidence\/[^/]+$/, 'evidence'],
512
+ [/^project:\/\/checkpoints\/[^/]+$/, 'checkpoint'],
513
+ [/^project:\/\/validations\/[^/]+$/, 'validation']
514
+ ];
515
+
478
516
  function projectSchemasForAction(action) {
479
517
  const schemas = new Set();
480
- const uris = [
481
- ...action.reads,
482
- ...action.produces.map((output) => output.uri)
483
- ];
484
- for (const uri of uris) {
485
- if (uri === 'project://manifest') schemas.add('manifest');
486
- else if (uri === 'project://config') schemas.add('config');
487
- else if (uri === 'project://state') schemas.add('state');
488
- else if (uri === 'project://decisions') schemas.add('decisions');
489
- else if (uri === 'project://structure/outline') schemas.add('outline');
490
- else if (uri.startsWith('project://sections/')) schemas.add('section');
491
- else if (uri.startsWith('project://sources/')) schemas.add('source');
492
- else if (uri.startsWith('project://evidence/')) schemas.add('evidence');
493
- else if (uri.startsWith('project://checkpoints/')) schemas.add('checkpoint');
494
- else if (uri.startsWith('project://validations/')) schemas.add('validation');
518
+ for (const output of action.produces) {
519
+ const match = RECORD_SCHEMAS.find(([pattern]) => pattern.test(output.uri));
520
+ if (match) schemas.add(match[1]);
495
521
  }
496
522
  return [...schemas].sort((left, right) => left.localeCompare(right));
497
523
  }
498
524
 
525
+ // The desk enforces an action's contract, and the prompt already states its
526
+ // reads, outputs, conditions, gates and roles. Reading the file would cost Clio
527
+ // a round trip that resends the whole context for no new fact, so the prompt
528
+ // names it only for an exact lookup.
529
+ function clioBoundContract(action) {
530
+ return action.requirements.capabilities.includes('workflow.drive')
531
+ ? `The desk enforces \`protocol://actions/${action.id}.json\`, the union of the actions it drives, through each step's own contract. Read it only when a refusal needs its exact terms.`
532
+ : `The desk enforces \`protocol://actions/${action.id}.json\`; this prompt states its reads, outputs, conditions, gates and roles. Read it only when a refusal needs its exact terms.`;
533
+ }
534
+
499
535
  function nativeCommandBody(action, workflowBody, target, deskTools = false) {
500
536
  const argumentToken = target === 'gemini'
501
537
  ? '{{args}}'
@@ -504,7 +540,9 @@ function nativeCommandBody(action, workflowBody, target, deskTools = false) {
504
540
  : '$ARGUMENTS';
505
541
  const schemas = projectSchemasForAction(action);
506
542
  const protocolIncludes = [
507
- `@protocol://actions/${action.id}.json`,
543
+ deskTools
544
+ ? clioBoundContract(action)
545
+ : `@protocol://actions/${action.id}.json`,
508
546
  ...(!deskTools && schemas.length > 0 ? ['@protocol://project/schemas/common.schema.json'] : []),
509
547
  ...(!deskTools ? schemas : []).flatMap((schema) => [
510
548
  `@protocol://project/schemas/${schema}.schema.json`,
@@ -515,7 +553,7 @@ function nativeCommandBody(action, workflowBody, target, deskTools = false) {
515
553
  nativeWorkflowBody([
516
554
  deskTools ? clioDeskWorkflowBody(action, workflowBody) : workflowBody,
517
555
  '',
518
- deskTools ? '## Bound action contract' : '## Bound action contract and schemas',
556
+ deskTools || schemas.length === 0 ? '## Bound action contract' : '## Bound action contract and schemas',
519
557
  '',
520
558
  ...protocolIncludes
521
559
  ].join('\n'), target),
@@ -598,28 +636,75 @@ function generatedScriptBanner(kind, id) {
598
636
  return `// Generated by WTF-P adapter compiler v${GENERATOR_VERSION} from ${kind}/${id}; do not edit.`;
599
637
  }
600
638
 
639
+ const CLIO_AUTHOR_QUESTIONS = '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.';
640
+
601
641
  function clioUserGateBody(action, deskTools = false) {
602
642
  if (!action.effects.some((effect) => effect.id === 'user.gate')) return '';
643
+ // A local model tried every branch of a two-way rule in turn; state only the one this action can take.
644
+ const createsCheckpoint = action.produces.some((output) => output.uri === 'project://checkpoints/{checkpoint}' && output.mode === 'create');
645
+ const route = createsCheckpoint
646
+ ? '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.'
647
+ : '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.';
603
648
  if (deskTools) return [
604
649
  '## Clio user-gate binding',
605
650
  '',
606
- 'For a pending checkpoint in the declared gate\'s exact scope, call `extension_wtfp__gate` with its ID. 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, retained or expired checkpoints authorize nothing. Never write `resolution.resolved_by: author` yourself or infer approval from invocation text, prose or silence. Read back a persisted resolution before applying its gated mutation.'
651
+ route + ' 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.',
652
+ '',
653
+ CLIO_AUTHOR_QUESTIONS
607
654
  ].join('\n');
608
655
  return [
609
656
  '## Clio user-gate binding',
610
657
  '',
611
- 'Call `ask_user` whenever this workflow reaches a declared `user.gate`; only the structured value returned by that tool satisfies the gate. Invocation arguments, assistant prose, silence, or a report artifact do not count as a selection. Apply no gated mutation before `ask_user` returns. After any permitted mutation, perform the workflow-required readback before reporting success.'
658
+ 'Call `ask_user` whenever this workflow reaches a declared `user.gate`; only the structured value returned by that tool satisfies the gate. Invocation arguments, assistant prose, silence, or a report artifact do not count as a selection. Apply no gated mutation before `ask_user` returns. After any permitted mutation, perform the workflow-required readback before reporting success.',
659
+ '',
660
+ CLIO_AUTHOR_QUESTIONS
612
661
  ].join('\n');
613
662
  }
614
663
 
664
+ // Whether an action writes portable JSON records, which on Clio only the desk's
665
+ // record tool may do. An action that writes none reads records through the desk
666
+ // and needs neither the record tool nor the schemas a writer validates against.
667
+ function clioRecordWriter(action) {
668
+ return action.produces.some((output) =>
669
+ /^project:\/\/(?:manifest|config|state|decisions|structure\/outline|(?:sections|sources|evidence|checkpoints|validations)\/[^/]+)$/.test(output.uri));
670
+ }
671
+
672
+ // On the desk only the record tool writes JSON records, so a writing role of an
673
+ // action that produces no file has no root it may hold: Clio reads an empty
674
+ // write_roots as unbounded and the desk refuses it. The main agent does that
675
+ // role's work itself. Read-only reviewers still dispatch.
676
+ function clioInlineRoles(action, reviewers, deskTools) {
677
+ if (!deskTools) return [];
678
+ const recordOnly = action.produces.every((output) =>
679
+ /^project:\/\/(?:manifest|config|state|decisions|structure\/outline|(?:sections|sources|evidence|checkpoints|validations)\/[^/]+)$/.test(output.uri));
680
+ return recordOnly ? action.delegation.map((entry) => entry.role).filter((role) => !reviewers.has(role)) : [];
681
+ }
682
+
683
+ // The desk tools one Clio prompt's turn holds: a record writer gets every
684
+ // record tool, a reader only what reads, and a gate only where it declares one.
685
+ const archives = (action) => action.produces.some((output) => output.mode === 'archive' && output.uri.startsWith('project://archives/'));
686
+
687
+ function clioDeskTools(action) {
688
+ if (clioRecordWriter(action)) return [...CLIO_DESK_TOOLS, ...(archives(action) ? ['extension_wtfp__archive'] : [])];
689
+ const tools = ['status', 'read_record', 'readiness'];
690
+ if (action.effects.some((effect) => effect.id === 'user.gate')) tools.push('gate');
691
+ return tools.map((tool) => `extension_wtfp__${tool}`);
692
+ }
693
+
615
694
  // Only the canonical Clio namespace prefers the optional desk. The unrooted
616
695
  // phase-1 projection remains intact for the Claude envelope and other hosts.
617
696
  function clioDeskWorkflowBody(action, workflowBody) {
697
+ const writer = clioRecordWriter(action);
698
+ // Clio re-sends an inlined file with every request and never pins it across
699
+ // compaction; a skill loaded through context survives compaction, and a file
700
+ // read with the read tool can be evicted once used.
618
701
  let body = workflowBody
619
702
  .replace(/^@protocol:\/\/project\/README\.md\n/gm, '')
620
703
  .replace(/^@protocol:\/\/skills\/[^\n]+\/references\/actions\.md\n/gm, '')
621
- .replace(/^Resolve every logical URI through the host adapter\.[^\n]+$/m,
622
- 'Use `extension_wtfp__record` for each declared JSON record write: pass its logical `uri`, complete `record`, and the revision read as `expect_revision` for revisioned updates. It validates, bumps revisions/timestamps, replaces atomically and reads back; preserve stable IDs and author decisions.')
704
+ .replace(/^@protocol:\/\/skills\/([a-z0-9-]+)\/SKILL\.md$/gm,
705
+ 'Before acting, load the `$1` skill with `context(scope="skills", name="$1")`; it carries this action\'s method and stays loaded across compaction.')
706
+ .replace(/^Resolve every logical URI through the host adapter\.[^\n]+$/m, writer ? '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.'
707
+ : 'Read each JSON record with `extension_wtfp__read_record` at its logical URI; it returns the record, its revision and SHA-256, and for a checkpoint whether the author\'s answer is attested. This action writes no JSON record.')
623
708
  .replace(/^Manuscript prose and supporting context,[^\n]+$/m,
624
709
  'Write prose and linked artifacts with native file tools; keep their authored formats. The record tool handles JSON records only, never manuscript text, deletion or archives.');
625
710
  if (action.id === 'write-section') body = body.replace(/^3\. Read the persisted manuscript text back[^\n]+$/m,
@@ -627,8 +712,20 @@ function clioDeskWorkflowBody(action, workflowBody) {
627
712
  if (action.id === 'check-todos') body = body
628
713
  .replace(/^2\. Ask the user[^\n]+$/m, '2. Call `extension_wtfp__gate` for each selected pending checkpoint; the parked interview records the author\'s answer.')
629
714
  .replace(/^3\. Apply only[^\n]+$/m, '3. Read back the resulting checkpoint and state; retained or cancelled gates remain pending.');
715
+ if (action.requirements.capabilities.includes('workflow.drive')) {
716
+ const contract = /^## Record contract\n[\s\S]*?(?=^## Procedure$)/m;
717
+ if (!contract.test(body)) throw new Error(`${action.id}: no record contract section to project`);
718
+ return `${body.replace(contract, '## Record contract\n\nThe driver writes nothing itself. Each step reads and writes only what its own prompt\'s record contract declares, for the section the desk names; the desk arms the write guard for that step alone.\n\n')}\n\n${clioDriverBinding()}`;
719
+ }
630
720
  const bindings = [
631
- 'Discover the named tools with `gateway(op="describe", capability="extension_wtfp__record")` (and the corresponding `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.',
721
+ clioDeskCalls(clioDeskTools(action)),
722
+ '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.',
723
+ '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.',
724
+ '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.',
725
+ ...(action.produces.some((output) => output.uri.startsWith('project://paper'))
726
+ ? ['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.'] : []),
727
+ ...(archives(action)
728
+ ? ['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.'] : []),
632
729
  ...(action.produces.some((output) => output.uri.startsWith('project://paper')) && action.id !== 'write-section'
633
730
  ? ['After changing a linked section manuscript, call `extension_wtfp__measure_section` with that section ID; it persists the desk\'s body-word count in the section and state.'] : []),
634
731
  `If desk tools are absent, follow \`\${pluginRoot}/workflows/${action.id}.md\` and \`\${pluginRoot}/project/README.md\` with native tools and \`ask_user\` gates.`
@@ -636,12 +733,52 @@ function clioDeskWorkflowBody(action, workflowBody) {
636
733
  return `${body}\n\n${bindings.join('\n')}`;
637
734
  }
638
735
 
736
+ // Argument shapes for the desk tools. A gateway describe resends the whole
737
+ // context, so a prompt that states the shapes lets the model call at once.
738
+ const CLIO_DESK_ARGS = Object.freeze({
739
+ status: '{}',
740
+ next_step: '{after}',
741
+ read_record: '{uri}',
742
+ readiness: '{section}',
743
+ measure_section: '{section}',
744
+ archive: '{archive}',
745
+ gate: '{checkpoint}',
746
+ record: '{uri, record: {<every field of the record>}, expect_revision|expect_sha256} or {writes:[{uri, record, expect_...}]}, with no record field outside `record`'
747
+ });
748
+
749
+ function clioDeskCalls(tools) {
750
+ const args = tools.map((tool) => {
751
+ const name = tool.replace(/^extension_wtfp__/, '');
752
+ if (!(name in CLIO_DESK_ARGS)) throw new Error(`no Clio argument shape for desk tool ${tool}`);
753
+ return `${name} ${CLIO_DESK_ARGS[name]}`;
754
+ });
755
+ return `Call desk tools with \`gateway(op="call", capability="extension_wtfp__<tool>", args={...})\`, without a describe first; args: ${args.join(', ')}. 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\`.`;
756
+ }
757
+
758
+ // The Clio projection of the workflow.drive capability. The desk, not the
759
+ // model, picks each step and arms the write guard for exactly that action.
760
+ function clioDriverBinding() {
761
+ return [
762
+ '## Clio driver binding',
763
+ '',
764
+ `${clioDeskCalls([...CLIO_DESK_TOOLS, CLIO_DRIVER_TOOL])} If \`extension_wtfp__next_step\` is absent, the WTF-P desk extension is not running: report that \`advance\` needs it and stop without running any action.`,
765
+ '',
766
+ 'Call `extension_wtfp__next_step` with `after` set to `"start"`, and on every later call to the step you just finished, such as `"write-section introduction"` or `"gate confirm-plan-introduction"`; Clio\'s loop guard reads repeated identical calls as a loop. Its result names exactly one of:',
767
+ '',
768
+ '- `step`: an action, a section when the action takes one, and the step\'s prompt path relative to the plugin root. The desk has armed its write guard for that action and section only. Read `${pluginRoot}/` followed by that whole path, such as `${pluginRoot}/ai.iowarp.clio/prompts/wtfp/write-section.md`, and follow it as if the author had typed `/wtfp:<action> <section>`: the section is its invocation input, and paths it writes under the plugin-root placeholder are under `${pluginRoot}`. Load the skill it names before acting. When the action completes, call `extension_wtfp__next_step` again.',
769
+ '- `gate`: a checkpoint ID. Call `extension_wtfp__gate` with it; the desk interviews the author and seals the answer. Then call `extension_wtfp__next_step` again.',
770
+ '- `stop`: the reason the run ends. Report it with the steps taken and end the turn.',
771
+ '',
772
+ 'Never choose, skip, repeat or reorder an action, invoke another `/wtfp:` prompt, or dispatch a WTF-P role outside a step the desk armed. If a step fails, is blocked, or its tools refuse a call, stop and report it; do not call `extension_wtfp__next_step` to get past a failure. The desk stops a step that would repeat with no change, a gate the author kept pending or declined, and a run past its step limit. Every `extension_wtfp__next_step` result restates this rule and where its step\'s prompt lives, so if the conversation was compacted, continue from the last result.'
773
+ ].join('\n');
774
+ }
775
+
639
776
  function clioResearchConnectionBody(action) {
640
777
  if (action.id !== 'research-gap') return '';
641
778
  return [
642
779
  '## Clio CiteNexus binding',
643
780
  '',
644
- 'In full-auto, the main agent first calls `gateway(op="find", query="cite-nexus")`. If a CiteNexus server is present and its tools are admitted as read-class through the operator\'s user configuration, call `gateway(op="describe", capability="<search-papers capability>")`, then `gateway(op="call", capability="<search-papers capability>", args={...})` with bounded public metadata queries. Use the capability name and argument schema returned by the gateway, not a guessed name. MCP connections are session-owned and unavailable in delegated workers, so pass the returned candidates and provenance to `wtfp-research-synthesizer` instead of asking that worker to discover the MCP server. This user-configured read connection is prior authorization for those searches; do not call `ask_user` again for each query. If no read-class CiteNexus connection is available and no gateway call has been refused, full-auto may instead run the bundled `citation-search --backend=cite-nexus` through its declared dispatcher with bounded public queries and an explicit `--providers` list containing only `crossref`, `datacite`, `europe_pmc`, or `arxiv`; pass those candidates to the same specialist. An operator-set offline flag, unavailable companion, or host refusal stops this route. Other providers and modes follow the declared user gate. Never bypass a gateway refusal by rerunning the same denied request through `bash`. Record the exact provider IDs, queries, limits, date, and provenance; verify each retained candidate before citing it.'
781
+ 'At yolo autonomy, search through the operator\'s CiteNexus MCP server, declared as `cite-nexus` with read-class tools in their user configuration. This prompt admits its four lookup capabilities, so call them directly without a gateway `find` or `describe`, each of which resends the whole context: `gateway(op="call", capability="mcp_cite-nexus__search-papers", args={query, providers, limit})` with a bounded public metadata query, `providers` drawn from `crossref`, `datacite`, `europe_pmc` and `arxiv`, and `limit` at most 10 per provider; results are compact, without abstracts. Check a candidate with `mcp_cite-nexus__resolve-paper` `{identifier}` or `mcp_cite-nexus__verify-citation` `{citation, expected_title, expected_year}`, and fetch a reference with `mcp_cite-nexus__get-citation` `{identifier, format}`. MCP connections are session-owned and unavailable in delegated workers, so pass the returned candidates and provenance to `wtfp-research-synthesizer` instead of asking that worker to discover the MCP server. This user-configured read connection is prior authorization for those searches; do not call `ask_user` again for each query. Only if the gateway reports no MCP server named `cite-nexus` may yolo instead run the bundled `citation-search --backend=cite-nexus` through its declared dispatcher with bounded public queries and an explicit `--providers` list containing only `crossref`, `datacite`, `europe_pmc`, or `arxiv`; pass those candidates to the same specialist. An operator-set offline flag, unavailable companion, or host refusal stops this route. Other providers and modes follow the declared user gate. Never bypass a gateway refusal by rerunning the same denied request through `bash`. Record the exact provider IDs, queries, limits, date, and provenance; verify each retained candidate before citing it.'
645
782
  ].join('\n');
646
783
  }
647
784
 
@@ -700,7 +837,13 @@ function clioHelpCard(model, availabilityById, legacyFleetNames = false) {
700
837
  `WTF-P ${model.version} on Clio Coder: evidence-grounded academic writing`,
701
838
  '',
702
839
  'Start here',
703
- ...HELP_START_SEQUENCE.map((id) => ` /wtfp:${id} ${helpArgumentHint(byId.get(id))}`),
840
+ ...HELP_START_SEQUENCE.flatMap((id) => [
841
+ ` /wtfp:${id} ${helpArgumentHint(byId.get(id))}`,
842
+ // Once there is an outline, the desk can run the steps that follow until a decision is the author's.
843
+ ...(id === 'create-outline' && availabilityById.get('advance')?.available
844
+ ? [` /wtfp:advance ${helpArgumentHint(byId.get('advance'))} or let the desk run the steps below until a decision is yours`]
845
+ : [])
846
+ ]),
704
847
  '',
705
848
  ...HELP_GROUP_ORDER.flatMap(([skillId, title]) => {
706
849
  const skill = model.catalog.skills.find((entry) => entry.id === skillId);
@@ -733,13 +876,17 @@ function clioHelpCard(model, availabilityById, legacyFleetNames = false) {
733
876
  ].join('\n');
734
877
  }
735
878
 
736
- function renderMarkdownCommand(action, workflowBody, target, availability, deskTools = false) {
879
+ function renderMarkdownCommand(action, workflowBody, target, availability, deskTools = false, reviewers = new Set()) {
737
880
  const lines = ['---'];
738
881
  // Claude derives the stable command name from the plugin id and flat file
739
882
  // name. Repeating either in frontmatter creates names such as
740
883
  // /wtfp:wtfp:new-paper in current Claude Code releases.
741
884
  if (target !== 'clio' && target !== 'claude') lines.push(`name: wtfp:${action.id}`);
742
885
  lines.push(`description: ${yamlScalar(action.description)}`);
886
+ // Without the desk there is no driver to select steps; never let a model drive itself.
887
+ if (availability.available && target === 'clio' && !deskTools && action.requirements.capabilities.includes('workflow.drive')) {
888
+ availability = { ...availability, available: false, unavailableCapabilities: ['workflow.drive'], unavailableEffects: [] };
889
+ }
743
890
  if (!availability.available) {
744
891
  if (target === 'claude' || target === 'copilot' || target === 'antigravity') {
745
892
  lines.push('allowed-tools: []');
@@ -755,9 +902,25 @@ function renderMarkdownCommand(action, workflowBody, target, availability, deskT
755
902
  for (const tool of tools) lines.push(` - ${tool}`);
756
903
  }
757
904
  }
905
+ if (target === 'clio') {
906
+ lines.push('allowed-tools:');
907
+ const inline = new Set(clioInlineRoles(action, reviewers, deskTools));
908
+ const dispatched = { ...action, delegation: action.delegation.filter((entry) => !inline.has(entry.role)) };
909
+ for (const tool of clioActionTools(dispatched, deskTools)) lines.push(` - ${tool}`);
910
+ const delegated = clioDelegatedTools(dispatched, reviewers);
911
+ if (delegated.length > 0) {
912
+ lines.push('delegated-tools:');
913
+ for (const tool of delegated) lines.push(` - ${tool}`);
914
+ }
915
+ }
758
916
  const nativeBody = nativeCommandBody(action, workflowBody, target, deskTools);
759
917
  const clioRoles = action.delegation.map((entry) => `\`wtfp-${entry.role}\``).join(', ');
760
- const userGateBody = target === 'clio' ? [clioUserGateBody(action, deskTools), clioResearchConnectionBody(action), action.delegation.length ? `## Clio role-result binding\n\nDispatch the declared specialist roles using these exact Clio agent IDs: ${clioRoles}. Do not substitute generic coder or verifier agents. If a named agent is unavailable, report that blocker and stop instead of silently changing roles.\n\nRead 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.` : ''].filter(Boolean).join('\n\n') : '';
918
+ // Clio refuses a read-only recipe a task it reads as a change; a task that reads as a review never is.
919
+ const clioReviewers = action.delegation.filter((entry) => reviewers.has(entry.role)).map((entry) => `\`wtfp-${entry.role}\``);
920
+ const reviewerPhrasing = clioReviewers.length ? ` ${clioReviewers.join(', ')} ${clioReviewers.length === 1 ? 'is' : 'are'} read-only: begin each task for ${clioReviewers.length === 1 ? 'it' : 'them'} with "Review", because Clio refuses a read-only agent a task it reads as a change.` : '';
921
+ const inlineRoles = target === 'clio' ? clioInlineRoles(action, reviewers, deskTools) : [];
922
+ const inlineBody = inlineRoles.length ? `## Clio role binding\n\nThis action writes only JSON records, which on Clio only \`extension_wtfp__record\` writes, so a dispatched ${inlineRoles.map((role) => `\`wtfp-${role}\``).join(', ')} would have nothing it may write and the desk refuses it. Do ${inlineRoles.length === 1 ? 'that role\'s' : 'those roles\''} work in this turn yourself, following the skill loaded above, and write each record through \`extension_wtfp__record\`. Do not dispatch ${inlineRoles.length === 1 ? 'it' : 'them'}.` : '';
923
+ const userGateBody = target === 'clio' ? [clioUserGateBody(action, deskTools), clioResearchConnectionBody(action), inlineBody, action.delegation.length > inlineRoles.length ? `## Clio role-result binding\n\nDispatch the declared specialist roles using these exact Clio agent IDs: ${clioRoles}. 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.${reviewerPhrasing}\n\nRead the single wtfp.role-result entry in native validations and parse its evidence string as portable role-result JSON.${clioReviewers.length ? ` A read-only reviewer returns only a verdict and checks, no wtfp.role-result entry: treat its report as completed, each failed check as an issue, and a fail verdict as a revise recommendation.` : ''} Validate its schema, role and action against the dispatched task. Missing, duplicate or malformed outcomes fail closed. On needs_input ask the author through ask_user and redispatch with the response; on blocked or failed stop and report the issue. Only completed permits downstream work, and it never substitutes for an author gate or artifact readback.` : ''].filter(Boolean).join('\n\n') : '';
761
924
  lines.push(
762
925
  '---',
763
926
  '',
@@ -769,6 +932,13 @@ function renderMarkdownCommand(action, workflowBody, target, availability, deskT
769
932
  return lines.join('\n');
770
933
  }
771
934
 
935
+ function renderAntigravityActionSkill(action, workflowBody, availability) {
936
+ const command = renderMarkdownCommand(action, workflowBody, 'antigravity', availability);
937
+ const prefix = `---\nname: wtfp:${action.id}\n`;
938
+ if (!command.startsWith(prefix)) throw new Error(`Antigravity action ${action.id} has an unexpected command header`);
939
+ return `---\nname: wtfp-${action.id}\ndisable-model-invocation: true\n${command.slice(prefix.length)}`;
940
+ }
941
+
772
942
  function renderGeminiCommand(action, workflowBody, availability) {
773
943
  const body = availability.available
774
944
  ? nativeCommandBody(action, workflowBody, 'gemini')
@@ -922,16 +1092,121 @@ function renderCopilotCloudRole(role, slug) {
922
1092
  ].join('\n');
923
1093
  }
924
1094
 
1095
+ // The tools a Clio role recipe declares. Verifier roles judge text and run
1096
+ // nothing, so their recipes are Clio's read-only class: no write, no shell and
1097
+ // no verify, whose checks run commands from files a writer could have planted.
1098
+ // Clio refuses a skill load in a read-only run, so they bind none; the recipe
1099
+ // body is the role's whole contract, and the orchestrator holds the action's skill.
1100
+ function clioRoleTools(verifier) {
1101
+ return verifier
1102
+ ? { required: ['read'], optional: ['context', 'grep', 'find', 'ls', 'ledger'] }
1103
+ : { required: ['read', 'context', 'limitation', { anyOf: ['write', 'edit'] }], optional: ['grep', 'find', 'ls', 'ledger'] };
1104
+ }
1105
+
1106
+ function clioToolList(entries) {
1107
+ return `[${entries.map((entry) => (typeof entry === 'string' ? entry : `{anyOf: [${entry.anyOf.join(', ')}]}`)).join(', ')}]`;
1108
+ }
1109
+
1110
+ const CLIO_DESK_TOOLS = Object.freeze(['status', 'record', 'read_record', 'readiness', 'measure_section', 'gate'].map((tool) => `extension_wtfp__${tool}`));
1111
+ // Held only by actions that require workflow.drive: the desk arms each step itself.
1112
+ const CLIO_DRIVER_TOOL = 'extension_wtfp__next_step';
1113
+ // The CiteNexus lookups the research binding calls, under the server id CiteNexus documents.
1114
+ const CLIO_CITE_NEXUS_TOOLS = Object.freeze(['search-papers', 'resolve-paper', 'verify-citation', 'get-citation'].map((tool) => `mcp_cite-nexus__${tool}`));
1115
+
1116
+ // The tools one Clio prompt's turn may hold (allowed-tools), from the Clio
1117
+ // bindings of the action's declared capabilities. Clio 0.6.3 narrows a
1118
+ // template turn to them; 0.6.2 ignores the field. Only the bundled citation
1119
+ // dispatcher needs a shell, so an action holds bash only when it declares
1120
+ // tool.execute or network.search, and never run_script, job, git or verify.
1121
+ function clioActionTools(action, deskTools) {
1122
+ const capabilities = new Set(action.requirements.capabilities);
1123
+ const tools = ['read', 'grep', 'find', 'ls', 'context'];
1124
+ if (capabilities.has('filesystem.write') || capabilities.has('filesystem.delete')) tools.push('write', 'edit');
1125
+ if (capabilities.has('user.interaction')) tools.push('ask_user');
1126
+ if ((capabilities.has('agent.delegate') || capabilities.has('agent.parallel')) && action.delegation.length > 0) tools.push('dispatch', 'monitor');
1127
+ if (capabilities.has('network.fetch')) tools.push('web_fetch');
1128
+ if (capabilities.has('tool.execute') || capabilities.has('network.search')) tools.push('bash');
1129
+ if (deskTools) tools.push(...clioDeskTools(action));
1130
+ if (deskTools && capabilities.has('workflow.drive')) tools.push(CLIO_DRIVER_TOOL);
1131
+ // Clio admits an MCP server's tools only when the turn names each capability;
1132
+ // the CiteNexus binding would otherwise be refused by the prompt's own scope.
1133
+ if (action.id === 'research-gap' || capabilities.has('workflow.drive')) tools.push(...CLIO_CITE_NEXUS_TOOLS);
1134
+ return tools;
1135
+ }
1136
+
1137
+ // The tools the action's workers may hold (delegated-tools): every tool its
1138
+ // delegated roles' recipes declare, since Clio refuses a worker whose recipe
1139
+ // declares more than the ceiling, and without this field the turn's own
1140
+ // allowed-tools would be that ceiling.
1141
+ function clioDelegatedTools(action, reviewers) {
1142
+ const tools = new Set();
1143
+ for (const entry of action.delegation) {
1144
+ const declared = clioRoleTools(reviewers.has(entry.role));
1145
+ for (const item of [...declared.required, ...declared.optional]) {
1146
+ for (const tool of typeof item === 'string' ? [item] : item.anyOf) tools.add(tool);
1147
+ }
1148
+ }
1149
+ return [...tools].sort();
1150
+ }
1151
+
1152
+ // How each role runs on Clio. `latencyClass` is the routing prior for how long
1153
+ // a run takes; `budget` is the advisory tool-call notice, under Clio's hard
1154
+ // per-run ceiling. Roles that read a whole manuscript or a literature set get
1155
+ // the deep prior and room to read; quick checks stay fast. A read-only checker
1156
+ // gets no project orientation (`projectContextTier: none`): it judges the
1157
+ // artifacts it is handed, so a code-oriented repository summary is only noise
1158
+ // and a source of claims it did not read.
1159
+ const CLIO_ROLE_TUNING = Object.freeze({
1160
+ 'argument-verifier': { latency: 'fast', toolCalls: 24, readReserve: 4 },
1161
+ 'plan-checker': { latency: 'fast', toolCalls: 24, readReserve: 4 },
1162
+ 'section-reviewer': { latency: 'balanced', toolCalls: 40, readReserve: 6 },
1163
+ 'coherence-checker': { latency: 'deep', toolCalls: 64, readReserve: 12 },
1164
+ 'research-synthesizer': { latency: 'deep', toolCalls: 96, readReserve: 12 },
1165
+ 'citation-expert': { latency: 'deep', toolCalls: 96, readReserve: 12 },
1166
+ 'citation-formatter': { latency: 'balanced', toolCalls: 64, readReserve: 8 },
1167
+ 'outliner': { latency: 'balanced', toolCalls: 64, readReserve: 8 },
1168
+ 'section-planner': { latency: 'balanced', toolCalls: 64, readReserve: 8 },
1169
+ 'section-writer': { latency: 'balanced', toolCalls: 64, readReserve: 8 },
1170
+ 'prose-polisher': { latency: 'balanced', toolCalls: 48, readReserve: 6 }
1171
+ });
1172
+
1173
+ // The role-result schema as the object a worker writes. A recipe is resent
1174
+ // with every worker request, and the shape carries what the schema constrains
1175
+ // in a quarter of its bytes: fields, constants, enums, and which are optional.
1176
+ function clioRoleResultShape(schema, slug) {
1177
+ const optional = [];
1178
+ const shape = (node, at) => {
1179
+ const unstated = ['minItems', 'maxItems', 'maxLength', 'pattern', 'format', 'oneOf', 'anyOf', '$ref'].filter((key) => key in node);
1180
+ if (unstated.length > 0) throw new Error(`role-result shape: ${at || 'root'} uses ${unstated.join(', ')}, which the shape does not state`);
1181
+ if ('const' in node) return node.const;
1182
+ if (node.enum) return node.enum.join('|');
1183
+ if (node.type === 'array') return [shape(node.items, `${at}[]`)];
1184
+ if (node.type === 'object') {
1185
+ if (node.additionalProperties !== false) throw new Error(`role-result shape: ${at || 'root'} must close its properties`);
1186
+ const required = new Set(node.required ?? []);
1187
+ return Object.fromEntries(Object.entries(node.properties).map(([name, child]) => {
1188
+ const path = at ? `${at}.${name}` : name;
1189
+ if (!required.has(name)) optional.push(path);
1190
+ return [name, shape(child, path)];
1191
+ }));
1192
+ }
1193
+ if (node.type === 'string') return node.minLength ? '...' : '';
1194
+ throw new Error(`role-result shape: unsupported schema at ${at || 'root'}`);
1195
+ };
1196
+ // The role field names this recipe's role, never the worker's own identity.
1197
+ const object = JSON.stringify({ ...shape(schema, ''), role: slug });
1198
+ return `Portable result object (${schema.$id}): ${object}. Values with | are enums; every field is required${optional.length ? ` except ${optional.map((name) => `\`${name}\``).join(', ')}` : ''}; strings are non-empty unless shown empty; arrays may be empty; add no other field.`;
1199
+ }
1200
+
925
1201
  function renderClioRole(role, slug) {
1202
+ const tuning = CLIO_ROLE_TUNING[slug];
1203
+ if (!tuning) throw new Error(`no Clio tuning for role ${slug}`);
926
1204
  const verifier = role.fields.execution_class === 'verifier-report';
927
- const required = verifier
928
- ? '[verify, context]'
929
- : '[read, context, limitation, {anyOf: [write, edit]}]';
930
- const optional = verifier
931
- ? '[read, grep, find, ls, ledger]'
932
- : '[grep, find, ls, ledger]';
1205
+ const declared = clioRoleTools(verifier);
1206
+ const required = clioToolList(declared.required);
1207
+ const optional = clioToolList(declared.optional);
933
1208
  const nativeResult = verifier
934
- ? 'Your entire final response must be one compact JSON object: {"verdict":"pass|fail","checks":[{"name":"...","passed":true,"evidence":"..."}]}. The verdict must agree with every check. Return at most 12 non-duplicate checks, keep each ordinary evidence value to one short sentence (the wtfp.role-result entry contains compact serialized JSON), keep the complete UTF-8 response at or below 4096 bytes, and emit no Markdown, code fence, analysis, or text outside the object.'
1209
+ ? 'Your entire final response must be one compact JSON object and nothing else: {"verdict":"pass|fail","checks":[{"name":"...","passed":true,"evidence":"..."}]}. The verdict must agree with every check. Return at most 12 non-duplicate checks, keep each evidence value to one short sentence that cites the artifact and location, keep the complete UTF-8 response at or below 4096 bytes, and emit no Markdown, code fence, analysis, or text outside the object. Where the procedure asks for findings, a status or a summary, the checks and the verdict are that result: a failed check is a finding, and fail means revise. Example: {"verdict":"fail","checks":[{"name":"claim coverage","passed":true,"evidence":"All five claims map to paragraphs P2-P6 of plan-01."},{"name":"word budget","passed":false,"evidence":"Units sum to 830 words, above the 805 ceiling."}]}'
935
1210
  : 'Your entire final response must be one JSON object: {"mutatedPaths":["..."],"validations":[{"name":"...","passed":true,"evidence":"..."}]}. Report only paths changed in this run and validations actually performed.';
936
1211
  return [
937
1212
  '---',
@@ -939,19 +1214,22 @@ function renderClioRole(role, slug) {
939
1214
  `name: ${yamlScalar(role.fields.name)}`,
940
1215
  `description: ${yamlScalar(roleDescription(role))}`,
941
1216
  `tools: {required: ${required}, optional: ${optional}}`,
942
- `skills: [${ROLE_SKILLS[slug]}]`,
1217
+ // A worker gets its role body; the action skills are the orchestrator's and tell their reader to dispatch roles.
1218
+ 'skills: []',
943
1219
  'audience: custom',
944
1220
  `category: ${verifier ? 'quality' : slug.includes('citation') || slug.includes('research') ? 'research' : slug.includes('plan') || slug === 'outliner' ? 'plan' : 'implement'}`,
945
- `capabilityClass: ${verifier ? 'verification' : 'workspace-edit'}`,
946
- `latencyClass: ${verifier ? 'fast' : 'balanced'}`,
947
- 'projectContextTier: bounded',
948
- `budget: {toolCalls: ${verifier ? 24 : 64}, readReserve: ${verifier ? 4 : 8}, synthesis: true}`,
1221
+ `capabilityClass: ${verifier ? 'read-only' : 'workspace-edit'}`,
1222
+ `latencyClass: ${tuning.latency}`,
1223
+ `projectContextTier: ${verifier ? 'none' : 'bounded'}`,
1224
+ `budget: {toolCalls: ${tuning.toolCalls}, readReserve: ${tuning.readReserve}, synthesis: true}`,
949
1225
  `resultContract: {kind: ${verifier ? 'verifier-report' : 'mutation-report'}}`,
950
1226
  'tags: [wtfp, research, portable-protocol]',
951
1227
  '---',
952
1228
  '',
953
1229
  generatedBanner('protocol/roles', slug),
954
1230
  '',
1231
+ // A small model writes the review its long body describes; it reads the output form first.
1232
+ ...(verifier ? ['**Output:** your final message is one JSON object, `{"verdict":"pass|fail","checks":[...]}`, and nothing else. Do every step below as checks in that object, not as a Markdown review; the exact form is in the Clio result contract at the end.', ''] : []),
955
1233
  nativeWorkflowBody(roleBodyWithoutPortableResult(role), 'clio'),
956
1234
  '',
957
1235
  '## Clio result contract',
@@ -962,9 +1240,10 @@ function renderClioRole(role, slug) {
962
1240
  'File readback establishes inspection, not executed validation. If this role changes files but cannot run the relevant checks with its admitted tools and approved scope, call limitation before returning. Name the exact output paths and checks left unrun, using the applicable reason: no-runner, blocked, out-of-scope, environment, or other. A prose disclaimer is not a limitation receipt. Do not add shell access or run a token command to satisfy the finish gate. Run available authorized checks when required; a limitation never turns an absent or failed check into a pass. Preserve unmeasured validation quality and leave the outstanding checks to the interactive caller.',
963
1241
  ''
964
1242
  ] : []),
965
- 'Embedded portable result schema: ' + JSON.stringify(readJson(path.join(PROTOCOL_ROOT, 'schemas/role-result.schema.json'))),
966
- '',
967
- 'Preserve the portable role outcome inside the native report. Include exactly one entry named wtfp.role-result in checks (verifier) or validations (mutation report). Its evidence string must be serialized JSON conforming to schemas/role-result.schema.json: schema wtfp.role-result/v1, role, action, status, summary, artifacts, issues, next_actions, effects_applied. Use status needs_input for author decisions and blocked for missing capabilities; passed is true only for completed. Do not contact the author directly. The orchestrator must parse this evidence, stop on needs_input/blocked/failed, ask the author when needed, and redispatch with the answer. Never infer completion from an empty mutatedPaths list. Keep the embedded result compact enough for the native response budget.',
1243
+ // A verifier's verdict and checks already determine its role result; nesting a
1244
+ // serialized result inside one check failed every local-model review live.
1245
+ ...(verifier ? [] : [clioRoleResultShape(readJson(path.join(PROTOCOL_ROOT, 'schemas/role-result.schema.json')), slug), '']),
1246
+ ...(verifier ? [] : ['Preserve the portable role outcome inside the native report. Include exactly one entry named wtfp.role-result in checks (verifier) or validations (mutation report). Its evidence string is that object serialized as JSON. Use status needs_input for author decisions and blocked for missing capabilities; passed is true only for completed. Do not contact the author directly. The orchestrator must parse this evidence, stop on needs_input/blocked/failed, ask the author when needed, and redispatch with the answer. Never infer completion from an empty mutatedPaths list. Keep the embedded result compact enough for the native response budget.']),
968
1247
  ''
969
1248
  ].join('\n');
970
1249
  }
@@ -1007,8 +1286,10 @@ function clioPluginManifest(model, legacyFleetNames = false) {
1007
1286
  });
1008
1287
  return standardPluginManifest(model.version, 'wtfp', {
1009
1288
  manifestVersion: 1,
1010
- // The Claude copy keeps its pre-playbook floor; Clio 0.6.1 and older reject `playbooks`.
1011
- compatibility: { clio: legacyFleetNames ? '>=0.4.7' : '>=0.6.2' },
1289
+ // The Claude copy keeps its pre-playbook floor. The plugin installs with
1290
+ // the desk, which judges only what Clio 0.6.3 sends a hook, and its
1291
+ // prompts scope their tools only from 0.6.3.
1292
+ compatibility: { clio: legacyFleetNames ? '>=0.4.7' : '>=0.6.3' },
1012
1293
  resources: {
1013
1294
  skills: 'skills', prompts: 'ai.iowarp.clio/prompts', agents: 'ai.iowarp.clio/agents',
1014
1295
  [legacyFleetNames ? 'fleets' : 'playbooks']: playbookRoot
@@ -1017,8 +1298,12 @@ function clioPluginManifest(model, legacyFleetNames = false) {
1017
1298
  });
1018
1299
  }
1019
1300
 
1301
+ // Playbook write boundaries are literal paths, so `{section}` cannot be
1302
+ // substituted. Section artifacts project to `.planning/sections/`, which keeps
1303
+ // workers away from checkpoints, interactions, state and config.
1020
1304
  function clioFleetWriteBoundary(resource, fleetId) {
1021
1305
  if (/^project:\/\/paper(?:\/|$)/u.test(resource)) return 'paper/';
1306
+ if (/^project:\/\/sections\//u.test(resource)) return '.planning/sections/';
1022
1307
  if (/^project:\/\//u.test(resource)) return '.planning/';
1023
1308
  throw new Error(`fleet ${fleetId} has no Clio write-boundary projection for ${resource}`);
1024
1309
  }
@@ -1172,28 +1457,34 @@ function claudeCompatibleManifest(version, name = 'wtfp') {
1172
1457
  }
1173
1458
 
1174
1459
  // The published Antigravity CLI manifest schema
1175
- // (https://antigravity.google/schemas/v1/plugin.json) allows exactly `name`
1176
- // and `description` with additionalProperties false; components are found by
1177
- // their fixed directories (skills/, agents/, rules/, hooks.json, mcp_config.json).
1460
+ // (https://antigravity.google/schemas/v1/plugin.json) has additionalProperties
1461
+ // false; Antigravity 1.5 added `version` to it and warns when it is missing.
1462
+ // Components are found by their fixed directories (skills/, agents/, rules/,
1463
+ // hooks.json, mcp_config.json).
1178
1464
  function antigravityManifest(version) {
1179
1465
  return stableJson({
1180
1466
  $schema: 'https://antigravity.google/schemas/v1/plugin.json',
1181
1467
  name: 'wtfp',
1468
+ version,
1182
1469
  description: `Portable academic research and writing workflows (WTF-P ${version}).`
1183
1470
  });
1184
1471
  }
1185
1472
 
1186
- // Antigravity rules are always-on constraints. Project the portable project
1187
- // protocol so the agent knows what `.planning/` and `paper/` are before any
1188
- // skill is selected.
1473
+ // Project the portable project protocol as an always-on rule so the agent
1474
+ // knows what `.planning/` and `paper/` are before any skill is selected. A
1475
+ // named rule needs a `trigger` in its frontmatter; Antigravity 1.5 never
1476
+ // applies one without it.
1189
1477
  function antigravityRule() {
1190
1478
  const readme = fs.readFileSync(path.join(PROTOCOL_ROOT, 'project', 'README.md'), 'utf8').trim();
1191
1479
  return [
1480
+ '---',
1481
+ 'trigger: always_on',
1482
+ '---',
1192
1483
  generatedBanner('protocol/project', 'README.md'),
1193
1484
  '',
1194
1485
  '# WTF-P project state rules',
1195
1486
  '',
1196
- 'When a workspace contains `.planning/` or `paper/`, treat it as a WTF-P research project. Route academic requests through the `wtfp-*` skills, invoke actions as `/wtfp:<action>`, never fabricate citations, results, or evidence, and never run Git or publish operations as a side effect.',
1487
+ 'When a workspace contains `.planning/` or `paper/`, treat it as a WTF-P research project. Route academic requests through the `wtfp-*` skills, invoke actions as `/wtfp-<action>`, never fabricate citations, results, or evidence, and never run Git or publish operations as a side effect.',
1197
1488
  '',
1198
1489
  readme,
1199
1490
  ''
@@ -1279,6 +1570,41 @@ function manuscriptGuardActions(model, availabilityById, host) {
1279
1570
  return guarded;
1280
1571
  }
1281
1572
 
1573
+ // The Clio desk arms on every available action. Each entry carries the
1574
+ // action's exact declared outputs: the desk derives file roots from them,
1575
+ // substitutes the section an invocation names, and refuses record writes the
1576
+ // contract does not declare. `paperWriters` are the Clio agent IDs of the
1577
+ // writing roles that manuscript-producing actions dispatch; the desk confines
1578
+ // them to manuscripts whose sections are ready to draft. `agents` are the
1579
+ // Clio agent IDs an action's contract delegates to; inside that action the
1580
+ // desk refuses a worker that is none of them. Clio reports which
1581
+ // workers run read-only, the verifier roles' read-only recipes among them, so
1582
+ // the guard names none.
1583
+ function clioWriteGuard(model, availabilityById) {
1584
+ const available = model.actions.filter((action) => availabilityById.get(action.id).available);
1585
+ if (!available.some((action) => action.produces.some((output) => output.uri.startsWith('project://paper')))) {
1586
+ throw new Error('no manuscript-writing action is available on Clio');
1587
+ }
1588
+ const verifiers = new Set(model.roles.filter((role) => role.fields.execution_class === 'verifier-report').map((role) => role.slug));
1589
+ // A driver action writes nothing under its own name: the desk arms each step
1590
+ // it selects with that step's contract, so it adds no writers and no outputs.
1591
+ const drives = (action) => action.requirements.capabilities.includes('workflow.drive');
1592
+ const paperWriters = new Set();
1593
+ for (const action of available) {
1594
+ if (drives(action)) continue;
1595
+ if (!action.produces.some((output) => output.uri.startsWith('project://paper'))) continue;
1596
+ for (const entry of action.delegation) if (!verifiers.has(entry.role)) paperWriters.add(`wtfp-${entry.role}`);
1597
+ }
1598
+ return stableJson({
1599
+ schema: 'wtfp.clio-write-guard/v4',
1600
+ actions: Object.fromEntries(available.map((action) => [action.id, {
1601
+ agents: drives(action) ? [] : [...new Set(action.delegation.map((entry) => `wtfp-${entry.role}`))].sort(),
1602
+ produces: drives(action) ? [] : action.produces.map((output) => ({ uri: output.uri, mode: output.mode }))
1603
+ }])),
1604
+ paperWriters: [...paperWriters].sort()
1605
+ });
1606
+ }
1607
+
1282
1608
  // The Claude write guard arms on the manuscript-writing actions, confines
1283
1609
  // Write/Edit calls for the rest of that prompt to the roots the action
1284
1610
  // declares, and disarms when the turn stops.
@@ -1431,12 +1757,12 @@ function addClioRuntime(plan, model, availabilityById) {
1431
1757
  addFile(plan, 'runtime/extension.test.ts', `${generatedScriptBanner('clio', 'runtime/extension.test.ts')}\n${source('runtime/extension.test.ts')}`);
1432
1758
  addFile(plan, 'runtime/package.json', source('runtime/package.json'));
1433
1759
  addFile(plan, 'runtime/json-schema.cjs', `${generatedScriptBanner('evaluation', 'lib/json-schema.js')}\n${fs.readFileSync(path.join(ROOT, 'evaluation', 'lib', 'json-schema.js'), 'utf8')}`);
1434
- addFile(plan, 'runtime/write-guard.json', stableJson({
1435
- schema: 'wtfp.clio-write-guard/v1',
1436
- actions: Object.fromEntries(manuscriptGuardActions(model, availabilityById, 'Clio'))
1437
- }));
1760
+ addFile(plan, 'runtime/claim-coverage.cjs', `${generatedScriptBanner('evaluation', 'lib/claim-coverage.js')}\n${fs.readFileSync(path.join(ROOT, 'evaluation', 'lib', 'claim-coverage.js'), 'utf8')}`);
1761
+ addFile(plan, 'runtime/desk-trust.cjs', `${generatedScriptBanner('evaluation', 'lib/desk-trust.js')}\n${fs.readFileSync(path.join(ROOT, 'evaluation', 'lib', 'desk-trust.js'), 'utf8')}`);
1762
+ addFile(plan, 'runtime/write-guard.json', clioWriteGuard(model, availabilityById));
1438
1763
  addFile(plan, 'skins/wtfp.json', source('skins/wtfp.json'));
1439
1764
  copyTree(plan, path.join(PROTOCOL_ROOT, 'project', 'schemas'), 'project/schemas');
1765
+ copyTree(plan, path.join(PROTOCOL_ROOT, 'project', 'templates'), 'project/templates');
1440
1766
  copyTree(plan, path.join(PROTOCOL_ROOT, 'actions'), 'actions');
1441
1767
  }
1442
1768
 
@@ -1836,7 +2162,7 @@ function addToolBundle(plan) {
1836
2162
  '',
1837
2163
  ...TOOL_COMMANDS.map((entry) => `- \`${entry.usage}\` → \`${entry.tool}\` (${effectsByToolId.get(entry.tool).length > 0 ? effectsByToolId.get(entry.tool).join(', ') : 'no declared effects'})`),
1838
2164
  '',
1839
- '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.',
2165
+ '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.',
1840
2166
  '',
1841
2167
  '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.',
1842
2168
  ''
@@ -1957,14 +2283,20 @@ function compilePlans(options = {}) {
1957
2283
  addFile(gemini, 'gemini-extension.json', geminiManifest(model.version));
1958
2284
  addFile(gemini, 'GEMINI.md', '# WTF-P\n\nUse the bundled Agent Skills and portable protocol for evidence-grounded academic work.\n');
1959
2285
 
2286
+ const reviewers = new Set(model.roles.filter((role) => role.fields.execution_class === 'verifier-report').map((role) => role.slug));
1960
2287
  for (const action of model.actions) {
1961
2288
  addFile(clio, `prompts/wtfp/${action.id}.md`, action.id === 'help'
1962
2289
  ? clioHelpCard(model, availabilityByTarget.get('clio'))
1963
- : renderMarkdownCommand(action, action.workflowBody, 'clio', availabilityByTarget.get('clio').get(action.id)));
2290
+ : renderMarkdownCommand(action, action.workflowBody, 'clio', availabilityByTarget.get('clio').get(action.id), false, reviewers));
1964
2291
  addFile(claude, `commands/${action.id}.md`, renderMarkdownCommand(action, action.workflowBody, 'claude', availabilityByTarget.get('claude').get(action.id)));
1965
2292
  addFile(copilot, `commands/wtfp-${action.id}.md`, renderMarkdownCommand(action, action.workflowBody, 'copilot', availabilityByTarget.get('copilot').get(action.id)));
1966
2293
  addFile(byId.get('opencode'), `commands/wtfp/${action.id}.md`, renderMarkdownCommand(action, action.workflowBody, 'opencode', availabilityByTarget.get('opencode').get(action.id)));
1967
- addFile(antigravity, `commands/wtfp-${action.id}.md`, renderMarkdownCommand(action, action.workflowBody, 'antigravity', availabilityByTarget.get('antigravity').get(action.id)));
2294
+ // Antigravity 1.5 plugins load no commands/ directory, so each action is
2295
+ // an explicitly invoked skill. A router skill that already has the name
2296
+ // (wtfp-write-section, wtfp-plan-section) serves that action instead.
2297
+ if (!model.catalog.skills.some((skill) => skill.id === `wtfp-${action.id}`)) {
2298
+ addFile(antigravity, `skills/wtfp-${action.id}/SKILL.md`, renderAntigravityActionSkill(action, action.workflowBody, availabilityByTarget.get('antigravity').get(action.id)));
2299
+ }
1968
2300
  addFile(gemini, `commands/wtfp/${action.id}.toml`, renderGeminiCommand(action, action.workflowBody, availabilityByTarget.get('gemini').get(action.id)));
1969
2301
  }
1970
2302
 
@@ -1991,10 +2323,9 @@ function compilePlans(options = {}) {
1991
2323
  const native = /^(prompts|agents|playbooks)\//.test(file);
1992
2324
  const actionId = /^prompts\/wtfp\/([a-z-]+)\.md$/.exec(file)?.[1];
1993
2325
  const action = actionId && model.actions.find((entry) => entry.id === actionId);
1994
- const usesRecords = action && action.produces.some((output) =>
1995
- /^project:\/\/(?:manifest|config|state|decisions|structure\/outline|(?:sections|sources|evidence|checkpoints|validations)\/[^/]+)$/.test(output.uri));
1996
- const projected = usesRecords && availabilityByTarget.get('clio').get(actionId).available
1997
- ? renderMarkdownCommand(action, action.workflowBody, 'clio', availabilityByTarget.get('clio').get(actionId), true)
2326
+ // Every action Clio can run reads records through the desk, so none needs the schema dump a desk-less host gets.
2327
+ const projected = action && action.id !== 'help' && availabilityByTarget.get('clio').get(actionId).available
2328
+ ? renderMarkdownCommand(action, action.workflowBody, 'clio', availabilityByTarget.get('clio').get(actionId), true, reviewers)
1998
2329
  : content;
1999
2330
  addFile(portable, native ? `ai.iowarp.clio/${file}` : file, projected);
2000
2331
  }
@@ -2097,7 +2428,7 @@ function compilePlans(options = {}) {
2097
2428
  '',
2098
2429
  'Copy the contents of this directory into a repository root when GitHub Copilot coding agents must discover WTF-P without a user-level plugin installation.',
2099
2430
  '',
2100
- 'The `.github/` tree is generated from the canonical protocol. It contains 36 prompt files, 11 custom agents, seven Agent Skills, and the bound portable protocol resources. Do not edit the projection directly; change `protocol/` or the adapter compiler and regenerate.',
2431
+ `The \`.github/\` tree is generated from the canonical protocol. It contains ${model.actions.length} prompt files, 11 custom agents, seven Agent Skills, and the bound portable protocol resources. Do not edit the projection directly; change \`protocol/\` or the adapter compiler and regenerate.`,
2101
2432
  ''
2102
2433
  ].join('\n'));
2103
2434
  plans.push(copilotMarketplace);
@@ -2224,6 +2555,8 @@ function compileAdapters(options = {}) {
2224
2555
  module.exports = {
2225
2556
  GENERATOR_VERSION,
2226
2557
  TARGET_POLICIES,
2558
+ clioActionTools,
2559
+ clioDelegatedTools,
2227
2560
  TARGET_ROOTS,
2228
2561
  compileAdapters,
2229
2562
  compilePlans,