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
@@ -199,6 +199,8 @@ interface SectionRow {
199
199
  acceptance: Acceptance;
200
200
  /** When the manuscript file was last written, in epoch milliseconds, or null when it does not exist. */
201
201
  writtenAt: number | null;
202
+ /** When write-section last validated a draft of this section, in epoch milliseconds, or null. */
203
+ writeValidatedAt: number | null;
202
204
  }
203
205
 
204
206
  interface Acceptance {
@@ -531,7 +533,27 @@ function writtenAt(workspace: string, manuscript: string | null): number | null
531
533
  function unappliedPlan(section: SectionRow): boolean {
532
534
  if (section.plan.state !== "approved" || !section.plan.approvedAt) return false;
533
535
  const approved = Date.parse(section.plan.approvedAt);
534
- return Number.isFinite(approved) && (section.writtenAt === null || section.writtenAt < approved);
536
+ if (!Number.isFinite(approved)) return false;
537
+ if (section.writtenAt === null || section.writtenAt < approved) return true;
538
+ // Saving the manuscript is not drafting it: write-section ends on its validation, after the measured
539
+ // count and summary. Live, a writer saved the revision, could not count it, and the section went to review.
540
+ return section.writeValidatedAt === null || section.writeValidatedAt < Math.floor(approved / 1000) * 1000;
541
+ }
542
+
543
+ /** Why write-section is next for a section whose approved plan is not applied: no draft yet, or a saved draft write-section has not finished. */
544
+ function unappliedReason(section: SectionRow): string {
545
+ const approved = Date.parse(section.plan.approvedAt ?? "");
546
+ if (section.writtenAt === null || !(section.writtenAt >= approved)) return `${section.title} has an approved revision plan that no draft has applied yet.`;
547
+ return `${section.title}'s draft for its approved plan is saved, but write-section has not finished it: measure it, write the summary with that count, record its validation and set the section status, without redrafting it.`;
548
+ }
549
+
550
+ /** When write-section last recorded a validation for this section, from its executed_at, or null. */
551
+ function writeValidatedAt(validations: Json[], id: string, manuscriptUri: string): number | null {
552
+ const times = validations
553
+ .filter((record) => record.action_id === "write-section" && validates(record, id, manuscriptUri))
554
+ .map((record) => Date.parse(text(record.executed_at)))
555
+ .filter(Number.isFinite);
556
+ return times.length > 0 ? Math.max(...times) : null;
535
557
  }
536
558
 
537
559
  const ACCEPT = "accept";
@@ -807,6 +829,7 @@ function loadDesk(workspace: string, key: Buffer | null = null): Desk {
807
829
  record,
808
830
  acceptance: acceptanceOf(validations, checkpoints, id, text(artifacts.manuscript, `project://paper/${id}`), reviews.length > 0, writtenAt(workspace, manuscript)),
809
831
  writtenAt: writtenAt(workspace, manuscript),
832
+ writeValidatedAt: writeValidatedAt(validations, id, text(artifacts.manuscript, `project://paper/${id}`)),
810
833
  };
811
834
  });
812
835
  const issues = { blocker: 0, error: 0, warning: 0, info: 0 };
@@ -1545,7 +1568,7 @@ function deliveredOf(validations: Json[], sections: SectionRow[]): boolean {
1545
1568
  function reviewNext(served: ServedPlugin, section: SectionRow): Next {
1546
1569
  const id = section.id;
1547
1570
  const acceptance = section.acceptance;
1548
- if (unappliedPlan(section)) return step(served, "write-section", id, `${section.title} has an approved revision plan that no draft has applied yet.`);
1571
+ if (unappliedPlan(section)) return step(served, "write-section", id, unappliedReason(section));
1549
1572
  if (!acceptance.reviewed) return step(served, "review-section", id, `${section.title} is drafted and waits for review.`);
1550
1573
  if (!acceptance.verified)
1551
1574
  return step(served, "verify-work", id, `${section.title} is reviewed; the author checks it against its plan and accepts it or sends it back.`);
@@ -1576,10 +1599,9 @@ function sectionNext(served: ServedPlugin, section: SectionRow): Next {
1576
1599
  return step(served, "research-gap", id, `${section.title}: ${evidenceGap(section)}.`);
1577
1600
  if (!planReady(section.plan))
1578
1601
  return step(served, "plan-section", id, `${section.title} cannot be drafted: ${section.plan.reason}.`);
1579
- // A draft written after its plan's approval is past drafting even when the record still says writing.
1580
- if (section.plan.state === "approved" && section.plan.approvedAt && section.writtenAt !== null && Date.parse(section.plan.approvedAt) <= section.writtenAt)
1581
- return reviewNext(served, section);
1582
- return step(served, "write-section", id, `${section.title} has an approved plan.`);
1602
+ // A draft written and validated after its plan's approval is past drafting even when the record still says writing.
1603
+ if (section.plan.state === "approved" && section.plan.approvedAt && !unappliedPlan(section)) return reviewNext(served, section);
1604
+ return step(served, "write-section", id, section.plan.state === "approved" && section.writtenAt !== null && section.plan.approvedAt && section.writtenAt >= Date.parse(section.plan.approvedAt) ? unappliedReason(section) : `${section.title} has an approved plan.`);
1583
1605
  default:
1584
1606
  if (!section.stages.discuss) return step(served, "discuss-section", id, `Settle what ${section.title} must argue.`);
1585
1607
  if (section.research.required && !section.research.present)
@@ -1676,6 +1698,15 @@ function driveStep(desk: Desk, drive: Drive): DriveDecision {
1676
1698
  };
1677
1699
  return { kind: "stop", reason: `${next.command} ran and changed nothing the next step depends on, so the desk stops instead of repeating it. ${next.reason}` };
1678
1700
  }
1701
+ // Live, write-section measured its draft and the desk armed it again with the same words, which the model took for a loop.
1702
+ if (last && last.action === next.action && last.section === section)
1703
+ return {
1704
+ kind: "step",
1705
+ action: next.action,
1706
+ section,
1707
+ prompt: `ai.iowarp.clio/prompts/wtfp/${next.action}.md`,
1708
+ reason: `Continue ${next.command}: it made progress but has not finished, so the desk arms it again on purpose; this is not a loop. ${next.reason}`,
1709
+ };
1679
1710
  return { kind: "step", action: next.action, section, prompt: `ai.iowarp.clio/prompts/wtfp/${next.action}.md`, reason: next.reason };
1680
1711
  }
1681
1712
 
@@ -1686,6 +1717,13 @@ function driveStep(desk: Desk, drive: Drive): DriveDecision {
1686
1717
  const DRIVER_RULE =
1687
1718
  "Driver rule for this /wtfp:advance run: the desk, not you, picks every step, so finish the step it armed and call extension_wtfp__next_step with after naming that step (\"start\" for the first call), call extension_wtfp__gate with the checkpoint it names and then extension_wtfp__next_step, and on a stop, a failed step or a refused call report the steps taken and end the turn without choosing another action.";
1688
1719
 
1720
+ /**
1721
+ * Live on Clio 0.8.3, the model looked for a capability named after the step's action, found none in the
1722
+ * turn's list, and stopped the drive as if the step were forbidden.
1723
+ */
1724
+ const STEP_IS_A_PROCEDURE =
1725
+ "A step is a procedure, not a capability: there is no tool named after its action, so do it with this turn's tools as its prompt says.";
1726
+
1689
1727
  /** Where a step's prompt lives, stated so it survives the loss of the advance prompt's resolved plugin root. */
1690
1728
  function stepPrompt(prompt: string): string {
1691
1729
  return `<plugin root>/${prompt}, where <plugin root> is the WTF-P plugin root (two directories above the base_dir of the loaded wtfp-manage-project skill; the prompt's \${pluginRoot} paths mean that root)`;
@@ -3672,7 +3710,7 @@ export default function extension(api: ExtensionApiV2): void {
3672
3710
  } satisfies Drive);
3673
3711
  const invocation = `/wtfp:${decision.action}${decision.section ? ` ${decision.section}` : ""}`;
3674
3712
  return {
3675
- text: `${lead}Step ${drive.steps.length + 1}: ${invocation}. ${decision.reason} The write guard is armed for ${decision.action}${decision.section ? ` ${decision.section}` : ""} only. Read and follow ${stepPrompt(decision.prompt)} with ${decision.section ? `invocation input ${decision.section}` : "no invocation input"}. ${DRIVER_RULE}`,
3713
+ text: `${lead}Step ${drive.steps.length + 1}: ${invocation}. ${decision.reason} The write guard is armed for ${decision.action}${decision.section ? ` ${decision.section}` : ""} only. Read and follow ${stepPrompt(decision.prompt)} with ${decision.section ? `invocation input ${decision.section}` : "no invocation input"}. ${STEP_IS_A_PROCEDURE} ${DRIVER_RULE}`,
3676
3714
  data: decision,
3677
3715
  };
3678
3716
  });
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wtfp",
3
- "version": "0.8.2",
3
+ "version": "0.8.4",
4
4
  "description": "Evidence-grounded academic research, planning, writing, review, and delivery workflows.",
5
5
  "author": {
6
6
  "name": "akougkas",
@@ -2,11 +2,11 @@
2
2
  "schema": "wtfp.generated-adapter/v1",
3
3
  "generatorVersion": 5,
4
4
  "target": "codex",
5
- "sourceHash": "b9611cbc56a68de077b323da6834b6f7c09efdd6ebf1ce2abc8d930ef36eab9a",
5
+ "sourceHash": "44668138082405e0d15bea07cbddbc5660ba0213b39a1a90c575559bd93f48d4",
6
6
  "files": [
7
7
  {
8
8
  "path": ".codex-plugin/plugin.json",
9
- "sha256": "05546bc2c500cfb604048d603953c47aa259dbfe9db19495b566211ebe93a6f3"
9
+ "sha256": "a119daff97ad53f30fe0e4a3a7a9538860fa344943bc1ff3a91138233daac071"
10
10
  },
11
11
  {
12
12
  "path": "actions/add-todo.json",
@@ -226,7 +226,7 @@
226
226
  },
227
227
  {
228
228
  "path": "plugin.json",
229
- "sha256": "6254a3665bf3544e02785c5d51473a29212f73023b6b09e85169f8e662ceb4be"
229
+ "sha256": "eb20bc2e6f9173b4c79b835c35b4ccb2e1750940c76e5dbd1d2bfd8dd3356004"
230
230
  },
231
231
  {
232
232
  "path": "project/README.md",
@@ -674,7 +674,7 @@
674
674
  },
675
675
  {
676
676
  "path": "workflows/review-section.md",
677
- "sha256": "a85252f9bf6067602548c0355817f27e3689fc10ec9292441da09a5351045a6a"
677
+ "sha256": "a3df01d14a7fe0480bb8663347496acdeeed967042f189e25c8b017aa7e01c0c"
678
678
  },
679
679
  {
680
680
  "path": "workflows/settings.md",
@@ -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
 
@@ -2,11 +2,11 @@
2
2
  "schema": "wtfp.generated-adapter/v1",
3
3
  "generatorVersion": 5,
4
4
  "target": "copilot-marketplace",
5
- "sourceHash": "8b81b864ac03ec1c6ea3bc180fbc84b3008e14c566b57d97debf0ea02a49eb00",
5
+ "sourceHash": "693b9d8fa932727479be53609f40d88a434e9325be092f719ce0f721c6535624",
6
6
  "files": [
7
7
  {
8
8
  "path": "marketplace.json",
9
- "sha256": "d04ef5defff3c9904b5d18e068e14cf58ec7ff2b50875ff6f75bb7e3c9bb7584"
9
+ "sha256": "fc8fd935dff1fec37b50187c75ebc2e51b31bad773651a50c80953073aa55bc5"
10
10
  },
11
11
  {
12
12
  "path": "project/.github/agents/wtfp-argument-verifier.agent.md",
@@ -858,7 +858,7 @@
858
858
  },
859
859
  {
860
860
  "path": "project/.github/wtfp/workflows/review-section.md",
861
- "sha256": "a85252f9bf6067602548c0355817f27e3689fc10ec9292441da09a5351045a6a"
861
+ "sha256": "a3df01d14a7fe0480bb8663347496acdeeed967042f189e25c8b017aa7e01c0c"
862
862
  },
863
863
  {
864
864
  "path": "project/.github/wtfp/workflows/settings.md",
@@ -5,14 +5,14 @@
5
5
  },
6
6
  "metadata": {
7
7
  "description": "WTF-P research workflow plugins",
8
- "version": "0.8.2"
8
+ "version": "0.8.4"
9
9
  },
10
10
  "plugins": [
11
11
  {
12
12
  "name": "wtfp",
13
13
  "source": "./plugins/wtfp",
14
14
  "description": "Portable academic research and writing workflows.",
15
- "version": "0.8.2",
15
+ "version": "0.8.4",
16
16
  "author": {
17
17
  "name": "akougkas"
18
18
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wtfp",
3
- "version": "0.8.2",
3
+ "version": "0.8.4",
4
4
  "description": "Portable academic research and writing workflows with stable wtfp actions.",
5
5
  "author": {
6
6
  "name": "akougkas",
@@ -2,11 +2,11 @@
2
2
  "schema": "wtfp.generated-adapter/v1",
3
3
  "generatorVersion": 5,
4
4
  "target": "copilot",
5
- "sourceHash": "faa95e68451ae98feae21bf721036b1308bbc12ad260b722861e044df7f9da92",
5
+ "sourceHash": "d89330408064281e02568b950d978a95394ceb6927512d31e96cd5a19920cfb7",
6
6
  "files": [
7
7
  {
8
8
  "path": ".claude-plugin/plugin.json",
9
- "sha256": "d3a5ab8f021de345bc8b3a5c85630bce486473e913eab2d3c31db59caa7050fd"
9
+ "sha256": "8f3a5c872e2792796744d1b91523e3d1460b4d9c8abbe956f43324382dff9b4b"
10
10
  },
11
11
  {
12
12
  "path": "actions/add-todo.json",
@@ -334,7 +334,7 @@
334
334
  },
335
335
  {
336
336
  "path": "commands/wtfp-review-section.md",
337
- "sha256": "d85c8ac5883224dfc2ec1b6a638532a15326945fa8af8f70b38c4d8d42168115"
337
+ "sha256": "9e471d1079ce8df07d4a1088ccfca81536b6f553d0bf558a5ac7d96cedbe0c91"
338
338
  },
339
339
  {
340
340
  "path": "commands/wtfp-settings.md",
@@ -818,7 +818,7 @@
818
818
  },
819
819
  {
820
820
  "path": "workflows/review-section.md",
821
- "sha256": "a85252f9bf6067602548c0355817f27e3689fc10ec9292441da09a5351045a6a"
821
+ "sha256": "a3df01d14a7fe0480bb8663347496acdeeed967042f189e25c8b017aa7e01c0c"
822
822
  },
823
823
  {
824
824
  "path": "workflows/settings.md",
@@ -29,8 +29,8 @@ Manuscript prose and supporting context, research, plan, review, summary, handof
29
29
 
30
30
  ## Procedure
31
31
 
32
- 1. Resolve one manuscript section, its outline claims, context, plan, research, summary, decisions, evidence, neighboring prose, and review rubric.
33
- 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.
32
+ 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.
33
+ 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.
34
34
  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.
35
35
  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.
36
36
 
@@ -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
 
@@ -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
 
@@ -2,7 +2,7 @@
2
2
  "schema": "wtfp.generated-adapter/v1",
3
3
  "generatorVersion": 5,
4
4
  "target": "gemini",
5
- "sourceHash": "154df9f25e4f7674c7c933f58af6ff45133962db1acb47409e10bd5ad4bef49c",
5
+ "sourceHash": "67d4ec7ad09a7e0457ea5e9d52756034cd0a5d93db5b693a8942fe6e343ad4eb",
6
6
  "files": [
7
7
  {
8
8
  "path": "actions/add-todo.json",
@@ -330,7 +330,7 @@
330
330
  },
331
331
  {
332
332
  "path": "commands/wtfp/review-section.toml",
333
- "sha256": "7eca569371f6ecd4fc85bee9623cd54d846825edb635a594bcacf3dd8c098194"
333
+ "sha256": "8dbb6976e7213b2774f74d3aab1e085311960954761c2c76d784ed704623b892"
334
334
  },
335
335
  {
336
336
  "path": "commands/wtfp/settings.toml",
@@ -370,7 +370,7 @@
370
370
  },
371
371
  {
372
372
  "path": "gemini-extension.json",
373
- "sha256": "cbc9da86e00213524f86f5ff65dafdf17a22871ef46c168b9c6dfb535cbbe65e"
373
+ "sha256": "3cf3233ae42cdea3401da1e6690d600f71fc2852696f7422a756f33e4bca115e"
374
374
  },
375
375
  {
376
376
  "path": "GEMINI.md",
@@ -822,7 +822,7 @@
822
822
  },
823
823
  {
824
824
  "path": "workflows/review-section.md",
825
- "sha256": "a85252f9bf6067602548c0355817f27e3689fc10ec9292441da09a5351045a6a"
825
+ "sha256": "a3df01d14a7fe0480bb8663347496acdeeed967042f189e25c8b017aa7e01c0c"
826
826
  },
827
827
  {
828
828
  "path": "workflows/settings.md",
@@ -270,8 +270,8 @@ Manuscript prose and supporting context, research, plan, review, summary, handof
270
270
 
271
271
  ## Procedure
272
272
 
273
- 1. Resolve one manuscript section, its outline claims, context, plan, research, summary, decisions, evidence, neighboring prose, and review rubric.
274
- 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.
273
+ 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.
274
+ 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.
275
275
  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.
276
276
  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.
277
277
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wtfp",
3
- "version": "0.8.2",
3
+ "version": "0.8.4",
4
4
  "description": "Portable academic research and writing workflows for Gemini CLI.",
5
5
  "contextFileName": "GEMINI.md"
6
6
  }
@@ -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
 
@@ -2,7 +2,7 @@
2
2
  "schema": "wtfp.generated-adapter/v1",
3
3
  "generatorVersion": 5,
4
4
  "target": "opencode",
5
- "sourceHash": "6634d12cc3e2fe4e09722ed19997cecb179a9a97f3b1587ce737b3245da00c1c",
5
+ "sourceHash": "e303da270bbb44cbb7085cc6d987d66b92c5260e6c03d67c6c22ad4a13dd2975",
6
6
  "files": [
7
7
  {
8
8
  "path": "actions/add-todo.json",
@@ -330,7 +330,7 @@
330
330
  },
331
331
  {
332
332
  "path": "commands/wtfp/review-section.md",
333
- "sha256": "ac7bc1f23a21c49e8839020a5251551118116c25012ec37422da20ea05c629b1"
333
+ "sha256": "713acbd716e67882cf027337cb0576e08801613ff42d7d10075f313f420e37fd"
334
334
  },
335
335
  {
336
336
  "path": "commands/wtfp/settings.md",
@@ -814,7 +814,7 @@
814
814
  },
815
815
  {
816
816
  "path": "workflows/review-section.md",
817
- "sha256": "a85252f9bf6067602548c0355817f27e3689fc10ec9292441da09a5351045a6a"
817
+ "sha256": "a3df01d14a7fe0480bb8663347496acdeeed967042f189e25c8b017aa7e01c0c"
818
818
  },
819
819
  {
820
820
  "path": "workflows/settings.md",
@@ -273,8 +273,8 @@ Manuscript prose and supporting context, research, plan, review, summary, handof
273
273
 
274
274
  ## Procedure
275
275
 
276
- 1. Resolve one manuscript section, its outline claims, context, plan, research, summary, decisions, evidence, neighboring prose, and review rubric.
277
- 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.
276
+ 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.
277
+ 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.
278
278
  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.
279
279
  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.
280
280
 
@@ -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
 
@@ -2,7 +2,7 @@
2
2
  "schema": "wtfp.generated-adapter/v1",
3
3
  "generatorVersion": 5,
4
4
  "target": "portable-plugin",
5
- "sourceHash": "6ecc235a879fc42cfd6771e3c73b99c3bd8f917f92e94e2ecd16c2dcdad69313",
5
+ "sourceHash": "cdb620c7a98af75a0874bcb1cb2db8c25c989d64a76a8fcc7de3a821737ce66c",
6
6
  "files": [
7
7
  {
8
8
  "path": "actions/add-todo.json",
@@ -194,7 +194,7 @@
194
194
  },
195
195
  {
196
196
  "path": "ai.iowarp.clio/agents/wtfp-section-writer.md",
197
- "sha256": "d85a1b9af18c376cbcc2e5930ff74f880661865234509319a0e3b61eb9f73cd4"
197
+ "sha256": "e0247578c03b442fb97b86116e172f00be77b5aa3a52973e6a6a227572b81d8b"
198
198
  },
199
199
  {
200
200
  "path": "ai.iowarp.clio/playbooks/wtfp-draft-review.md",
@@ -210,7 +210,7 @@
210
210
  },
211
211
  {
212
212
  "path": "ai.iowarp.clio/prompts/wtfp/advance.md",
213
- "sha256": "1229f7714a73c7bc1840971533f19f65a8bbe5fd305550f013ac6501cc6fb163"
213
+ "sha256": "66876b8bd7669c91ed528d1f6a14c76fe153800466885516358a98d2253f8125"
214
214
  },
215
215
  {
216
216
  "path": "ai.iowarp.clio/prompts/wtfp/analyze-bib.md",
@@ -230,7 +230,7 @@
230
230
  },
231
231
  {
232
232
  "path": "ai.iowarp.clio/prompts/wtfp/checkpoint.md",
233
- "sha256": "5eac76dc9064420676b5145aa972211a19c40a8508be2b613506b183ab2ce3ea"
233
+ "sha256": "5edcfc7acf36318be0aa9cbd47c8959d1098e184e86f4fb3bb19abbdbd379966"
234
234
  },
235
235
  {
236
236
  "path": "ai.iowarp.clio/prompts/wtfp/contribute.md",
@@ -250,11 +250,11 @@
250
250
  },
251
251
  {
252
252
  "path": "ai.iowarp.clio/prompts/wtfp/discuss-section.md",
253
- "sha256": "44842e7393286cf85599b41f1e0de541194e3c7741bf6fa37649b2b78c53c034"
253
+ "sha256": "ed9e66fc8f0068dcc823288a51bd36edd90d4bc10c19be57f7817aeb4132a623"
254
254
  },
255
255
  {
256
256
  "path": "ai.iowarp.clio/prompts/wtfp/execute-outline.md",
257
- "sha256": "e045894ed4fc284c8ea979191f981c2076704db8c2e4e03015468ad59c5738ac"
257
+ "sha256": "de735c31a0f69fcab8858787dfcfb14697f855c9f9610961baccfd7fb21a2c16"
258
258
  },
259
259
  {
260
260
  "path": "ai.iowarp.clio/prompts/wtfp/export-latex.md",
@@ -262,7 +262,7 @@
262
262
  },
263
263
  {
264
264
  "path": "ai.iowarp.clio/prompts/wtfp/help.md",
265
- "sha256": "f4d62aac0149e073db13f748b3cf9dc465c8e6311e7ce03cc7bf6dc55c3bd559"
265
+ "sha256": "97e9758c414f60b044d67c31b41800f2c8a5a67a4c0b19f98d31ee80fd097565"
266
266
  },
267
267
  {
268
268
  "path": "ai.iowarp.clio/prompts/wtfp/insert-section.md",
@@ -286,15 +286,15 @@
286
286
  },
287
287
  {
288
288
  "path": "ai.iowarp.clio/prompts/wtfp/plan-milestone-gaps.md",
289
- "sha256": "f88920aa6285668a023640b66f4e3ac2706a9bd592c00ac9d28d92d00f456166"
289
+ "sha256": "e046ea3a0d701046c418a12babba747c7e1a6663b503343959ebfca90b531392"
290
290
  },
291
291
  {
292
292
  "path": "ai.iowarp.clio/prompts/wtfp/plan-revision.md",
293
- "sha256": "2ab20d50a42694c204616a90d0e0bfd2578a316551c9101c137ee1972666a957"
293
+ "sha256": "f91ab03db0b9a73616ce231f83a7338ee8d3bd419e54a42f5421717c5c8902c2"
294
294
  },
295
295
  {
296
296
  "path": "ai.iowarp.clio/prompts/wtfp/plan-section.md",
297
- "sha256": "0851abdbb26c2bd61cef5c321c627c7f04a197074337308742e05c54e6a3a674"
297
+ "sha256": "46dd418555c3d12dd8649adfd1110cd350426fc9a3e5ee55342c433cd0505080"
298
298
  },
299
299
  {
300
300
  "path": "ai.iowarp.clio/prompts/wtfp/polish-prose.md",
@@ -330,7 +330,7 @@
330
330
  },
331
331
  {
332
332
  "path": "ai.iowarp.clio/prompts/wtfp/review-section.md",
333
- "sha256": "faa85c32aa2544774d310e5d253d443c01b7fa603f3fef85fffed63240746ee1"
333
+ "sha256": "a719589d2165ced249671b2ad85a0fd5db87be0759938f80f8081aae83e96f28"
334
334
  },
335
335
  {
336
336
  "path": "ai.iowarp.clio/prompts/wtfp/settings.md",
@@ -346,11 +346,11 @@
346
346
  },
347
347
  {
348
348
  "path": "ai.iowarp.clio/prompts/wtfp/verify-work.md",
349
- "sha256": "429b66667cb99a8738b3597bf55a08f097e34555b989b69cdbdb424243886550"
349
+ "sha256": "7825dd8cdd1a7bc92beb9e313addcdcd4caa3eb0be7d0205a2e0b913505b5883"
350
350
  },
351
351
  {
352
352
  "path": "ai.iowarp.clio/prompts/wtfp/write-section.md",
353
- "sha256": "868dae33ac9b3cbfa18a69dbd76431dcf5c1ce7e644858c7df09a4ba2bac8527"
353
+ "sha256": "a4df3cf43fc8e23a63c4211c7707323f77679268ea776c9dd64fc87927489339"
354
354
  },
355
355
  {
356
356
  "path": "aliases.lock.json",
@@ -370,7 +370,7 @@
370
370
  },
371
371
  {
372
372
  "path": "plugin.json",
373
- "sha256": "50c17365c3046daa167b197cbbe42a2882bef2c66d25fa96509b29ff3c7e8f4c"
373
+ "sha256": "cc23ad6c6a93f9123224e3c8a431e8091987a9838f2ebeabba7426d2cfed68d5"
374
374
  },
375
375
  {
376
376
  "path": "project/README.md",
@@ -818,7 +818,7 @@
818
818
  },
819
819
  {
820
820
  "path": "workflows/review-section.md",
821
- "sha256": "a85252f9bf6067602548c0355817f27e3689fc10ec9292441da09a5351045a6a"
821
+ "sha256": "a3df01d14a7fe0480bb8663347496acdeeed967042f189e25c8b017aa7e01c0c"
822
822
  },
823
823
  {
824
824
  "path": "workflows/settings.md",
@@ -59,6 +59,8 @@ Execute an approved section plan into evidence-grounded academic prose or the ex
59
59
  - Do not commit, delete, rename, publish, or perform destructive operations unless the exact effect is granted by the action contract.
60
60
  - Do not initiate human interaction. Encode checkpoint needs in the result for the orchestrator.
61
61
 
62
+ 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.
63
+
62
64
  ## Clio result contract
63
65
 
64
66
  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.
@@ -88,7 +88,7 @@ $ARGUMENTS
88
88
 
89
89
  ## Clio user-gate binding
90
90
 
91
- 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.
91
+ 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.
92
92
 
93
93
  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.
94
94
 
@@ -96,6 +96,6 @@ Every question `ask_user` puts to the author here is the author's to answer: ask
96
96
 
97
97
  Dispatch the declared specialist roles using these exact Clio agent IDs: `wtfp-outliner`, `wtfp-research-synthesizer`, `wtfp-section-planner`, `wtfp-plan-checker`, `wtfp-section-writer`, `wtfp-argument-verifier`, `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-plan-checker`, `wtfp-argument-verifier`, `wtfp-section-reviewer` are read-only: begin each task for them with "Review", because Clio refuses a read-only agent a task it reads as a change.
98
98
 
99
- 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.
99
+ 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.
100
100
 
101
101
  <!-- Generated by WTF-P adapter compiler v5 from protocol/actions/advance; do not edit. -->
@@ -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
 
@@ -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