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.
- package/README.md +9 -9
- package/bin/lib/adapter-compiler.js +7 -3
- package/package.json +2 -1
- package/protocol/workflows/review-section.md +2 -2
- package/vendors/antigravity/.wtfp-generated.json +4 -4
- package/vendors/antigravity/plugin.json +2 -2
- package/vendors/antigravity/skills/wtfp-review-section/SKILL.md +2 -2
- package/vendors/antigravity/workflows/review-section.md +2 -2
- package/vendors/claude/.claude-plugin/marketplace.json +2 -2
- package/vendors/claude/.claude-plugin/plugin.json +1 -1
- package/vendors/claude/.wtfp-generated.json +12 -12
- package/vendors/claude/ai.iowarp.clio/agents/wtfp-section-writer.md +2 -0
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/execute-outline.md +1 -1
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/help.md +1 -1
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/plan-section.md +1 -1
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/review-section.md +3 -3
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/write-section.md +1 -1
- package/vendors/claude/commands/review-section.md +2 -2
- package/vendors/claude/plugin.json +1 -1
- package/vendors/claude/workflows/review-section.md +2 -2
- package/vendors/clio-extension/.wtfp-generated.json +4 -4
- package/vendors/clio-extension/clio-coder-extension.yaml +1 -1
- package/vendors/clio-extension/runtime/extension.test.ts +31 -1
- package/vendors/clio-extension/runtime/extension.ts +45 -7
- package/vendors/codex/plugins/wtfp/.codex-plugin/plugin.json +1 -1
- package/vendors/codex/plugins/wtfp/.wtfp-generated.json +4 -4
- package/vendors/codex/plugins/wtfp/plugin.json +1 -1
- package/vendors/codex/plugins/wtfp/workflows/review-section.md +2 -2
- package/vendors/copilot/.wtfp-generated.json +3 -3
- package/vendors/copilot/marketplace.json +2 -2
- package/vendors/copilot/plugins/wtfp/.claude-plugin/plugin.json +1 -1
- package/vendors/copilot/plugins/wtfp/.wtfp-generated.json +4 -4
- package/vendors/copilot/plugins/wtfp/commands/wtfp-review-section.md +2 -2
- package/vendors/copilot/plugins/wtfp/workflows/review-section.md +2 -2
- package/vendors/copilot/project/.github/wtfp/workflows/review-section.md +2 -2
- package/vendors/gemini/.wtfp-generated.json +4 -4
- package/vendors/gemini/commands/wtfp/review-section.toml +2 -2
- package/vendors/gemini/gemini-extension.json +1 -1
- package/vendors/gemini/workflows/review-section.md +2 -2
- package/vendors/opencode/.wtfp-generated.json +3 -3
- package/vendors/opencode/commands/wtfp/review-section.md +2 -2
- package/vendors/opencode/workflows/review-section.md +2 -2
- package/vendors/plugin/.wtfp-generated.json +15 -15
- package/vendors/plugin/ai.iowarp.clio/agents/wtfp-section-writer.md +2 -0
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/advance.md +2 -2
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/checkpoint.md +1 -1
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/discuss-section.md +1 -1
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/execute-outline.md +2 -2
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/help.md +1 -1
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/plan-milestone-gaps.md +1 -1
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/plan-revision.md +1 -1
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/plan-section.md +2 -2
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/review-section.md +3 -3
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/verify-work.md +1 -1
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/write-section.md +3 -3
- package/vendors/plugin/plugin.json +1 -1
- package/vendors/plugin/workflows/review-section.md +2 -2
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@ the scientific judgment. The agent keeps the bookkeeping and does bounded jobs.
|
|
|
19
19
|
|
|
20
20
|
It ships as one canonical [Agent Plugins 1.0.0](https://agent-plugins.org)
|
|
21
21
|
bundle that a deterministic compiler projects into a native package for seven
|
|
22
|
-
coding-agent hosts. Version `0.8.
|
|
22
|
+
coding-agent hosts. Version `0.8.4` is the current stable release and is
|
|
23
23
|
what npm `latest` resolves to; v0.5 remains installable by explicit version.
|
|
24
24
|
|
|
25
25
|
**Optional CiteNexus research backend (since 0.7.0):** `citation-search --backend=cite-nexus`
|
|
@@ -56,13 +56,13 @@ registers it with the host's native plugin lifecycle where one exists.
|
|
|
56
56
|
|
|
57
57
|
| Host | Install | Native registration the installer performs | Verified with |
|
|
58
58
|
| --- | --- | --- | --- |
|
|
59
|
-
| Clio Coder (0.6.3 or newer) | `npx --yes --package=wtf-p@0.8.
|
|
60
|
-
| Claude Code | `npx --yes --package=wtf-p@0.8.
|
|
61
|
-
| Codex | `npx --yes --package=wtf-p@0.8.
|
|
62
|
-
| GitHub Copilot CLI | `npx --yes --package=wtf-p@0.8.
|
|
63
|
-
| OpenCode | `npx --yes --package=wtf-p@0.8.
|
|
64
|
-
| Antigravity CLI | `npx --yes --package=wtf-p@0.8.
|
|
65
|
-
| Gemini CLI | `npx --yes --package=wtf-p@0.8.
|
|
59
|
+
| Clio Coder (0.6.3 or newer) | `npx --yes --package=wtf-p@0.8.4 -- wtf-p install clio` | `clio-coder library install <staged-bundle> --user` and `clio-coder library inspect plugin:wtfp --user --json`, then `clio-coder extensions install <staged-extension> --user` and `clio-coder extensions list --user --json` | Clio Coder 0.8.3 release: desk tests 61/61 and a brownfield revision driven back to a delivered milestone |
|
|
60
|
+
| Claude Code | `npx --yes --package=wtf-p@0.8.4 -- wtf-p install claude` | `claude plugin marketplace add <root>/marketplaces/wtfp --scope user`, then `claude plugin install wtfp@wtfp --scope user -y` | 2.1.319 |
|
|
61
|
+
| Codex | `npx --yes --package=wtf-p@0.8.4 -- wtf-p install codex` | `codex plugin marketplace add <root>/marketplaces/wtfp`, then `codex plugin add wtfp@wtfp --json`; agents copied to `$CODEX_HOME/agents/` | 0.163.0 |
|
|
62
|
+
| GitHub Copilot CLI | `npx --yes --package=wtf-p@0.8.4 -- wtf-p install copilot` | `copilot plugin marketplace add <root>/marketplaces/wtfp`, then `copilot plugin install wtfp@wtfp` | 1.0.107 |
|
|
63
|
+
| OpenCode | `npx --yes --package=wtf-p@0.8.4 -- wtf-p install opencode` | Files under the OpenCode config root; OpenCode discovers them by directory | 1.19.5 |
|
|
64
|
+
| Antigravity CLI | `npx --yes --package=wtf-p@0.8.4 -- wtf-p install antigravity` | `agy plugin install <root>/sources/wtfp` | 1.5.3 |
|
|
65
|
+
| Gemini CLI | `npx --yes --package=wtf-p@0.8.4 -- wtf-p install gemini` | Files under `<root>/extensions/wtfp`; Gemini discovers the extension by directory | 0.67.0 |
|
|
66
66
|
|
|
67
67
|
"Verified" means native discovery in a disposable profile on this exact
|
|
68
68
|
envelope, with the commands recorded in
|
|
@@ -77,7 +77,7 @@ the old executable instead.
|
|
|
77
77
|
## Sixty-second start
|
|
78
78
|
|
|
79
79
|
```bash
|
|
80
|
-
npx --yes --package=wtf-p@0.8.
|
|
80
|
+
npx --yes --package=wtf-p@0.8.4 -- wtf-p install clio
|
|
81
81
|
cd /path/to/your-paper-or-proposal
|
|
82
82
|
clio-coder --autonomy yolo
|
|
83
83
|
```
|
|
@@ -643,7 +643,7 @@ function clioUserGateBody(action, deskTools = false) {
|
|
|
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');
|
|
645
645
|
const route = createsCheckpoint
|
|
646
|
-
? 'For a pending checkpoint in the declared gate\'s exact scope, call `extension_wtfp__gate` with its ID; the desk shows it to the author and seals the answer. When none exists yet, create it pending through `extension_wtfp__record`, then call `extension_wtfp__gate` with its ID.'
|
|
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
649
|
'## Clio user-gate binding',
|
|
@@ -708,7 +708,9 @@ function clioDeskWorkflowBody(action, workflowBody) {
|
|
|
708
708
|
.replace(/^Manuscript prose and supporting context,[^\n]+$/m,
|
|
709
709
|
'Write prose and linked artifacts with native file tools; keep their authored formats. The record tool handles JSON records only, never manuscript text, deletion or archives.');
|
|
710
710
|
if (action.id === 'write-section') body = body.replace(/^3\. Read the persisted manuscript text back[^\n]+$/m,
|
|
711
|
-
'3. Read back the persisted manuscript, call `extension_wtfp__measure_section` with its section ID, and use the returned body count and target tolerance for validation and the summary; never use a worker self-report or hand-count words.')
|
|
711
|
+
'3. Read back the persisted manuscript, call `extension_wtfp__measure_section` with its section ID, and use the returned body count and target tolerance for validation and the summary; never use a worker self-report or hand-count words.')
|
|
712
|
+
.replace(/^4\. Create or update the required Markdown summary with that measured count,[^\n]+$/m,
|
|
713
|
+
'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.');
|
|
712
714
|
if (action.id === 'check-todos') body = body
|
|
713
715
|
.replace(/^2\. Ask the user[^\n]+$/m, '2. Call `extension_wtfp__gate` for each selected pending checkpoint; the parked interview records the author\'s answer.')
|
|
714
716
|
.replace(/^3\. Apply only[^\n]+$/m, '3. Read back the resulting checkpoint and state; retained or cancelled gates remain pending.');
|
|
@@ -920,7 +922,7 @@ function renderMarkdownCommand(action, workflowBody, target, availability, deskT
|
|
|
920
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.` : '';
|
|
921
923
|
const inlineRoles = target === 'clio' ? clioInlineRoles(action, reviewers, deskTools) : [];
|
|
922
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'}.` : '';
|
|
923
|
-
const userGateBody = target === 'clio' ? [clioUserGateBody(action, deskTools), clioResearchConnectionBody(action), inlineBody, action.delegation.length > inlineRoles.length ? `## Clio role-result binding\n\nDispatch the declared specialist roles using these exact Clio agent IDs: ${clioRoles}. Do not substitute generic coder or verifier agents. Give every dispatched task an \`agent\` and an \`intent\` with workspace-relative \`read_roots\`, and keep absolute paths and \`project://\` URIs out of the task text, so Clio admits the scope you declare instead of inferring one from the prose. If a named agent is unavailable, report that blocker and stop instead of silently changing roles.${reviewerPhrasing}\n\nRead the single wtfp.role-result entry in native validations and parse its evidence string as portable role-result JSON.${clioReviewers.length ? ` A read-only reviewer returns only a verdict and checks, no wtfp.role-result entry: treat its report as completed, each failed check as an issue, and a fail verdict as a revise recommendation.` : ''} Validate its schema, role and action against the dispatched task. Missing, duplicate or malformed outcomes fail closed. On needs_input ask the author through ask_user and redispatch with the response; on blocked or failed stop and report the issue. Only completed permits downstream work, and it never substitutes for an author gate or artifact readback.` : ''].filter(Boolean).join('\n\n') : '';
|
|
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') : '';
|
|
924
926
|
lines.push(
|
|
925
927
|
'---',
|
|
926
928
|
'',
|
|
@@ -1232,6 +1234,8 @@ function renderClioRole(role, slug) {
|
|
|
1232
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.', ''] : []),
|
|
1233
1235
|
nativeWorkflowBody(roleBodyWithoutPortableResult(role), 'clio'),
|
|
1234
1236
|
'',
|
|
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.', ''] : []),
|
|
1235
1239
|
'## Clio result contract',
|
|
1236
1240
|
'',
|
|
1237
1241
|
nativeResult,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wtf-p",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.4",
|
|
4
4
|
"description": "Portable, evidence-grounded academic writing workflows (papers, proposals, posters, presentations) for Clio Coder, Claude Code, Codex, GitHub Copilot CLI, OpenCode, Antigravity CLI, and Gemini CLI.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"wtfp": "bin/install.js",
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"test:all": "npm test && npm run test:integration",
|
|
21
21
|
"preflight": "node scripts/preflight.js",
|
|
22
22
|
"prepack": "npm run check:adapters",
|
|
23
|
+
"prepublishOnly": "node scripts/publish-guard.js",
|
|
23
24
|
"release": "node scripts/release.js"
|
|
24
25
|
},
|
|
25
26
|
"files": [
|
|
@@ -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": "antigravity",
|
|
5
|
-
"sourceHash": "
|
|
5
|
+
"sourceHash": "c677e578716fd45c077dfd9c3673c77de739b832c7024c4bf816c839f9c838ad",
|
|
6
6
|
"files": [
|
|
7
7
|
{
|
|
8
8
|
"path": "actions/add-todo.json",
|
|
@@ -222,7 +222,7 @@
|
|
|
222
222
|
},
|
|
223
223
|
{
|
|
224
224
|
"path": "plugin.json",
|
|
225
|
-
"sha256": "
|
|
225
|
+
"sha256": "d62abbd8f0e0d28b1c3500f83328e7b3931b1416ef6de640ef03f357037b172f"
|
|
226
226
|
},
|
|
227
227
|
{
|
|
228
228
|
"path": "project/README.md",
|
|
@@ -578,7 +578,7 @@
|
|
|
578
578
|
},
|
|
579
579
|
{
|
|
580
580
|
"path": "skills/wtfp-review-section/SKILL.md",
|
|
581
|
-
"sha256": "
|
|
581
|
+
"sha256": "739aee1ea05f18bf8d12831233016afb76cfd7814df2eadb2d480fc17d5a4a00"
|
|
582
582
|
},
|
|
583
583
|
{
|
|
584
584
|
"path": "skills/wtfp-settings/SKILL.md",
|
|
@@ -814,7 +814,7 @@
|
|
|
814
814
|
},
|
|
815
815
|
{
|
|
816
816
|
"path": "workflows/review-section.md",
|
|
817
|
-
"sha256": "
|
|
817
|
+
"sha256": "a3df01d14a7fe0480bb8663347496acdeeed967042f189e25c8b017aa7e01c0c"
|
|
818
818
|
},
|
|
819
819
|
{
|
|
820
820
|
"path": "workflows/settings.md",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://antigravity.google/schemas/v1/plugin.json",
|
|
3
3
|
"name": "wtfp",
|
|
4
|
-
"version": "0.8.
|
|
5
|
-
"description": "Portable academic research and writing workflows (WTF-P 0.8.
|
|
4
|
+
"version": "0.8.4",
|
|
5
|
+
"description": "Portable academic research and writing workflows (WTF-P 0.8.4)."
|
|
6
6
|
}
|
|
@@ -30,8 +30,8 @@ Manuscript prose and supporting context, research, plan, review, summary, handof
|
|
|
30
30
|
|
|
31
31
|
## Procedure
|
|
32
32
|
|
|
33
|
-
1. Resolve one manuscript section, its outline claims, context, plan, research, summary, decisions, evidence, neighboring prose, and review rubric.
|
|
34
|
-
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.
|
|
33
|
+
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.
|
|
34
|
+
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.
|
|
35
35
|
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.
|
|
36
36
|
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.
|
|
37
37
|
|
|
@@ -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
|
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
},
|
|
6
6
|
"metadata": {
|
|
7
7
|
"description": "WTF-P evidence-grounded academic workflow plugin.",
|
|
8
|
-
"version": "0.8.
|
|
8
|
+
"version": "0.8.4"
|
|
9
9
|
},
|
|
10
10
|
"plugins": [
|
|
11
11
|
{
|
|
12
12
|
"name": "wtfp",
|
|
13
13
|
"source": "./",
|
|
14
14
|
"description": "Portable academic research and writing workflows.",
|
|
15
|
-
"version": "0.8.
|
|
15
|
+
"version": "0.8.4",
|
|
16
16
|
"author": {
|
|
17
17
|
"name": "akougkas"
|
|
18
18
|
},
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
"schema": "wtfp.generated-adapter/v1",
|
|
3
3
|
"generatorVersion": 5,
|
|
4
4
|
"target": "claude",
|
|
5
|
-
"sourceHash": "
|
|
5
|
+
"sourceHash": "8611a4a3dca0491c2233e09b11900d8fd9b84a71c53c147553a7243af0a86006",
|
|
6
6
|
"files": [
|
|
7
7
|
{
|
|
8
8
|
"path": ".claude-plugin/marketplace.json",
|
|
9
|
-
"sha256": "
|
|
9
|
+
"sha256": "860f76419ed4a8c925559324c514d25212429d2dd5ca1eb6da38407589111c10"
|
|
10
10
|
},
|
|
11
11
|
{
|
|
12
12
|
"path": ".claude-plugin/plugin.json",
|
|
13
|
-
"sha256": "
|
|
13
|
+
"sha256": "8f3a5c872e2792796744d1b91523e3d1460b4d9c8abbe956f43324382dff9b4b"
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
16
|
"path": "actions/add-todo.json",
|
|
@@ -246,7 +246,7 @@
|
|
|
246
246
|
},
|
|
247
247
|
{
|
|
248
248
|
"path": "ai.iowarp.clio/agents/wtfp-section-writer.md",
|
|
249
|
-
"sha256": "
|
|
249
|
+
"sha256": "e0247578c03b442fb97b86116e172f00be77b5aa3a52973e6a6a227572b81d8b"
|
|
250
250
|
},
|
|
251
251
|
{
|
|
252
252
|
"path": "ai.iowarp.clio/fleets/wtfp-draft-review.md",
|
|
@@ -306,7 +306,7 @@
|
|
|
306
306
|
},
|
|
307
307
|
{
|
|
308
308
|
"path": "ai.iowarp.clio/prompts/wtfp/execute-outline.md",
|
|
309
|
-
"sha256": "
|
|
309
|
+
"sha256": "c801d659c1967d1b02feab52419c87ec7f60d09cd158140c791ec75b5f4e93ca"
|
|
310
310
|
},
|
|
311
311
|
{
|
|
312
312
|
"path": "ai.iowarp.clio/prompts/wtfp/export-latex.md",
|
|
@@ -314,7 +314,7 @@
|
|
|
314
314
|
},
|
|
315
315
|
{
|
|
316
316
|
"path": "ai.iowarp.clio/prompts/wtfp/help.md",
|
|
317
|
-
"sha256": "
|
|
317
|
+
"sha256": "a28fabb239f3a32d55128ff410dd0dca9e5b15c4957bdf40b340d0f063b8aed4"
|
|
318
318
|
},
|
|
319
319
|
{
|
|
320
320
|
"path": "ai.iowarp.clio/prompts/wtfp/insert-section.md",
|
|
@@ -346,7 +346,7 @@
|
|
|
346
346
|
},
|
|
347
347
|
{
|
|
348
348
|
"path": "ai.iowarp.clio/prompts/wtfp/plan-section.md",
|
|
349
|
-
"sha256": "
|
|
349
|
+
"sha256": "44b0da325e40538bc09a21ed1fcd66368f7877beb7d55ac76eff248c70d40874"
|
|
350
350
|
},
|
|
351
351
|
{
|
|
352
352
|
"path": "ai.iowarp.clio/prompts/wtfp/polish-prose.md",
|
|
@@ -382,7 +382,7 @@
|
|
|
382
382
|
},
|
|
383
383
|
{
|
|
384
384
|
"path": "ai.iowarp.clio/prompts/wtfp/review-section.md",
|
|
385
|
-
"sha256": "
|
|
385
|
+
"sha256": "375a3964fef8c0b98bf3a72d0aa0b0a2928fbed14dd13d8e432141e65b078e49"
|
|
386
386
|
},
|
|
387
387
|
{
|
|
388
388
|
"path": "ai.iowarp.clio/prompts/wtfp/settings.md",
|
|
@@ -402,7 +402,7 @@
|
|
|
402
402
|
},
|
|
403
403
|
{
|
|
404
404
|
"path": "ai.iowarp.clio/prompts/wtfp/write-section.md",
|
|
405
|
-
"sha256": "
|
|
405
|
+
"sha256": "36b466919863e7c145f39183659d5e2fac790c04aef174281da42c0dfdbc09eb"
|
|
406
406
|
},
|
|
407
407
|
{
|
|
408
408
|
"path": "aliases.lock.json",
|
|
@@ -538,7 +538,7 @@
|
|
|
538
538
|
},
|
|
539
539
|
{
|
|
540
540
|
"path": "commands/review-section.md",
|
|
541
|
-
"sha256": "
|
|
541
|
+
"sha256": "53e3b14e89b901606e08684d93af9ab4d947a41ee6892906049c3a4952c9cfae"
|
|
542
542
|
},
|
|
543
543
|
{
|
|
544
544
|
"path": "commands/settings.md",
|
|
@@ -586,7 +586,7 @@
|
|
|
586
586
|
},
|
|
587
587
|
{
|
|
588
588
|
"path": "plugin.json",
|
|
589
|
-
"sha256": "
|
|
589
|
+
"sha256": "8323b45f65999e8fe47e1943fb0a7209566151279ee4ee2f59f0f078fd699242"
|
|
590
590
|
},
|
|
591
591
|
{
|
|
592
592
|
"path": "project/README.md",
|
|
@@ -1042,7 +1042,7 @@
|
|
|
1042
1042
|
},
|
|
1043
1043
|
{
|
|
1044
1044
|
"path": "workflows/review-section.md",
|
|
1045
|
-
"sha256": "
|
|
1045
|
+
"sha256": "a3df01d14a7fe0480bb8663347496acdeeed967042f189e25c8b017aa7e01c0c"
|
|
1046
1046
|
},
|
|
1047
1047
|
{
|
|
1048
1048
|
"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.
|
|
@@ -84,6 +84,6 @@ Every question `ask_user` puts to the author here is the author's to answer: ask
|
|
|
84
84
|
|
|
85
85
|
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.
|
|
86
86
|
|
|
87
|
-
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.
|
|
87
|
+
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.
|
|
88
88
|
|
|
89
89
|
<!-- Generated by WTF-P adapter compiler v5 from protocol/actions/execute-outline; do not edit. -->
|
|
@@ -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-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.
|
|
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/plan-section; do not edit. -->
|
|
@@ -38,8 +38,8 @@ Manuscript prose and supporting context, research, plan, review, summary, handof
|
|
|
38
38
|
|
|
39
39
|
## Procedure
|
|
40
40
|
|
|
41
|
-
1. Resolve one manuscript section, its outline claims, context, plan, research, summary, decisions, evidence, neighboring prose, and review rubric.
|
|
42
|
-
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.
|
|
41
|
+
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.
|
|
42
|
+
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.
|
|
43
43
|
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.
|
|
44
44
|
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.
|
|
45
45
|
|
|
@@ -76,6 +76,6 @@ Every question `ask_user` puts to the author here is the author's to answer: ask
|
|
|
76
76
|
|
|
77
77
|
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.
|
|
78
78
|
|
|
79
|
-
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.
|
|
79
|
+
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.
|
|
80
80
|
|
|
81
81
|
<!-- Generated by WTF-P adapter compiler v5 from protocol/actions/review-section; do not edit. -->
|
|
@@ -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. -->
|
|
@@ -28,8 +28,8 @@ Manuscript prose and supporting context, research, plan, review, summary, handof
|
|
|
28
28
|
|
|
29
29
|
## Procedure
|
|
30
30
|
|
|
31
|
-
1. Resolve one manuscript section, its outline claims, context, plan, research, summary, decisions, evidence, neighboring prose, and review rubric.
|
|
32
|
-
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.
|
|
31
|
+
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.
|
|
32
|
+
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.
|
|
33
33
|
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.
|
|
34
34
|
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.
|
|
35
35
|
|
|
@@ -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": "clio-extension",
|
|
5
|
-
"sourceHash": "
|
|
5
|
+
"sourceHash": "08c912a3cd2561d347e0a9fad9ad62d6dba923efa52d81b93cdf50bdc14576c3",
|
|
6
6
|
"files": [
|
|
7
7
|
{
|
|
8
8
|
"path": "actions/add-todo.json",
|
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
},
|
|
155
155
|
{
|
|
156
156
|
"path": "clio-coder-extension.yaml",
|
|
157
|
-
"sha256": "
|
|
157
|
+
"sha256": "dca1365dd96667848f2b26c81e013862585c940dc1946f9185bd14bf680b514a"
|
|
158
158
|
},
|
|
159
159
|
{
|
|
160
160
|
"path": "compatibility/action-availability.json",
|
|
@@ -262,11 +262,11 @@
|
|
|
262
262
|
},
|
|
263
263
|
{
|
|
264
264
|
"path": "runtime/extension.test.ts",
|
|
265
|
-
"sha256": "
|
|
265
|
+
"sha256": "c2f27306f375691ec2999d9984fd8a5bab5eba5f1f0d66f944c1cdfbd5ec47ba"
|
|
266
266
|
},
|
|
267
267
|
{
|
|
268
268
|
"path": "runtime/extension.ts",
|
|
269
|
-
"sha256": "
|
|
269
|
+
"sha256": "83a596a3e464be2e039cbe2cb3b2df962992b5c6500e7370c3d51584679f0ca5"
|
|
270
270
|
},
|
|
271
271
|
{
|
|
272
272
|
"path": "runtime/json-schema.cjs",
|
|
@@ -1013,10 +1013,29 @@ const DRIVEN_PLUGIN = {
|
|
|
1013
1013
|
prompts: [...SERVED.prompts, "wtfp:advance", "wtfp:review-section", "wtfp:discuss-section", "wtfp:create-outline", "wtfp:verify-work", "wtfp:plan-revision"],
|
|
1014
1014
|
};
|
|
1015
1015
|
/** Stamps the manuscript as written `offsetMs` from the desk's clock, after or before the plan's approval. */
|
|
1016
|
-
|
|
1016
|
+
/** The writer saves the manuscript at this offset without finishing write-section. */
|
|
1017
|
+
const saved = (host: Host, workspace: string, offsetMs: number): void => {
|
|
1017
1018
|
const at = new Date(host.now + offsetMs);
|
|
1018
1019
|
utimesSync(path.join(workspace, "paper/introduction.md"), at, at);
|
|
1019
1020
|
};
|
|
1021
|
+
/** write-section drafts the manuscript at this offset and records its validation. */
|
|
1022
|
+
const drafted = (host: Host, workspace: string, offsetMs: number): void => {
|
|
1023
|
+
saved(host, workspace, offsetMs);
|
|
1024
|
+
put(workspace, ".planning/validations/introduction-written.json", {
|
|
1025
|
+
schema: "wtfp.project.validation/v1",
|
|
1026
|
+
id: "introduction-written",
|
|
1027
|
+
project_id: PROJECT,
|
|
1028
|
+
subject_uri: "project://paper/introduction",
|
|
1029
|
+
validator_role: "section-writer",
|
|
1030
|
+
action_id: "write-section",
|
|
1031
|
+
status: "passed",
|
|
1032
|
+
checks: [{ id: "plan-criteria", status: "passed", summary: "The draft satisfies its plan.", evidence: ["paper/introduction.md"] }],
|
|
1033
|
+
issues: [],
|
|
1034
|
+
next_actions: [],
|
|
1035
|
+
effects_applied: [],
|
|
1036
|
+
executed_at: new Date(host.now + offsetMs).toISOString().replace(/\.\d{3}Z$/u, "Z"),
|
|
1037
|
+
});
|
|
1038
|
+
};
|
|
1020
1039
|
const nextStep = async (host: Host): Promise<{ text: string; data: Json; isError?: boolean }> => {
|
|
1021
1040
|
const result = await host.tool("next_step", {});
|
|
1022
1041
|
return { text: result.text, data: (result.data ?? {}) as Json, ...(result.isError ? { isError: true } : {}) };
|
|
@@ -1104,6 +1123,8 @@ test("every next_step result restates the driver rule, so a compacted turn can c
|
|
|
1104
1123
|
assert.equal(step.data.kind, "step");
|
|
1105
1124
|
assert.match(step.text, /^Step 1: \/wtfp:write-section introduction\./);
|
|
1106
1125
|
assert.match(step.text, /Read and follow <plugin root>\/ai\.iowarp\.clio\/prompts\/wtfp\/write-section\.md, where <plugin root> is the WTF-P plugin root \(two directories above the base_dir of the loaded wtfp-manage-project skill/);
|
|
1126
|
+
// Live on Clio 0.8.3, the model looked for a tool named audit-milestone and stopped the drive.
|
|
1127
|
+
assert.match(step.text, /A step is a procedure, not a capability: there is no tool named after its action/);
|
|
1107
1128
|
assert.match(step.text, /invocation input introduction/);
|
|
1108
1129
|
assert.equal(ruleOf(step.text), rule);
|
|
1109
1130
|
const finish = await nextStep(host);
|
|
@@ -1236,6 +1257,15 @@ test("a reviewed section whose approved revision plan no draft has applied goes
|
|
|
1236
1257
|
const rewrite = await nextStep(host);
|
|
1237
1258
|
assert.deepEqual([rewrite.data.kind, rewrite.data.action, rewrite.data.section], ["step", "write-section", "introduction"], rewrite.text);
|
|
1238
1259
|
assert.match(rewrite.text, /approved revision plan that no draft has applied yet/);
|
|
1260
|
+
// A manuscript saved after the approval without write-section's validation is not drafted yet: live, a writer
|
|
1261
|
+
// saved the revision, could not count it, and the desk sent the section to review with a stale count and summary.
|
|
1262
|
+
saved(host, workspace, 30_000);
|
|
1263
|
+
put(workspace, sectionFile, { ...read(workspace, sectionFile), word_count: 286 });
|
|
1264
|
+
const unfinished = await nextStep(host);
|
|
1265
|
+
assert.deepEqual([unfinished.data.action, unfinished.data.section], ["write-section", "introduction"], unfinished.text);
|
|
1266
|
+
assert.match(unfinished.text, /draft for its approved plan is saved, but write-section has not finished it/);
|
|
1267
|
+
// The same step armed again after progress says so, instead of reading like the first arming.
|
|
1268
|
+
assert.match(unfinished.text, /Continue \/wtfp:write-section introduction: it made progress but has not finished, so the desk arms it again on purpose; this is not a loop/);
|
|
1239
1269
|
// Once the draft is written after the approval, it is reviewed again: the earlier review read the earlier draft.
|
|
1240
1270
|
drafted(host, workspace, 60_000);
|
|
1241
1271
|
const review = await nextStep(host);
|