wtf-p 0.8.2 → 0.8.4

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 (57) hide show
  1. package/README.md +9 -9
  2. package/bin/lib/adapter-compiler.js +7 -3
  3. package/package.json +2 -1
  4. package/protocol/workflows/review-section.md +2 -2
  5. package/vendors/antigravity/.wtfp-generated.json +4 -4
  6. package/vendors/antigravity/plugin.json +2 -2
  7. package/vendors/antigravity/skills/wtfp-review-section/SKILL.md +2 -2
  8. package/vendors/antigravity/workflows/review-section.md +2 -2
  9. package/vendors/claude/.claude-plugin/marketplace.json +2 -2
  10. package/vendors/claude/.claude-plugin/plugin.json +1 -1
  11. package/vendors/claude/.wtfp-generated.json +12 -12
  12. package/vendors/claude/ai.iowarp.clio/agents/wtfp-section-writer.md +2 -0
  13. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/execute-outline.md +1 -1
  14. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/help.md +1 -1
  15. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/plan-section.md +1 -1
  16. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/review-section.md +3 -3
  17. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/write-section.md +1 -1
  18. package/vendors/claude/commands/review-section.md +2 -2
  19. package/vendors/claude/plugin.json +1 -1
  20. package/vendors/claude/workflows/review-section.md +2 -2
  21. package/vendors/clio-extension/.wtfp-generated.json +4 -4
  22. package/vendors/clio-extension/clio-coder-extension.yaml +1 -1
  23. package/vendors/clio-extension/runtime/extension.test.ts +31 -1
  24. package/vendors/clio-extension/runtime/extension.ts +45 -7
  25. package/vendors/codex/plugins/wtfp/.codex-plugin/plugin.json +1 -1
  26. package/vendors/codex/plugins/wtfp/.wtfp-generated.json +4 -4
  27. package/vendors/codex/plugins/wtfp/plugin.json +1 -1
  28. package/vendors/codex/plugins/wtfp/workflows/review-section.md +2 -2
  29. package/vendors/copilot/.wtfp-generated.json +3 -3
  30. package/vendors/copilot/marketplace.json +2 -2
  31. package/vendors/copilot/plugins/wtfp/.claude-plugin/plugin.json +1 -1
  32. package/vendors/copilot/plugins/wtfp/.wtfp-generated.json +4 -4
  33. package/vendors/copilot/plugins/wtfp/commands/wtfp-review-section.md +2 -2
  34. package/vendors/copilot/plugins/wtfp/workflows/review-section.md +2 -2
  35. package/vendors/copilot/project/.github/wtfp/workflows/review-section.md +2 -2
  36. package/vendors/gemini/.wtfp-generated.json +4 -4
  37. package/vendors/gemini/commands/wtfp/review-section.toml +2 -2
  38. package/vendors/gemini/gemini-extension.json +1 -1
  39. package/vendors/gemini/workflows/review-section.md +2 -2
  40. package/vendors/opencode/.wtfp-generated.json +3 -3
  41. package/vendors/opencode/commands/wtfp/review-section.md +2 -2
  42. package/vendors/opencode/workflows/review-section.md +2 -2
  43. package/vendors/plugin/.wtfp-generated.json +15 -15
  44. package/vendors/plugin/ai.iowarp.clio/agents/wtfp-section-writer.md +2 -0
  45. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/advance.md +2 -2
  46. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/checkpoint.md +1 -1
  47. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/discuss-section.md +1 -1
  48. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/execute-outline.md +2 -2
  49. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/help.md +1 -1
  50. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/plan-milestone-gaps.md +1 -1
  51. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/plan-revision.md +1 -1
  52. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/plan-section.md +2 -2
  53. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/review-section.md +3 -3
  54. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/verify-work.md +1 -1
  55. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/write-section.md +3 -3
  56. package/vendors/plugin/plugin.json +1 -1
  57. package/vendors/plugin/workflows/review-section.md +2 -2
@@ -77,7 +77,7 @@ $ARGUMENTS
77
77
 
78
78
  ## Clio user-gate binding
79
79
 
80
- For a pending checkpoint in the declared gate's exact scope, call `extension_wtfp__gate` with its ID; the desk shows it to the author and seals the answer. When none exists yet, create it pending through `extension_wtfp__record`, then call `extension_wtfp__gate` with its ID. Only the structured author answer satisfies the gate; cancelled, kept or expired checkpoints authorize nothing. Never write `resolution.resolved_by: author`, never resolve, unblock or expire a blocking checkpoint, and never infer approval from invocation text, prose or silence. A plan is approved only by an `approve` answer on a checkpoint scoped to that plan's URI, for its current bytes. Read back a persisted resolution with `extension_wtfp__read_record`, which reports whether the desk attests it, before applying its gated mutation. A record change that turns a gate off waits for the author's confirmation, which the record tool asks for itself.
80
+ For a pending checkpoint in the declared gate's exact scope, call `extension_wtfp__gate` with its ID; the desk shows it to the author and seals the answer. When none exists yet, create it pending through `extension_wtfp__record`, then call `extension_wtfp__gate` with its ID. The gate is the only place its question is asked: never ask it, or a preview of it, with `ask_user`, or the author answers twice. Only the structured author answer satisfies the gate; cancelled, kept or expired checkpoints authorize nothing. Never write `resolution.resolved_by: author`, never resolve, unblock or expire a blocking checkpoint, and never infer approval from invocation text, prose or silence. A plan is approved only by an `approve` answer on a checkpoint scoped to that plan's URI, for its current bytes. Read back a persisted resolution with `extension_wtfp__read_record`, which reports whether the desk attests it, before applying its gated mutation. A record change that turns a gate off waits for the author's confirmation, which the record tool asks for itself.
81
81
 
82
82
  Every question `ask_user` puts to the author here is the author's to answer: ask exactly one question per `ask_user` call, with its options and `operator_only: true`; Clio refuses an `operator_only` question sent with others. Clio never answers such a question for an absent author; an unanswered one ends the turn instead of taking a recommended option, so a timeout never becomes an author decision.
83
83
 
@@ -85,6 +85,6 @@ Every question `ask_user` puts to the author here is the author's to answer: ask
85
85
 
86
86
  Dispatch the declared specialist roles using these exact Clio agent IDs: `wtfp-section-writer`, `wtfp-coherence-checker`. Do not substitute generic coder or verifier agents. Give every dispatched task an `agent` and an `intent` with workspace-relative `read_roots`, and keep absolute paths and `project://` URIs out of the task text, so Clio admits the scope you declare instead of inferring one from the prose. If a named agent is unavailable, report that blocker and stop instead of silently changing roles. `wtfp-coherence-checker` is read-only: begin each task for it with "Review", because Clio refuses a read-only agent a task it reads as a change.
87
87
 
88
- Read the single wtfp.role-result entry in native validations and parse its evidence string as portable role-result JSON. A read-only reviewer returns only a verdict and checks, no wtfp.role-result entry: treat its report as completed, each failed check as an issue, and a fail verdict as a revise recommendation. Validate its schema, role and action against the dispatched task. Missing, duplicate or malformed outcomes fail closed. On needs_input ask the author through ask_user and redispatch with the response; on blocked or failed stop and report the issue. Only completed permits downstream work, and it never substitutes for an author gate or artifact readback.
88
+ Read the single wtfp.role-result entry in native validations and parse its evidence string as portable role-result JSON. A read-only reviewer returns only a verdict and checks, no wtfp.role-result entry: treat its report as completed, each failed check as an issue, and a fail verdict as a revise recommendation. Clio's dispatch result calls such a run's validation failed when a check did not pass; that is the review's finding, not a failed run, so record it as the action's procedure says. Validate its schema, role and action against the dispatched task. Missing, duplicate or malformed outcomes fail closed. On needs_input ask the author through ask_user and redispatch with the response; on blocked or failed stop and report the issue. Only completed permits downstream work, and it never substitutes for an author gate or artifact readback.
89
89
 
90
90
  <!-- Generated by WTF-P adapter compiler v5 from protocol/actions/execute-outline; do not edit. -->
@@ -4,7 +4,7 @@ display-only: true
4
4
  ---
5
5
 
6
6
  ```text
7
- WTF-P 0.8.2 on Clio Coder: evidence-grounded academic writing
7
+ WTF-P 0.8.4 on Clio Coder: evidence-grounded academic writing
8
8
 
9
9
  Start here
10
10
  /wtfp:new-paper [input]
@@ -63,7 +63,7 @@ $ARGUMENTS
63
63
 
64
64
  ## Clio user-gate binding
65
65
 
66
- For a pending checkpoint in the declared gate's exact scope, call `extension_wtfp__gate` with its ID; the desk shows it to the author and seals the answer. When none exists yet, create it pending through `extension_wtfp__record`, then call `extension_wtfp__gate` with its ID. Only the structured author answer satisfies the gate; cancelled, kept or expired checkpoints authorize nothing. Never write `resolution.resolved_by: author`, never resolve, unblock or expire a blocking checkpoint, and never infer approval from invocation text, prose or silence. A plan is approved only by an `approve` answer on a checkpoint scoped to that plan's URI, for its current bytes. Read back a persisted resolution with `extension_wtfp__read_record`, which reports whether the desk attests it, before applying its gated mutation. A record change that turns a gate off waits for the author's confirmation, which the record tool asks for itself.
66
+ For a pending checkpoint in the declared gate's exact scope, call `extension_wtfp__gate` with its ID; the desk shows it to the author and seals the answer. When none exists yet, create it pending through `extension_wtfp__record`, then call `extension_wtfp__gate` with its ID. The gate is the only place its question is asked: never ask it, or a preview of it, with `ask_user`, or the author answers twice. Only the structured author answer satisfies the gate; cancelled, kept or expired checkpoints authorize nothing. Never write `resolution.resolved_by: author`, never resolve, unblock or expire a blocking checkpoint, and never infer approval from invocation text, prose or silence. A plan is approved only by an `approve` answer on a checkpoint scoped to that plan's URI, for its current bytes. Read back a persisted resolution with `extension_wtfp__read_record`, which reports whether the desk attests it, before applying its gated mutation. A record change that turns a gate off waits for the author's confirmation, which the record tool asks for itself.
67
67
 
68
68
  Every question `ask_user` puts to the author here is the author's to answer: ask exactly one question per `ask_user` call, with its options and `operator_only: true`; Clio refuses an `operator_only` question sent with others. Clio never answers such a question for an absent author; an unanswered one ends the turn instead of taking a recommended option, so a timeout never becomes an author decision.
69
69
 
@@ -64,7 +64,7 @@ $ARGUMENTS
64
64
 
65
65
  ## Clio user-gate binding
66
66
 
67
- For a pending checkpoint in the declared gate's exact scope, call `extension_wtfp__gate` with its ID; the desk shows it to the author and seals the answer. When none exists yet, create it pending through `extension_wtfp__record`, then call `extension_wtfp__gate` with its ID. Only the structured author answer satisfies the gate; cancelled, kept or expired checkpoints authorize nothing. Never write `resolution.resolved_by: author`, never resolve, unblock or expire a blocking checkpoint, and never infer approval from invocation text, prose or silence. A plan is approved only by an `approve` answer on a checkpoint scoped to that plan's URI, for its current bytes. Read back a persisted resolution with `extension_wtfp__read_record`, which reports whether the desk attests it, before applying its gated mutation. A record change that turns a gate off waits for the author's confirmation, which the record tool asks for itself.
67
+ For a pending checkpoint in the declared gate's exact scope, call `extension_wtfp__gate` with its ID; the desk shows it to the author and seals the answer. When none exists yet, create it pending through `extension_wtfp__record`, then call `extension_wtfp__gate` with its ID. The gate is the only place its question is asked: never ask it, or a preview of it, with `ask_user`, or the author answers twice. Only the structured author answer satisfies the gate; cancelled, kept or expired checkpoints authorize nothing. Never write `resolution.resolved_by: author`, never resolve, unblock or expire a blocking checkpoint, and never infer approval from invocation text, prose or silence. A plan is approved only by an `approve` answer on a checkpoint scoped to that plan's URI, for its current bytes. Read back a persisted resolution with `extension_wtfp__read_record`, which reports whether the desk attests it, before applying its gated mutation. A record change that turns a gate off waits for the author's confirmation, which the record tool asks for itself.
68
68
 
69
69
  Every question `ask_user` puts to the author here is the author's to answer: ask exactly one question per `ask_user` call, with its options and `operator_only: true`; Clio refuses an `operator_only` question sent with others. Clio never answers such a question for an absent author; an unanswered one ends the turn instead of taking a recommended option, so a timeout never becomes an author decision.
70
70
 
@@ -78,7 +78,7 @@ $ARGUMENTS
78
78
 
79
79
  ## Clio user-gate binding
80
80
 
81
- For a pending checkpoint in the declared gate's exact scope, call `extension_wtfp__gate` with its ID; the desk shows it to the author and seals the answer. When none exists yet, create it pending through `extension_wtfp__record`, then call `extension_wtfp__gate` with its ID. Only the structured author answer satisfies the gate; cancelled, kept or expired checkpoints authorize nothing. Never write `resolution.resolved_by: author`, never resolve, unblock or expire a blocking checkpoint, and never infer approval from invocation text, prose or silence. A plan is approved only by an `approve` answer on a checkpoint scoped to that plan's URI, for its current bytes. Read back a persisted resolution with `extension_wtfp__read_record`, which reports whether the desk attests it, before applying its gated mutation. A record change that turns a gate off waits for the author's confirmation, which the record tool asks for itself.
81
+ For a pending checkpoint in the declared gate's exact scope, call `extension_wtfp__gate` with its ID; the desk shows it to the author and seals the answer. When none exists yet, create it pending through `extension_wtfp__record`, then call `extension_wtfp__gate` with its ID. The gate is the only place its question is asked: never ask it, or a preview of it, with `ask_user`, or the author answers twice. Only the structured author answer satisfies the gate; cancelled, kept or expired checkpoints authorize nothing. Never write `resolution.resolved_by: author`, never resolve, unblock or expire a blocking checkpoint, and never infer approval from invocation text, prose or silence. A plan is approved only by an `approve` answer on a checkpoint scoped to that plan's URI, for its current bytes. Read back a persisted resolution with `extension_wtfp__read_record`, which reports whether the desk attests it, before applying its gated mutation. A record change that turns a gate off waits for the author's confirmation, which the record tool asks for itself.
82
82
 
83
83
  Every question `ask_user` puts to the author here is the author's to answer: ask exactly one question per `ask_user` call, with its options and `operator_only: true`; Clio refuses an `operator_only` question sent with others. Clio never answers such a question for an absent author; an unanswered one ends the turn instead of taking a recommended option, so a timeout never becomes an author decision.
84
84
 
@@ -86,6 +86,6 @@ Every question `ask_user` puts to the author here is the author's to answer: ask
86
86
 
87
87
  Dispatch the declared specialist roles using these exact Clio agent IDs: `wtfp-section-planner`, `wtfp-plan-checker`. Do not substitute generic coder or verifier agents. Give every dispatched task an `agent` and an `intent` with workspace-relative `read_roots`, and keep absolute paths and `project://` URIs out of the task text, so Clio admits the scope you declare instead of inferring one from the prose. If a named agent is unavailable, report that blocker and stop instead of silently changing roles. `wtfp-plan-checker` is read-only: begin each task for it with "Review", because Clio refuses a read-only agent a task it reads as a change.
88
88
 
89
- Read the single wtfp.role-result entry in native validations and parse its evidence string as portable role-result JSON. A read-only reviewer returns only a verdict and checks, no wtfp.role-result entry: treat its report as completed, each failed check as an issue, and a fail verdict as a revise recommendation. Validate its schema, role and action against the dispatched task. Missing, duplicate or malformed outcomes fail closed. On needs_input ask the author through ask_user and redispatch with the response; on blocked or failed stop and report the issue. Only completed permits downstream work, and it never substitutes for an author gate or artifact readback.
89
+ Read the single wtfp.role-result entry in native validations and parse its evidence string as portable role-result JSON. A read-only reviewer returns only a verdict and checks, no wtfp.role-result entry: treat its report as completed, each failed check as an issue, and a fail verdict as a revise recommendation. Clio's dispatch result calls such a run's validation failed when a check did not pass; that is the review's finding, not a failed run, so record it as the action's procedure says. Validate its schema, role and action against the dispatched task. Missing, duplicate or malformed outcomes fail closed. On needs_input ask the author through ask_user and redispatch with the response; on blocked or failed stop and report the issue. Only completed permits downstream work, and it never substitutes for an author gate or artifact readback.
90
90
 
91
91
  <!-- Generated by WTF-P adapter compiler v5 from protocol/actions/plan-section; do not edit. -->
@@ -42,8 +42,8 @@ Write prose and linked artifacts with native file tools; keep their authored for
42
42
 
43
43
  ## Procedure
44
44
 
45
- 1. Resolve one manuscript section, its outline claims, context, plan, research, summary, decisions, evidence, neighboring prose, and review rubric.
46
- 2. Dispatch one read-only review of claim coverage, reasoning, evidence, citations, coherence, prose, and requirements. If the structured result is malformed, allow at most one corrective retry for result-contract compliance; never retry until a reviewer says pass, and do not retry warning-only or explicitly accepted debt.
45
+ 1. Resolve one manuscript section, its outline claims, context, plan, research, summary, decisions, evidence, neighboring prose, and review rubric. Review the current draft against the section's goal, claims, decisions, and the plans that shaped its content. A revision plan's preservation or no-change criteria governed that revision and its verification; they are not criteria for a later review.
46
+ 2. Dispatch one read-only review of claim coverage, reasoning, evidence, citations, coherence, prose, and requirements. If the structured result is malformed, allow at most one corrective retry for result-contract compliance; never retry until a reviewer says pass, and do not retry warning-only or explicitly accepted debt. A reviewer's fail verdict is the review's result, not a failed run: record the review and an `issues-found` validation with each failed check as an issue.
47
47
  3. Write layer, confidence, location, impact, recommendation, and other rich detail in the Markdown review. Encode the read-only validation using only members allowed by the closed v1 schema; issue objects contain only severity, summary, and optional evidence, and the root never gains an `input_revisions` member. Disputed findings go through a user gate; accepted warning debt remains an `issues-found` result and does not authorize manuscript edits.
48
48
  4. Update only the section record to link the review. Review does not write project state, create a pause checkpoint or handoff, invoke pause implicitly, or invent a `paused` phase; leave lifecycle transitions to their owning actions.
49
49
 
@@ -81,6 +81,6 @@ Every question `ask_user` puts to the author here is the author's to answer: ask
81
81
 
82
82
  Dispatch the declared specialist roles using these exact Clio agent IDs: `wtfp-section-reviewer`. Do not substitute generic coder or verifier agents. Give every dispatched task an `agent` and an `intent` with workspace-relative `read_roots`, and keep absolute paths and `project://` URIs out of the task text, so Clio admits the scope you declare instead of inferring one from the prose. If a named agent is unavailable, report that blocker and stop instead of silently changing roles. `wtfp-section-reviewer` is read-only: begin each task for it with "Review", because Clio refuses a read-only agent a task it reads as a change.
83
83
 
84
- Read the single wtfp.role-result entry in native validations and parse its evidence string as portable role-result JSON. A read-only reviewer returns only a verdict and checks, no wtfp.role-result entry: treat its report as completed, each failed check as an issue, and a fail verdict as a revise recommendation. Validate its schema, role and action against the dispatched task. Missing, duplicate or malformed outcomes fail closed. On needs_input ask the author through ask_user and redispatch with the response; on blocked or failed stop and report the issue. Only completed permits downstream work, and it never substitutes for an author gate or artifact readback.
84
+ Read the single wtfp.role-result entry in native validations and parse its evidence string as portable role-result JSON. A read-only reviewer returns only a verdict and checks, no wtfp.role-result entry: treat its report as completed, each failed check as an issue, and a fail verdict as a revise recommendation. Clio's dispatch result calls such a run's validation failed when a check did not pass; that is the review's finding, not a failed run, so record it as the action's procedure says. Validate its schema, role and action against the dispatched task. Missing, duplicate or malformed outcomes fail closed. On needs_input ask the author through ask_user and redispatch with the response; on blocked or failed stop and report the issue. Only completed permits downstream work, and it never substitutes for an author gate or artifact readback.
85
85
 
86
86
  <!-- Generated by WTF-P adapter compiler v5 from protocol/actions/review-section; do not edit. -->
@@ -65,7 +65,7 @@ $ARGUMENTS
65
65
 
66
66
  ## Clio user-gate binding
67
67
 
68
- For a pending checkpoint in the declared gate's exact scope, call `extension_wtfp__gate` with its ID; the desk shows it to the author and seals the answer. When none exists yet, create it pending through `extension_wtfp__record`, then call `extension_wtfp__gate` with its ID. Only the structured author answer satisfies the gate; cancelled, kept or expired checkpoints authorize nothing. Never write `resolution.resolved_by: author`, never resolve, unblock or expire a blocking checkpoint, and never infer approval from invocation text, prose or silence. A plan is approved only by an `approve` answer on a checkpoint scoped to that plan's URI, for its current bytes. Read back a persisted resolution with `extension_wtfp__read_record`, which reports whether the desk attests it, before applying its gated mutation. A record change that turns a gate off waits for the author's confirmation, which the record tool asks for itself.
68
+ For a pending checkpoint in the declared gate's exact scope, call `extension_wtfp__gate` with its ID; the desk shows it to the author and seals the answer. When none exists yet, create it pending through `extension_wtfp__record`, then call `extension_wtfp__gate` with its ID. The gate is the only place its question is asked: never ask it, or a preview of it, with `ask_user`, or the author answers twice. Only the structured author answer satisfies the gate; cancelled, kept or expired checkpoints authorize nothing. Never write `resolution.resolved_by: author`, never resolve, unblock or expire a blocking checkpoint, and never infer approval from invocation text, prose or silence. A plan is approved only by an `approve` answer on a checkpoint scoped to that plan's URI, for its current bytes. Read back a persisted resolution with `extension_wtfp__read_record`, which reports whether the desk attests it, before applying its gated mutation. A record change that turns a gate off waits for the author's confirmation, which the record tool asks for itself.
69
69
 
70
70
  Every question `ask_user` puts to the author here is the author's to answer: ask exactly one question per `ask_user` call, with its options and `operator_only: true`; Clio refuses an `operator_only` question sent with others. Clio never answers such a question for an absent author; an unanswered one ends the turn instead of taking a recommended option, so a timeout never becomes an author decision.
71
71
 
@@ -48,7 +48,7 @@ Write prose and linked artifacts with native file tools; keep their authored for
48
48
  1. Require the section's current plan, the last one linked from the section record, to be approved: with confirm_plan on, an `approve` answer on its plan checkpoint must have been given for its current bytes (see the protocol README). Resolve all linked context, research, source/evidence records, decisions, prior summary, existing target, and necessary neighboring prose before choosing create or update.
49
49
  2. Before drafting a literature-heavy section, verify that its linked research artifact and source/evidence records cover the plan's factual claims. If coverage is missing, create the declared checkpoint naming the uncovered claims and stop; `research-gap` produces the missing sources and evidence. Draft only the declared manuscript artifact; cite only resolvable sources, preserve author constraints, and stop at blocking decisions. A plausible bibliography entry, search candidate, or model memory is not a verified citation.
50
50
  3. Open the manuscript with the section's outline title as its only level-one heading, exactly as the outline spells it; numbering is applied at document assembly. Read the persisted manuscript text back and calculate its actual body word count with one deterministic method; never copy a worker self-report, plan target, or summary count into project records. Validate the persisted draft against its plan and word budget.
51
- 4. Create or update the required Markdown summary with that measured count, then read back both manuscript and summary. Missing, empty, or inconsistent output is a failed completion condition, not permission to link a path that does not exist.
51
+ 4. A dispatched writer has no word counter, so tell it to write the summary without a count; then add the measured count to the summary yourself and read back both manuscript and summary. Missing, empty, or inconsistent output is a failed completion condition, not permission to link a path that does not exist.
52
52
  5. Persist the validation, synchronize the manuscript URI in `manifest.artifacts.manuscripts`, and reconcile section/state records only after manuscript, summary, and validation readback succeeds. A draft that satisfies its plan sets the section to `reviewing`; `writing` means the draft is still incomplete. If blocked, create the declared checkpoint and stop; do not commit or merge automatically.
53
53
 
54
54
  ## Safety and completion
@@ -78,7 +78,7 @@ $ARGUMENTS
78
78
 
79
79
  ## Clio user-gate binding
80
80
 
81
- For a pending checkpoint in the declared gate's exact scope, call `extension_wtfp__gate` with its ID; the desk shows it to the author and seals the answer. When none exists yet, create it pending through `extension_wtfp__record`, then call `extension_wtfp__gate` with its ID. Only the structured author answer satisfies the gate; cancelled, kept or expired checkpoints authorize nothing. Never write `resolution.resolved_by: author`, never resolve, unblock or expire a blocking checkpoint, and never infer approval from invocation text, prose or silence. A plan is approved only by an `approve` answer on a checkpoint scoped to that plan's URI, for its current bytes. Read back a persisted resolution with `extension_wtfp__read_record`, which reports whether the desk attests it, before applying its gated mutation. A record change that turns a gate off waits for the author's confirmation, which the record tool asks for itself.
81
+ For a pending checkpoint in the declared gate's exact scope, call `extension_wtfp__gate` with its ID; the desk shows it to the author and seals the answer. When none exists yet, create it pending through `extension_wtfp__record`, then call `extension_wtfp__gate` with its ID. The gate is the only place its question is asked: never ask it, or a preview of it, with `ask_user`, or the author answers twice. Only the structured author answer satisfies the gate; cancelled, kept or expired checkpoints authorize nothing. Never write `resolution.resolved_by: author`, never resolve, unblock or expire a blocking checkpoint, and never infer approval from invocation text, prose or silence. A plan is approved only by an `approve` answer on a checkpoint scoped to that plan's URI, for its current bytes. Read back a persisted resolution with `extension_wtfp__read_record`, which reports whether the desk attests it, before applying its gated mutation. A record change that turns a gate off waits for the author's confirmation, which the record tool asks for itself.
82
82
 
83
83
  Every question `ask_user` puts to the author here is the author's to answer: ask exactly one question per `ask_user` call, with its options and `operator_only: true`; Clio refuses an `operator_only` question sent with others. Clio never answers such a question for an absent author; an unanswered one ends the turn instead of taking a recommended option, so a timeout never becomes an author decision.
84
84
 
@@ -86,6 +86,6 @@ Every question `ask_user` puts to the author here is the author's to answer: ask
86
86
 
87
87
  Dispatch the declared specialist roles using these exact Clio agent IDs: `wtfp-section-writer`, `wtfp-argument-verifier`. Do not substitute generic coder or verifier agents. Give every dispatched task an `agent` and an `intent` with workspace-relative `read_roots`, and keep absolute paths and `project://` URIs out of the task text, so Clio admits the scope you declare instead of inferring one from the prose. If a named agent is unavailable, report that blocker and stop instead of silently changing roles. `wtfp-argument-verifier` is read-only: begin each task for it with "Review", because Clio refuses a read-only agent a task it reads as a change.
88
88
 
89
- Read the single wtfp.role-result entry in native validations and parse its evidence string as portable role-result JSON. A read-only reviewer returns only a verdict and checks, no wtfp.role-result entry: treat its report as completed, each failed check as an issue, and a fail verdict as a revise recommendation. Validate its schema, role and action against the dispatched task. Missing, duplicate or malformed outcomes fail closed. On needs_input ask the author through ask_user and redispatch with the response; on blocked or failed stop and report the issue. Only completed permits downstream work, and it never substitutes for an author gate or artifact readback.
89
+ Read the single wtfp.role-result entry in native validations and parse its evidence string as portable role-result JSON. A read-only reviewer returns only a verdict and checks, no wtfp.role-result entry: treat its report as completed, each failed check as an issue, and a fail verdict as a revise recommendation. Clio's dispatch result calls such a run's validation failed when a check did not pass; that is the review's finding, not a failed run, so record it as the action's procedure says. Validate its schema, role and action against the dispatched task. Missing, duplicate or malformed outcomes fail closed. On needs_input ask the author through ask_user and redispatch with the response; on blocked or failed stop and report the issue. Only completed permits downstream work, and it never substitutes for an author gate or artifact readback.
90
90
 
91
91
  <!-- Generated by WTF-P adapter compiler v5 from protocol/actions/write-section; do not edit. -->
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
3
3
  "name": "wtfp",
4
- "version": "0.8.2",
4
+ "version": "0.8.4",
5
5
  "description": "Portable, evidence-grounded academic research and writing workflows.",
6
6
  "author": {
7
7
  "name": "akougkas"
@@ -21,8 +21,8 @@ Manuscript prose and supporting context, research, plan, review, summary, handof
21
21
 
22
22
  ## Procedure
23
23
 
24
- 1. Resolve one manuscript section, its outline claims, context, plan, research, summary, decisions, evidence, neighboring prose, and review rubric.
25
- 2. Dispatch one read-only review of claim coverage, reasoning, evidence, citations, coherence, prose, and requirements. If the structured result is malformed, allow at most one corrective retry for result-contract compliance; never retry until a reviewer says pass, and do not retry warning-only or explicitly accepted debt.
24
+ 1. Resolve one manuscript section, its outline claims, context, plan, research, summary, decisions, evidence, neighboring prose, and review rubric. Review the current draft against the section's goal, claims, decisions, and the plans that shaped its content. A revision plan's preservation or no-change criteria governed that revision and its verification; they are not criteria for a later review.
25
+ 2. Dispatch one read-only review of claim coverage, reasoning, evidence, citations, coherence, prose, and requirements. If the structured result is malformed, allow at most one corrective retry for result-contract compliance; never retry until a reviewer says pass, and do not retry warning-only or explicitly accepted debt. A reviewer's fail verdict is the review's result, not a failed run: record the review and an `issues-found` validation with each failed check as an issue.
26
26
  3. Write layer, confidence, location, impact, recommendation, and other rich detail in the Markdown review. Encode the read-only validation using only members allowed by the closed v1 schema; issue objects contain only severity, summary, and optional evidence, and the root never gains an `input_revisions` member. Disputed findings go through a user gate; accepted warning debt remains an `issues-found` result and does not authorize manuscript edits.
27
27
  4. Update only the section record to link the review. Review does not write project state, create a pause checkpoint or handoff, invoke pause implicitly, or invent a `paused` phase; leave lifecycle transitions to their owning actions.
28
28