wtf-p 0.8.4 → 0.9.0

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 (363) hide show
  1. package/README.md +26 -25
  2. package/bin/commands/install-logic.js +5 -5
  3. package/bin/install.js +11 -11
  4. package/bin/lib/adapter-compiler.js +211 -208
  5. package/bin/lib/manifest.js +21 -21
  6. package/bin/lib/native-registration.js +25 -10
  7. package/bin/lib/{clio-registration.js → pancode-registration.js} +62 -63
  8. package/bin/lib/utils.js +3 -3
  9. package/bin/uninstall.js +8 -8
  10. package/package.json +5 -4
  11. package/{vendors/clio-extension → pancode/extension}/.wtfp-generated.json +11 -11
  12. package/{vendors/clio-extension → pancode/extension}/compatibility/action-availability.json +14 -14
  13. package/{vendors/clio-extension/clio-coder-extension.yaml → pancode/extension/pancode-extension.yaml} +6 -5
  14. package/{vendors/clio-extension → pancode/extension}/runtime/claim-coverage.cjs +1 -1
  15. package/{vendors/clio-extension → pancode/extension}/runtime/desk-trust.cjs +1 -1
  16. package/{vendors/clio-extension → pancode/extension}/runtime/extension.test.ts +95 -95
  17. package/{vendors/clio-extension → pancode/extension}/runtime/extension.ts +59 -59
  18. package/{vendors/clio-extension → pancode/extension}/runtime/write-guard.json +1 -1
  19. package/{vendors → pancode}/plugin/.wtfp-generated.json +111 -111
  20. package/{vendors → pancode}/plugin/compatibility/action-availability.json +16 -16
  21. package/{vendors/claude/ai.iowarp.clio → pancode/plugin/dev.pancode}/agents/wtfp-argument-verifier.md +3 -3
  22. package/{vendors/claude/ai.iowarp.clio → pancode/plugin/dev.pancode}/agents/wtfp-citation-expert.md +2 -2
  23. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/agents/wtfp-citation-formatter.md +2 -2
  24. package/{vendors/claude/ai.iowarp.clio → pancode/plugin/dev.pancode}/agents/wtfp-coherence-checker.md +3 -3
  25. package/{vendors/claude/ai.iowarp.clio → pancode/plugin/dev.pancode}/agents/wtfp-outliner.md +2 -2
  26. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/agents/wtfp-plan-checker.md +3 -3
  27. package/{vendors/claude/ai.iowarp.clio → pancode/plugin/dev.pancode}/agents/wtfp-prose-polisher.md +2 -2
  28. package/{vendors/claude/ai.iowarp.clio → pancode/plugin/dev.pancode}/agents/wtfp-research-synthesizer.md +2 -2
  29. package/{vendors/claude/ai.iowarp.clio → pancode/plugin/dev.pancode}/agents/wtfp-section-planner.md +2 -2
  30. package/{vendors/claude/ai.iowarp.clio → pancode/plugin/dev.pancode}/agents/wtfp-section-reviewer.md +3 -3
  31. package/{vendors/claude/ai.iowarp.clio → pancode/plugin/dev.pancode}/agents/wtfp-section-writer.md +3 -3
  32. package/{vendors/claude/ai.iowarp.clio/fleets → pancode/plugin/dev.pancode/playbooks}/wtfp-draft-review.md +1 -1
  33. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/add-todo.md +1 -1
  34. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/advance.md +8 -8
  35. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/analyze-bib.md +5 -5
  36. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/audit-milestone.md +3 -3
  37. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/check-refs.md +5 -5
  38. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/check-todos.md +3 -3
  39. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/checkpoint.md +3 -3
  40. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/contribute.md +1 -1
  41. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/create-outline.md +5 -5
  42. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/create-poster.md +3 -3
  43. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/create-slides.md +3 -3
  44. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/discuss-section.md +3 -3
  45. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/execute-outline.md +6 -6
  46. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/export-latex.md +3 -3
  47. package/{vendors/claude/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/help.md +7 -7
  48. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/insert-section.md +3 -3
  49. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/list-assumptions.md +1 -1
  50. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/map-project.md +1 -1
  51. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/new-paper.md +3 -3
  52. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/pause-writing.md +1 -1
  53. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/plan-milestone-gaps.md +3 -3
  54. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/plan-revision.md +3 -3
  55. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/plan-section.md +6 -6
  56. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/polish-prose.md +5 -5
  57. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/progress.md +3 -3
  58. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/quick.md +5 -5
  59. package/{vendors/claude/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/remove-section.md +1 -1
  60. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/report-bug.md +1 -1
  61. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/request-feature.md +1 -1
  62. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/research-gap.md +6 -6
  63. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/resume-writing.md +3 -3
  64. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/review-section.md +6 -6
  65. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/settings.md +3 -3
  66. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/submit-milestone.md +3 -3
  67. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/update.md +1 -1
  68. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/verify-work.md +3 -3
  69. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/write-section.md +6 -6
  70. package/{vendors → pancode}/plugin/plugin.json +56 -56
  71. package/{vendors → pancode}/plugin/repository/CONTRIBUTING.md +5 -2
  72. package/{vendors → pancode}/plugin/skills/wtfp-plan-section/references/actions.md +2 -2
  73. package/vendors/antigravity/.wtfp-generated.json +3 -3
  74. package/vendors/antigravity/plugin.json +2 -2
  75. package/vendors/antigravity/repository/CONTRIBUTING.md +5 -2
  76. package/vendors/claude/.claude-plugin/marketplace.json +2 -2
  77. package/vendors/claude/.claude-plugin/plugin.json +1 -1
  78. package/vendors/claude/.wtfp-generated.json +185 -185
  79. package/vendors/{plugin/ai.iowarp.clio → claude/dev.pancode}/agents/wtfp-argument-verifier.md +3 -3
  80. package/vendors/{plugin/ai.iowarp.clio → claude/dev.pancode}/agents/wtfp-citation-expert.md +2 -2
  81. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/agents/wtfp-citation-formatter.md +2 -2
  82. package/vendors/{plugin/ai.iowarp.clio → claude/dev.pancode}/agents/wtfp-coherence-checker.md +3 -3
  83. package/vendors/{plugin/ai.iowarp.clio → claude/dev.pancode}/agents/wtfp-outliner.md +2 -2
  84. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/agents/wtfp-plan-checker.md +3 -3
  85. package/vendors/{plugin/ai.iowarp.clio → claude/dev.pancode}/agents/wtfp-prose-polisher.md +2 -2
  86. package/vendors/{plugin/ai.iowarp.clio → claude/dev.pancode}/agents/wtfp-research-synthesizer.md +2 -2
  87. package/vendors/{plugin/ai.iowarp.clio → claude/dev.pancode}/agents/wtfp-section-planner.md +2 -2
  88. package/vendors/{plugin/ai.iowarp.clio → claude/dev.pancode}/agents/wtfp-section-reviewer.md +3 -3
  89. package/vendors/{plugin/ai.iowarp.clio → claude/dev.pancode}/agents/wtfp-section-writer.md +3 -3
  90. package/vendors/{plugin/ai.iowarp.clio/playbooks → claude/dev.pancode/fleets}/wtfp-draft-review.md +1 -1
  91. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/advance.md +1 -1
  92. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/analyze-bib.md +4 -4
  93. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/audit-milestone.md +2 -2
  94. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/check-refs.md +4 -4
  95. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/check-todos.md +2 -2
  96. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/checkpoint.md +2 -2
  97. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/contribute.md +1 -1
  98. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/create-outline.md +4 -4
  99. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/create-poster.md +2 -2
  100. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/create-slides.md +2 -2
  101. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/discuss-section.md +2 -2
  102. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/execute-outline.md +5 -5
  103. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/export-latex.md +2 -2
  104. package/vendors/{plugin/ai.iowarp.clio → claude/dev.pancode}/prompts/wtfp/help.md +7 -7
  105. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/insert-section.md +2 -2
  106. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/new-paper.md +2 -2
  107. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/plan-milestone-gaps.md +2 -2
  108. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/plan-revision.md +2 -2
  109. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/plan-section.md +5 -5
  110. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/polish-prose.md +4 -4
  111. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/progress.md +2 -2
  112. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/quick.md +4 -4
  113. package/vendors/{plugin/ai.iowarp.clio → claude/dev.pancode}/prompts/wtfp/remove-section.md +1 -1
  114. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/report-bug.md +1 -1
  115. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/request-feature.md +1 -1
  116. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/research-gap.md +5 -5
  117. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/resume-writing.md +2 -2
  118. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/review-section.md +5 -5
  119. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/settings.md +2 -2
  120. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/submit-milestone.md +2 -2
  121. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/update.md +1 -1
  122. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/verify-work.md +2 -2
  123. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/write-section.md +5 -5
  124. package/vendors/claude/plugin.json +56 -56
  125. package/vendors/claude/repository/CONTRIBUTING.md +5 -2
  126. package/vendors/codex/plugins/wtfp/.codex-plugin/plugin.json +1 -1
  127. package/vendors/codex/plugins/wtfp/.wtfp-generated.json +4 -4
  128. package/vendors/codex/plugins/wtfp/plugin.json +1 -1
  129. package/vendors/codex/plugins/wtfp/repository/CONTRIBUTING.md +5 -2
  130. package/vendors/copilot/.wtfp-generated.json +2 -2
  131. package/vendors/copilot/marketplace.json +2 -2
  132. package/vendors/copilot/plugins/wtfp/.claude-plugin/plugin.json +1 -1
  133. package/vendors/copilot/plugins/wtfp/.wtfp-generated.json +3 -3
  134. package/vendors/copilot/plugins/wtfp/repository/CONTRIBUTING.md +5 -2
  135. package/vendors/gemini/.wtfp-generated.json +3 -3
  136. package/vendors/gemini/gemini-extension.json +1 -1
  137. package/vendors/gemini/repository/CONTRIBUTING.md +5 -2
  138. package/vendors/opencode/.wtfp-generated.json +2 -2
  139. package/vendors/opencode/repository/CONTRIBUTING.md +5 -2
  140. /package/{vendors/clio-extension → pancode/extension}/actions/add-todo.json +0 -0
  141. /package/{vendors/clio-extension → pancode/extension}/actions/advance.json +0 -0
  142. /package/{vendors/clio-extension → pancode/extension}/actions/analyze-bib.json +0 -0
  143. /package/{vendors/clio-extension → pancode/extension}/actions/audit-milestone.json +0 -0
  144. /package/{vendors/clio-extension → pancode/extension}/actions/check-refs.json +0 -0
  145. /package/{vendors/clio-extension → pancode/extension}/actions/check-todos.json +0 -0
  146. /package/{vendors/clio-extension → pancode/extension}/actions/checkpoint.json +0 -0
  147. /package/{vendors/clio-extension → pancode/extension}/actions/contribute.json +0 -0
  148. /package/{vendors/clio-extension → pancode/extension}/actions/create-outline.json +0 -0
  149. /package/{vendors/clio-extension → pancode/extension}/actions/create-poster.json +0 -0
  150. /package/{vendors/clio-extension → pancode/extension}/actions/create-slides.json +0 -0
  151. /package/{vendors/clio-extension → pancode/extension}/actions/discuss-section.json +0 -0
  152. /package/{vendors/clio-extension → pancode/extension}/actions/execute-outline.json +0 -0
  153. /package/{vendors/clio-extension → pancode/extension}/actions/export-latex.json +0 -0
  154. /package/{vendors/clio-extension → pancode/extension}/actions/help.json +0 -0
  155. /package/{vendors/clio-extension → pancode/extension}/actions/insert-section.json +0 -0
  156. /package/{vendors/clio-extension → pancode/extension}/actions/list-assumptions.json +0 -0
  157. /package/{vendors/clio-extension → pancode/extension}/actions/map-project.json +0 -0
  158. /package/{vendors/clio-extension → pancode/extension}/actions/new-paper.json +0 -0
  159. /package/{vendors/clio-extension → pancode/extension}/actions/pause-writing.json +0 -0
  160. /package/{vendors/clio-extension → pancode/extension}/actions/plan-milestone-gaps.json +0 -0
  161. /package/{vendors/clio-extension → pancode/extension}/actions/plan-revision.json +0 -0
  162. /package/{vendors/clio-extension → pancode/extension}/actions/plan-section.json +0 -0
  163. /package/{vendors/clio-extension → pancode/extension}/actions/polish-prose.json +0 -0
  164. /package/{vendors/clio-extension → pancode/extension}/actions/progress.json +0 -0
  165. /package/{vendors/clio-extension → pancode/extension}/actions/quick.json +0 -0
  166. /package/{vendors/clio-extension → pancode/extension}/actions/remove-section.json +0 -0
  167. /package/{vendors/clio-extension → pancode/extension}/actions/report-bug.json +0 -0
  168. /package/{vendors/clio-extension → pancode/extension}/actions/request-feature.json +0 -0
  169. /package/{vendors/clio-extension → pancode/extension}/actions/research-gap.json +0 -0
  170. /package/{vendors/clio-extension → pancode/extension}/actions/resume-writing.json +0 -0
  171. /package/{vendors/clio-extension → pancode/extension}/actions/review-section.json +0 -0
  172. /package/{vendors/clio-extension → pancode/extension}/actions/settings.json +0 -0
  173. /package/{vendors/clio-extension → pancode/extension}/actions/submit-milestone.json +0 -0
  174. /package/{vendors/clio-extension → pancode/extension}/actions/update.json +0 -0
  175. /package/{vendors/clio-extension → pancode/extension}/actions/verify-work.json +0 -0
  176. /package/{vendors/clio-extension → pancode/extension}/actions/write-section.json +0 -0
  177. /package/{vendors/clio-extension → pancode/extension}/project/schemas/checkpoint.schema.json +0 -0
  178. /package/{vendors/clio-extension → pancode/extension}/project/schemas/common.schema.json +0 -0
  179. /package/{vendors/clio-extension → pancode/extension}/project/schemas/config.schema.json +0 -0
  180. /package/{vendors/clio-extension → pancode/extension}/project/schemas/decisions.schema.json +0 -0
  181. /package/{vendors/clio-extension → pancode/extension}/project/schemas/evidence.schema.json +0 -0
  182. /package/{vendors/clio-extension → pancode/extension}/project/schemas/interaction.schema.json +0 -0
  183. /package/{vendors/clio-extension → pancode/extension}/project/schemas/manifest.schema.json +0 -0
  184. /package/{vendors/clio-extension → pancode/extension}/project/schemas/outline.schema.json +0 -0
  185. /package/{vendors/clio-extension → pancode/extension}/project/schemas/section.schema.json +0 -0
  186. /package/{vendors/clio-extension → pancode/extension}/project/schemas/source.schema.json +0 -0
  187. /package/{vendors/clio-extension → pancode/extension}/project/schemas/state.schema.json +0 -0
  188. /package/{vendors/clio-extension → pancode/extension}/project/schemas/validation.schema.json +0 -0
  189. /package/{vendors/clio-extension → pancode/extension}/project/templates/checkpoint.json +0 -0
  190. /package/{vendors/clio-extension → pancode/extension}/project/templates/config.json +0 -0
  191. /package/{vendors/clio-extension → pancode/extension}/project/templates/decisions.json +0 -0
  192. /package/{vendors/clio-extension → pancode/extension}/project/templates/evidence.json +0 -0
  193. /package/{vendors/clio-extension → pancode/extension}/project/templates/interaction.json +0 -0
  194. /package/{vendors/clio-extension → pancode/extension}/project/templates/manifest.json +0 -0
  195. /package/{vendors/clio-extension → pancode/extension}/project/templates/outline.json +0 -0
  196. /package/{vendors/clio-extension → pancode/extension}/project/templates/section.json +0 -0
  197. /package/{vendors/clio-extension → pancode/extension}/project/templates/source.json +0 -0
  198. /package/{vendors/clio-extension → pancode/extension}/project/templates/state.json +0 -0
  199. /package/{vendors/clio-extension → pancode/extension}/project/templates/validation.json +0 -0
  200. /package/{vendors/clio-extension → pancode/extension}/runtime/json-schema.cjs +0 -0
  201. /package/{vendors/clio-extension → pancode/extension}/runtime/package.json +0 -0
  202. /package/{vendors/clio-extension → pancode/extension}/skins/wtfp.json +0 -0
  203. /package/{vendors → pancode}/plugin/actions/add-todo.json +0 -0
  204. /package/{vendors → pancode}/plugin/actions/advance.json +0 -0
  205. /package/{vendors → pancode}/plugin/actions/analyze-bib.json +0 -0
  206. /package/{vendors → pancode}/plugin/actions/audit-milestone.json +0 -0
  207. /package/{vendors → pancode}/plugin/actions/check-refs.json +0 -0
  208. /package/{vendors → pancode}/plugin/actions/check-todos.json +0 -0
  209. /package/{vendors → pancode}/plugin/actions/checkpoint.json +0 -0
  210. /package/{vendors → pancode}/plugin/actions/contribute.json +0 -0
  211. /package/{vendors → pancode}/plugin/actions/create-outline.json +0 -0
  212. /package/{vendors → pancode}/plugin/actions/create-poster.json +0 -0
  213. /package/{vendors → pancode}/plugin/actions/create-slides.json +0 -0
  214. /package/{vendors → pancode}/plugin/actions/discuss-section.json +0 -0
  215. /package/{vendors → pancode}/plugin/actions/execute-outline.json +0 -0
  216. /package/{vendors → pancode}/plugin/actions/export-latex.json +0 -0
  217. /package/{vendors → pancode}/plugin/actions/help.json +0 -0
  218. /package/{vendors → pancode}/plugin/actions/insert-section.json +0 -0
  219. /package/{vendors → pancode}/plugin/actions/list-assumptions.json +0 -0
  220. /package/{vendors → pancode}/plugin/actions/map-project.json +0 -0
  221. /package/{vendors → pancode}/plugin/actions/new-paper.json +0 -0
  222. /package/{vendors → pancode}/plugin/actions/pause-writing.json +0 -0
  223. /package/{vendors → pancode}/plugin/actions/plan-milestone-gaps.json +0 -0
  224. /package/{vendors → pancode}/plugin/actions/plan-revision.json +0 -0
  225. /package/{vendors → pancode}/plugin/actions/plan-section.json +0 -0
  226. /package/{vendors → pancode}/plugin/actions/polish-prose.json +0 -0
  227. /package/{vendors → pancode}/plugin/actions/progress.json +0 -0
  228. /package/{vendors → pancode}/plugin/actions/quick.json +0 -0
  229. /package/{vendors → pancode}/plugin/actions/remove-section.json +0 -0
  230. /package/{vendors → pancode}/plugin/actions/report-bug.json +0 -0
  231. /package/{vendors → pancode}/plugin/actions/request-feature.json +0 -0
  232. /package/{vendors → pancode}/plugin/actions/research-gap.json +0 -0
  233. /package/{vendors → pancode}/plugin/actions/resume-writing.json +0 -0
  234. /package/{vendors → pancode}/plugin/actions/review-section.json +0 -0
  235. /package/{vendors → pancode}/plugin/actions/settings.json +0 -0
  236. /package/{vendors → pancode}/plugin/actions/submit-milestone.json +0 -0
  237. /package/{vendors → pancode}/plugin/actions/update.json +0 -0
  238. /package/{vendors → pancode}/plugin/actions/verify-work.json +0 -0
  239. /package/{vendors → pancode}/plugin/actions/write-section.json +0 -0
  240. /package/{vendors → pancode}/plugin/aliases.lock.json +0 -0
  241. /package/{vendors → pancode}/plugin/catalog.json +0 -0
  242. /package/{vendors/claude/ai.iowarp.clio/fleets → pancode/plugin/dev.pancode/playbooks}/wtfp-plan-section.md +0 -0
  243. /package/{vendors → pancode}/plugin/effects.json +0 -0
  244. /package/{vendors → pancode}/plugin/project/README.md +0 -0
  245. /package/{vendors → pancode}/plugin/project/schemas/checkpoint.schema.json +0 -0
  246. /package/{vendors → pancode}/plugin/project/schemas/common.schema.json +0 -0
  247. /package/{vendors → pancode}/plugin/project/schemas/config.schema.json +0 -0
  248. /package/{vendors → pancode}/plugin/project/schemas/decisions.schema.json +0 -0
  249. /package/{vendors → pancode}/plugin/project/schemas/evidence.schema.json +0 -0
  250. /package/{vendors → pancode}/plugin/project/schemas/interaction.schema.json +0 -0
  251. /package/{vendors → pancode}/plugin/project/schemas/manifest.schema.json +0 -0
  252. /package/{vendors → pancode}/plugin/project/schemas/outline.schema.json +0 -0
  253. /package/{vendors → pancode}/plugin/project/schemas/section.schema.json +0 -0
  254. /package/{vendors → pancode}/plugin/project/schemas/source.schema.json +0 -0
  255. /package/{vendors → pancode}/plugin/project/schemas/state.schema.json +0 -0
  256. /package/{vendors → pancode}/plugin/project/schemas/validation.schema.json +0 -0
  257. /package/{vendors → pancode}/plugin/project/templates/checkpoint.json +0 -0
  258. /package/{vendors → pancode}/plugin/project/templates/config.json +0 -0
  259. /package/{vendors → pancode}/plugin/project/templates/decisions.json +0 -0
  260. /package/{vendors → pancode}/plugin/project/templates/evidence.json +0 -0
  261. /package/{vendors → pancode}/plugin/project/templates/interaction.json +0 -0
  262. /package/{vendors → pancode}/plugin/project/templates/manifest.json +0 -0
  263. /package/{vendors → pancode}/plugin/project/templates/outline.json +0 -0
  264. /package/{vendors → pancode}/plugin/project/templates/section.json +0 -0
  265. /package/{vendors → pancode}/plugin/project/templates/source.json +0 -0
  266. /package/{vendors → pancode}/plugin/project/templates/state.json +0 -0
  267. /package/{vendors → pancode}/plugin/project/templates/validation.json +0 -0
  268. /package/{vendors → pancode}/plugin/roles/argument-verifier.md +0 -0
  269. /package/{vendors → pancode}/plugin/roles/citation-expert.md +0 -0
  270. /package/{vendors → pancode}/plugin/roles/citation-formatter.md +0 -0
  271. /package/{vendors → pancode}/plugin/roles/coherence-checker.md +0 -0
  272. /package/{vendors → pancode}/plugin/roles/outliner.md +0 -0
  273. /package/{vendors → pancode}/plugin/roles/plan-checker.md +0 -0
  274. /package/{vendors → pancode}/plugin/roles/prose-polisher.md +0 -0
  275. /package/{vendors → pancode}/plugin/roles/research-synthesizer.md +0 -0
  276. /package/{vendors → pancode}/plugin/roles/section-planner.md +0 -0
  277. /package/{vendors → pancode}/plugin/roles/section-reviewer.md +0 -0
  278. /package/{vendors → pancode}/plugin/roles/section-writer.md +0 -0
  279. /package/{vendors → pancode}/plugin/schemas/action.schema.json +0 -0
  280. /package/{vendors → pancode}/plugin/schemas/aliases.schema.json +0 -0
  281. /package/{vendors → pancode}/plugin/schemas/catalog.schema.json +0 -0
  282. /package/{vendors → pancode}/plugin/schemas/effects.schema.json +0 -0
  283. /package/{vendors → pancode}/plugin/schemas/role-result.schema.json +0 -0
  284. /package/{vendors → pancode}/plugin/schemas/tools.schema.json +0 -0
  285. /package/{vendors → pancode}/plugin/skills/wtfp-deliver-research/SKILL.md +0 -0
  286. /package/{vendors → pancode}/plugin/skills/wtfp-deliver-research/agents/openai.yaml +0 -0
  287. /package/{vendors → pancode}/plugin/skills/wtfp-deliver-research/references/actions.md +0 -0
  288. /package/{vendors → pancode}/plugin/skills/wtfp-manage-project/SKILL.md +0 -0
  289. /package/{vendors → pancode}/plugin/skills/wtfp-manage-project/agents/openai.yaml +0 -0
  290. /package/{vendors → pancode}/plugin/skills/wtfp-manage-project/references/actions.md +0 -0
  291. /package/{vendors → pancode}/plugin/skills/wtfp-plan-section/SKILL.md +0 -0
  292. /package/{vendors → pancode}/plugin/skills/wtfp-plan-section/agents/openai.yaml +0 -0
  293. /package/{vendors → pancode}/plugin/skills/wtfp-research-literature/SKILL.md +0 -0
  294. /package/{vendors → pancode}/plugin/skills/wtfp-research-literature/agents/openai.yaml +0 -0
  295. /package/{vendors → pancode}/plugin/skills/wtfp-research-literature/references/actions.md +0 -0
  296. /package/{vendors → pancode}/plugin/skills/wtfp-review-manuscript/SKILL.md +0 -0
  297. /package/{vendors → pancode}/plugin/skills/wtfp-review-manuscript/agents/openai.yaml +0 -0
  298. /package/{vendors → pancode}/plugin/skills/wtfp-review-manuscript/references/actions.md +0 -0
  299. /package/{vendors → pancode}/plugin/skills/wtfp-start-project/SKILL.md +0 -0
  300. /package/{vendors → pancode}/plugin/skills/wtfp-start-project/agents/openai.yaml +0 -0
  301. /package/{vendors → pancode}/plugin/skills/wtfp-start-project/references/actions.md +0 -0
  302. /package/{vendors → pancode}/plugin/skills/wtfp-write-section/SKILL.md +0 -0
  303. /package/{vendors → pancode}/plugin/skills/wtfp-write-section/agents/openai.yaml +0 -0
  304. /package/{vendors → pancode}/plugin/skills/wtfp-write-section/references/actions.md +0 -0
  305. /package/{vendors → pancode}/plugin/templates/README.md +0 -0
  306. /package/{vendors → pancode}/plugin/templates/grant-proposal-outline.md +0 -0
  307. /package/{vendors → pancode}/plugin/templates/paper-outline.md +0 -0
  308. /package/{vendors → pancode}/plugin/templates/poster.md +0 -0
  309. /package/{vendors → pancode}/plugin/templates/slides.md +0 -0
  310. /package/{vendors → pancode}/plugin/tools/README.md +0 -0
  311. /package/{vendors → pancode}/plugin/tools/bibliography/analyze-impact.js +0 -0
  312. /package/{vendors → pancode}/plugin/tools/bibliography/format.js +0 -0
  313. /package/{vendors → pancode}/plugin/tools/bibliography/index.js +0 -0
  314. /package/{vendors → pancode}/plugin/tools/citation/fetch.js +0 -0
  315. /package/{vendors → pancode}/plugin/tools/citation/rank.js +0 -0
  316. /package/{vendors → pancode}/plugin/tools/citation/scholar-lookup.js +0 -0
  317. /package/{vendors → pancode}/plugin/tools/citation/semantic-scholar.js +0 -0
  318. /package/{vendors → pancode}/plugin/tools/package.json +0 -0
  319. /package/{vendors → pancode}/plugin/tools/support/cite-nexus-client.js +0 -0
  320. /package/{vendors → pancode}/plugin/tools/wtfp-tool.js +0 -0
  321. /package/{vendors → pancode}/plugin/tools.json +0 -0
  322. /package/{vendors → pancode}/plugin/workflows/add-todo.md +0 -0
  323. /package/{vendors → pancode}/plugin/workflows/advance.md +0 -0
  324. /package/{vendors → pancode}/plugin/workflows/analyze-bib.md +0 -0
  325. /package/{vendors → pancode}/plugin/workflows/audit-milestone.md +0 -0
  326. /package/{vendors → pancode}/plugin/workflows/check-refs.md +0 -0
  327. /package/{vendors → pancode}/plugin/workflows/check-todos.md +0 -0
  328. /package/{vendors → pancode}/plugin/workflows/checkpoint.md +0 -0
  329. /package/{vendors → pancode}/plugin/workflows/contribute.md +0 -0
  330. /package/{vendors → pancode}/plugin/workflows/create-outline.md +0 -0
  331. /package/{vendors → pancode}/plugin/workflows/create-poster.md +0 -0
  332. /package/{vendors → pancode}/plugin/workflows/create-slides.md +0 -0
  333. /package/{vendors → pancode}/plugin/workflows/discuss-section.md +0 -0
  334. /package/{vendors → pancode}/plugin/workflows/execute-outline.md +0 -0
  335. /package/{vendors → pancode}/plugin/workflows/export-latex.md +0 -0
  336. /package/{vendors → pancode}/plugin/workflows/help.md +0 -0
  337. /package/{vendors → pancode}/plugin/workflows/insert-section.md +0 -0
  338. /package/{vendors → pancode}/plugin/workflows/list-assumptions.md +0 -0
  339. /package/{vendors → pancode}/plugin/workflows/map-project.md +0 -0
  340. /package/{vendors → pancode}/plugin/workflows/new-paper.md +0 -0
  341. /package/{vendors → pancode}/plugin/workflows/pause-writing.md +0 -0
  342. /package/{vendors → pancode}/plugin/workflows/plan-milestone-gaps.md +0 -0
  343. /package/{vendors → pancode}/plugin/workflows/plan-revision.md +0 -0
  344. /package/{vendors → pancode}/plugin/workflows/plan-section.md +0 -0
  345. /package/{vendors → pancode}/plugin/workflows/polish-prose.md +0 -0
  346. /package/{vendors → pancode}/plugin/workflows/progress.md +0 -0
  347. /package/{vendors → pancode}/plugin/workflows/quick.md +0 -0
  348. /package/{vendors → pancode}/plugin/workflows/remove-section.md +0 -0
  349. /package/{vendors → pancode}/plugin/workflows/report-bug.md +0 -0
  350. /package/{vendors → pancode}/plugin/workflows/request-feature.md +0 -0
  351. /package/{vendors → pancode}/plugin/workflows/research-gap.md +0 -0
  352. /package/{vendors → pancode}/plugin/workflows/resume-writing.md +0 -0
  353. /package/{vendors → pancode}/plugin/workflows/review-section.md +0 -0
  354. /package/{vendors → pancode}/plugin/workflows/settings.md +0 -0
  355. /package/{vendors → pancode}/plugin/workflows/submit-milestone.md +0 -0
  356. /package/{vendors → pancode}/plugin/workflows/update.md +0 -0
  357. /package/{vendors → pancode}/plugin/workflows/verify-work.md +0 -0
  358. /package/{vendors → pancode}/plugin/workflows/write-section.md +0 -0
  359. /package/vendors/{plugin/ai.iowarp.clio/playbooks → claude/dev.pancode/fleets}/wtfp-plan-section.md +0 -0
  360. /package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/add-todo.md +0 -0
  361. /package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/list-assumptions.md +0 -0
  362. /package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/map-project.md +0 -0
  363. /package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/pause-writing.md +0 -0
@@ -7,8 +7,8 @@ const { GENERATOR_VERSION } = require('./adapter-metadata');
7
7
 
8
8
  const ROOT = path.resolve(__dirname, '../..');
9
9
  const PROTOCOL_ROOT = path.join(ROOT, 'protocol');
10
- // Human-edited source of the standalone Clio extension; see clio/README.md.
11
- const CLIO_RUNTIME_ROOT = path.join(ROOT, 'clio');
10
+ // Human-edited source of the standalone PanCode extension; see hosts/pancode/README.md.
11
+ const PANCODE_RUNTIME_ROOT = path.join(ROOT, 'hosts', 'pancode');
12
12
  const INVENTORY_NAME = '.wtfp-generated.json';
13
13
 
14
14
  const TARGET_ROOTS = Object.freeze({
@@ -20,11 +20,11 @@ const TARGET_ROOTS = Object.freeze({
20
20
  gemini: path.join(ROOT, 'vendors', 'gemini')
21
21
  });
22
22
 
23
- // Clio is a capability policy, not a separate on-disk envelope. Its projection
24
- // is staged in memory and emitted only inside the canonical `vendors/plugin`
25
- // bundle under `ai.iowarp.clio/`. `copilot-cloud` is likewise a policy for the
23
+ // PanCode is a capability policy, not a separate on-disk envelope. Its projection
24
+ // is staged in memory and emitted only inside the canonical `pancode/plugin`
25
+ // bundle under `dev.pancode/`. `copilot-cloud` is likewise a policy for the
26
26
  // repository projection carried by the Copilot marketplace envelope.
27
- const POLICY_TARGET_IDS = Object.freeze([...Object.keys(TARGET_ROOTS), 'clio', 'copilot-cloud']);
27
+ const POLICY_TARGET_IDS = Object.freeze([...Object.keys(TARGET_ROOTS), 'pancode', 'copilot-cloud']);
28
28
 
29
29
  const CAPABILITY_IDS = Object.freeze([
30
30
  'agent.delegate',
@@ -75,31 +75,31 @@ const EFFECT_CAPABILITY_BINDINGS = Object.freeze({
75
75
  // `protocol/tools.json` through the single `tools/wtfp-tool.js` dispatcher that
76
76
  // every envelope carries. It is never a grant for an arbitrary external
77
77
  // toolchain, so a host binds it only when its shell tool name is verified.
78
- // Clio's `network.search` is bound to the same executor because the only
78
+ // PanCode's `network.search` is bound to the same executor because the only
79
79
  // scholarly search WTF-P declares is the bundled Semantic Scholar / Google
80
- // Scholar client; Clio exposes `web_fetch` but no native web-search tool.
80
+ // Scholar client; PanCode exposes `web_fetch` but no native web-search tool.
81
81
  //
82
82
  // `workflow.drive` is a host driver that selects each next step from portable
83
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
84
+ // PanCode desk provides one (`extension_wtfp__next_step`), so `advance` fails
85
85
  // closed everywhere else instead of letting a model choose its own steps.
86
86
  const TARGET_POLICIES = Object.freeze({
87
- clio: Object.freeze({ capabilities: Object.freeze({
88
- 'agent.delegate': 'clio:plugin-agent',
89
- 'agent.parallel': 'clio:fleet',
87
+ pancode: Object.freeze({ capabilities: Object.freeze({
88
+ 'agent.delegate': 'pancode:plugin-agent',
89
+ 'agent.parallel': 'pancode:fleet',
90
90
  'external.issue': null,
91
91
  'filesystem.delete': null,
92
- 'filesystem.read': 'clio:workspace-read',
93
- 'filesystem.write': 'clio:workspace-write',
94
- 'network.fetch': 'clio:web_fetch',
95
- 'network.search': 'clio:bash-bundled-citation-tools',
92
+ 'filesystem.read': 'pancode:workspace-read',
93
+ 'filesystem.write': 'pancode:workspace-write',
94
+ 'network.fetch': 'pancode:web_fetch',
95
+ 'network.search': 'pancode:bash-bundled-citation-tools',
96
96
  'package.update': null,
97
- 'tool.execute': 'clio:bash',
98
- 'user.interaction': 'clio:ask_user',
97
+ 'tool.execute': 'pancode:bash',
98
+ 'user.interaction': 'pancode:ask_user',
99
99
  'vcs.branch': null,
100
100
  'vcs.commit': null,
101
- 'workflow.drive': 'clio:wtfp-desk-driver'
102
- }), approvals: Object.freeze({ none: 'clio:permission-policy', implicit: 'clio:permission-policy', explicit: 'clio:ask_user' }) }),
101
+ 'workflow.drive': 'pancode:wtfp-desk-driver'
102
+ }), approvals: Object.freeze({ none: 'pancode:permission-policy', implicit: 'pancode:permission-policy', explicit: 'pancode:ask_user' }) }),
103
103
  claude: Object.freeze({ capabilities: Object.freeze({
104
104
  'agent.delegate': 'claude:Task',
105
105
  'agent.parallel': 'claude:Task',
@@ -217,15 +217,15 @@ const TARGET_POLICIES = Object.freeze({
217
217
  // Availability says that a target has a native binding for every required
218
218
  // capability and effect. It does not imply that every host can narrow its
219
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
220
+ // evaluation cannot mistake a declaration for enforcement. PanCode prompts
221
+ // declare allowed-tools and delegated-tools per action, and PanCode, which
222
222
  // the desk requires, narrows a template turn to them and caps its workers.
223
223
  const TARGET_HOST_TOOL_ENFORCEMENT = Object.freeze({
224
- clio: Object.freeze({
224
+ pancode: Object.freeze({
225
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`.
226
+ surface: 'pancode:template-allowed-tools',
227
+ // PanCode has two autonomy levels; the earlier read-only and suggest
228
+ // spellings the projection was certified under now read as `default`.
229
229
  certificationAutonomy: Object.freeze(['default']),
230
230
  undeclaredToolCall: 'fail'
231
231
  })
@@ -469,7 +469,7 @@ function nativeWorkflowBody(workflowBody, target) {
469
469
  : '$ARGUMENTS';
470
470
  body = body.replaceAll('{{arguments}}', argumentToken);
471
471
 
472
- if (target === 'clio') {
472
+ if (target === 'pancode') {
473
473
  body = body.replaceAll('protocol://', '${pluginRoot}/');
474
474
  } else if (target === 'claude' || target === 'copilot') {
475
475
  body = body.replaceAll('protocol://', '${CLAUDE_PLUGIN_ROOT}/');
@@ -523,10 +523,10 @@ function projectSchemasForAction(action) {
523
523
  }
524
524
 
525
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
526
+ // reads, outputs, conditions, gates and roles. Reading the file would cost PanCode
527
527
  // a round trip that resends the whole context for no new fact, so the prompt
528
528
  // names it only for an exact lookup.
529
- function clioBoundContract(action) {
529
+ function pancodeBoundContract(action) {
530
530
  return action.requirements.capabilities.includes('workflow.drive')
531
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
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.`;
@@ -541,7 +541,7 @@ function nativeCommandBody(action, workflowBody, target, deskTools = false) {
541
541
  const schemas = projectSchemasForAction(action);
542
542
  const protocolIncludes = [
543
543
  deskTools
544
- ? clioBoundContract(action)
544
+ ? pancodeBoundContract(action)
545
545
  : `@protocol://actions/${action.id}.json`,
546
546
  ...(!deskTools && schemas.length > 0 ? ['@protocol://project/schemas/common.schema.json'] : []),
547
547
  ...(!deskTools ? schemas : []).flatMap((schema) => [
@@ -551,7 +551,7 @@ function nativeCommandBody(action, workflowBody, target, deskTools = false) {
551
551
  ];
552
552
  return [
553
553
  nativeWorkflowBody([
554
- deskTools ? clioDeskWorkflowBody(action, workflowBody) : workflowBody,
554
+ deskTools ? pancodeDeskWorkflowBody(action, workflowBody) : workflowBody,
555
555
  '',
556
556
  deskTools || schemas.length === 0 ? '## Bound action contract' : '## Bound action contract and schemas',
557
557
  '',
@@ -636,9 +636,9 @@ function generatedScriptBanner(kind, id) {
636
636
  return `// Generated by WTF-P adapter compiler v${GENERATOR_VERSION} from ${kind}/${id}; do not edit.`;
637
637
  }
638
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.';
639
+ const PANCODE_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`; PanCode refuses an `operator_only` question sent with others. PanCode 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
640
 
641
- function clioUserGateBody(action, deskTools = false) {
641
+ function pancodeUserGateBody(action, deskTools = false) {
642
642
  if (!action.effects.some((effect) => effect.id === 'user.gate')) return '';
643
643
  // A local model tried every branch of a two-way rule in turn; state only the one this action can take.
644
644
  const createsCheckpoint = action.produces.some((output) => output.uri === 'project://checkpoints/{checkpoint}' && output.mode === 'create');
@@ -646,56 +646,56 @@ function clioUserGateBody(action, deskTools = false) {
646
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. The gate is the only place its question is asked: never ask it, or a preview of it, with `ask_user`, or the author answers twice.'
647
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.';
648
648
  if (deskTools) return [
649
- '## Clio user-gate binding',
649
+ '## PanCode user-gate binding',
650
650
  '',
651
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
652
  '',
653
- CLIO_AUTHOR_QUESTIONS
653
+ PANCODE_AUTHOR_QUESTIONS
654
654
  ].join('\n');
655
655
  return [
656
- '## Clio user-gate binding',
656
+ '## PanCode user-gate binding',
657
657
  '',
658
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
659
  '',
660
- CLIO_AUTHOR_QUESTIONS
660
+ PANCODE_AUTHOR_QUESTIONS
661
661
  ].join('\n');
662
662
  }
663
663
 
664
- // Whether an action writes portable JSON records, which on Clio only the desk's
664
+ // Whether an action writes portable JSON records, which on PanCode only the desk's
665
665
  // record tool may do. An action that writes none reads records through the desk
666
666
  // and needs neither the record tool nor the schemas a writer validates against.
667
- function clioRecordWriter(action) {
667
+ function pancodeRecordWriter(action) {
668
668
  return action.produces.some((output) =>
669
669
  /^project:\/\/(?:manifest|config|state|decisions|structure\/outline|(?:sections|sources|evidence|checkpoints|validations)\/[^/]+)$/.test(output.uri));
670
670
  }
671
671
 
672
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
673
+ // action that produces no file has no root it may hold: PanCode reads an empty
674
674
  // write_roots as unbounded and the desk refuses it. The main agent does that
675
675
  // role's work itself. Read-only reviewers still dispatch.
676
- function clioInlineRoles(action, reviewers, deskTools) {
676
+ function pancodeInlineRoles(action, reviewers, deskTools) {
677
677
  if (!deskTools) return [];
678
678
  const recordOnly = action.produces.every((output) =>
679
679
  /^project:\/\/(?:manifest|config|state|decisions|structure\/outline|(?:sections|sources|evidence|checkpoints|validations)\/[^/]+)$/.test(output.uri));
680
680
  return recordOnly ? action.delegation.map((entry) => entry.role).filter((role) => !reviewers.has(role)) : [];
681
681
  }
682
682
 
683
- // The desk tools one Clio prompt's turn holds: a record writer gets every
683
+ // The desk tools one PanCode prompt's turn holds: a record writer gets every
684
684
  // record tool, a reader only what reads, and a gate only where it declares one.
685
685
  const archives = (action) => action.produces.some((output) => output.mode === 'archive' && output.uri.startsWith('project://archives/'));
686
686
 
687
- function clioDeskTools(action) {
688
- if (clioRecordWriter(action)) return [...CLIO_DESK_TOOLS, ...(archives(action) ? ['extension_wtfp__archive'] : [])];
687
+ function pancodeDeskTools(action) {
688
+ if (pancodeRecordWriter(action)) return [...PANCODE_DESK_TOOLS, ...(archives(action) ? ['extension_wtfp__archive'] : [])];
689
689
  const tools = ['status', 'read_record', 'readiness'];
690
690
  if (action.effects.some((effect) => effect.id === 'user.gate')) tools.push('gate');
691
691
  return tools.map((tool) => `extension_wtfp__${tool}`);
692
692
  }
693
693
 
694
- // Only the canonical Clio namespace prefers the optional desk. The unrooted
694
+ // Only the canonical PanCode namespace prefers the optional desk. The unrooted
695
695
  // phase-1 projection remains intact for the Claude envelope and other hosts.
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
696
+ function pancodeDeskWorkflowBody(action, workflowBody) {
697
+ const writer = pancodeRecordWriter(action);
698
+ // PanCode re-sends an inlined file with every request and never pins it across
699
699
  // compaction; a skill loaded through context survives compaction, and a file
700
700
  // read with the read tool can be evicted once used.
701
701
  let body = workflowBody
@@ -717,11 +717,11 @@ function clioDeskWorkflowBody(action, workflowBody) {
717
717
  if (action.requirements.capabilities.includes('workflow.drive')) {
718
718
  const contract = /^## Record contract\n[\s\S]*?(?=^## Procedure$)/m;
719
719
  if (!contract.test(body)) throw new Error(`${action.id}: no record contract section to project`);
720
- 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()}`;
720
+ 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${pancodeDriverBinding()}`;
721
721
  }
722
722
  const bindings = [
723
- clioDeskCalls(clioDeskTools(action)),
724
- '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
+ pancodeDeskCalls(pancodeDeskTools(action)),
724
+ 'Read a large source or manuscript by section with `grep` and a bounded `read` range, never whole: PanCode ends the turn when one turn\'s reads exceed its observation budget.',
725
725
  '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.',
726
726
  '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.',
727
727
  ...(action.produces.some((output) => output.uri.startsWith('project://paper'))
@@ -737,7 +737,7 @@ function clioDeskWorkflowBody(action, workflowBody) {
737
737
 
738
738
  // Argument shapes for the desk tools. A gateway describe resends the whole
739
739
  // context, so a prompt that states the shapes lets the model call at once.
740
- const CLIO_DESK_ARGS = Object.freeze({
740
+ const PANCODE_DESK_ARGS = Object.freeze({
741
741
  status: '{}',
742
742
  next_step: '{after}',
743
743
  read_record: '{uri}',
@@ -748,26 +748,26 @@ const CLIO_DESK_ARGS = Object.freeze({
748
748
  record: '{uri, record: {<every field of the record>}, expect_revision|expect_sha256} or {writes:[{uri, record, expect_...}]}, with no record field outside `record`'
749
749
  });
750
750
 
751
- function clioDeskCalls(tools) {
751
+ function pancodeDeskCalls(tools) {
752
752
  const args = tools.map((tool) => {
753
753
  const name = tool.replace(/^extension_wtfp__/, '');
754
- if (!(name in CLIO_DESK_ARGS)) throw new Error(`no Clio argument shape for desk tool ${tool}`);
755
- return `${name} ${CLIO_DESK_ARGS[name]}`;
754
+ if (!(name in PANCODE_DESK_ARGS)) throw new Error(`no PanCode argument shape for desk tool ${tool}`);
755
+ return `${name} ${PANCODE_DESK_ARGS[name]}`;
756
756
  });
757
757
  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\`.`;
758
758
  }
759
759
 
760
- // The Clio projection of the workflow.drive capability. The desk, not the
760
+ // The PanCode projection of the workflow.drive capability. The desk, not the
761
761
  // model, picks each step and arms the write guard for exactly that action.
762
- function clioDriverBinding() {
762
+ function pancodeDriverBinding() {
763
763
  return [
764
- '## Clio driver binding',
764
+ '## PanCode driver binding',
765
765
  '',
766
- `${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.`,
766
+ `${pancodeDeskCalls([...PANCODE_DESK_TOOLS, PANCODE_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.`,
767
767
  '',
768
- '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:',
768
+ '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"`; PanCode\'s loop guard reads repeated identical calls as a loop. Its result names exactly one of:',
769
769
  '',
770
- '- `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.',
770
+ '- `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}/dev.pancode/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.',
771
771
  '- `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.',
772
772
  '- `stop`: the reason the run ends. Report it with the steps taken and end the turn.',
773
773
  '',
@@ -775,10 +775,10 @@ function clioDriverBinding() {
775
775
  ].join('\n');
776
776
  }
777
777
 
778
- function clioResearchConnectionBody(action) {
778
+ function pancodeResearchConnectionBody(action) {
779
779
  if (action.id !== 'research-gap') return '';
780
780
  return [
781
- '## Clio CiteNexus binding',
781
+ '## PanCode CiteNexus binding',
782
782
  '',
783
783
  '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.'
784
784
  ].join('\n');
@@ -812,11 +812,11 @@ function helpArgumentHint(action) {
812
812
  return '[input]';
813
813
  }
814
814
 
815
- // Clio renders a display-only prompt by printing its first fenced block to the
815
+ // PanCode renders a display-only prompt by printing its first fenced block to the
816
816
  // operator without a model call. The block is a self-contained reference:
817
817
  // no includes, no procedure, only what a human needs to pick the next action.
818
818
  // `legacyFleetNames` renders the pre-playbook wording the Claude envelope keeps.
819
- function clioHelpCard(model, availabilityById, legacyFleetNames = false) {
819
+ function pancodeHelpCard(model, availabilityById, legacyFleetNames = false) {
820
820
  const byId = new Map(model.actions.map((action) => [action.id, action]));
821
821
  const line = (id) => {
822
822
  const action = byId.get(id);
@@ -824,7 +824,7 @@ function clioHelpCard(model, availabilityById, legacyFleetNames = false) {
824
824
  const availability = availabilityById.get(id);
825
825
  const blocked = availability.available
826
826
  ? ''
827
- : ` [unavailable on clio: ${[...new Set([...availability.unavailableCapabilities, ...availability.unavailableEffects])].join(', ')}]`;
827
+ : ` [unavailable on pancode: ${[...new Set([...availability.unavailableCapabilities, ...availability.unavailableEffects])].join(', ')}]`;
828
828
  return ` /wtfp:${id} ${helpArgumentHint(action)}\n ${action.description}${blocked}`;
829
829
  };
830
830
  const groupIds = new Set(HELP_GROUP_ORDER.map(([id]) => id));
@@ -836,7 +836,7 @@ function clioHelpCard(model, availabilityById, legacyFleetNames = false) {
836
836
  .filter((file) => file.endsWith('.json')).sort()
837
837
  .map((file) => readJson(path.join(PROTOCOL_ROOT, 'fleets', file)));
838
838
  const card = [
839
- `WTF-P ${model.version} on Clio Coder: evidence-grounded academic writing`,
839
+ `WTF-P ${model.version} on PanCode: evidence-grounded academic writing`,
840
840
  '',
841
841
  'Start here',
842
842
  ...HELP_START_SEQUENCE.flatMap((id) => [
@@ -855,8 +855,8 @@ function clioHelpCard(model, availabilityById, legacyFleetNames = false) {
855
855
  ...model.catalog.operations.actions.map(line),
856
856
  '',
857
857
  legacyFleetNames
858
- ? 'Fleets (clio-coder fleet run <fleet> --var section=<section>; explicit fleet primitives, not auto-routed)'
859
- : 'Playbooks (clio-coder fleet run <playbook> --var section=<section>; run explicitly, never auto-routed)',
858
+ ? 'Fleets (pancode fleet run <fleet> --var section=<section>; explicit fleet primitives, not auto-routed)'
859
+ : 'Playbooks (pancode fleet run <playbook> --var section=<section>; run explicitly, never auto-routed)',
860
860
  ...playbooks.map((playbook) => ` ${playbook.id}\n ${playbook.description}`),
861
861
  '',
862
862
  'Each action reads .planning/ records and paper/ artifacts, asks before any gated write, and never runs Git or publishes.',
@@ -883,10 +883,10 @@ function renderMarkdownCommand(action, workflowBody, target, availability, deskT
883
883
  // Claude derives the stable command name from the plugin id and flat file
884
884
  // name. Repeating either in frontmatter creates names such as
885
885
  // /wtfp:wtfp:new-paper in current Claude Code releases.
886
- if (target !== 'clio' && target !== 'claude') lines.push(`name: wtfp:${action.id}`);
886
+ if (target !== 'pancode' && target !== 'claude') lines.push(`name: wtfp:${action.id}`);
887
887
  lines.push(`description: ${yamlScalar(action.description)}`);
888
888
  // Without the desk there is no driver to select steps; never let a model drive itself.
889
- if (availability.available && target === 'clio' && !deskTools && action.requirements.capabilities.includes('workflow.drive')) {
889
+ if (availability.available && target === 'pancode' && !deskTools && action.requirements.capabilities.includes('workflow.drive')) {
890
890
  availability = { ...availability, available: false, unavailableCapabilities: ['workflow.drive'], unavailableEffects: [] };
891
891
  }
892
892
  if (!availability.available) {
@@ -904,25 +904,25 @@ function renderMarkdownCommand(action, workflowBody, target, availability, deskT
904
904
  for (const tool of tools) lines.push(` - ${tool}`);
905
905
  }
906
906
  }
907
- if (target === 'clio') {
907
+ if (target === 'pancode') {
908
908
  lines.push('allowed-tools:');
909
- const inline = new Set(clioInlineRoles(action, reviewers, deskTools));
909
+ const inline = new Set(pancodeInlineRoles(action, reviewers, deskTools));
910
910
  const dispatched = { ...action, delegation: action.delegation.filter((entry) => !inline.has(entry.role)) };
911
- for (const tool of clioActionTools(dispatched, deskTools)) lines.push(` - ${tool}`);
912
- const delegated = clioDelegatedTools(dispatched, reviewers);
911
+ for (const tool of pancodeActionTools(dispatched, deskTools)) lines.push(` - ${tool}`);
912
+ const delegated = pancodeDelegatedTools(dispatched, reviewers);
913
913
  if (delegated.length > 0) {
914
914
  lines.push('delegated-tools:');
915
915
  for (const tool of delegated) lines.push(` - ${tool}`);
916
916
  }
917
917
  }
918
918
  const nativeBody = nativeCommandBody(action, workflowBody, target, deskTools);
919
- const clioRoles = action.delegation.map((entry) => `\`wtfp-${entry.role}\``).join(', ');
920
- // Clio refuses a read-only recipe a task it reads as a change; a task that reads as a review never is.
921
- const clioReviewers = action.delegation.filter((entry) => reviewers.has(entry.role)).map((entry) => `\`wtfp-${entry.role}\``);
922
- 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.` : '';
923
- const inlineRoles = target === 'clio' ? clioInlineRoles(action, reviewers, deskTools) : [];
924
- 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'}.` : '';
925
- 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. Clio's dispatch result calls such a run's validation failed when a check did not pass; that is the review's finding, not a failed run, so record it as the action's procedure says.` : ''} Validate its schema, role and action against the dispatched task. Missing, duplicate or malformed outcomes fail closed. On needs_input ask the author through ask_user and redispatch with the response; on blocked or failed stop and report the issue. Only completed permits downstream work, and it never substitutes for an author gate or artifact readback.` : ''].filter(Boolean).join('\n\n') : '';
919
+ const pancodeRoles = action.delegation.map((entry) => `\`wtfp-${entry.role}\``).join(', ');
920
+ // PanCode refuses a read-only recipe a task it reads as a change; a task that reads as a review never is.
921
+ const pancodeReviewers = action.delegation.filter((entry) => reviewers.has(entry.role)).map((entry) => `\`wtfp-${entry.role}\``);
922
+ const reviewerPhrasing = pancodeReviewers.length ? ` ${pancodeReviewers.join(', ')} ${pancodeReviewers.length === 1 ? 'is' : 'are'} read-only: begin each task for ${pancodeReviewers.length === 1 ? 'it' : 'them'} with "Review", because PanCode refuses a read-only agent a task it reads as a change.` : '';
923
+ const inlineRoles = target === 'pancode' ? pancodeInlineRoles(action, reviewers, deskTools) : [];
924
+ const inlineBody = inlineRoles.length ? `## PanCode role binding\n\nThis action writes only JSON records, which on PanCode 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'}.` : '';
925
+ const userGateBody = target === 'pancode' ? [pancodeUserGateBody(action, deskTools), pancodeResearchConnectionBody(action), inlineBody, action.delegation.length > inlineRoles.length ? `## PanCode role-result binding\n\nDispatch the declared specialist roles using these exact PanCode agent IDs: ${pancodeRoles}. 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 PanCode 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.${pancodeReviewers.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. PanCode's dispatch result calls such a run's validation failed when a check did not pass; that is the review's finding, not a failed run, so record it as the action's procedure says.` : ''} Validate its schema, role and action against the dispatched task. Missing, duplicate or malformed outcomes fail closed. On needs_input ask the author through ask_user and redispatch with the response; on blocked or failed stop and report the issue. Only completed permits downstream work, and it never substitutes for an author gate or artifact readback.` : ''].filter(Boolean).join('\n\n') : '';
926
926
  lines.push(
927
927
  '---',
928
928
  '',
@@ -1094,33 +1094,33 @@ function renderCopilotCloudRole(role, slug) {
1094
1094
  ].join('\n');
1095
1095
  }
1096
1096
 
1097
- // The tools a Clio role recipe declares. Verifier roles judge text and run
1098
- // nothing, so their recipes are Clio's read-only class: no write, no shell and
1097
+ // The tools a PanCode role recipe declares. Verifier roles judge text and run
1098
+ // nothing, so their recipes are PanCode's read-only class: no write, no shell and
1099
1099
  // no verify, whose checks run commands from files a writer could have planted.
1100
- // Clio refuses a skill load in a read-only run, so they bind none; the recipe
1100
+ // PanCode refuses a skill load in a read-only run, so they bind none; the recipe
1101
1101
  // body is the role's whole contract, and the orchestrator holds the action's skill.
1102
- function clioRoleTools(verifier) {
1102
+ function pancodeRoleTools(verifier) {
1103
1103
  return verifier
1104
1104
  ? { required: ['read'], optional: ['context', 'grep', 'find', 'ls', 'ledger'] }
1105
1105
  : { required: ['read', 'context', 'limitation', { anyOf: ['write', 'edit'] }], optional: ['grep', 'find', 'ls', 'ledger'] };
1106
1106
  }
1107
1107
 
1108
- function clioToolList(entries) {
1108
+ function pancodeToolList(entries) {
1109
1109
  return `[${entries.map((entry) => (typeof entry === 'string' ? entry : `{anyOf: [${entry.anyOf.join(', ')}]}`)).join(', ')}]`;
1110
1110
  }
1111
1111
 
1112
- const CLIO_DESK_TOOLS = Object.freeze(['status', 'record', 'read_record', 'readiness', 'measure_section', 'gate'].map((tool) => `extension_wtfp__${tool}`));
1112
+ const PANCODE_DESK_TOOLS = Object.freeze(['status', 'record', 'read_record', 'readiness', 'measure_section', 'gate'].map((tool) => `extension_wtfp__${tool}`));
1113
1113
  // Held only by actions that require workflow.drive: the desk arms each step itself.
1114
- const CLIO_DRIVER_TOOL = 'extension_wtfp__next_step';
1114
+ const PANCODE_DRIVER_TOOL = 'extension_wtfp__next_step';
1115
1115
  // The CiteNexus lookups the research binding calls, under the server id CiteNexus documents.
1116
- const CLIO_CITE_NEXUS_TOOLS = Object.freeze(['search-papers', 'resolve-paper', 'verify-citation', 'get-citation'].map((tool) => `mcp_cite-nexus__${tool}`));
1116
+ const PANCODE_CITE_NEXUS_TOOLS = Object.freeze(['search-papers', 'resolve-paper', 'verify-citation', 'get-citation'].map((tool) => `mcp_cite-nexus__${tool}`));
1117
1117
 
1118
- // The tools one Clio prompt's turn may hold (allowed-tools), from the Clio
1119
- // bindings of the action's declared capabilities. Clio 0.6.3 narrows a
1120
- // template turn to them; 0.6.2 ignores the field. Only the bundled citation
1118
+ // The tools one PanCode prompt's turn may hold (allowed-tools), from the PanCode
1119
+ // bindings of the action's declared capabilities. PanCode narrows a
1120
+ // template turn to them. Only the bundled citation
1121
1121
  // dispatcher needs a shell, so an action holds bash only when it declares
1122
1122
  // tool.execute or network.search, and never run_script, job, git or verify.
1123
- function clioActionTools(action, deskTools) {
1123
+ function pancodeActionTools(action, deskTools) {
1124
1124
  const capabilities = new Set(action.requirements.capabilities);
1125
1125
  const tools = ['read', 'grep', 'find', 'ls', 'context'];
1126
1126
  if (capabilities.has('filesystem.write') || capabilities.has('filesystem.delete')) tools.push('write', 'edit');
@@ -1128,22 +1128,22 @@ function clioActionTools(action, deskTools) {
1128
1128
  if ((capabilities.has('agent.delegate') || capabilities.has('agent.parallel')) && action.delegation.length > 0) tools.push('dispatch', 'monitor');
1129
1129
  if (capabilities.has('network.fetch')) tools.push('web_fetch');
1130
1130
  if (capabilities.has('tool.execute') || capabilities.has('network.search')) tools.push('bash');
1131
- if (deskTools) tools.push(...clioDeskTools(action));
1132
- if (deskTools && capabilities.has('workflow.drive')) tools.push(CLIO_DRIVER_TOOL);
1133
- // Clio admits an MCP server's tools only when the turn names each capability;
1131
+ if (deskTools) tools.push(...pancodeDeskTools(action));
1132
+ if (deskTools && capabilities.has('workflow.drive')) tools.push(PANCODE_DRIVER_TOOL);
1133
+ // PanCode admits an MCP server's tools only when the turn names each capability;
1134
1134
  // the CiteNexus binding would otherwise be refused by the prompt's own scope.
1135
- if (action.id === 'research-gap' || capabilities.has('workflow.drive')) tools.push(...CLIO_CITE_NEXUS_TOOLS);
1135
+ if (action.id === 'research-gap' || capabilities.has('workflow.drive')) tools.push(...PANCODE_CITE_NEXUS_TOOLS);
1136
1136
  return tools;
1137
1137
  }
1138
1138
 
1139
1139
  // The tools the action's workers may hold (delegated-tools): every tool its
1140
- // delegated roles' recipes declare, since Clio refuses a worker whose recipe
1140
+ // delegated roles' recipes declare, since PanCode refuses a worker whose recipe
1141
1141
  // declares more than the ceiling, and without this field the turn's own
1142
1142
  // allowed-tools would be that ceiling.
1143
- function clioDelegatedTools(action, reviewers) {
1143
+ function pancodeDelegatedTools(action, reviewers) {
1144
1144
  const tools = new Set();
1145
1145
  for (const entry of action.delegation) {
1146
- const declared = clioRoleTools(reviewers.has(entry.role));
1146
+ const declared = pancodeRoleTools(reviewers.has(entry.role));
1147
1147
  for (const item of [...declared.required, ...declared.optional]) {
1148
1148
  for (const tool of typeof item === 'string' ? [item] : item.anyOf) tools.add(tool);
1149
1149
  }
@@ -1151,31 +1151,33 @@ function clioDelegatedTools(action, reviewers) {
1151
1151
  return [...tools].sort();
1152
1152
  }
1153
1153
 
1154
- // How each role runs on Clio. `latencyClass` is the routing prior for how long
1155
- // a run takes; `budget` is the advisory tool-call notice, under Clio's hard
1154
+ // How each role runs on PanCode. `latencyClass` is the routing prior for how long
1155
+ // a run takes; `budget` is the advisory tool-call notice, under PanCode's hard
1156
1156
  // per-run ceiling. Roles that read a whole manuscript or a literature set get
1157
- // the deep prior and room to read; quick checks stay fast. A read-only checker
1158
- // gets no project orientation (`projectContextTier: none`): it judges the
1159
- // artifacts it is handed, so a code-oriented repository summary is only noise
1160
- // and a source of claims it did not read.
1161
- const CLIO_ROLE_TUNING = Object.freeze({
1162
- 'argument-verifier': { latency: 'fast', toolCalls: 24, readReserve: 4 },
1163
- 'plan-checker': { latency: 'fast', toolCalls: 24, readReserve: 4 },
1164
- 'section-reviewer': { latency: 'balanced', toolCalls: 40, readReserve: 6 },
1165
- 'coherence-checker': { latency: 'deep', toolCalls: 64, readReserve: 12 },
1166
- 'research-synthesizer': { latency: 'deep', toolCalls: 96, readReserve: 12 },
1167
- 'citation-expert': { latency: 'deep', toolCalls: 96, readReserve: 12 },
1168
- 'citation-formatter': { latency: 'balanced', toolCalls: 64, readReserve: 8 },
1169
- 'outliner': { latency: 'balanced', toolCalls: 64, readReserve: 8 },
1170
- 'section-planner': { latency: 'balanced', toolCalls: 64, readReserve: 8 },
1171
- 'section-writer': { latency: 'balanced', toolCalls: 64, readReserve: 8 },
1172
- 'prose-polisher': { latency: 'balanced', toolCalls: 48, readReserve: 6 }
1157
+ // the deep prior and a larger tool-call budget; quick checks stay fast. A
1158
+ // read-only checker gets no project orientation (`projectContextTier: none`):
1159
+ // it judges the artifacts it is handed, so a code-oriented repository summary
1160
+ // is only noise and a source of claims it did not read. Recipes declare only
1161
+ // toolCalls and synthesis: the host removed the read-reserve key with no
1162
+ // alias, so a recipe that still declares it fails to parse.
1163
+ const PANCODE_ROLE_TUNING = Object.freeze({
1164
+ 'argument-verifier': { latency: 'fast', toolCalls: 24 },
1165
+ 'plan-checker': { latency: 'fast', toolCalls: 24 },
1166
+ 'section-reviewer': { latency: 'balanced', toolCalls: 40 },
1167
+ 'coherence-checker': { latency: 'deep', toolCalls: 64 },
1168
+ 'research-synthesizer': { latency: 'deep', toolCalls: 96 },
1169
+ 'citation-expert': { latency: 'deep', toolCalls: 96 },
1170
+ 'citation-formatter': { latency: 'balanced', toolCalls: 64 },
1171
+ 'outliner': { latency: 'balanced', toolCalls: 64 },
1172
+ 'section-planner': { latency: 'balanced', toolCalls: 64 },
1173
+ 'section-writer': { latency: 'balanced', toolCalls: 64 },
1174
+ 'prose-polisher': { latency: 'balanced', toolCalls: 48 }
1173
1175
  });
1174
1176
 
1175
1177
  // The role-result schema as the object a worker writes. A recipe is resent
1176
1178
  // with every worker request, and the shape carries what the schema constrains
1177
1179
  // in a quarter of its bytes: fields, constants, enums, and which are optional.
1178
- function clioRoleResultShape(schema, slug) {
1180
+ function pancodeRoleResultShape(schema, slug) {
1179
1181
  const optional = [];
1180
1182
  const shape = (node, at) => {
1181
1183
  const unstated = ['minItems', 'maxItems', 'maxLength', 'pattern', 'format', 'oneOf', 'anyOf', '$ref'].filter((key) => key in node);
@@ -1200,13 +1202,13 @@ function clioRoleResultShape(schema, slug) {
1200
1202
  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.`;
1201
1203
  }
1202
1204
 
1203
- function renderClioRole(role, slug) {
1204
- const tuning = CLIO_ROLE_TUNING[slug];
1205
- if (!tuning) throw new Error(`no Clio tuning for role ${slug}`);
1205
+ function renderPanCodeRole(role, slug) {
1206
+ const tuning = PANCODE_ROLE_TUNING[slug];
1207
+ if (!tuning) throw new Error(`no PanCode tuning for role ${slug}`);
1206
1208
  const verifier = role.fields.execution_class === 'verifier-report';
1207
- const declared = clioRoleTools(verifier);
1208
- const required = clioToolList(declared.required);
1209
- const optional = clioToolList(declared.optional);
1209
+ const declared = pancodeRoleTools(verifier);
1210
+ const required = pancodeToolList(declared.required);
1211
+ const optional = pancodeToolList(declared.optional);
1210
1212
  const nativeResult = verifier
1211
1213
  ? '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."}]}'
1212
1214
  : '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.';
@@ -1223,7 +1225,7 @@ function renderClioRole(role, slug) {
1223
1225
  `capabilityClass: ${verifier ? 'read-only' : 'workspace-edit'}`,
1224
1226
  `latencyClass: ${tuning.latency}`,
1225
1227
  `projectContextTier: ${verifier ? 'none' : 'bounded'}`,
1226
- `budget: {toolCalls: ${tuning.toolCalls}, readReserve: ${tuning.readReserve}, synthesis: true}`,
1228
+ `budget: {toolCalls: ${tuning.toolCalls}, synthesis: true}`,
1227
1229
  `resultContract: {kind: ${verifier ? 'verifier-report' : 'mutation-report'}}`,
1228
1230
  'tags: [wtfp, research, portable-protocol]',
1229
1231
  '---',
@@ -1231,12 +1233,12 @@ function renderClioRole(role, slug) {
1231
1233
  generatedBanner('protocol/roles', slug),
1232
1234
  '',
1233
1235
  // A small model writes the review its long body describes; it reads the output form first.
1234
- ...(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.', ''] : []),
1235
- nativeWorkflowBody(roleBodyWithoutPortableResult(role), 'clio'),
1236
+ ...(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 PanCode result contract at the end.', ''] : []),
1237
+ nativeWorkflowBody(roleBodyWithoutPortableResult(role), 'pancode'),
1236
1238
  '',
1237
- // Live on Clio 0.8.3, a writer that could not count words returned blocked and stopped the drive.
1238
- ...(/word count/i.test(roleBodyWithoutPortableResult(role)) ? ['On Clio a worker holds no word counter. The dispatching action measures the persisted manuscript after you return and writes that count into the summary, so write the summary without a count. A count you cannot take never blocks this role: return completed when the rest is done.', ''] : []),
1239
- '## Clio result contract',
1239
+ // Live on the 0.8.3 host, a writer that could not count words returned blocked and stopped the drive.
1240
+ ...(/word count/i.test(roleBodyWithoutPortableResult(role)) ? ['On PanCode a worker holds no word counter. The dispatching action measures the persisted manuscript after you return and writes that count into the summary, so write the summary without a count. A count you cannot take never blocks this role: return completed when the rest is done.', ''] : []),
1241
+ '## PanCode result contract',
1240
1242
  '',
1241
1243
  nativeResult,
1242
1244
  '',
@@ -1246,13 +1248,13 @@ function renderClioRole(role, slug) {
1246
1248
  ] : []),
1247
1249
  // A verifier's verdict and checks already determine its role result; nesting a
1248
1250
  // serialized result inside one check failed every local-model review live.
1249
- ...(verifier ? [] : [clioRoleResultShape(readJson(path.join(PROTOCOL_ROOT, 'schemas/role-result.schema.json')), slug), '']),
1251
+ ...(verifier ? [] : [pancodeRoleResultShape(readJson(path.join(PROTOCOL_ROOT, 'schemas/role-result.schema.json')), slug), '']),
1250
1252
  ...(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.']),
1251
1253
  ''
1252
1254
  ].join('\n');
1253
1255
  }
1254
1256
 
1255
- function standardPluginManifest(version, name = 'wtfp', clioExtension) {
1257
+ function standardPluginManifest(version, name = 'wtfp', pancodeExtension) {
1256
1258
  return stableJson({
1257
1259
  $schema: 'https://agent-plugins.org/schemas/1.0.0/plugin.schema.json',
1258
1260
  name, version,
@@ -1261,41 +1263,41 @@ function standardPluginManifest(version, name = 'wtfp', clioExtension) {
1261
1263
  homepage: 'https://github.com/akougkas/wtf-p',
1262
1264
  repository: 'https://github.com/akougkas/wtf-p',
1263
1265
  license: 'MIT',
1264
- ...(clioExtension ? { extensions: { 'ai.iowarp.clio': clioExtension } } : {})
1266
+ ...(pancodeExtension ? { extensions: { 'dev.pancode': pancodeExtension } } : {})
1265
1267
  });
1266
1268
  }
1267
1269
 
1268
- const CLIO_PLAYBOOKS = ['wtfp-plan-section', 'wtfp-draft-review'];
1270
+ const PANCODE_PLAYBOOKS = ['wtfp-plan-section', 'wtfp-draft-review'];
1269
1271
 
1270
- // The root manifest with the Clio namespace. Clio runs fleet contracts as
1272
+ // The root manifest with the PanCode namespace. PanCode runs fleet contracts as
1271
1273
  // playbooks. `legacyFleetNames` keeps the pre-playbook `fleets` key, kind and
1272
- // directory for the Claude envelope, whose Clio copy Clio no longer adopts.
1273
- function clioPluginManifest(model, legacyFleetNames = false) {
1274
- const playbookRoot = `ai.iowarp.clio/${legacyFleetNames ? 'fleets' : 'playbooks'}`;
1274
+ // directory for the Claude envelope, whose PanCode copy PanCode no longer adopts.
1275
+ function pancodePluginManifest(model, legacyFleetNames = false) {
1276
+ const playbookRoot = `dev.pancode/${legacyFleetNames ? 'fleets' : 'playbooks'}`;
1275
1277
  const components = [];
1276
1278
  for (const action of model.actions) components.push({
1277
1279
  kind: 'prompt', id: action.id,
1278
- path: `ai.iowarp.clio/prompts/wtfp/${action.id}.md`,
1280
+ path: `dev.pancode/prompts/wtfp/${action.id}.md`,
1279
1281
  requires: action.delegation.map(item => `agent:${item.role}`)
1280
1282
  });
1281
1283
  for (const role of model.roles) components.push({
1282
- kind: 'agent', id: role.slug, path: `ai.iowarp.clio/agents/wtfp-${role.slug}.md`,
1284
+ kind: 'agent', id: role.slug, path: `dev.pancode/agents/wtfp-${role.slug}.md`,
1283
1285
  requires: [`skill:${ROLE_SKILLS[role.slug]}`]
1284
1286
  });
1285
1287
  for (const skill of model.catalog.skills) components.push({
1286
1288
  kind: 'skill', id: skill.id, path: `skills/${skill.id}/SKILL.md`, requires: []
1287
1289
  });
1288
- for (const id of CLIO_PLAYBOOKS) components.push({
1290
+ for (const id of PANCODE_PLAYBOOKS) components.push({
1289
1291
  kind: legacyFleetNames ? 'fleet' : 'playbook', id, path: `${playbookRoot}/${id}.md`, requires: []
1290
1292
  });
1291
1293
  return standardPluginManifest(model.version, 'wtfp', {
1292
1294
  manifestVersion: 1,
1293
- // The Claude copy keeps its pre-playbook floor. The plugin installs with
1294
- // the desk, which judges only what Clio 0.6.3 sends a hook, and its
1295
- // prompts scope their tools only from 0.6.3.
1296
- compatibility: { clio: legacyFleetNames ? '>=0.4.7' : '>=0.6.3' },
1295
+ // The plugin installs with the desk, which judges only what PanCode sends
1296
+ // a hook. The Claude copy declares the same floor; its fleets layout alone
1297
+ // marks it as built for an older PanCode.
1298
+ compatibility: { pancode: '>=0.9.0' },
1297
1299
  resources: {
1298
- skills: 'skills', prompts: 'ai.iowarp.clio/prompts', agents: 'ai.iowarp.clio/agents',
1300
+ skills: 'skills', prompts: 'dev.pancode/prompts', agents: 'dev.pancode/agents',
1299
1301
  [legacyFleetNames ? 'fleets' : 'playbooks']: playbookRoot
1300
1302
  },
1301
1303
  components
@@ -1305,14 +1307,14 @@ function clioPluginManifest(model, legacyFleetNames = false) {
1305
1307
  // Playbook write boundaries are literal paths, so `{section}` cannot be
1306
1308
  // substituted. Section artifacts project to `.planning/sections/`, which keeps
1307
1309
  // workers away from checkpoints, interactions, state and config.
1308
- function clioFleetWriteBoundary(resource, fleetId) {
1310
+ function pancodeFleetWriteBoundary(resource, fleetId) {
1309
1311
  if (/^project:\/\/paper(?:\/|$)/u.test(resource)) return 'paper/';
1310
1312
  if (/^project:\/\/sections\//u.test(resource)) return '.planning/sections/';
1311
1313
  if (/^project:\/\//u.test(resource)) return '.planning/';
1312
- throw new Error(`fleet ${fleetId} has no Clio write-boundary projection for ${resource}`);
1314
+ throw new Error(`fleet ${fleetId} has no PanCode write-boundary projection for ${resource}`);
1313
1315
  }
1314
1316
 
1315
- function clioFleet(fleetId) {
1317
+ function pancodeFleet(fleetId) {
1316
1318
  const sourceName = `${fleetId}.json`;
1317
1319
  const sourcePath = path.join(PROTOCOL_ROOT, 'fleets', sourceName);
1318
1320
  const fleet = readJson(sourcePath);
@@ -1370,7 +1372,7 @@ function clioFleet(fleetId) {
1370
1372
  throw new Error(`fleet ${fleetId} step ${step.id} has an unresolved or forward dependency`);
1371
1373
  }
1372
1374
  const boundaries = [...new Set(step.writes.map(resource =>
1373
- clioFleetWriteBoundary(resource, fleetId)
1375
+ pancodeFleetWriteBoundary(resource, fleetId)
1374
1376
  ))];
1375
1377
  renderedSteps.push(' - kind: agent');
1376
1378
  renderedSteps.push(` id: ${step.id}`);
@@ -1396,7 +1398,7 @@ function clioFleet(fleetId) {
1396
1398
  const nativeResourceProjection = logicalWrites.some(resource =>
1397
1399
  /^project:\/\/paper(?:\/|$)/u.test(resource)
1398
1400
  )
1399
- ? 'For this Clio projection, resolve logical `project://paper/...` artifacts under the project-root `paper/` directory, never under `.planning/paper/`.'
1401
+ ? 'For this PanCode projection, resolve logical `project://paper/...` artifacts under the project-root `paper/` directory, never under `.planning/paper/`.'
1400
1402
  : null;
1401
1403
  return [
1402
1404
  '---',
@@ -1574,20 +1576,20 @@ function manuscriptGuardActions(model, availabilityById, host) {
1574
1576
  return guarded;
1575
1577
  }
1576
1578
 
1577
- // The Clio desk arms on every available action. Each entry carries the
1579
+ // The PanCode desk arms on every available action. Each entry carries the
1578
1580
  // action's exact declared outputs: the desk derives file roots from them,
1579
1581
  // substitutes the section an invocation names, and refuses record writes the
1580
- // contract does not declare. `paperWriters` are the Clio agent IDs of the
1582
+ // contract does not declare. `paperWriters` are the PanCode agent IDs of the
1581
1583
  // writing roles that manuscript-producing actions dispatch; the desk confines
1582
1584
  // them to manuscripts whose sections are ready to draft. `agents` are the
1583
- // Clio agent IDs an action's contract delegates to; inside that action the
1584
- // desk refuses a worker that is none of them. Clio reports which
1585
+ // PanCode agent IDs an action's contract delegates to; inside that action the
1586
+ // desk refuses a worker that is none of them. PanCode reports which
1585
1587
  // workers run read-only, the verifier roles' read-only recipes among them, so
1586
1588
  // the guard names none.
1587
- function clioWriteGuard(model, availabilityById) {
1589
+ function pancodeWriteGuard(model, availabilityById) {
1588
1590
  const available = model.actions.filter((action) => availabilityById.get(action.id).available);
1589
1591
  if (!available.some((action) => action.produces.some((output) => output.uri.startsWith('project://paper')))) {
1590
- throw new Error('no manuscript-writing action is available on Clio');
1592
+ throw new Error('no manuscript-writing action is available on PanCode');
1591
1593
  }
1592
1594
  const verifiers = new Set(model.roles.filter((role) => role.fields.execution_class === 'verifier-report').map((role) => role.slug));
1593
1595
  // A driver action writes nothing under its own name: the desk arms each step
@@ -1600,7 +1602,7 @@ function clioWriteGuard(model, availabilityById) {
1600
1602
  for (const entry of action.delegation) if (!verifiers.has(entry.role)) paperWriters.add(`wtfp-${entry.role}`);
1601
1603
  }
1602
1604
  return stableJson({
1603
- schema: 'wtfp.clio-write-guard/v4',
1605
+ schema: 'wtfp.pancode-write-guard/v4',
1604
1606
  actions: Object.fromEntries(available.map((action) => [action.id, {
1605
1607
  agents: drives(action) ? [] : [...new Set(action.delegation.map((entry) => `wtfp-${entry.role}`))].sort(),
1606
1608
  produces: drives(action) ? [] : action.produces.map((output) => ({ uri: output.uri, mode: output.mode }))
@@ -1745,25 +1747,25 @@ function geminiManifest(version) {
1745
1747
  });
1746
1748
  }
1747
1749
 
1748
- // The Clio extension is installed and consented independently of the content
1750
+ // The PanCode extension is installed and consented independently of the content
1749
1751
  // plugin. Every file its runtime reads belongs to this package; the plugin
1750
1752
  // link controls prompt takeover, not filesystem access to another install.
1751
- function addClioRuntime(plan, model, availabilityById) {
1752
- const source = (relative) => fs.readFileSync(path.join(CLIO_RUNTIME_ROOT, relative), 'utf8');
1753
- const manifest = source('clio-coder-extension.yaml').replace(/^(?:#.*\n)+/, '');
1754
- if (!/^version: .*$/m.test(manifest)) throw new Error('clio/clio-coder-extension.yaml must declare a version line');
1755
- addFile(plan, 'clio-coder-extension.yaml', [
1756
- `# Generated by WTF-P adapter compiler v${GENERATOR_VERSION} from clio/clio-coder-extension.yaml; do not edit.`,
1753
+ function addPanCodeRuntime(plan, model, availabilityById) {
1754
+ const source = (relative) => fs.readFileSync(path.join(PANCODE_RUNTIME_ROOT, relative), 'utf8');
1755
+ const manifest = source('pancode-extension.yaml').replace(/^(?:#.*\n)+/, '');
1756
+ if (!/^version: .*$/m.test(manifest)) throw new Error('hosts/pancode/pancode-extension.yaml must declare a version line');
1757
+ addFile(plan, 'pancode-extension.yaml', [
1758
+ `# Generated by WTF-P adapter compiler v${GENERATOR_VERSION} from hosts/pancode/pancode-extension.yaml; do not edit.`,
1757
1759
  manifest.replace(/^version: .*$/m, `version: ${model.version}`)
1758
1760
  ].join('\n'));
1759
- addFile(plan, 'runtime/extension.ts', `${generatedScriptBanner('clio', 'runtime/extension.ts')}\n${source('runtime/extension.ts')}`);
1760
- // `clio-coder extensions test vendors/clio-extension` runs the package tests from here.
1761
- addFile(plan, 'runtime/extension.test.ts', `${generatedScriptBanner('clio', 'runtime/extension.test.ts')}\n${source('runtime/extension.test.ts')}`);
1761
+ addFile(plan, 'runtime/extension.ts', `${generatedScriptBanner('hosts/pancode', 'runtime/extension.ts')}\n${source('runtime/extension.ts')}`);
1762
+ // `pancode extensions test pancode/extension` runs the package tests from here.
1763
+ addFile(plan, 'runtime/extension.test.ts', `${generatedScriptBanner('hosts/pancode', 'runtime/extension.test.ts')}\n${source('runtime/extension.test.ts')}`);
1762
1764
  addFile(plan, 'runtime/package.json', source('runtime/package.json'));
1763
1765
  addFile(plan, 'runtime/json-schema.cjs', `${generatedScriptBanner('evaluation', 'lib/json-schema.js')}\n${fs.readFileSync(path.join(ROOT, 'evaluation', 'lib', 'json-schema.js'), 'utf8')}`);
1764
1766
  addFile(plan, 'runtime/claim-coverage.cjs', `${generatedScriptBanner('evaluation', 'lib/claim-coverage.js')}\n${fs.readFileSync(path.join(ROOT, 'evaluation', 'lib', 'claim-coverage.js'), 'utf8')}`);
1765
1767
  addFile(plan, 'runtime/desk-trust.cjs', `${generatedScriptBanner('evaluation', 'lib/desk-trust.js')}\n${fs.readFileSync(path.join(ROOT, 'evaluation', 'lib', 'desk-trust.js'), 'utf8')}`);
1766
- addFile(plan, 'runtime/write-guard.json', clioWriteGuard(model, availabilityById));
1768
+ addFile(plan, 'runtime/write-guard.json', pancodeWriteGuard(model, availabilityById));
1767
1769
  addFile(plan, 'skins/wtfp.json', source('skins/wtfp.json'));
1768
1770
  copyTree(plan, path.join(PROTOCOL_ROOT, 'project', 'schemas'), 'project/schemas');
1769
1771
  copyTree(plan, path.join(PROTOCOL_ROOT, 'project', 'templates'), 'project/templates');
@@ -2222,21 +2224,21 @@ function compilePlans(options = {}) {
2222
2224
  const targetPolicies = options.targetPolicies === undefined ? TARGET_POLICIES : options.targetPolicies;
2223
2225
  validateTargetPolicies(targetPolicies, model.effects.effects);
2224
2226
  const plans = Object.entries(TARGET_ROOTS).map(([id, root]) => makePlan(id, root));
2225
- // The Clio projection has no envelope of its own. It is assembled in memory
2227
+ // The PanCode projection has no envelope of its own. It is assembled in memory
2226
2228
  // and relocated wholesale into the canonical plugin bundle below.
2227
- const clio = makePlan('clio', null);
2228
- const byId = new Map([...plans, clio].map((plan) => [plan.id, plan]));
2229
+ const pancode = makePlan('pancode', null);
2230
+ const byId = new Map([...plans, pancode].map((plan) => [plan.id, plan]));
2229
2231
  const availabilityByTarget = new Map();
2230
- for (const plan of [...plans, clio]) {
2232
+ for (const plan of [...plans, pancode]) {
2231
2233
  addPortableBundle(plan);
2232
2234
  availabilityByTarget.set(plan.id, addActionAvailability(plan, model, plan.id, targetPolicies));
2233
2235
  }
2234
2236
 
2235
- for (const fleetId of CLIO_PLAYBOOKS) {
2236
- if (!clio.files.delete(`fleets/${fleetId}.json`)) {
2237
- throw new Error(`cannot project missing canonical fleet for Clio: ${fleetId}`);
2237
+ for (const fleetId of PANCODE_PLAYBOOKS) {
2238
+ if (!pancode.files.delete(`fleets/${fleetId}.json`)) {
2239
+ throw new Error(`cannot project missing canonical fleet for PanCode: ${fleetId}`);
2238
2240
  }
2239
- addFile(clio, `playbooks/${fleetId}.md`, clioFleet(fleetId));
2241
+ addFile(pancode, `playbooks/${fleetId}.md`, pancodeFleet(fleetId));
2240
2242
  }
2241
2243
 
2242
2244
  const claude = byId.get('claude');
@@ -2289,9 +2291,9 @@ function compilePlans(options = {}) {
2289
2291
 
2290
2292
  const reviewers = new Set(model.roles.filter((role) => role.fields.execution_class === 'verifier-report').map((role) => role.slug));
2291
2293
  for (const action of model.actions) {
2292
- addFile(clio, `prompts/wtfp/${action.id}.md`, action.id === 'help'
2293
- ? clioHelpCard(model, availabilityByTarget.get('clio'))
2294
- : renderMarkdownCommand(action, action.workflowBody, 'clio', availabilityByTarget.get('clio').get(action.id), false, reviewers));
2294
+ addFile(pancode, `prompts/wtfp/${action.id}.md`, action.id === 'help'
2295
+ ? pancodeHelpCard(model, availabilityByTarget.get('pancode'))
2296
+ : renderMarkdownCommand(action, action.workflowBody, 'pancode', availabilityByTarget.get('pancode').get(action.id), false, reviewers));
2295
2297
  addFile(claude, `commands/${action.id}.md`, renderMarkdownCommand(action, action.workflowBody, 'claude', availabilityByTarget.get('claude').get(action.id)));
2296
2298
  addFile(copilot, `commands/wtfp-${action.id}.md`, renderMarkdownCommand(action, action.workflowBody, 'copilot', availabilityByTarget.get('copilot').get(action.id)));
2297
2299
  addFile(byId.get('opencode'), `commands/wtfp/${action.id}.md`, renderMarkdownCommand(action, action.workflowBody, 'opencode', availabilityByTarget.get('opencode').get(action.id)));
@@ -2305,7 +2307,7 @@ function compilePlans(options = {}) {
2305
2307
  }
2306
2308
 
2307
2309
  for (const role of model.roles) {
2308
- addFile(clio, `agents/wtfp-${role.slug}.md`, renderClioRole(role, role.slug));
2310
+ addFile(pancode, `agents/wtfp-${role.slug}.md`, renderPanCodeRole(role, role.slug));
2309
2311
  // OpenCode scans `agents/**/*.md` and takes the registered name from the
2310
2312
  // frontmatter, so the nested namespace directory is safe there. Claude Code
2311
2313
  // and Gemini CLI (loadAgentsFromDirectory) read only the top level of
@@ -2322,51 +2324,52 @@ function compilePlans(options = {}) {
2322
2324
  }
2323
2325
 
2324
2326
  // The canonical content-only plugin. Its prompts also work without the desk.
2325
- const portable = makePlan('portable-plugin', path.join(ROOT, 'vendors', 'plugin'));
2326
- for (const [file, content] of clio.files) {
2327
+ const portable = makePlan('pancode-plugin', path.join(ROOT, 'pancode', 'plugin'));
2328
+ for (const [file, content] of pancode.files) {
2327
2329
  const native = /^(prompts|agents|playbooks)\//.test(file);
2328
2330
  const actionId = /^prompts\/wtfp\/([a-z-]+)\.md$/.exec(file)?.[1];
2329
2331
  const action = actionId && model.actions.find((entry) => entry.id === actionId);
2330
- // Every action Clio can run reads records through the desk, so none needs the schema dump a desk-less host gets.
2331
- const projected = action && action.id !== 'help' && availabilityByTarget.get('clio').get(actionId).available
2332
- ? renderMarkdownCommand(action, action.workflowBody, 'clio', availabilityByTarget.get('clio').get(actionId), true, reviewers)
2332
+ // Every action PanCode can run reads records through the desk, so none needs the schema dump a desk-less host gets.
2333
+ const projected = action && action.id !== 'help' && availabilityByTarget.get('pancode').get(actionId).available
2334
+ ? renderMarkdownCommand(action, action.workflowBody, 'pancode', availabilityByTarget.get('pancode').get(actionId), true, reviewers)
2333
2335
  : content;
2334
- addFile(portable, native ? `ai.iowarp.clio/${file}` : file, projected);
2336
+ addFile(portable, native ? `dev.pancode/${file}` : file, projected);
2335
2337
  }
2336
- addFile(portable, 'plugin.json', clioPluginManifest(model));
2338
+ addFile(portable, 'plugin.json', pancodePluginManifest(model));
2337
2339
  const availability = JSON.parse(portable.files.get('compatibility/action-availability.json'));
2338
2340
  // Base bindings remain usable with the content plugin alone. The separately
2339
2341
  // installed desk supplies these preferred bindings when its tools are live.
2340
2342
  availability.runtimeBindings = {
2341
2343
  plugin: 'wtfp', extension: 'wtfp',
2342
- capabilities: { 'user.interaction': 'clio:extension-interview' },
2343
- approvals: { explicit: 'clio:extension-interview' },
2344
+ capabilities: { 'user.interaction': 'pancode:extension-interview' },
2345
+ approvals: { explicit: 'pancode:extension-interview' },
2344
2346
  tools: { record: 'extension_wtfp__record', measure_section: 'extension_wtfp__measure_section', gate: 'extension_wtfp__gate' }
2345
2347
  };
2346
2348
  replaceFile(portable, 'compatibility/action-availability.json', stableJson(availability));
2347
2349
  plans.push(portable);
2348
2350
 
2349
- const extension = makePlan('clio-extension', path.join(ROOT, 'vendors', 'clio-extension'));
2350
- addClioRuntime(extension, model, availabilityByTarget.get('clio'));
2351
- addFile(extension, 'compatibility/action-availability.json', clio.files.get('compatibility/action-availability.json'));
2351
+ const extension = makePlan('pancode-extension', path.join(ROOT, 'pancode', 'extension'));
2352
+ addPanCodeRuntime(extension, model, availabilityByTarget.get('pancode'));
2353
+ addFile(extension, 'compatibility/action-availability.json', pancode.files.get('compatibility/action-availability.json'));
2352
2354
  plans.push(extension);
2353
2355
 
2354
- // The Claude envelope keeps its pre-playbook Clio namespace: a root `plugin.json`
2356
+ // The Claude envelope keeps its pre-playbook PanCode namespace: a root `plugin.json`
2355
2357
  // and the phase 1 prompts, agents and fleets it names, beside Claude's own
2356
- // `.claude-plugin/` surface. Clio no longer adopts a Claude-installed WTF-P;
2357
- // it labels the copy older and points to `vendors/plugin`. Claude Code reads
2358
+ // `.claude-plugin/` surface. PanCode no longer adopts a Claude-installed WTF-P;
2359
+ // it labels the copy built for an older PanCode and names `wtf-p install
2360
+ // pancode`, the canonical install of `pancode/plugin`. Claude Code reads
2358
2361
  // neither file; its commands, agents, skills, hooks, and output style stay
2359
2362
  // where its loader looks.
2360
- for (const [file, content] of clio.files) {
2363
+ for (const [file, content] of pancode.files) {
2361
2364
  if (file === 'prompts/wtfp/help.md') {
2362
- addFile(claude, `ai.iowarp.clio/${file}`, clioHelpCard(model, availabilityByTarget.get('clio'), true));
2365
+ addFile(claude, `dev.pancode/${file}`, pancodeHelpCard(model, availabilityByTarget.get('pancode'), true));
2363
2366
  } else if (/^(prompts|agents)\//.test(file)) {
2364
- addFile(claude, `ai.iowarp.clio/${file}`, content);
2367
+ addFile(claude, `dev.pancode/${file}`, content);
2365
2368
  } else if (file.startsWith('playbooks/')) {
2366
- addFile(claude, `ai.iowarp.clio/fleets/${file.slice('playbooks/'.length)}`, content);
2369
+ addFile(claude, `dev.pancode/fleets/${file.slice('playbooks/'.length)}`, content);
2367
2370
  }
2368
2371
  }
2369
- addFile(claude, 'plugin.json', clioPluginManifest(model, true));
2372
+ addFile(claude, 'plugin.json', pancodePluginManifest(model, true));
2370
2373
 
2371
2374
  const codexMarketplace = makePlan('codex-marketplace', path.join(ROOT, 'vendors', 'codex'));
2372
2375
  addFile(codexMarketplace, '.agents/plugins/marketplace.json', stableJson({
@@ -2437,9 +2440,9 @@ function compilePlans(options = {}) {
2437
2440
  ].join('\n'));
2438
2441
  plans.push(copilotMarketplace);
2439
2442
 
2440
- // The Clio plan carries no envelope root; it is returned so the compiled model
2443
+ // The PanCode plan carries no envelope root; it is returned so the compiled model
2441
2444
  // stays observable, and `compileAdapters` writes only rooted plans.
2442
- plans.push(clio);
2445
+ plans.push(pancode);
2443
2446
  return plans;
2444
2447
  }
2445
2448
 
@@ -2559,12 +2562,12 @@ function compileAdapters(options = {}) {
2559
2562
  module.exports = {
2560
2563
  GENERATOR_VERSION,
2561
2564
  TARGET_POLICIES,
2562
- clioActionTools,
2563
- clioDelegatedTools,
2565
+ pancodeActionTools,
2566
+ pancodeDelegatedTools,
2564
2567
  TARGET_ROOTS,
2565
2568
  compileAdapters,
2566
2569
  compilePlans,
2567
2570
  inventoryFor,
2568
2571
  nativeWorkflowBody,
2569
- renderClioRole
2572
+ renderPanCodeRole
2570
2573
  };