wtf-p 0.7.4 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (516) hide show
  1. package/README.md +10 -10
  2. package/bin/commands/install-logic.js +1 -1
  3. package/bin/lib/adapter-compiler.js +305 -78
  4. package/bin/lib/clio-registration.js +159 -41
  5. package/bin/lib/manifest.js +11 -3
  6. package/bin/uninstall.js +22 -6
  7. package/package.json +3 -3
  8. package/protocol/actions/checkpoint.json +10 -1
  9. package/protocol/actions/execute-outline.json +10 -2
  10. package/protocol/actions/export-latex.json +15 -2
  11. package/protocol/actions/plan-revision.json +17 -4
  12. package/protocol/actions/polish-prose.json +13 -3
  13. package/protocol/actions/research-gap.json +16 -3
  14. package/protocol/actions/verify-work.json +7 -2
  15. package/protocol/project/README.md +37 -0
  16. package/protocol/project/schemas/interaction.schema.json +100 -0
  17. package/protocol/project/templates/interaction.json +16 -0
  18. package/protocol/skills/wtfp-deliver-research/SKILL.md +1 -1
  19. package/protocol/skills/wtfp-deliver-research/references/actions.md +2 -2
  20. package/protocol/skills/wtfp-plan-section/SKILL.md +1 -1
  21. package/protocol/skills/wtfp-plan-section/references/actions.md +4 -3
  22. package/protocol/skills/wtfp-research-literature/SKILL.md +1 -1
  23. package/protocol/skills/wtfp-review-manuscript/SKILL.md +1 -1
  24. package/protocol/skills/wtfp-write-section/SKILL.md +1 -1
  25. package/protocol/skills/wtfp-write-section/references/actions.md +1 -1
  26. package/protocol/workflows/checkpoint.md +2 -2
  27. package/protocol/workflows/execute-outline.md +2 -2
  28. package/protocol/workflows/export-latex.md +4 -4
  29. package/protocol/workflows/plan-revision.md +4 -3
  30. package/protocol/workflows/plan-section.md +2 -2
  31. package/protocol/workflows/polish-prose.md +3 -3
  32. package/protocol/workflows/research-gap.md +2 -2
  33. package/protocol/workflows/verify-work.md +3 -3
  34. package/protocol/workflows/write-section.md +2 -2
  35. package/vendors/antigravity/.wtfp-generated.json +172 -172
  36. package/vendors/antigravity/actions/checkpoint.json +10 -1
  37. package/vendors/antigravity/actions/execute-outline.json +10 -2
  38. package/vendors/antigravity/actions/export-latex.json +15 -2
  39. package/vendors/antigravity/actions/plan-revision.json +17 -4
  40. package/vendors/antigravity/actions/polish-prose.json +13 -3
  41. package/vendors/antigravity/actions/research-gap.json +16 -3
  42. package/vendors/antigravity/actions/verify-work.json +7 -2
  43. package/vendors/antigravity/plugin.json +2 -1
  44. package/vendors/antigravity/project/README.md +37 -0
  45. package/vendors/antigravity/project/schemas/interaction.schema.json +100 -0
  46. package/vendors/antigravity/project/templates/interaction.json +16 -0
  47. package/vendors/antigravity/rules/wtfp-project-state.md +41 -1
  48. package/vendors/antigravity/{commands/wtfp-add-todo.md → skills/wtfp-add-todo/SKILL.md} +2 -1
  49. package/vendors/antigravity/{commands/wtfp-analyze-bib.md → skills/wtfp-analyze-bib/SKILL.md} +2 -1
  50. package/vendors/antigravity/{commands/wtfp-audit-milestone.md → skills/wtfp-audit-milestone/SKILL.md} +2 -1
  51. package/vendors/antigravity/{commands/wtfp-check-refs.md → skills/wtfp-check-refs/SKILL.md} +2 -1
  52. package/vendors/antigravity/{commands/wtfp-check-todos.md → skills/wtfp-check-todos/SKILL.md} +2 -1
  53. package/vendors/antigravity/{commands/wtfp-checkpoint.md → skills/wtfp-checkpoint/SKILL.md} +4 -3
  54. package/vendors/antigravity/{commands/wtfp-contribute.md → skills/wtfp-contribute/SKILL.md} +2 -1
  55. package/vendors/antigravity/{commands/wtfp-create-outline.md → skills/wtfp-create-outline/SKILL.md} +2 -1
  56. package/vendors/antigravity/{commands/wtfp-create-poster.md → skills/wtfp-create-poster/SKILL.md} +2 -1
  57. package/vendors/antigravity/{commands/wtfp-create-slides.md → skills/wtfp-create-slides/SKILL.md} +2 -1
  58. package/vendors/antigravity/skills/wtfp-deliver-research/SKILL.md +1 -1
  59. package/vendors/antigravity/skills/wtfp-deliver-research/references/actions.md +2 -2
  60. package/vendors/antigravity/{commands/wtfp-discuss-section.md → skills/wtfp-discuss-section/SKILL.md} +2 -1
  61. package/vendors/antigravity/{commands/wtfp-execute-outline.md → skills/wtfp-execute-outline/SKILL.md} +4 -3
  62. package/vendors/antigravity/{commands/wtfp-export-latex.md → skills/wtfp-export-latex/SKILL.md} +2 -1
  63. package/vendors/antigravity/{commands/wtfp-help.md → skills/wtfp-help/SKILL.md} +3 -2
  64. package/vendors/antigravity/{commands/wtfp-insert-section.md → skills/wtfp-insert-section/SKILL.md} +2 -1
  65. package/vendors/antigravity/{commands/wtfp-list-assumptions.md → skills/wtfp-list-assumptions/SKILL.md} +2 -1
  66. package/vendors/antigravity/{commands/wtfp-map-project.md → skills/wtfp-map-project/SKILL.md} +2 -1
  67. package/vendors/antigravity/{commands/wtfp-new-paper.md → skills/wtfp-new-paper/SKILL.md} +2 -1
  68. package/vendors/antigravity/{commands/wtfp-pause-writing.md → skills/wtfp-pause-writing/SKILL.md} +2 -1
  69. package/vendors/antigravity/{commands/wtfp-plan-milestone-gaps.md → skills/wtfp-plan-milestone-gaps/SKILL.md} +2 -1
  70. package/vendors/antigravity/{commands/wtfp-plan-revision.md → skills/wtfp-plan-revision/SKILL.md} +10 -4
  71. package/vendors/antigravity/skills/wtfp-plan-section/SKILL.md +1 -1
  72. package/vendors/antigravity/skills/wtfp-plan-section/references/actions.md +4 -3
  73. package/vendors/antigravity/{commands/wtfp-polish-prose.md → skills/wtfp-polish-prose/SKILL.md} +9 -4
  74. package/vendors/antigravity/{commands/wtfp-progress.md → skills/wtfp-progress/SKILL.md} +2 -1
  75. package/vendors/antigravity/{commands/wtfp-quick.md → skills/wtfp-quick/SKILL.md} +2 -1
  76. package/vendors/antigravity/{commands/wtfp-remove-section.md → skills/wtfp-remove-section/SKILL.md} +2 -1
  77. package/vendors/antigravity/{commands/wtfp-report-bug.md → skills/wtfp-report-bug/SKILL.md} +2 -1
  78. package/vendors/antigravity/{commands/wtfp-request-feature.md → skills/wtfp-request-feature/SKILL.md} +2 -1
  79. package/vendors/antigravity/{commands/wtfp-research-gap.md → skills/wtfp-research-gap/SKILL.md} +2 -1
  80. package/vendors/antigravity/skills/wtfp-research-literature/SKILL.md +1 -1
  81. package/vendors/antigravity/{commands/wtfp-resume-writing.md → skills/wtfp-resume-writing/SKILL.md} +2 -1
  82. package/vendors/antigravity/skills/wtfp-review-manuscript/SKILL.md +1 -1
  83. package/vendors/antigravity/{commands/wtfp-review-section.md → skills/wtfp-review-section/SKILL.md} +2 -1
  84. package/vendors/antigravity/{commands/wtfp-settings.md → skills/wtfp-settings/SKILL.md} +2 -1
  85. package/vendors/antigravity/{commands/wtfp-submit-milestone.md → skills/wtfp-submit-milestone/SKILL.md} +2 -1
  86. package/vendors/antigravity/{commands/wtfp-update.md → skills/wtfp-update/SKILL.md} +2 -1
  87. package/vendors/antigravity/{commands/wtfp-verify-work.md → skills/wtfp-verify-work/SKILL.md} +5 -4
  88. package/vendors/antigravity/skills/wtfp-write-section/SKILL.md +1 -1
  89. package/vendors/antigravity/skills/wtfp-write-section/references/actions.md +1 -1
  90. package/vendors/antigravity/workflows/checkpoint.md +2 -2
  91. package/vendors/antigravity/workflows/execute-outline.md +2 -2
  92. package/vendors/antigravity/workflows/export-latex.md +4 -4
  93. package/vendors/antigravity/workflows/plan-revision.md +4 -3
  94. package/vendors/antigravity/workflows/plan-section.md +2 -2
  95. package/vendors/antigravity/workflows/polish-prose.md +3 -3
  96. package/vendors/antigravity/workflows/research-gap.md +2 -2
  97. package/vendors/antigravity/workflows/verify-work.md +3 -3
  98. package/vendors/antigravity/workflows/write-section.md +2 -2
  99. package/vendors/claude/.claude-plugin/marketplace.json +2 -2
  100. package/vendors/claude/.claude-plugin/plugin.json +1 -1
  101. package/vendors/claude/.wtfp-generated.json +84 -76
  102. package/vendors/claude/actions/checkpoint.json +10 -1
  103. package/vendors/claude/actions/execute-outline.json +10 -2
  104. package/vendors/claude/actions/export-latex.json +15 -2
  105. package/vendors/claude/actions/plan-revision.json +17 -4
  106. package/vendors/claude/actions/polish-prose.json +13 -3
  107. package/vendors/claude/actions/research-gap.json +16 -3
  108. package/vendors/claude/actions/verify-work.json +7 -2
  109. package/vendors/claude/ai.iowarp.clio/agents/wtfp-argument-verifier.md +3 -3
  110. package/vendors/claude/ai.iowarp.clio/agents/wtfp-coherence-checker.md +3 -3
  111. package/vendors/claude/ai.iowarp.clio/agents/wtfp-plan-checker.md +3 -3
  112. package/vendors/claude/ai.iowarp.clio/agents/wtfp-section-reviewer.md +3 -3
  113. package/vendors/claude/ai.iowarp.clio/fleets/wtfp-draft-review.md +1 -1
  114. package/vendors/claude/ai.iowarp.clio/fleets/wtfp-plan-section.md +1 -1
  115. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/add-todo.md +8 -0
  116. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/analyze-bib.md +22 -0
  117. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/audit-milestone.md +10 -0
  118. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/check-refs.md +22 -0
  119. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/check-todos.md +9 -0
  120. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/checkpoint.md +11 -2
  121. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/create-outline.md +21 -0
  122. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/create-poster.md +9 -0
  123. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/create-slides.md +9 -0
  124. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/discuss-section.md +9 -0
  125. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/execute-outline.md +24 -3
  126. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/export-latex.md +14 -4
  127. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/help.md +1 -1
  128. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/insert-section.md +9 -0
  129. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/list-assumptions.md +6 -0
  130. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/map-project.md +8 -0
  131. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/new-paper.md +9 -0
  132. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/pause-writing.md +8 -0
  133. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/plan-milestone-gaps.md +9 -0
  134. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/plan-revision.md +17 -3
  135. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/plan-section.md +24 -3
  136. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/polish-prose.md +28 -3
  137. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/progress.md +7 -0
  138. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/quick.md +21 -0
  139. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/research-gap.md +25 -2
  140. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/resume-writing.md +9 -0
  141. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/review-section.md +19 -1
  142. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/settings.md +9 -0
  143. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/submit-milestone.md +9 -0
  144. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/verify-work.md +12 -3
  145. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/write-section.md +24 -3
  146. package/vendors/claude/commands/checkpoint.md +2 -2
  147. package/vendors/claude/commands/execute-outline.md +2 -2
  148. package/vendors/claude/commands/export-latex.md +4 -4
  149. package/vendors/claude/commands/plan-revision.md +8 -3
  150. package/vendors/claude/commands/plan-section.md +2 -2
  151. package/vendors/claude/commands/polish-prose.md +7 -3
  152. package/vendors/claude/commands/research-gap.md +2 -2
  153. package/vendors/claude/commands/verify-work.md +3 -3
  154. package/vendors/claude/commands/write-section.md +2 -2
  155. package/vendors/claude/output-styles/wtfp-academic-writing.md +5 -5
  156. package/vendors/claude/plugin.json +1 -1
  157. package/vendors/claude/project/README.md +37 -0
  158. package/vendors/claude/project/schemas/interaction.schema.json +100 -0
  159. package/vendors/claude/project/templates/interaction.json +16 -0
  160. package/vendors/claude/skills/wtfp-deliver-research/SKILL.md +1 -1
  161. package/vendors/claude/skills/wtfp-deliver-research/references/actions.md +2 -2
  162. package/vendors/claude/skills/wtfp-plan-section/SKILL.md +1 -1
  163. package/vendors/claude/skills/wtfp-plan-section/references/actions.md +4 -3
  164. package/vendors/claude/skills/wtfp-research-literature/SKILL.md +1 -1
  165. package/vendors/claude/skills/wtfp-review-manuscript/SKILL.md +1 -1
  166. package/vendors/claude/skills/wtfp-write-section/SKILL.md +1 -1
  167. package/vendors/claude/skills/wtfp-write-section/references/actions.md +1 -1
  168. package/vendors/claude/workflows/checkpoint.md +2 -2
  169. package/vendors/claude/workflows/execute-outline.md +2 -2
  170. package/vendors/claude/workflows/export-latex.md +4 -4
  171. package/vendors/claude/workflows/plan-revision.md +4 -3
  172. package/vendors/claude/workflows/plan-section.md +2 -2
  173. package/vendors/claude/workflows/polish-prose.md +3 -3
  174. package/vendors/claude/workflows/research-gap.md +2 -2
  175. package/vendors/claude/workflows/verify-work.md +3 -3
  176. package/vendors/claude/workflows/write-section.md +2 -2
  177. package/vendors/clio-extension/.wtfp-generated.json +240 -0
  178. package/vendors/clio-extension/actions/add-todo.json +52 -0
  179. package/vendors/clio-extension/actions/analyze-bib.json +97 -0
  180. package/vendors/clio-extension/actions/audit-milestone.json +63 -0
  181. package/vendors/clio-extension/actions/check-refs.json +80 -0
  182. package/vendors/clio-extension/actions/check-todos.json +52 -0
  183. package/vendors/clio-extension/actions/checkpoint.json +85 -0
  184. package/vendors/clio-extension/actions/contribute.json +57 -0
  185. package/vendors/clio-extension/actions/create-outline.json +84 -0
  186. package/vendors/clio-extension/actions/create-poster.json +54 -0
  187. package/vendors/clio-extension/actions/create-slides.json +54 -0
  188. package/vendors/clio-extension/actions/discuss-section.json +76 -0
  189. package/vendors/clio-extension/actions/execute-outline.json +124 -0
  190. package/vendors/clio-extension/actions/export-latex.json +78 -0
  191. package/vendors/clio-extension/actions/help.json +30 -0
  192. package/vendors/clio-extension/actions/insert-section.json +61 -0
  193. package/vendors/clio-extension/actions/list-assumptions.json +35 -0
  194. package/vendors/clio-extension/actions/map-project.json +71 -0
  195. package/vendors/clio-extension/actions/new-paper.json +70 -0
  196. package/vendors/clio-extension/actions/pause-writing.json +71 -0
  197. package/vendors/clio-extension/actions/plan-milestone-gaps.json +57 -0
  198. package/vendors/clio-extension/actions/plan-revision.json +71 -0
  199. package/vendors/clio-extension/actions/plan-section.json +100 -0
  200. package/vendors/clio-extension/actions/polish-prose.json +79 -0
  201. package/vendors/clio-extension/actions/progress.json +51 -0
  202. package/vendors/clio-extension/actions/quick.json +70 -0
  203. package/vendors/clio-extension/actions/remove-section.json +63 -0
  204. package/vendors/clio-extension/actions/report-bug.json +47 -0
  205. package/vendors/clio-extension/actions/request-feature.json +47 -0
  206. package/vendors/clio-extension/actions/research-gap.json +115 -0
  207. package/vendors/clio-extension/actions/resume-writing.json +65 -0
  208. package/vendors/clio-extension/actions/review-section.json +83 -0
  209. package/vendors/clio-extension/actions/settings.json +47 -0
  210. package/vendors/clio-extension/actions/submit-milestone.json +77 -0
  211. package/vendors/clio-extension/actions/update.json +42 -0
  212. package/vendors/clio-extension/actions/verify-work.json +68 -0
  213. package/vendors/clio-extension/actions/write-section.json +115 -0
  214. package/vendors/clio-extension/clio-coder-extension.yaml +76 -0
  215. package/vendors/clio-extension/compatibility/action-availability.json +295 -0
  216. package/vendors/clio-extension/project/schemas/checkpoint.schema.json +102 -0
  217. package/vendors/clio-extension/project/schemas/common.schema.json +33 -0
  218. package/vendors/clio-extension/project/schemas/config.schema.json +69 -0
  219. package/vendors/clio-extension/project/schemas/decisions.schema.json +31 -0
  220. package/vendors/clio-extension/project/schemas/evidence.schema.json +48 -0
  221. package/vendors/clio-extension/project/schemas/interaction.schema.json +100 -0
  222. package/vendors/clio-extension/project/schemas/manifest.schema.json +102 -0
  223. package/vendors/clio-extension/project/schemas/outline.schema.json +67 -0
  224. package/vendors/clio-extension/project/schemas/section.schema.json +95 -0
  225. package/vendors/clio-extension/project/schemas/source.schema.json +73 -0
  226. package/vendors/clio-extension/project/schemas/state.schema.json +58 -0
  227. package/vendors/clio-extension/project/schemas/validation.schema.json +74 -0
  228. package/vendors/clio-extension/runtime/claim-coverage.cjs +332 -0
  229. package/vendors/clio-extension/runtime/desk-trust.cjs +112 -0
  230. package/vendors/clio-extension/runtime/extension.test.ts +1567 -0
  231. package/vendors/clio-extension/runtime/extension.ts +3074 -0
  232. package/vendors/clio-extension/runtime/json-schema.cjs +304 -0
  233. package/vendors/clio-extension/runtime/package.json +3 -0
  234. package/vendors/clio-extension/runtime/write-guard.json +566 -0
  235. package/vendors/clio-extension/skins/wtfp.json +20 -0
  236. package/vendors/codex/plugins/wtfp/.codex-plugin/plugin.json +1 -1
  237. package/vendors/codex/plugins/wtfp/.wtfp-generated.json +36 -28
  238. package/vendors/codex/plugins/wtfp/actions/checkpoint.json +10 -1
  239. package/vendors/codex/plugins/wtfp/actions/execute-outline.json +10 -2
  240. package/vendors/codex/plugins/wtfp/actions/export-latex.json +15 -2
  241. package/vendors/codex/plugins/wtfp/actions/plan-revision.json +17 -4
  242. package/vendors/codex/plugins/wtfp/actions/polish-prose.json +13 -3
  243. package/vendors/codex/plugins/wtfp/actions/research-gap.json +16 -3
  244. package/vendors/codex/plugins/wtfp/actions/verify-work.json +7 -2
  245. package/vendors/codex/plugins/wtfp/plugin.json +1 -1
  246. package/vendors/codex/plugins/wtfp/project/README.md +37 -0
  247. package/vendors/codex/plugins/wtfp/project/schemas/interaction.schema.json +100 -0
  248. package/vendors/codex/plugins/wtfp/project/templates/interaction.json +16 -0
  249. package/vendors/codex/plugins/wtfp/skills/wtfp-deliver-research/SKILL.md +1 -1
  250. package/vendors/codex/plugins/wtfp/skills/wtfp-deliver-research/references/actions.md +2 -2
  251. package/vendors/codex/plugins/wtfp/skills/wtfp-plan-section/SKILL.md +1 -1
  252. package/vendors/codex/plugins/wtfp/skills/wtfp-plan-section/references/actions.md +4 -3
  253. package/vendors/codex/plugins/wtfp/skills/wtfp-research-literature/SKILL.md +1 -1
  254. package/vendors/codex/plugins/wtfp/skills/wtfp-review-manuscript/SKILL.md +1 -1
  255. package/vendors/codex/plugins/wtfp/skills/wtfp-write-section/SKILL.md +1 -1
  256. package/vendors/codex/plugins/wtfp/skills/wtfp-write-section/references/actions.md +1 -1
  257. package/vendors/codex/plugins/wtfp/workflows/checkpoint.md +2 -2
  258. package/vendors/codex/plugins/wtfp/workflows/execute-outline.md +2 -2
  259. package/vendors/codex/plugins/wtfp/workflows/export-latex.md +4 -4
  260. package/vendors/codex/plugins/wtfp/workflows/plan-revision.md +4 -3
  261. package/vendors/codex/plugins/wtfp/workflows/plan-section.md +2 -2
  262. package/vendors/codex/plugins/wtfp/workflows/polish-prose.md +3 -3
  263. package/vendors/codex/plugins/wtfp/workflows/research-gap.md +2 -2
  264. package/vendors/codex/plugins/wtfp/workflows/verify-work.md +3 -3
  265. package/vendors/codex/plugins/wtfp/workflows/write-section.md +2 -2
  266. package/vendors/copilot/.wtfp-generated.json +43 -35
  267. package/vendors/copilot/marketplace.json +2 -2
  268. package/vendors/copilot/plugins/wtfp/.claude-plugin/plugin.json +1 -1
  269. package/vendors/copilot/plugins/wtfp/.wtfp-generated.json +42 -34
  270. package/vendors/copilot/plugins/wtfp/actions/checkpoint.json +10 -1
  271. package/vendors/copilot/plugins/wtfp/actions/execute-outline.json +10 -2
  272. package/vendors/copilot/plugins/wtfp/actions/export-latex.json +15 -2
  273. package/vendors/copilot/plugins/wtfp/actions/plan-revision.json +17 -4
  274. package/vendors/copilot/plugins/wtfp/actions/polish-prose.json +13 -3
  275. package/vendors/copilot/plugins/wtfp/actions/research-gap.json +16 -3
  276. package/vendors/copilot/plugins/wtfp/actions/verify-work.json +7 -2
  277. package/vendors/copilot/plugins/wtfp/commands/wtfp-checkpoint.md +2 -2
  278. package/vendors/copilot/plugins/wtfp/commands/wtfp-execute-outline.md +2 -2
  279. package/vendors/copilot/plugins/wtfp/commands/wtfp-plan-revision.md +8 -3
  280. package/vendors/copilot/plugins/wtfp/commands/wtfp-plan-section.md +2 -2
  281. package/vendors/copilot/plugins/wtfp/commands/wtfp-polish-prose.md +7 -3
  282. package/vendors/copilot/plugins/wtfp/commands/wtfp-verify-work.md +3 -3
  283. package/vendors/copilot/plugins/wtfp/commands/wtfp-write-section.md +2 -2
  284. package/vendors/copilot/plugins/wtfp/project/README.md +37 -0
  285. package/vendors/copilot/plugins/wtfp/project/schemas/interaction.schema.json +100 -0
  286. package/vendors/copilot/plugins/wtfp/project/templates/interaction.json +16 -0
  287. package/vendors/copilot/plugins/wtfp/skills/wtfp-deliver-research/SKILL.md +1 -1
  288. package/vendors/copilot/plugins/wtfp/skills/wtfp-deliver-research/references/actions.md +2 -2
  289. package/vendors/copilot/plugins/wtfp/skills/wtfp-plan-section/SKILL.md +1 -1
  290. package/vendors/copilot/plugins/wtfp/skills/wtfp-plan-section/references/actions.md +4 -3
  291. package/vendors/copilot/plugins/wtfp/skills/wtfp-research-literature/SKILL.md +1 -1
  292. package/vendors/copilot/plugins/wtfp/skills/wtfp-review-manuscript/SKILL.md +1 -1
  293. package/vendors/copilot/plugins/wtfp/skills/wtfp-write-section/SKILL.md +1 -1
  294. package/vendors/copilot/plugins/wtfp/skills/wtfp-write-section/references/actions.md +1 -1
  295. package/vendors/copilot/plugins/wtfp/workflows/checkpoint.md +2 -2
  296. package/vendors/copilot/plugins/wtfp/workflows/execute-outline.md +2 -2
  297. package/vendors/copilot/plugins/wtfp/workflows/export-latex.md +4 -4
  298. package/vendors/copilot/plugins/wtfp/workflows/plan-revision.md +4 -3
  299. package/vendors/copilot/plugins/wtfp/workflows/plan-section.md +2 -2
  300. package/vendors/copilot/plugins/wtfp/workflows/polish-prose.md +3 -3
  301. package/vendors/copilot/plugins/wtfp/workflows/research-gap.md +2 -2
  302. package/vendors/copilot/plugins/wtfp/workflows/verify-work.md +3 -3
  303. package/vendors/copilot/plugins/wtfp/workflows/write-section.md +2 -2
  304. package/vendors/copilot/project/.github/skills/wtfp-deliver-research/SKILL.md +1 -1
  305. package/vendors/copilot/project/.github/skills/wtfp-deliver-research/references/actions.md +2 -2
  306. package/vendors/copilot/project/.github/skills/wtfp-plan-section/SKILL.md +1 -1
  307. package/vendors/copilot/project/.github/skills/wtfp-plan-section/references/actions.md +4 -3
  308. package/vendors/copilot/project/.github/skills/wtfp-research-literature/SKILL.md +1 -1
  309. package/vendors/copilot/project/.github/skills/wtfp-review-manuscript/SKILL.md +1 -1
  310. package/vendors/copilot/project/.github/skills/wtfp-write-section/SKILL.md +1 -1
  311. package/vendors/copilot/project/.github/skills/wtfp-write-section/references/actions.md +1 -1
  312. package/vendors/copilot/project/.github/wtfp/actions/checkpoint.json +10 -1
  313. package/vendors/copilot/project/.github/wtfp/actions/execute-outline.json +10 -2
  314. package/vendors/copilot/project/.github/wtfp/actions/export-latex.json +15 -2
  315. package/vendors/copilot/project/.github/wtfp/actions/plan-revision.json +17 -4
  316. package/vendors/copilot/project/.github/wtfp/actions/polish-prose.json +13 -3
  317. package/vendors/copilot/project/.github/wtfp/actions/research-gap.json +16 -3
  318. package/vendors/copilot/project/.github/wtfp/actions/verify-work.json +7 -2
  319. package/vendors/copilot/project/.github/wtfp/project/README.md +37 -0
  320. package/vendors/copilot/project/.github/wtfp/project/schemas/interaction.schema.json +100 -0
  321. package/vendors/copilot/project/.github/wtfp/project/templates/interaction.json +16 -0
  322. package/vendors/copilot/project/.github/wtfp/skills/wtfp-deliver-research/SKILL.md +1 -1
  323. package/vendors/copilot/project/.github/wtfp/skills/wtfp-deliver-research/references/actions.md +2 -2
  324. package/vendors/copilot/project/.github/wtfp/skills/wtfp-plan-section/SKILL.md +1 -1
  325. package/vendors/copilot/project/.github/wtfp/skills/wtfp-plan-section/references/actions.md +4 -3
  326. package/vendors/copilot/project/.github/wtfp/skills/wtfp-research-literature/SKILL.md +1 -1
  327. package/vendors/copilot/project/.github/wtfp/skills/wtfp-review-manuscript/SKILL.md +1 -1
  328. package/vendors/copilot/project/.github/wtfp/skills/wtfp-write-section/SKILL.md +1 -1
  329. package/vendors/copilot/project/.github/wtfp/skills/wtfp-write-section/references/actions.md +1 -1
  330. package/vendors/copilot/project/.github/wtfp/workflows/checkpoint.md +2 -2
  331. package/vendors/copilot/project/.github/wtfp/workflows/execute-outline.md +2 -2
  332. package/vendors/copilot/project/.github/wtfp/workflows/export-latex.md +4 -4
  333. package/vendors/copilot/project/.github/wtfp/workflows/plan-revision.md +4 -3
  334. package/vendors/copilot/project/.github/wtfp/workflows/plan-section.md +2 -2
  335. package/vendors/copilot/project/.github/wtfp/workflows/polish-prose.md +3 -3
  336. package/vendors/copilot/project/.github/wtfp/workflows/research-gap.md +2 -2
  337. package/vendors/copilot/project/.github/wtfp/workflows/verify-work.md +3 -3
  338. package/vendors/copilot/project/.github/wtfp/workflows/write-section.md +2 -2
  339. package/vendors/gemini/.wtfp-generated.json +61 -53
  340. package/vendors/gemini/actions/checkpoint.json +10 -1
  341. package/vendors/gemini/actions/execute-outline.json +10 -2
  342. package/vendors/gemini/actions/export-latex.json +15 -2
  343. package/vendors/gemini/actions/plan-revision.json +17 -4
  344. package/vendors/gemini/actions/polish-prose.json +13 -3
  345. package/vendors/gemini/actions/research-gap.json +16 -3
  346. package/vendors/gemini/actions/verify-work.json +7 -2
  347. package/vendors/gemini/commands/wtfp/add-todo.toml +37 -0
  348. package/vendors/gemini/commands/wtfp/check-todos.toml +37 -0
  349. package/vendors/gemini/commands/wtfp/checkpoint.toml +49 -3
  350. package/vendors/gemini/commands/wtfp/create-outline.toml +37 -0
  351. package/vendors/gemini/commands/wtfp/create-poster.toml +40 -3
  352. package/vendors/gemini/commands/wtfp/create-slides.toml +40 -3
  353. package/vendors/gemini/commands/wtfp/discuss-section.toml +42 -4
  354. package/vendors/gemini/commands/wtfp/execute-outline.toml +51 -6
  355. package/vendors/gemini/commands/wtfp/help.toml +37 -0
  356. package/vendors/gemini/commands/wtfp/insert-section.toml +42 -4
  357. package/vendors/gemini/commands/wtfp/list-assumptions.toml +42 -4
  358. package/vendors/gemini/commands/wtfp/map-project.toml +37 -0
  359. package/vendors/gemini/commands/wtfp/new-paper.toml +37 -0
  360. package/vendors/gemini/commands/wtfp/pause-writing.toml +37 -0
  361. package/vendors/gemini/commands/wtfp/plan-milestone-gaps.toml +38 -1
  362. package/vendors/gemini/commands/wtfp/plan-revision.toml +310 -11
  363. package/vendors/gemini/commands/wtfp/plan-section.toml +44 -6
  364. package/vendors/gemini/commands/wtfp/polish-prose.toml +281 -7
  365. package/vendors/gemini/commands/wtfp/progress.toml +37 -0
  366. package/vendors/gemini/commands/wtfp/quick.toml +39 -2
  367. package/vendors/gemini/commands/wtfp/resume-writing.toml +37 -0
  368. package/vendors/gemini/commands/wtfp/review-section.toml +38 -1
  369. package/vendors/gemini/commands/wtfp/settings.toml +37 -0
  370. package/vendors/gemini/commands/wtfp/submit-milestone.toml +40 -3
  371. package/vendors/gemini/commands/wtfp/verify-work.toml +48 -6
  372. package/vendors/gemini/commands/wtfp/write-section.toml +41 -4
  373. package/vendors/gemini/gemini-extension.json +1 -1
  374. package/vendors/gemini/project/README.md +37 -0
  375. package/vendors/gemini/project/schemas/interaction.schema.json +100 -0
  376. package/vendors/gemini/project/templates/interaction.json +16 -0
  377. package/vendors/gemini/skills/wtfp-deliver-research/SKILL.md +1 -1
  378. package/vendors/gemini/skills/wtfp-deliver-research/references/actions.md +2 -2
  379. package/vendors/gemini/skills/wtfp-plan-section/SKILL.md +1 -1
  380. package/vendors/gemini/skills/wtfp-plan-section/references/actions.md +4 -3
  381. package/vendors/gemini/skills/wtfp-research-literature/SKILL.md +1 -1
  382. package/vendors/gemini/skills/wtfp-review-manuscript/SKILL.md +1 -1
  383. package/vendors/gemini/skills/wtfp-write-section/SKILL.md +1 -1
  384. package/vendors/gemini/skills/wtfp-write-section/references/actions.md +1 -1
  385. package/vendors/gemini/workflows/checkpoint.md +2 -2
  386. package/vendors/gemini/workflows/execute-outline.md +2 -2
  387. package/vendors/gemini/workflows/export-latex.md +4 -4
  388. package/vendors/gemini/workflows/plan-revision.md +4 -3
  389. package/vendors/gemini/workflows/plan-section.md +2 -2
  390. package/vendors/gemini/workflows/polish-prose.md +3 -3
  391. package/vendors/gemini/workflows/research-gap.md +2 -2
  392. package/vendors/gemini/workflows/verify-work.md +3 -3
  393. package/vendors/gemini/workflows/write-section.md +2 -2
  394. package/vendors/opencode/.wtfp-generated.json +60 -52
  395. package/vendors/opencode/actions/checkpoint.json +10 -1
  396. package/vendors/opencode/actions/execute-outline.json +10 -2
  397. package/vendors/opencode/actions/export-latex.json +15 -2
  398. package/vendors/opencode/actions/plan-revision.json +17 -4
  399. package/vendors/opencode/actions/polish-prose.json +13 -3
  400. package/vendors/opencode/actions/research-gap.json +16 -3
  401. package/vendors/opencode/actions/verify-work.json +7 -2
  402. package/vendors/opencode/commands/wtfp/add-todo.md +37 -0
  403. package/vendors/opencode/commands/wtfp/check-todos.md +37 -0
  404. package/vendors/opencode/commands/wtfp/checkpoint.md +49 -3
  405. package/vendors/opencode/commands/wtfp/create-outline.md +37 -0
  406. package/vendors/opencode/commands/wtfp/create-poster.md +40 -3
  407. package/vendors/opencode/commands/wtfp/create-slides.md +40 -3
  408. package/vendors/opencode/commands/wtfp/discuss-section.md +42 -4
  409. package/vendors/opencode/commands/wtfp/execute-outline.md +51 -6
  410. package/vendors/opencode/commands/wtfp/help.md +37 -0
  411. package/vendors/opencode/commands/wtfp/insert-section.md +42 -4
  412. package/vendors/opencode/commands/wtfp/list-assumptions.md +42 -4
  413. package/vendors/opencode/commands/wtfp/map-project.md +37 -0
  414. package/vendors/opencode/commands/wtfp/new-paper.md +37 -0
  415. package/vendors/opencode/commands/wtfp/pause-writing.md +37 -0
  416. package/vendors/opencode/commands/wtfp/plan-milestone-gaps.md +38 -1
  417. package/vendors/opencode/commands/wtfp/plan-revision.md +310 -11
  418. package/vendors/opencode/commands/wtfp/plan-section.md +44 -6
  419. package/vendors/opencode/commands/wtfp/polish-prose.md +281 -7
  420. package/vendors/opencode/commands/wtfp/progress.md +37 -0
  421. package/vendors/opencode/commands/wtfp/quick.md +39 -2
  422. package/vendors/opencode/commands/wtfp/resume-writing.md +37 -0
  423. package/vendors/opencode/commands/wtfp/review-section.md +38 -1
  424. package/vendors/opencode/commands/wtfp/settings.md +37 -0
  425. package/vendors/opencode/commands/wtfp/submit-milestone.md +40 -3
  426. package/vendors/opencode/commands/wtfp/verify-work.md +48 -6
  427. package/vendors/opencode/commands/wtfp/write-section.md +41 -4
  428. package/vendors/opencode/project/README.md +37 -0
  429. package/vendors/opencode/project/schemas/interaction.schema.json +100 -0
  430. package/vendors/opencode/project/templates/interaction.json +16 -0
  431. package/vendors/opencode/skills/wtfp-deliver-research/SKILL.md +1 -1
  432. package/vendors/opencode/skills/wtfp-deliver-research/references/actions.md +2 -2
  433. package/vendors/opencode/skills/wtfp-plan-section/SKILL.md +1 -1
  434. package/vendors/opencode/skills/wtfp-plan-section/references/actions.md +4 -3
  435. package/vendors/opencode/skills/wtfp-research-literature/SKILL.md +1 -1
  436. package/vendors/opencode/skills/wtfp-review-manuscript/SKILL.md +1 -1
  437. package/vendors/opencode/skills/wtfp-write-section/SKILL.md +1 -1
  438. package/vendors/opencode/skills/wtfp-write-section/references/actions.md +1 -1
  439. package/vendors/opencode/workflows/checkpoint.md +2 -2
  440. package/vendors/opencode/workflows/execute-outline.md +2 -2
  441. package/vendors/opencode/workflows/export-latex.md +4 -4
  442. package/vendors/opencode/workflows/plan-revision.md +4 -3
  443. package/vendors/opencode/workflows/plan-section.md +2 -2
  444. package/vendors/opencode/workflows/polish-prose.md +3 -3
  445. package/vendors/opencode/workflows/research-gap.md +2 -2
  446. package/vendors/opencode/workflows/verify-work.md +3 -3
  447. package/vendors/opencode/workflows/write-section.md +2 -2
  448. package/vendors/plugin/.wtfp-generated.json +75 -67
  449. package/vendors/plugin/actions/checkpoint.json +10 -1
  450. package/vendors/plugin/actions/execute-outline.json +10 -2
  451. package/vendors/plugin/actions/export-latex.json +15 -2
  452. package/vendors/plugin/actions/plan-revision.json +17 -4
  453. package/vendors/plugin/actions/polish-prose.json +13 -3
  454. package/vendors/plugin/actions/research-gap.json +16 -3
  455. package/vendors/plugin/actions/verify-work.json +7 -2
  456. package/vendors/plugin/ai.iowarp.clio/agents/wtfp-argument-verifier.md +3 -3
  457. package/vendors/plugin/ai.iowarp.clio/agents/wtfp-coherence-checker.md +3 -3
  458. package/vendors/plugin/ai.iowarp.clio/agents/wtfp-plan-checker.md +3 -3
  459. package/vendors/plugin/ai.iowarp.clio/agents/wtfp-section-reviewer.md +3 -3
  460. package/vendors/plugin/ai.iowarp.clio/{fleets → playbooks}/wtfp-draft-review.md +1 -1
  461. package/vendors/plugin/ai.iowarp.clio/{fleets → playbooks}/wtfp-plan-section.md +1 -1
  462. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/add-todo.md +19 -12
  463. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/analyze-bib.md +34 -19
  464. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/audit-milestone.md +22 -25
  465. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/check-refs.md +34 -15
  466. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/check-todos.md +23 -13
  467. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/checkpoint.md +23 -29
  468. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/create-outline.md +33 -25
  469. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/create-poster.md +9 -0
  470. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/create-slides.md +9 -0
  471. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/discuss-section.md +21 -17
  472. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/execute-outline.md +38 -30
  473. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/export-latex.md +26 -21
  474. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/help.md +2 -2
  475. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/insert-section.md +21 -13
  476. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/list-assumptions.md +6 -0
  477. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/map-project.md +19 -14
  478. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/new-paper.md +21 -17
  479. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/pause-writing.md +19 -18
  480. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/plan-milestone-gaps.md +21 -15
  481. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/plan-revision.md +25 -18
  482. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/plan-section.md +36 -30
  483. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/polish-prose.md +38 -18
  484. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/progress.md +7 -0
  485. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/quick.md +35 -15
  486. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/research-gap.md +37 -23
  487. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/resume-writing.md +21 -23
  488. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/review-section.md +31 -20
  489. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/settings.md +21 -9
  490. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/submit-milestone.md +21 -25
  491. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/verify-work.md +24 -18
  492. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/write-section.md +38 -31
  493. package/vendors/plugin/compatibility/action-availability.json +18 -3
  494. package/vendors/plugin/plugin.json +7 -7
  495. package/vendors/plugin/project/README.md +37 -0
  496. package/vendors/plugin/project/schemas/interaction.schema.json +100 -0
  497. package/vendors/plugin/project/templates/interaction.json +16 -0
  498. package/vendors/plugin/skills/wtfp-deliver-research/SKILL.md +1 -1
  499. package/vendors/plugin/skills/wtfp-deliver-research/references/actions.md +2 -2
  500. package/vendors/plugin/skills/wtfp-plan-section/SKILL.md +1 -1
  501. package/vendors/plugin/skills/wtfp-plan-section/references/actions.md +4 -3
  502. package/vendors/plugin/skills/wtfp-research-literature/SKILL.md +1 -1
  503. package/vendors/plugin/skills/wtfp-review-manuscript/SKILL.md +1 -1
  504. package/vendors/plugin/skills/wtfp-write-section/SKILL.md +1 -1
  505. package/vendors/plugin/skills/wtfp-write-section/references/actions.md +1 -1
  506. package/vendors/plugin/workflows/checkpoint.md +2 -2
  507. package/vendors/plugin/workflows/execute-outline.md +2 -2
  508. package/vendors/plugin/workflows/export-latex.md +4 -4
  509. package/vendors/plugin/workflows/plan-revision.md +4 -3
  510. package/vendors/plugin/workflows/plan-section.md +2 -2
  511. package/vendors/plugin/workflows/polish-prose.md +3 -3
  512. package/vendors/plugin/workflows/research-gap.md +2 -2
  513. package/vendors/plugin/workflows/verify-work.md +3 -3
  514. package/vendors/plugin/workflows/write-section.md +2 -2
  515. package/vendors/antigravity/commands/wtfp-plan-section.md +0 -78
  516. package/vendors/antigravity/commands/wtfp-write-section.md +0 -77
@@ -29,6 +29,7 @@ Logical URIs identify project data without exposing a workstation path or a runt
29
29
  | `project://evidence/{evidence}` | `.planning/evidence/{evidence}.json` | Claim-level interpretation of a source |
30
30
  | `project://checkpoints/{checkpoint}` | `.planning/checkpoints/{checkpoint}.json` | Orchestrator-managed interaction gate |
31
31
  | `project://validations/{validation}` | `.planning/validations/{validation}.json` | Read-only verification result |
32
+ | `project://interactions/{interaction}` | `.planning/interactions/{interaction}.json` | An author's answer as the host observed it |
32
33
 
33
34
  The conventional locations are adapter mappings, not absolute paths embedded in records. Adapters must reject URI traversal segments and must not resolve a logical URI outside the project root.
34
35
 
@@ -73,6 +74,42 @@ The JSON records above are the interoperable source of truth, while research and
73
74
  - Validation records report findings and never imply that a mutation was applied.
74
75
  - Timestamps use RFC 3339 date-time strings. Dates use ISO 8601 calendar dates.
75
76
 
77
+ ## Author answers and approvals
78
+
79
+ A checkpoint's `resolution.resolved_by: author` is a claim. It becomes evidence only when an interaction record stands behind it. An interaction records what the author was shown and what the author chose:
80
+
81
+ - `kind: checkpoint-answer` answers a checkpoint. `subject_uri` names the checkpoint, and `outcome` is `selected` (with `selected_option`), `done`, `waived`, `kept-pending`, or `discarded-stale`.
82
+ - `kind: record-change` confirms or declines a record change that would weaken the author's controls or what the host holds back: a gate, check or safeguard turned off, a step down in interaction mode, a changed locked decision, a section dropped from the outline, a research or claim evidence requirement turned off, a section's manuscript re-pointed, or its plan history rewritten. Its outcome is `approved`, `declined`, or `discarded-stale`.
83
+ - `presented.content_sha256` is the SHA-256 of the canonical JSON of what was asked. For a checkpoint, that is the record with `status` and `resolution` removed, so answering it does not change the digest. Canonical JSON orders object keys by code unit and has no insignificant whitespace. `presented.options` lists the option identifiers offered, and `presented.artifact` holds the URI and SHA-256 of the file the checkpoint is about, when it names one.
84
+ - `channel: attested-interview` means the host observed the answer in its own interview and sealed the record with `seal` (HMAC-SHA-256 over the canonical record without `seal`, keyed by a secret that never enters the project). `channel: host-prompt` documents an answer obtained through a host prompt that the host cannot attest; it carries no seal.
85
+
86
+ A host that attests answers counts a resolution as the author's only when an interaction given at its interview (`channel: attested-interview`), for this project, whose seal verifies in exactly the form the host writes, matches the checkpoint's current digest and recorded outcome. Anything else is unattested: a hand edit, an answer recorded by another host, or a seal made with another machine's key. An unattested resolution of a blocking checkpoint keeps holding its scope until the author confirms it, which records a new sealed interaction. Migration never upgrades an existing resolution to an attested one.
87
+
88
+ On a host that attests answers, only its recorder writes interaction records and author resolutions; agents never write `resolved_by: author` and never resolve a blocking checkpoint. On a host that cannot attest, the agent records the resolution from the answer it received through the host's prompt. That resolution documents the answer without proving it, and an attesting host treats it as unattested. On every host, a pending blocking checkpoint cannot be made nonblocking, re-scoped, or expired by an agent. The one exception is a plan-approval checkpoint whose plan is no longer the section's current plan, which may be expired. An answered checkpoint is immutable; asking again creates a new checkpoint. `resolved_by: policy` applies only to nonblocking checkpoints.
89
+
90
+ A plan is approved for drafting when its section links it as the last entry of `artifacts.plans` and a `decision` checkpoint scoped to that plan's URI carries an attested answer of `approve` that was given for the plan's current SHA-256. Any other answer, such as `revise` or `reject`, leaves the plan unapproved even when `confirm_plan` is off. With `confirm_plan` off and no author answer on the plan, a linked plan that resolves to a file stands by policy. Editing an approved plan voids its approval. Linked plans are immutable, and `artifacts.plans` is append-only: removing or reordering an entry is a record change the author confirms, so a pending approval cannot be retired by linking another plan and unlinking it again. A revision is a new plan appended to `artifacts.plans` that needs its own approval. A host that asks for plan approval shows the `approve` option in its own words and never lets another option read as approval, whatever the checkpoint's labels say.
91
+
92
+ Each path through an author gate on an attesting host, and what it leaves behind:
93
+
94
+ | Path | Checkpoint afterwards | Interaction recorded | Holds its scope |
95
+ | --- | --- | --- | --- |
96
+ | Author selects an offered option | `resolved`, `resolved_by: author`, `selected_option` | `selected`, sealed | No, while the seal matches the checkpoint |
97
+ | Author marks a task done, or waives it | `resolved` or `waived` | `done` or `waived`, sealed | No |
98
+ | Author answers `revise` or `reject` on a plan | `resolved` with that option | `selected`, sealed | No, but the plan stays unapproved |
99
+ | Author keeps it pending (deferral) | `pending`, unchanged | `kept-pending`, sealed | Yes |
100
+ | Interview cancelled, or no author can be asked | `pending`, unchanged | none | Yes |
101
+ | Checkpoint or its subject changed while asked | `pending`, unchanged; asked again as it now is | `discarded-stale`, sealed | Yes |
102
+ | Answer not offered, replayed, or for another project | unchanged | none | Unchanged |
103
+ | Process stops between the paired writes | the journal completes the checkpoint, state and interaction together | as committed | As committed |
104
+ | Resolution written by hand or by another host | as written | none that matches | Yes, until the author confirms it |
105
+ | Approved plan edited afterwards | unchanged | unchanged | The plan is unapproved again |
106
+
107
+ ## Concurrent updates and recovery
108
+
109
+ An update names the version it read. Revisioned records (`state`, `outline`, `decisions`) carry the revision read; every other record carries the SHA-256 of the bytes read. An update that names no version, or a stale one, is refused and changes nothing. A create names no version and fails if the record already exists. Adapters advance revisions and timestamps themselves and replace each record atomically.
110
+
111
+ Several records that change together, such as a checkpoint and the state that lists it, either all change or none does. An adapter stages every new file durably and then writes one journal naming them all, which is the commit point. It then moves each file into place and removes the journal. A process that stops before the journal exists leaves only staged files, which the next writer removes. A process that stops after it leaves the journal, which the next writer completes. Readers report a pending journal instead of repairing it.
112
+
76
113
  `templates/` contains minimal valid examples and `schemas/` contains JSON Schema 2020-12 contracts. The examples are safe fixtures for adapter and conformance tests; they are not prose-writing templates.
77
114
 
78
115
  </details>
@@ -81,7 +118,7 @@ The JSON records above are the interoperable source of truth, while research and
81
118
 
82
119
  ---
83
120
  name: wtfp-plan-section
84
- description: This skill plans and safely reshapes manuscript sections. It activates when an agent needs to discuss a section, expose assumptions, make a writing or revision plan, insert a newly discovered section, remove an unstarted section, or perform the WTF-P discuss-section, list-assumptions, plan-section, plan-revision, insert-section, or remove-section actions.
121
+ description: This skill plans manuscript sections, shows the intended approach, and lists every assumption about a section before writing or revising it. It activates when an agent needs to discuss a section, expose assumptions, make a writing or revision plan, insert a newly discovered section, remove an unstarted section, or perform the WTF-P discuss-section, list-assumptions, plan-section, plan-revision, insert-section, or remove-section actions.
85
122
  ---
86
123
 
87
124
  # Plan a WTF-P Section
@@ -172,7 +209,7 @@ Contract: [protocol/actions/plan-section.json](../../../actions/plan-section.jso
172
209
  2. Read the complete planning context before decomposing work: manifest, config, state, decisions, outline, section record, context, research, source/evidence records, relevant prior summaries, and the bounded `project://validations/*` collection.
173
210
  3. Before any specialist dispatch, filter the validation records to candidates whose `subject_uri` is exactly `project://structure/outline` and whose `action_id` is exactly `create-outline`. A candidate is current only when `executed_at >= outline.updated_at`. Because the v1 validation schema carries no outline revision or content hash, disclose that this timestamp test is a conservative freshness proxy.
174
211
  4. Require exactly one current candidate and require its `status` to be `passed`. Separately verify that the current outline and target section are consistent with all current locked and deferred author choices: honor locked choices and do not treat deferred choices as resolved. A missing, stale, ambiguous, or non-passing candidate, or a decision contradiction, blocks all specialist dispatch and every plan, section, state, or validation write. Only a recovery checkpoint may be proposed on this blocked path, and it may be written only after a complete record preview and explicit author approval.
175
- 5. If the section is literature-heavy, require a section-specific research artifact and resolvable source/evidence records for its planned claims before dispatch or approval. Run `research-gap` with the configured CiteNexus backend when available; if coverage remains insufficient, record a research checkpoint and stop. Search candidates alone are not verified citations. Do not manufacture citations to keep planning moving.
212
+ 5. If the section is literature-heavy, require a section-specific research artifact and resolvable source/evidence records for its planned claims before dispatch or approval. If coverage is insufficient, record a research checkpoint naming the uncovered claims and stop; `research-gap` is the next action, and its sources and evidence are not written here. Search candidates alone are not verified citations. Do not manufacture citations to keep planning moving.
176
213
  6. Summarize the section goal, claims, evidence, manuscript artifact, dependencies, and open decisions at `config.gates.confirm_plan`.
177
214
  7. After the prerequisites pass, require `section-planner` in a bounded delegated pass to create one or more immutable Markdown `project://sections/{section}/plans/{plan}` artifacts. Each plan must declare:
178
215
  - stable section and plan identifiers;
@@ -187,7 +224,7 @@ Contract: [protocol/actions/plan-section.json](../../../actions/plan-section.jso
187
224
  9. Estimate words by rhetorical function and reconcile the total with the section budget.
188
225
  10. After the `section-planner` result, require `plan-checker` in a fresh delegated pass against the outline goal and claim IDs, decisions, context, research, evidence, dependencies, output URIs, and verification criteria. Persist that read-only result at `project://validations/{validation}`; configuration may tighten its rubric but must not skip the independent pass.
189
226
  11. Revise concrete defects and re-check. After a bounded number of failed passes, create a checkpoint for remaining author judgment rather than self-approving.
190
- 12. Link the approved plan from the section record and set section/state status to planned only after the plan and validation are readable. Do not execute VCS effects.
227
+ 12. At `config.gates.confirm_plan`, create a blocking `decision` checkpoint scoped to the plan's URI whose options include `approve`, `revise`, and `reject`, preview the plan and validation, and ask the author. Link the plan from the section record and set section/state status to planned only after an `approve` answer for its current bytes and after the plan and validation are readable. Do not execute VCS effects.
191
228
 
192
229
  Completion requires an executable plan whose tasks are sufficient for its success criteria and whose evidence obligations are explicit.
193
230
 
@@ -208,8 +245,9 @@ Contract: [protocol/actions/plan-revision.json](../../../actions/plan-revision.j
208
245
  - expected revised manuscript and revision summary.
209
246
  6. Never prescribe a cosmetic rewrite for an evidence or argument defect. Route missing evidence to research and structural defects to explicit author approval.
210
247
  7. Validate that every selected issue is addressed once and every excluded issue remains visible.
248
+ 8. When confirm_plan is on, create a blocking `decision` checkpoint scoped to the plan's URI whose options include `approve`, `revise`, and `reject`, preview the plan and validation, and ask the author. Append the revision plan to the section's `artifacts.plans` only after an `approve` answer for its current bytes; the plan that produced the reviewed draft is never edited and remains in the history.
211
249
 
212
- Completion requires a targeted, traceable path from finding to fix to re-verification.
250
+ Completion requires a targeted, traceable path from finding to fix to re-verification, and a revision plan the author approved before any rewrite.
213
251
 
214
252
  ## `insert-section`
215
253
 
@@ -243,8 +281,8 @@ Completion requires preservation of all authored work and consistent outline/sta
243
281
  </details>
244
282
  ## Record contract
245
283
 
246
- Read: `project://manifest`, `project://decisions`, `project://sections/{section}`, `project://sections/{section}/plans/{plan}`, `project://sections/{section}/reviews/{review}`, `project://sections/{section}/summary`, `project://validations/{validation}`, `project://paper/{artifact}`.
247
- Produce: `project://sections/{section}/plans/{plan}` (create).
284
+ Read: `project://manifest`, `project://config`, `project://decisions`, `project://sections/{section}`, `project://sections/{section}/plans/{plan}`, `project://sections/{section}/reviews/{review}`, `project://sections/{section}/summary`, `project://validations/{validation}`, `project://paper/{artifact}`.
285
+ Produce: `project://sections/{section}/plans/{plan}` (create), `project://checkpoints/{checkpoint}` (create), `project://sections/{section}` (update).
248
286
 
249
287
  Resolve every logical URI through the host adapter. Portable v1 JSON records are the source of truth: schema-validate before a write, preserve stable IDs, update revision and timestamps where required, and replace records atomically. Never pass a literal logical URI to a shell command or infer record state from a legacy Markdown control file.
250
288
 
@@ -254,7 +292,8 @@ Manuscript prose and supporting context, research, plan, review, summary, handof
254
292
 
255
293
  1. Resolve manifest requirements, the selected section, linked review or failed validation findings, prior summary, current draft, original plan, and decisions.
256
294
  2. Separate required fixes, optional improvements, protected text, dependencies, and verification criteria.
257
- 3. Write a new immutable plan artifact after approval; never overwrite the plan that produced the reviewed draft.
295
+ 3. Write a new immutable plan artifact after the author approves the revision priorities; never overwrite the plan that produced the reviewed draft.
296
+ 4. When confirm_plan is on, create a blocking `decision` checkpoint scoped to the plan's URI whose options include `approve`, `revise`, and `reject`, preview the plan, and ask the author. Append the plan to the section's `artifacts.plans` only after an `approve` answer for its current bytes; any other answer leaves the earlier plan current and the revision unlinked. With confirm_plan off, append it directly.
258
297
 
259
298
  ## Safety and completion
260
299
 
@@ -290,6 +329,7 @@ Report the logical resources read, created, updated, archived, or deleted; the g
290
329
  },
291
330
  "reads": [
292
331
  "project://manifest",
332
+ "project://config",
293
333
  "project://decisions",
294
334
  "project://sections/{section}",
295
335
  "project://sections/{section}/plans/{plan}",
@@ -302,6 +342,14 @@ Report the logical resources read, created, updated, archived, or deleted; the g
302
342
  {
303
343
  "uri": "project://sections/{section}/plans/{plan}",
304
344
  "mode": "create"
345
+ },
346
+ {
347
+ "uri": "project://checkpoints/{checkpoint}",
348
+ "mode": "create"
349
+ },
350
+ {
351
+ "uri": "project://sections/{section}",
352
+ "mode": "update"
305
353
  }
306
354
  ],
307
355
  "delegation": [],
@@ -309,19 +357,23 @@ Report the logical resources read, created, updated, archived, or deleted; the g
309
357
  "effects": [
310
358
  {
311
359
  "id": "filesystem.create",
312
- "scope": "project://sections/{section}/plans/{plan}"
360
+ "scope": "project://sections/{section}/plans/{plan}, project://checkpoints/{checkpoint}"
361
+ },
362
+ {
363
+ "id": "filesystem.modify",
364
+ "scope": "project://sections/{section}"
313
365
  },
314
366
  {
315
367
  "id": "filesystem.read",
316
- "scope": "project://manifest, project://decisions, project://sections/{section}, project://sections/{section}/plans/{plan}, project://sections/{section}/reviews/{review}, project://sections/{section}/summary, project://validations/{validation}, project://paper/{artifact}"
368
+ "scope": "project://manifest, project://config, project://decisions, project://sections/{section}, project://sections/{section}/plans/{plan}, project://sections/{section}/reviews/{review}, project://sections/{section}/summary, project://validations/{validation}, project://paper/{artifact}"
317
369
  },
318
370
  {
319
371
  "id": "filesystem.write",
320
- "scope": "project://sections/{section}/plans/{plan}"
372
+ "scope": "project://sections/{section}/plans/{plan}, project://checkpoints/{checkpoint}, project://sections/{section}"
321
373
  },
322
374
  {
323
375
  "id": "user.gate",
324
- "scope": "revision priorities"
376
+ "scope": "revision priorities and approval of the exact revision plan"
325
377
  }
326
378
  ]
327
379
  }
@@ -364,6 +416,253 @@ Report the logical resources read, created, updated, archived, or deleted; the g
364
416
  }
365
417
  }
366
418
 
419
+ </details>
420
+ <details data-wtfp-source="protocol://project/schemas/checkpoint.schema.json" open>
421
+ <summary>Bundled WTF-P protocol resource: project/schemas/checkpoint.schema.json</summary>
422
+
423
+ {
424
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
425
+ "$id": "https://schemas.wtf-p.dev/project/checkpoint/v1",
426
+ "type": "object",
427
+ "additionalProperties": false,
428
+ "allOf": [
429
+ {
430
+ "if": {
431
+ "required": ["kind"],
432
+ "properties": { "kind": { "const": "state-snapshot" } }
433
+ },
434
+ "then": {
435
+ "required": ["snapshot"],
436
+ "properties": {
437
+ "status": { "enum": ["available", "restored", "expired"] },
438
+ "blocking": { "const": false }
439
+ }
440
+ },
441
+ "else": {
442
+ "not": { "required": ["snapshot"] },
443
+ "properties": {
444
+ "status": { "enum": ["pending", "resolved", "waived", "expired"] }
445
+ }
446
+ }
447
+ }
448
+ ],
449
+ "required": [
450
+ "schema",
451
+ "id",
452
+ "project_id",
453
+ "kind",
454
+ "status",
455
+ "blocking",
456
+ "scope_uri",
457
+ "request",
458
+ "options",
459
+ "resume_action",
460
+ "created_at"
461
+ ],
462
+ "properties": {
463
+ "schema": { "const": "wtfp.project.checkpoint/v1" },
464
+ "id": { "$ref": "https://schemas.wtf-p.dev/project/common/v1#/$defs/identifier" },
465
+ "project_id": { "$ref": "https://schemas.wtf-p.dev/project/common/v1#/$defs/identifier" },
466
+ "kind": { "enum": ["human-verify", "decision", "human-action", "safety-authorization", "state-snapshot"] },
467
+ "status": { "enum": ["pending", "resolved", "waived", "expired", "available", "restored"] },
468
+ "blocking": { "type": "boolean" },
469
+ "scope_uri": { "$ref": "https://schemas.wtf-p.dev/project/common/v1#/$defs/logicalUri" },
470
+ "request": { "$ref": "https://schemas.wtf-p.dev/project/common/v1#/$defs/nonEmptyString" },
471
+ "context": { "type": "string" },
472
+ "options": {
473
+ "type": "array",
474
+ "items": {
475
+ "type": "object",
476
+ "additionalProperties": false,
477
+ "required": ["id", "label", "implication"],
478
+ "properties": {
479
+ "id": { "$ref": "https://schemas.wtf-p.dev/project/common/v1#/$defs/identifier" },
480
+ "label": { "$ref": "https://schemas.wtf-p.dev/project/common/v1#/$defs/nonEmptyString" },
481
+ "implication": { "$ref": "https://schemas.wtf-p.dev/project/common/v1#/$defs/nonEmptyString" }
482
+ }
483
+ }
484
+ },
485
+ "resume_action": { "$ref": "https://schemas.wtf-p.dev/project/common/v1#/$defs/identifier" },
486
+ "created_at": { "$ref": "https://schemas.wtf-p.dev/project/common/v1#/$defs/timestamp" },
487
+ "snapshot": {
488
+ "type": "object",
489
+ "additionalProperties": false,
490
+ "required": ["archive_uri", "resources"],
491
+ "properties": {
492
+ "archive_uri": {
493
+ "type": "string",
494
+ "pattern": "^project://archives/checkpoints/[A-Za-z0-9._~-]+$"
495
+ },
496
+ "resources": {
497
+ "type": "array",
498
+ "minItems": 1,
499
+ "items": {
500
+ "type": "object",
501
+ "additionalProperties": false,
502
+ "required": ["uri", "sha256"],
503
+ "properties": {
504
+ "uri": { "$ref": "https://schemas.wtf-p.dev/project/common/v1#/$defs/logicalUri" },
505
+ "revision": { "type": "integer", "minimum": 0 },
506
+ "sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" }
507
+ }
508
+ }
509
+ }
510
+ }
511
+ },
512
+ "resolution": {
513
+ "type": "object",
514
+ "additionalProperties": false,
515
+ "required": ["resolved_by", "summary", "resolved_at"],
516
+ "properties": {
517
+ "resolved_by": { "enum": ["author", "policy"] },
518
+ "selected_option": { "$ref": "https://schemas.wtf-p.dev/project/common/v1#/$defs/identifier" },
519
+ "summary": { "$ref": "https://schemas.wtf-p.dev/project/common/v1#/$defs/nonEmptyString" },
520
+ "resolved_at": { "$ref": "https://schemas.wtf-p.dev/project/common/v1#/$defs/timestamp" }
521
+ }
522
+ }
523
+ }
524
+ }
525
+
526
+ </details>
527
+ <details data-wtfp-source="protocol://project/templates/checkpoint.json" open>
528
+ <summary>Bundled WTF-P protocol resource: project/templates/checkpoint.json</summary>
529
+
530
+ {
531
+ "schema": "wtfp.project.checkpoint/v1",
532
+ "id": "checkpoint-contribution-framing",
533
+ "project_id": "portable-research-demo",
534
+ "kind": "decision",
535
+ "status": "pending",
536
+ "blocking": true,
537
+ "scope_uri": "project://sections/introduction",
538
+ "request": "Choose the primary contribution framing before the introduction is drafted.",
539
+ "context": "The choice changes the order and strength of the contribution claims.",
540
+ "options": [
541
+ {
542
+ "id": "protocol-contribution",
543
+ "label": "Protocol contribution",
544
+ "implication": "Lead with interoperability and evidence fidelity."
545
+ },
546
+ {
547
+ "id": "workflow-contribution",
548
+ "label": "Workflow contribution",
549
+ "implication": "Lead with the end-to-end academic process."
550
+ }
551
+ ],
552
+ "resume_action": "write-section",
553
+ "created_at": "2026-08-28T12:40:00Z"
554
+ }
555
+
556
+ </details>
557
+ <details data-wtfp-source="protocol://project/schemas/config.schema.json" open>
558
+ <summary>Bundled WTF-P protocol resource: project/schemas/config.schema.json</summary>
559
+
560
+ {
561
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
562
+ "$id": "https://schemas.wtf-p.dev/project/config/v1",
563
+ "type": "object",
564
+ "additionalProperties": false,
565
+ "required": [
566
+ "schema",
567
+ "project_id",
568
+ "interaction_mode",
569
+ "depth",
570
+ "output_format",
571
+ "language",
572
+ "gates",
573
+ "workflow",
574
+ "safety",
575
+ "parallelism"
576
+ ],
577
+ "properties": {
578
+ "schema": { "const": "wtfp.project.config/v1" },
579
+ "project_id": { "$ref": "https://schemas.wtf-p.dev/project/common/v1#/$defs/identifier" },
580
+ "interaction_mode": { "enum": ["guided", "standard", "autonomous"] },
581
+ "depth": { "enum": ["quick", "standard", "comprehensive"] },
582
+ "output_format": { "enum": ["markdown", "latex", "typst"] },
583
+ "language": { "type": "string", "pattern": "^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$" },
584
+ "citation_style": { "$ref": "https://schemas.wtf-p.dev/project/common/v1#/$defs/nonEmptyString" },
585
+ "gates": {
586
+ "type": "object",
587
+ "additionalProperties": false,
588
+ "required": ["confirm_outline", "confirm_plan", "confirm_write", "confirm_review", "confirm_delivery"],
589
+ "properties": {
590
+ "confirm_outline": { "type": "boolean" },
591
+ "confirm_plan": { "type": "boolean" },
592
+ "confirm_write": { "type": "boolean" },
593
+ "confirm_review": { "type": "boolean" },
594
+ "confirm_delivery": { "type": "boolean" }
595
+ }
596
+ },
597
+ "workflow": {
598
+ "type": "object",
599
+ "additionalProperties": false,
600
+ "required": ["research", "plan_validation", "argument_validation", "coherence_validation"],
601
+ "properties": {
602
+ "research": { "type": "boolean" },
603
+ "plan_validation": { "type": "boolean" },
604
+ "argument_validation": { "type": "boolean" },
605
+ "coherence_validation": { "type": "boolean" }
606
+ }
607
+ },
608
+ "safety": {
609
+ "type": "object",
610
+ "additionalProperties": false,
611
+ "required": ["destructive_requires_authorization", "external_publish_requires_authorization", "backup_before_major_edits"],
612
+ "properties": {
613
+ "destructive_requires_authorization": { "const": true },
614
+ "external_publish_requires_authorization": { "const": true },
615
+ "backup_before_major_edits": { "type": "boolean" }
616
+ }
617
+ },
618
+ "parallelism": {
619
+ "type": "object",
620
+ "additionalProperties": false,
621
+ "required": ["enabled", "max_workers"],
622
+ "properties": {
623
+ "enabled": { "type": "boolean" },
624
+ "max_workers": { "type": "integer", "minimum": 1, "maximum": 32 }
625
+ }
626
+ }
627
+ }
628
+ }
629
+
630
+ </details>
631
+ <details data-wtfp-source="protocol://project/templates/config.json" open>
632
+ <summary>Bundled WTF-P protocol resource: project/templates/config.json</summary>
633
+
634
+ {
635
+ "schema": "wtfp.project.config/v1",
636
+ "project_id": "portable-research-demo",
637
+ "interaction_mode": "standard",
638
+ "depth": "standard",
639
+ "output_format": "markdown",
640
+ "language": "en-US",
641
+ "citation_style": "author-date",
642
+ "gates": {
643
+ "confirm_outline": true,
644
+ "confirm_plan": true,
645
+ "confirm_write": true,
646
+ "confirm_review": true,
647
+ "confirm_delivery": true
648
+ },
649
+ "workflow": {
650
+ "research": true,
651
+ "plan_validation": true,
652
+ "argument_validation": true,
653
+ "coherence_validation": true
654
+ },
655
+ "safety": {
656
+ "destructive_requires_authorization": true,
657
+ "external_publish_requires_authorization": true,
658
+ "backup_before_major_edits": true
659
+ },
660
+ "parallelism": {
661
+ "enabled": true,
662
+ "max_workers": 3
663
+ }
664
+ }
665
+
367
666
  </details>
368
667
  <details data-wtfp-source="protocol://project/schemas/decisions.schema.json" open>
369
668
  <summary>Bundled WTF-P protocol resource: project/schemas/decisions.schema.json</summary>
@@ -29,6 +29,7 @@ Logical URIs identify project data without exposing a workstation path or a runt
29
29
  | `project://evidence/{evidence}` | `.planning/evidence/{evidence}.json` | Claim-level interpretation of a source |
30
30
  | `project://checkpoints/{checkpoint}` | `.planning/checkpoints/{checkpoint}.json` | Orchestrator-managed interaction gate |
31
31
  | `project://validations/{validation}` | `.planning/validations/{validation}.json` | Read-only verification result |
32
+ | `project://interactions/{interaction}` | `.planning/interactions/{interaction}.json` | An author's answer as the host observed it |
32
33
 
33
34
  The conventional locations are adapter mappings, not absolute paths embedded in records. Adapters must reject URI traversal segments and must not resolve a logical URI outside the project root.
34
35
 
@@ -73,6 +74,42 @@ The JSON records above are the interoperable source of truth, while research and
73
74
  - Validation records report findings and never imply that a mutation was applied.
74
75
  - Timestamps use RFC 3339 date-time strings. Dates use ISO 8601 calendar dates.
75
76
 
77
+ ## Author answers and approvals
78
+
79
+ A checkpoint's `resolution.resolved_by: author` is a claim. It becomes evidence only when an interaction record stands behind it. An interaction records what the author was shown and what the author chose:
80
+
81
+ - `kind: checkpoint-answer` answers a checkpoint. `subject_uri` names the checkpoint, and `outcome` is `selected` (with `selected_option`), `done`, `waived`, `kept-pending`, or `discarded-stale`.
82
+ - `kind: record-change` confirms or declines a record change that would weaken the author's controls or what the host holds back: a gate, check or safeguard turned off, a step down in interaction mode, a changed locked decision, a section dropped from the outline, a research or claim evidence requirement turned off, a section's manuscript re-pointed, or its plan history rewritten. Its outcome is `approved`, `declined`, or `discarded-stale`.
83
+ - `presented.content_sha256` is the SHA-256 of the canonical JSON of what was asked. For a checkpoint, that is the record with `status` and `resolution` removed, so answering it does not change the digest. Canonical JSON orders object keys by code unit and has no insignificant whitespace. `presented.options` lists the option identifiers offered, and `presented.artifact` holds the URI and SHA-256 of the file the checkpoint is about, when it names one.
84
+ - `channel: attested-interview` means the host observed the answer in its own interview and sealed the record with `seal` (HMAC-SHA-256 over the canonical record without `seal`, keyed by a secret that never enters the project). `channel: host-prompt` documents an answer obtained through a host prompt that the host cannot attest; it carries no seal.
85
+
86
+ A host that attests answers counts a resolution as the author's only when an interaction given at its interview (`channel: attested-interview`), for this project, whose seal verifies in exactly the form the host writes, matches the checkpoint's current digest and recorded outcome. Anything else is unattested: a hand edit, an answer recorded by another host, or a seal made with another machine's key. An unattested resolution of a blocking checkpoint keeps holding its scope until the author confirms it, which records a new sealed interaction. Migration never upgrades an existing resolution to an attested one.
87
+
88
+ On a host that attests answers, only its recorder writes interaction records and author resolutions; agents never write `resolved_by: author` and never resolve a blocking checkpoint. On a host that cannot attest, the agent records the resolution from the answer it received through the host's prompt. That resolution documents the answer without proving it, and an attesting host treats it as unattested. On every host, a pending blocking checkpoint cannot be made nonblocking, re-scoped, or expired by an agent. The one exception is a plan-approval checkpoint whose plan is no longer the section's current plan, which may be expired. An answered checkpoint is immutable; asking again creates a new checkpoint. `resolved_by: policy` applies only to nonblocking checkpoints.
89
+
90
+ A plan is approved for drafting when its section links it as the last entry of `artifacts.plans` and a `decision` checkpoint scoped to that plan's URI carries an attested answer of `approve` that was given for the plan's current SHA-256. Any other answer, such as `revise` or `reject`, leaves the plan unapproved even when `confirm_plan` is off. With `confirm_plan` off and no author answer on the plan, a linked plan that resolves to a file stands by policy. Editing an approved plan voids its approval. Linked plans are immutable, and `artifacts.plans` is append-only: removing or reordering an entry is a record change the author confirms, so a pending approval cannot be retired by linking another plan and unlinking it again. A revision is a new plan appended to `artifacts.plans` that needs its own approval. A host that asks for plan approval shows the `approve` option in its own words and never lets another option read as approval, whatever the checkpoint's labels say.
91
+
92
+ Each path through an author gate on an attesting host, and what it leaves behind:
93
+
94
+ | Path | Checkpoint afterwards | Interaction recorded | Holds its scope |
95
+ | --- | --- | --- | --- |
96
+ | Author selects an offered option | `resolved`, `resolved_by: author`, `selected_option` | `selected`, sealed | No, while the seal matches the checkpoint |
97
+ | Author marks a task done, or waives it | `resolved` or `waived` | `done` or `waived`, sealed | No |
98
+ | Author answers `revise` or `reject` on a plan | `resolved` with that option | `selected`, sealed | No, but the plan stays unapproved |
99
+ | Author keeps it pending (deferral) | `pending`, unchanged | `kept-pending`, sealed | Yes |
100
+ | Interview cancelled, or no author can be asked | `pending`, unchanged | none | Yes |
101
+ | Checkpoint or its subject changed while asked | `pending`, unchanged; asked again as it now is | `discarded-stale`, sealed | Yes |
102
+ | Answer not offered, replayed, or for another project | unchanged | none | Unchanged |
103
+ | Process stops between the paired writes | the journal completes the checkpoint, state and interaction together | as committed | As committed |
104
+ | Resolution written by hand or by another host | as written | none that matches | Yes, until the author confirms it |
105
+ | Approved plan edited afterwards | unchanged | unchanged | The plan is unapproved again |
106
+
107
+ ## Concurrent updates and recovery
108
+
109
+ An update names the version it read. Revisioned records (`state`, `outline`, `decisions`) carry the revision read; every other record carries the SHA-256 of the bytes read. An update that names no version, or a stale one, is refused and changes nothing. A create names no version and fails if the record already exists. Adapters advance revisions and timestamps themselves and replace each record atomically.
110
+
111
+ Several records that change together, such as a checkpoint and the state that lists it, either all change or none does. An adapter stages every new file durably and then writes one journal naming them all, which is the commit point. It then moves each file into place and removes the journal. A process that stops before the journal exists leaves only staged files, which the next writer removes. A process that stops after it leaves the journal, which the next writer completes. Readers report a pending journal instead of repairing it.
112
+
76
113
  `templates/` contains minimal valid examples and `schemas/` contains JSON Schema 2020-12 contracts. The examples are safe fixtures for adapter and conformance tests; they are not prose-writing templates.
77
114
 
78
115
  </details>
@@ -81,7 +118,7 @@ The JSON records above are the interoperable source of truth, while research and
81
118
 
82
119
  ---
83
120
  name: wtfp-plan-section
84
- description: This skill plans and safely reshapes manuscript sections. It activates when an agent needs to discuss a section, expose assumptions, make a writing or revision plan, insert a newly discovered section, remove an unstarted section, or perform the WTF-P discuss-section, list-assumptions, plan-section, plan-revision, insert-section, or remove-section actions.
121
+ description: This skill plans manuscript sections, shows the intended approach, and lists every assumption about a section before writing or revising it. It activates when an agent needs to discuss a section, expose assumptions, make a writing or revision plan, insert a newly discovered section, remove an unstarted section, or perform the WTF-P discuss-section, list-assumptions, plan-section, plan-revision, insert-section, or remove-section actions.
85
122
  ---
86
123
 
87
124
  # Plan a WTF-P Section
@@ -172,7 +209,7 @@ Contract: [protocol/actions/plan-section.json](../../../actions/plan-section.jso
172
209
  2. Read the complete planning context before decomposing work: manifest, config, state, decisions, outline, section record, context, research, source/evidence records, relevant prior summaries, and the bounded `project://validations/*` collection.
173
210
  3. Before any specialist dispatch, filter the validation records to candidates whose `subject_uri` is exactly `project://structure/outline` and whose `action_id` is exactly `create-outline`. A candidate is current only when `executed_at >= outline.updated_at`. Because the v1 validation schema carries no outline revision or content hash, disclose that this timestamp test is a conservative freshness proxy.
174
211
  4. Require exactly one current candidate and require its `status` to be `passed`. Separately verify that the current outline and target section are consistent with all current locked and deferred author choices: honor locked choices and do not treat deferred choices as resolved. A missing, stale, ambiguous, or non-passing candidate, or a decision contradiction, blocks all specialist dispatch and every plan, section, state, or validation write. Only a recovery checkpoint may be proposed on this blocked path, and it may be written only after a complete record preview and explicit author approval.
175
- 5. If the section is literature-heavy, require a section-specific research artifact and resolvable source/evidence records for its planned claims before dispatch or approval. Run `research-gap` with the configured CiteNexus backend when available; if coverage remains insufficient, record a research checkpoint and stop. Search candidates alone are not verified citations. Do not manufacture citations to keep planning moving.
212
+ 5. If the section is literature-heavy, require a section-specific research artifact and resolvable source/evidence records for its planned claims before dispatch or approval. If coverage is insufficient, record a research checkpoint naming the uncovered claims and stop; `research-gap` is the next action, and its sources and evidence are not written here. Search candidates alone are not verified citations. Do not manufacture citations to keep planning moving.
176
213
  6. Summarize the section goal, claims, evidence, manuscript artifact, dependencies, and open decisions at `config.gates.confirm_plan`.
177
214
  7. After the prerequisites pass, require `section-planner` in a bounded delegated pass to create one or more immutable Markdown `project://sections/{section}/plans/{plan}` artifacts. Each plan must declare:
178
215
  - stable section and plan identifiers;
@@ -187,7 +224,7 @@ Contract: [protocol/actions/plan-section.json](../../../actions/plan-section.jso
187
224
  9. Estimate words by rhetorical function and reconcile the total with the section budget.
188
225
  10. After the `section-planner` result, require `plan-checker` in a fresh delegated pass against the outline goal and claim IDs, decisions, context, research, evidence, dependencies, output URIs, and verification criteria. Persist that read-only result at `project://validations/{validation}`; configuration may tighten its rubric but must not skip the independent pass.
189
226
  11. Revise concrete defects and re-check. After a bounded number of failed passes, create a checkpoint for remaining author judgment rather than self-approving.
190
- 12. Link the approved plan from the section record and set section/state status to planned only after the plan and validation are readable. Do not execute VCS effects.
227
+ 12. At `config.gates.confirm_plan`, create a blocking `decision` checkpoint scoped to the plan's URI whose options include `approve`, `revise`, and `reject`, preview the plan and validation, and ask the author. Link the plan from the section record and set section/state status to planned only after an `approve` answer for its current bytes and after the plan and validation are readable. Do not execute VCS effects.
191
228
 
192
229
  Completion requires an executable plan whose tasks are sufficient for its success criteria and whose evidence obligations are explicit.
193
230
 
@@ -208,8 +245,9 @@ Contract: [protocol/actions/plan-revision.json](../../../actions/plan-revision.j
208
245
  - expected revised manuscript and revision summary.
209
246
  6. Never prescribe a cosmetic rewrite for an evidence or argument defect. Route missing evidence to research and structural defects to explicit author approval.
210
247
  7. Validate that every selected issue is addressed once and every excluded issue remains visible.
248
+ 8. When confirm_plan is on, create a blocking `decision` checkpoint scoped to the plan's URI whose options include `approve`, `revise`, and `reject`, preview the plan and validation, and ask the author. Append the revision plan to the section's `artifacts.plans` only after an `approve` answer for its current bytes; the plan that produced the reviewed draft is never edited and remains in the history.
211
249
 
212
- Completion requires a targeted, traceable path from finding to fix to re-verification.
250
+ Completion requires a targeted, traceable path from finding to fix to re-verification, and a revision plan the author approved before any rewrite.
213
251
 
214
252
  ## `insert-section`
215
253
 
@@ -255,9 +293,9 @@ Manuscript prose and supporting context, research, plan, review, summary, handof
255
293
  1. Resolve one section record, load its linked context, research, evidence, decisions, and outline constraints, and enumerate the bounded `project://validations/*` collection before any specialist dispatch.
256
294
  2. Filter those records to candidates whose `subject_uri` is exactly `project://structure/outline` and whose `action_id` is exactly `create-outline`. A candidate is current only when `executed_at >= outline.updated_at`. Because the v1 validation schema carries no outline revision or content hash, disclose that this timestamp test is a conservative freshness proxy.
257
295
  3. Require exactly one current candidate and require its `status` to be `passed`. Separately verify that the current outline and target section are consistent with all current locked and deferred author choices: honor locked choices and do not treat deferred choices as resolved. A missing, stale, ambiguous, or non-passing candidate, or a decision contradiction, blocks all specialist dispatch and every plan, section, state, or validation write. Only a recovery checkpoint may be proposed on this blocked path, and it may be written only after a complete record preview and explicit author approval.
258
- 4. For a literature-heavy section, first require a section-specific research artifact plus resolvable source/evidence records that cover the planned claims. If they are absent or insufficient, run `research-gap` with the configured CiteNexus backend when available, verify candidate metadata against the returned records, and stop planning with an explicit research checkpoint if evidence remains insufficient. Never invent citations or treat search candidates as verified sources.
296
+ 4. For a literature-heavy section, first require a section-specific research artifact plus resolvable source/evidence records that cover the planned claims. If they are absent or insufficient, stop planning: create a research checkpoint naming the uncovered claims and recommend `research-gap` as the next action. Sources and evidence are `research-gap` outputs, never written by this action. Never invent citations or treat search candidates as verified sources.
259
297
  5. Only after those prerequisites pass, delegate a bounded plan to `section-planner`, then require a fresh `plan-checker` pass over claim coverage, dependencies, file scope, citations, and decision fidelity. Dispatch the exact WTF-P specialist roles; generic coder and verifier roles do not satisfy this workflow.
260
- 6. At confirm_plan, preview the plan and validation; on approval link the plan, update section status to planned, and reconcile state. Create a checkpoint for unresolved judgment instead of bypassing the required checker.
298
+ 6. At confirm_plan, create a blocking `decision` checkpoint scoped to the plan's URI whose options include `approve`, `revise`, and `reject`, preview the plan and validation, and ask the author. Only an `approve` answer for the plan as it now is approves it; `revise` or `reject` leaves it unlinked, and any later edit voids the approval. Only on approval, append the plan to `artifacts.plans`, update section status to planned, and reconcile state. With confirm_plan off, link the checked plan directly. Create a checkpoint for unresolved judgment instead of bypassing the required checker.
261
299
 
262
300
  ## Safety and completion
263
301