wtf-p 0.7.3 → 0.7.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 +15 -11
- package/bin/lib/adapter-compiler.js +13 -2
- package/package.json +1 -1
- package/protocol/actions/research-gap.json +1 -1
- package/protocol/roles/research-synthesizer.md +1 -1
- package/protocol/skills/wtfp-plan-section/references/actions.md +1 -1
- package/protocol/skills/wtfp-research-literature/references/actions.md +1 -1
- package/protocol/skills/wtfp-write-section/references/actions.md +1 -1
- package/protocol/workflows/plan-section.md +3 -2
- package/protocol/workflows/research-gap.md +2 -2
- package/protocol/workflows/write-section.md +1 -1
- package/vendors/antigravity/.wtfp-generated.json +18 -14
- package/vendors/antigravity/actions/research-gap.json +1 -1
- package/vendors/antigravity/agents/wtfp-research-synthesizer.md +1 -1
- package/vendors/antigravity/commands/wtfp-plan-section.md +3 -2
- package/vendors/antigravity/commands/wtfp-write-section.md +1 -1
- package/vendors/antigravity/plugin.json +1 -1
- package/vendors/antigravity/roles/research-synthesizer.md +1 -1
- package/vendors/antigravity/skills/wtfp-plan-section/references/actions.md +1 -1
- package/vendors/antigravity/skills/wtfp-research-literature/references/actions.md +1 -1
- package/vendors/antigravity/skills/wtfp-write-section/references/actions.md +1 -1
- package/vendors/antigravity/tools/README.md +1 -1
- package/vendors/antigravity/tools/package.json +1 -0
- package/vendors/antigravity/workflows/plan-section.md +3 -2
- package/vendors/antigravity/workflows/research-gap.md +2 -2
- package/vendors/antigravity/workflows/write-section.md +1 -1
- package/vendors/claude/.claude-plugin/marketplace.json +2 -2
- package/vendors/claude/.claude-plugin/plugin.json +1 -1
- package/vendors/claude/.wtfp-generated.json +33 -29
- package/vendors/claude/actions/research-gap.json +1 -1
- package/vendors/claude/agents/wtfp-research-synthesizer.md +1 -1
- package/vendors/claude/ai.iowarp.clio/agents/wtfp-research-synthesizer.md +1 -1
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/analyze-bib.md +2 -0
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/check-refs.md +2 -0
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/create-outline.md +2 -0
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/execute-outline.md +2 -0
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/help.md +1 -1
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/plan-section.md +5 -2
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/polish-prose.md +2 -0
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/quick.md +2 -0
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/research-gap.md +8 -2
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/review-section.md +2 -0
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/write-section.md +3 -1
- package/vendors/claude/commands/plan-section.md +3 -2
- package/vendors/claude/commands/research-gap.md +2 -2
- package/vendors/claude/commands/write-section.md +1 -1
- package/vendors/claude/plugin.json +1 -1
- package/vendors/claude/roles/research-synthesizer.md +1 -1
- package/vendors/claude/skills/wtfp-plan-section/references/actions.md +1 -1
- package/vendors/claude/skills/wtfp-research-literature/references/actions.md +1 -1
- package/vendors/claude/skills/wtfp-write-section/references/actions.md +1 -1
- package/vendors/claude/tools/README.md +1 -1
- package/vendors/claude/tools/package.json +1 -0
- package/vendors/claude/workflows/plan-section.md +3 -2
- package/vendors/claude/workflows/research-gap.md +2 -2
- package/vendors/claude/workflows/write-section.md +1 -1
- package/vendors/codex/plugins/wtfp/.codex-plugin/plugin.json +1 -1
- package/vendors/codex/plugins/wtfp/.wtfp-generated.json +17 -13
- package/vendors/codex/plugins/wtfp/actions/research-gap.json +1 -1
- package/vendors/codex/plugins/wtfp/agents/wtfp-research-synthesizer.toml +1 -1
- package/vendors/codex/plugins/wtfp/plugin.json +1 -1
- package/vendors/codex/plugins/wtfp/roles/research-synthesizer.md +1 -1
- package/vendors/codex/plugins/wtfp/skills/wtfp-plan-section/references/actions.md +1 -1
- package/vendors/codex/plugins/wtfp/skills/wtfp-research-literature/references/actions.md +1 -1
- package/vendors/codex/plugins/wtfp/skills/wtfp-write-section/references/actions.md +1 -1
- package/vendors/codex/plugins/wtfp/tools/README.md +1 -1
- package/vendors/codex/plugins/wtfp/tools/package.json +1 -0
- package/vendors/codex/plugins/wtfp/workflows/plan-section.md +3 -2
- package/vendors/codex/plugins/wtfp/workflows/research-gap.md +2 -2
- package/vendors/codex/plugins/wtfp/workflows/write-section.md +1 -1
- package/vendors/copilot/.wtfp-generated.json +14 -14
- 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 +18 -14
- package/vendors/copilot/plugins/wtfp/actions/research-gap.json +1 -1
- package/vendors/copilot/plugins/wtfp/agents/wtfp-research-synthesizer.md +1 -1
- package/vendors/copilot/plugins/wtfp/commands/wtfp-plan-section.md +3 -2
- package/vendors/copilot/plugins/wtfp/commands/wtfp-write-section.md +1 -1
- package/vendors/copilot/plugins/wtfp/roles/research-synthesizer.md +1 -1
- package/vendors/copilot/plugins/wtfp/skills/wtfp-plan-section/references/actions.md +1 -1
- package/vendors/copilot/plugins/wtfp/skills/wtfp-research-literature/references/actions.md +1 -1
- package/vendors/copilot/plugins/wtfp/skills/wtfp-write-section/references/actions.md +1 -1
- package/vendors/copilot/plugins/wtfp/tools/README.md +1 -1
- package/vendors/copilot/plugins/wtfp/tools/package.json +1 -0
- package/vendors/copilot/plugins/wtfp/workflows/plan-section.md +3 -2
- package/vendors/copilot/plugins/wtfp/workflows/research-gap.md +2 -2
- package/vendors/copilot/plugins/wtfp/workflows/write-section.md +1 -1
- package/vendors/copilot/project/.github/agents/wtfp-research-synthesizer.agent.md +1 -1
- package/vendors/copilot/project/.github/skills/wtfp-plan-section/references/actions.md +1 -1
- package/vendors/copilot/project/.github/skills/wtfp-research-literature/references/actions.md +1 -1
- package/vendors/copilot/project/.github/skills/wtfp-write-section/references/actions.md +1 -1
- package/vendors/copilot/project/.github/wtfp/actions/research-gap.json +1 -1
- package/vendors/copilot/project/.github/wtfp/roles/research-synthesizer.md +1 -1
- package/vendors/copilot/project/.github/wtfp/skills/wtfp-plan-section/references/actions.md +1 -1
- package/vendors/copilot/project/.github/wtfp/skills/wtfp-research-literature/references/actions.md +1 -1
- package/vendors/copilot/project/.github/wtfp/skills/wtfp-write-section/references/actions.md +1 -1
- package/vendors/copilot/project/.github/wtfp/workflows/plan-section.md +3 -2
- package/vendors/copilot/project/.github/wtfp/workflows/research-gap.md +2 -2
- package/vendors/copilot/project/.github/wtfp/workflows/write-section.md +1 -1
- package/vendors/gemini/.wtfp-generated.json +24 -20
- package/vendors/gemini/actions/research-gap.json +1 -1
- package/vendors/gemini/agents/wtfp-research-synthesizer.md +1 -1
- package/vendors/gemini/commands/wtfp/discuss-section.toml +1 -1
- package/vendors/gemini/commands/wtfp/execute-outline.toml +1 -1
- package/vendors/gemini/commands/wtfp/insert-section.toml +1 -1
- package/vendors/gemini/commands/wtfp/list-assumptions.toml +1 -1
- package/vendors/gemini/commands/wtfp/plan-revision.toml +1 -1
- package/vendors/gemini/commands/wtfp/plan-section.toml +4 -3
- package/vendors/gemini/commands/wtfp/quick.toml +1 -1
- package/vendors/gemini/commands/wtfp/write-section.toml +2 -2
- package/vendors/gemini/gemini-extension.json +1 -1
- package/vendors/gemini/roles/research-synthesizer.md +1 -1
- package/vendors/gemini/skills/wtfp-plan-section/references/actions.md +1 -1
- package/vendors/gemini/skills/wtfp-research-literature/references/actions.md +1 -1
- package/vendors/gemini/skills/wtfp-write-section/references/actions.md +1 -1
- package/vendors/gemini/tools/README.md +1 -1
- package/vendors/gemini/tools/package.json +1 -0
- package/vendors/gemini/workflows/plan-section.md +3 -2
- package/vendors/gemini/workflows/research-gap.md +2 -2
- package/vendors/gemini/workflows/write-section.md +1 -1
- package/vendors/opencode/.wtfp-generated.json +23 -19
- package/vendors/opencode/actions/research-gap.json +1 -1
- package/vendors/opencode/agents/wtfp/research-synthesizer.md +1 -1
- package/vendors/opencode/commands/wtfp/discuss-section.md +1 -1
- package/vendors/opencode/commands/wtfp/execute-outline.md +1 -1
- package/vendors/opencode/commands/wtfp/insert-section.md +1 -1
- package/vendors/opencode/commands/wtfp/list-assumptions.md +1 -1
- package/vendors/opencode/commands/wtfp/plan-revision.md +1 -1
- package/vendors/opencode/commands/wtfp/plan-section.md +4 -3
- package/vendors/opencode/commands/wtfp/quick.md +1 -1
- package/vendors/opencode/commands/wtfp/write-section.md +2 -2
- package/vendors/opencode/roles/research-synthesizer.md +1 -1
- package/vendors/opencode/skills/wtfp-plan-section/references/actions.md +1 -1
- package/vendors/opencode/skills/wtfp-research-literature/references/actions.md +1 -1
- package/vendors/opencode/skills/wtfp-write-section/references/actions.md +1 -1
- package/vendors/opencode/tools/README.md +1 -1
- package/vendors/opencode/tools/package.json +1 -0
- package/vendors/opencode/workflows/plan-section.md +3 -2
- package/vendors/opencode/workflows/research-gap.md +2 -2
- package/vendors/opencode/workflows/write-section.md +1 -1
- package/vendors/plugin/.wtfp-generated.json +27 -23
- package/vendors/plugin/actions/research-gap.json +1 -1
- package/vendors/plugin/ai.iowarp.clio/agents/wtfp-research-synthesizer.md +1 -1
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/analyze-bib.md +2 -0
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/check-refs.md +2 -0
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/create-outline.md +2 -0
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/execute-outline.md +2 -0
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/help.md +1 -1
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/plan-section.md +5 -2
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/polish-prose.md +2 -0
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/quick.md +2 -0
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/research-gap.md +8 -2
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/review-section.md +2 -0
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/write-section.md +3 -1
- package/vendors/plugin/plugin.json +1 -1
- package/vendors/plugin/roles/research-synthesizer.md +1 -1
- package/vendors/plugin/skills/wtfp-plan-section/references/actions.md +1 -1
- package/vendors/plugin/skills/wtfp-research-literature/references/actions.md +1 -1
- package/vendors/plugin/skills/wtfp-write-section/references/actions.md +1 -1
- package/vendors/plugin/tools/README.md +1 -1
- package/vendors/plugin/tools/package.json +1 -0
- package/vendors/plugin/workflows/plan-section.md +3 -2
- package/vendors/plugin/workflows/research-gap.md +2 -2
- package/vendors/plugin/workflows/write-section.md +1 -1
|
@@ -31,6 +31,6 @@ Run it with no argument, or with `list`, to print the declared command set as JS
|
|
|
31
31
|
- `s2-search --query=<text> [--limit=<1-25>] [--year=<yyyy>] [--timeout=<seconds>]` → `citation.semantic-scholar` (network.fetch, network.search)
|
|
32
32
|
- `rank <papers.json> [--intent=<seminal|recent|balanced>]` → `citation.rank` (no declared effects)
|
|
33
33
|
|
|
34
|
-
For
|
|
34
|
+
For declared scholarly discovery, `citation-search --backend=cite-nexus --query="<topic>"` uses the separately installed `cite-nexus-wtfp` companion and its real MCP stdio server. Defaults are Crossref, DataCite and Europe PMC. Select providers explicitly with `--providers`. The `research-gap` full-auto route may use only free no-key public indexes (`crossref`, `datacite`, `europe_pmc`, `arxiv`) without another per-query gate; other routes require action approval naming providers and query scope. CiteNexus supports only balanced provider ordering, so omit `--intent` or use `--intent=balanced`. Results remain candidates: retain `citeNexus.sources`, field attribution, metrics, warnings and `metadata.errors`; do not infer verification or combine citation counts. The result limit is a displayed total; `metadata.total` counts the fetched deduplicated page, not the full corpus. Unavailable enrichment fails explicitly without falling back to another vendor. `WTFP_CITE_NEXUS_COMMAND` may name an absolute installed companion executable; it is operator configuration, never source content. No package is installed, server registered, or user profile changed by a tool call. Offline mode refuses this backend before process launch. Host capability blockers still apply.
|
|
35
35
|
|
|
36
36
|
Every command prints one JSON document on stdout and reports failures as `{"error": "..."}` on stderr with exit status 1. Queries are capped at 512 characters, file paths at 4096, and result limits at 25. A symlinked file is accepted and read through its resolved target, which must be a regular file. Commands whose effects include `network.*` perform outbound requests to the declared scholarly indexes; pass `--offline` or set `WTFP_TOOL_OFFLINE=1` to refuse them, which is the mechanical form of "do not invoke a network-capable bibliography tool through a filesystem-only permission path". Each network command has a hard wall clock, `--timeout=<seconds>` (default 20, maximum 600); on expiry it reports `{"error": "<command> timed out after N s"}` on stderr and exits 124. `bib-impact` reports batch progress on stderr. `bib-index` flags repeated keys with `duplicate: true` and lists them under `duplicates`; `--key` refuses an ambiguous key. `bib-format` emits a standard BibTeX entry (`@article`, `@inproceedings`, ...) by default; `--style=al-folio` selects the Jekyll al-folio projection, which is not valid BibTeX. Do not execute any other module in this package directly, and do not pass a logical `project://` or `wtfp://` URI as a shell argument.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"commonjs"}
|
|
@@ -24,8 +24,9 @@ Manuscript prose and supporting context, research, plan, review, summary, handof
|
|
|
24
24
|
1. Resolve one section record, load its linked context, research, evidence, decisions, and outline constraints, and enumerate the bounded `project://validations/*` collection before any specialist dispatch.
|
|
25
25
|
2. Filter those records to candidates whose `subject_uri` is exactly `project://structure/outline` and whose `action_id` is exactly `create-outline`. A candidate is current only when `executed_at >= outline.updated_at`. Because the v1 validation schema carries no outline revision or content hash, disclose that this timestamp test is a conservative freshness proxy.
|
|
26
26
|
3. Require exactly one current candidate and require its `status` to be `passed`. Separately verify that the current outline and target section are consistent with all current locked and deferred author choices: honor locked choices and do not treat deferred choices as resolved. A missing, stale, ambiguous, or non-passing candidate, or a decision contradiction, blocks all specialist dispatch and every plan, section, state, or validation write. Only a recovery checkpoint may be proposed on this blocked path, and it may be written only after a complete record preview and explicit author approval.
|
|
27
|
-
4.
|
|
28
|
-
5.
|
|
27
|
+
4. For a literature-heavy section, first require a section-specific research artifact plus resolvable source/evidence records that cover the planned claims. If they are absent or insufficient, run `research-gap` with the configured CiteNexus backend when available, verify candidate metadata against the returned records, and stop planning with an explicit research checkpoint if evidence remains insufficient. Never invent citations or treat search candidates as verified sources.
|
|
28
|
+
5. Only after those prerequisites pass, delegate a bounded plan to `section-planner`, then require a fresh `plan-checker` pass over claim coverage, dependencies, file scope, citations, and decision fidelity. Dispatch the exact WTF-P specialist roles; generic coder and verifier roles do not satisfy this workflow.
|
|
29
|
+
6. At confirm_plan, preview the plan and validation; on approval link the plan, update section status to planned, and reconcile state. Create a checkpoint for unresolved judgment instead of bypassing the required checker.
|
|
29
30
|
|
|
30
31
|
## Safety and completion
|
|
31
32
|
|
|
@@ -22,7 +22,7 @@ Manuscript prose and supporting context, research, plan, review, summary, handof
|
|
|
22
22
|
## Procedure
|
|
23
23
|
|
|
24
24
|
1. Resolve the research question and section scope against locked/deferred decisions; agree on depth and source constraints.
|
|
25
|
-
2.
|
|
25
|
+
2. Prefer an operator-configured, trusted read-only CiteNexus MCP connection for bounded public metadata searches when the host has already authorized it. In an explicitly selected full-auto host session for this research action, the bundled CiteNexus dispatcher may also search the free no-key public indexes `crossref`, `datacite`, `europe_pmc`, and `arxiv` without a second per-query author gate; use only selected relevant indexes with an explicit `--providers` list. Record provider IDs, queries, date, and result limits; never send unpublished manuscript text or private notes as search terms. For any other route, first obtain explicit author approval naming the providers and bounded query set. Results remain candidates and this action performs no bibliography write. Verify source identity and inspection depth, and separate source records from claim-level evidence.
|
|
26
26
|
3. Synthesize supported, conflicting, and missing evidence into a Markdown research artifact; link new records and disclose limitations.
|
|
27
27
|
|
|
28
28
|
## Bundled tool execution
|
|
@@ -33,7 +33,7 @@ The declared `tool.execute` effect authorises exactly one command, run from the
|
|
|
33
33
|
node protocol://tools/wtfp-tool.js [--offline] <command> [arguments]
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
-
Run it with `list` first to read the declared commands, their arguments, their bounds, and the effects each one applies; `protocol://tools/README.md` carries the same table. A command whose effects include `network.*` performs outbound requests.
|
|
36
|
+
Run it with `list` first to read the declared commands, their arguments, their bounds, and the effects each one applies; `protocol://tools/README.md` carries the same table. A command whose effects include `network.*` performs outbound requests. Pass `--offline` (or set `WTFP_TOOL_OFFLINE=1`) until the provider/query gate is approved, except for this action's explicit full-auto public-index route. On that route omit `--offline` only for `citation-search --backend=cite-nexus` with bounded queries and `--providers` drawn from `crossref,datacite,europe_pmc,arxiv`; never override an operator-set offline flag or a host refusal. Never execute another module in this package, never pass a logical `project://` or `wtfp://` URI as a shell argument, and treat every returned record as candidate evidence until it is verified and written to a source or evidence record.
|
|
37
37
|
|
|
38
38
|
## Safety and completion
|
|
39
39
|
|
|
@@ -22,7 +22,7 @@ Manuscript prose and supporting context, research, plan, review, summary, handof
|
|
|
22
22
|
## Procedure
|
|
23
23
|
|
|
24
24
|
1. Require one approved plan and resolve all linked context, research, source/evidence records, decisions, prior summary, existing target, and necessary neighboring prose before choosing create or update.
|
|
25
|
-
2. Draft only the declared manuscript artifact; cite only resolvable sources, preserve author constraints, and stop at blocking decisions.
|
|
25
|
+
2. Before drafting a literature-heavy section, verify that its linked research artifact and source/evidence records cover the plan's factual claims. If coverage is missing, use the declared research workflow and pause at a checkpoint until verified records exist. Draft only the declared manuscript artifact; cite only resolvable sources, preserve author constraints, and stop at blocking decisions. A plausible bibliography entry, search candidate, or model memory is not a verified citation.
|
|
26
26
|
3. Read the persisted manuscript text back and calculate its actual body word count with one deterministic method; never copy a worker self-report, plan target, or summary count into project records. Validate the persisted draft against its plan and word budget.
|
|
27
27
|
4. Create or update the required Markdown summary with that measured count, then read back both manuscript and summary. Missing, empty, or inconsistent output is a failed completion condition, not permission to link a path that does not exist.
|
|
28
28
|
5. Persist the validation, synchronize the manuscript URI in `manifest.artifacts.manuscripts`, and reconcile section/state records only after manuscript, summary, and validation readback succeeds. If blocked, create the declared checkpoint and stop; do not commit or merge automatically.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"schema": "wtfp.generated-adapter/v1",
|
|
3
3
|
"generatorVersion": 5,
|
|
4
4
|
"target": "portable-plugin",
|
|
5
|
-
"sourceHash": "
|
|
5
|
+
"sourceHash": "6484d98974b96d256b8ab2ab4a2e2d03d1f4eafcf664443d48ced1f720e6e467",
|
|
6
6
|
"files": [
|
|
7
7
|
{
|
|
8
8
|
"path": "actions/add-todo.json",
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
},
|
|
119
119
|
{
|
|
120
120
|
"path": "actions/research-gap.json",
|
|
121
|
-
"sha256": "
|
|
121
|
+
"sha256": "0c26fa663f1d2526cbefcc9750b0a176ddf1ca538a46585a1de48c763fbb1a13"
|
|
122
122
|
},
|
|
123
123
|
{
|
|
124
124
|
"path": "actions/resume-writing.json",
|
|
@@ -178,7 +178,7 @@
|
|
|
178
178
|
},
|
|
179
179
|
{
|
|
180
180
|
"path": "ai.iowarp.clio/agents/wtfp-research-synthesizer.md",
|
|
181
|
-
"sha256": "
|
|
181
|
+
"sha256": "593ddb282208d889997efd80b3f52168562c8002abd2aabed30992a237caa6cb"
|
|
182
182
|
},
|
|
183
183
|
{
|
|
184
184
|
"path": "ai.iowarp.clio/agents/wtfp-section-planner.md",
|
|
@@ -206,7 +206,7 @@
|
|
|
206
206
|
},
|
|
207
207
|
{
|
|
208
208
|
"path": "ai.iowarp.clio/prompts/wtfp/analyze-bib.md",
|
|
209
|
-
"sha256": "
|
|
209
|
+
"sha256": "ff74b06cb0130d2f7bdb8f2bf457714f6be470c288f3f9e8ffb189e801119de7"
|
|
210
210
|
},
|
|
211
211
|
{
|
|
212
212
|
"path": "ai.iowarp.clio/prompts/wtfp/audit-milestone.md",
|
|
@@ -214,7 +214,7 @@
|
|
|
214
214
|
},
|
|
215
215
|
{
|
|
216
216
|
"path": "ai.iowarp.clio/prompts/wtfp/check-refs.md",
|
|
217
|
-
"sha256": "
|
|
217
|
+
"sha256": "2de80828842be7186e92f3d21b3c8748392eccf006a6671e808fd274fac7c668"
|
|
218
218
|
},
|
|
219
219
|
{
|
|
220
220
|
"path": "ai.iowarp.clio/prompts/wtfp/check-todos.md",
|
|
@@ -230,7 +230,7 @@
|
|
|
230
230
|
},
|
|
231
231
|
{
|
|
232
232
|
"path": "ai.iowarp.clio/prompts/wtfp/create-outline.md",
|
|
233
|
-
"sha256": "
|
|
233
|
+
"sha256": "084432111ac0026d53d130081c7a7ead6dc89d481be846a2c9b23d38b3443ff7"
|
|
234
234
|
},
|
|
235
235
|
{
|
|
236
236
|
"path": "ai.iowarp.clio/prompts/wtfp/create-poster.md",
|
|
@@ -246,7 +246,7 @@
|
|
|
246
246
|
},
|
|
247
247
|
{
|
|
248
248
|
"path": "ai.iowarp.clio/prompts/wtfp/execute-outline.md",
|
|
249
|
-
"sha256": "
|
|
249
|
+
"sha256": "37a26a28f127b9c0e3cabe57070b2599e78ab4ed55029d2cc4313a3b9c6e1f88"
|
|
250
250
|
},
|
|
251
251
|
{
|
|
252
252
|
"path": "ai.iowarp.clio/prompts/wtfp/export-latex.md",
|
|
@@ -254,7 +254,7 @@
|
|
|
254
254
|
},
|
|
255
255
|
{
|
|
256
256
|
"path": "ai.iowarp.clio/prompts/wtfp/help.md",
|
|
257
|
-
"sha256": "
|
|
257
|
+
"sha256": "54b10ac95db9428017fc9511c753dcc9820c701fbeb8e2b1557e0559692d9727"
|
|
258
258
|
},
|
|
259
259
|
{
|
|
260
260
|
"path": "ai.iowarp.clio/prompts/wtfp/insert-section.md",
|
|
@@ -286,11 +286,11 @@
|
|
|
286
286
|
},
|
|
287
287
|
{
|
|
288
288
|
"path": "ai.iowarp.clio/prompts/wtfp/plan-section.md",
|
|
289
|
-
"sha256": "
|
|
289
|
+
"sha256": "f68082e5339218c2eb98c6fdd79ee019963f6cbc6d408d7ace721098370a1974"
|
|
290
290
|
},
|
|
291
291
|
{
|
|
292
292
|
"path": "ai.iowarp.clio/prompts/wtfp/polish-prose.md",
|
|
293
|
-
"sha256": "
|
|
293
|
+
"sha256": "99fd62ae7b87fcede59a96baa8c7953229d3d3c6db9808af712741ba29992da3"
|
|
294
294
|
},
|
|
295
295
|
{
|
|
296
296
|
"path": "ai.iowarp.clio/prompts/wtfp/progress.md",
|
|
@@ -298,7 +298,7 @@
|
|
|
298
298
|
},
|
|
299
299
|
{
|
|
300
300
|
"path": "ai.iowarp.clio/prompts/wtfp/quick.md",
|
|
301
|
-
"sha256": "
|
|
301
|
+
"sha256": "b25fd6d383d7e8dc7cb66be8d65ec6dd2b4bb8293fc87b9172a7d87982cdf053"
|
|
302
302
|
},
|
|
303
303
|
{
|
|
304
304
|
"path": "ai.iowarp.clio/prompts/wtfp/remove-section.md",
|
|
@@ -314,7 +314,7 @@
|
|
|
314
314
|
},
|
|
315
315
|
{
|
|
316
316
|
"path": "ai.iowarp.clio/prompts/wtfp/research-gap.md",
|
|
317
|
-
"sha256": "
|
|
317
|
+
"sha256": "a6764335495d0a868a99768a05aaf7338c1078a3c3e030486cd40646068cfddd"
|
|
318
318
|
},
|
|
319
319
|
{
|
|
320
320
|
"path": "ai.iowarp.clio/prompts/wtfp/resume-writing.md",
|
|
@@ -322,7 +322,7 @@
|
|
|
322
322
|
},
|
|
323
323
|
{
|
|
324
324
|
"path": "ai.iowarp.clio/prompts/wtfp/review-section.md",
|
|
325
|
-
"sha256": "
|
|
325
|
+
"sha256": "92937c7d5aa13ad2176bf5ac8238f88244a78e987e11cda9c14e0d800752dcda"
|
|
326
326
|
},
|
|
327
327
|
{
|
|
328
328
|
"path": "ai.iowarp.clio/prompts/wtfp/settings.md",
|
|
@@ -342,7 +342,7 @@
|
|
|
342
342
|
},
|
|
343
343
|
{
|
|
344
344
|
"path": "ai.iowarp.clio/prompts/wtfp/write-section.md",
|
|
345
|
-
"sha256": "
|
|
345
|
+
"sha256": "cc2677583db730db189468d48d02341ecf12f06ffd8e1d61122476f77c9b5520"
|
|
346
346
|
},
|
|
347
347
|
{
|
|
348
348
|
"path": "aliases.lock.json",
|
|
@@ -362,7 +362,7 @@
|
|
|
362
362
|
},
|
|
363
363
|
{
|
|
364
364
|
"path": "plugin.json",
|
|
365
|
-
"sha256": "
|
|
365
|
+
"sha256": "b5427e46af32758733b35fafc5757a4ec5dbdd6d03d48a0489187907907b9bf8"
|
|
366
366
|
},
|
|
367
367
|
{
|
|
368
368
|
"path": "project/README.md",
|
|
@@ -486,7 +486,7 @@
|
|
|
486
486
|
},
|
|
487
487
|
{
|
|
488
488
|
"path": "roles/research-synthesizer.md",
|
|
489
|
-
"sha256": "
|
|
489
|
+
"sha256": "7aa6922f5f819918374b1a87dbda5c12fa6d424be64fc13b4019c380e011306c"
|
|
490
490
|
},
|
|
491
491
|
{
|
|
492
492
|
"path": "roles/section-planner.md",
|
|
@@ -554,7 +554,7 @@
|
|
|
554
554
|
},
|
|
555
555
|
{
|
|
556
556
|
"path": "skills/wtfp-plan-section/references/actions.md",
|
|
557
|
-
"sha256": "
|
|
557
|
+
"sha256": "80d71be47df4f02a62f35d586ce795d3b47f03c92b25c9ea2a2aa698a4023dfa"
|
|
558
558
|
},
|
|
559
559
|
{
|
|
560
560
|
"path": "skills/wtfp-plan-section/SKILL.md",
|
|
@@ -566,7 +566,7 @@
|
|
|
566
566
|
},
|
|
567
567
|
{
|
|
568
568
|
"path": "skills/wtfp-research-literature/references/actions.md",
|
|
569
|
-
"sha256": "
|
|
569
|
+
"sha256": "85ab6c768813bfcb49b1da3d57e329fc667aa200e72ed82afa3d7112e7384539"
|
|
570
570
|
},
|
|
571
571
|
{
|
|
572
572
|
"path": "skills/wtfp-research-literature/SKILL.md",
|
|
@@ -602,7 +602,7 @@
|
|
|
602
602
|
},
|
|
603
603
|
{
|
|
604
604
|
"path": "skills/wtfp-write-section/references/actions.md",
|
|
605
|
-
"sha256": "
|
|
605
|
+
"sha256": "1fe6f8d50a1abd7a0b338772560317404942874ddd67be458ca24182ea20f7a4"
|
|
606
606
|
},
|
|
607
607
|
{
|
|
608
608
|
"path": "skills/wtfp-write-section/SKILL.md",
|
|
@@ -660,9 +660,13 @@
|
|
|
660
660
|
"path": "tools/citation/semantic-scholar.js",
|
|
661
661
|
"sha256": "df4c1f3d69a28e06dd5285ba46c116bb2731aa940e16b9438c822846f38646f5"
|
|
662
662
|
},
|
|
663
|
+
{
|
|
664
|
+
"path": "tools/package.json",
|
|
665
|
+
"sha256": "dbf8353f77358bc12169b7bb7301e1978d5b503e002ee927229a8993672818fc"
|
|
666
|
+
},
|
|
663
667
|
{
|
|
664
668
|
"path": "tools/README.md",
|
|
665
|
-
"sha256": "
|
|
669
|
+
"sha256": "eb99d2ef30209b409e8c0dbfccaabdf301b6bc50f17013cd8fa381c3c1d69ae2"
|
|
666
670
|
},
|
|
667
671
|
{
|
|
668
672
|
"path": "tools/support/cite-nexus-client.js",
|
|
@@ -758,7 +762,7 @@
|
|
|
758
762
|
},
|
|
759
763
|
{
|
|
760
764
|
"path": "workflows/plan-section.md",
|
|
761
|
-
"sha256": "
|
|
765
|
+
"sha256": "831c20c8afd147a8ba149a46f54591b6f07732983ee916a56c66701c8c701aa2"
|
|
762
766
|
},
|
|
763
767
|
{
|
|
764
768
|
"path": "workflows/polish-prose.md",
|
|
@@ -786,7 +790,7 @@
|
|
|
786
790
|
},
|
|
787
791
|
{
|
|
788
792
|
"path": "workflows/research-gap.md",
|
|
789
|
-
"sha256": "
|
|
793
|
+
"sha256": "02ffe236ba7de12e4b3abbac308c0e1cfc409147147d509616b95baec3fef012"
|
|
790
794
|
},
|
|
791
795
|
{
|
|
792
796
|
"path": "workflows/resume-writing.md",
|
|
@@ -814,7 +818,7 @@
|
|
|
814
818
|
},
|
|
815
819
|
{
|
|
816
820
|
"path": "workflows/write-section.md",
|
|
817
|
-
"sha256": "
|
|
821
|
+
"sha256": "5a2f0efcd11d7f41d941f54b80798ad481773820907fee68bea47f28b7af7bc3"
|
|
818
822
|
}
|
|
819
823
|
]
|
|
820
824
|
}
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
},
|
|
97
97
|
{
|
|
98
98
|
"id": "user.gate",
|
|
99
|
-
"scope": "
|
|
99
|
+
"scope": "unapproved or paid external providers and bounded query set, plus author-owned research scope and depth decisions"
|
|
100
100
|
}
|
|
101
101
|
]
|
|
102
102
|
}
|
|
@@ -52,7 +52,7 @@ Investigate the literature needed to plan and write a specific section well. The
|
|
|
52
52
|
## Boundaries
|
|
53
53
|
|
|
54
54
|
- This is a `mutation-report` role. It may write only the research and suggestion artifacts authorized by the invoking action.
|
|
55
|
-
-
|
|
55
|
+
- An operator-configured, trusted read-only CiteNexus MCP connection may search bounded public scholarly metadata without a second per-query gate. In an explicitly selected full-auto host session for this research action, `citation-search --backend=cite-nexus` may also search `crossref`, `datacite`, `europe_pmc`, or `arxiv` without another gate. Other providers or modes require explicit network approval naming providers and query bounds. Honor offline flags and host refusals. Returned results stay candidates, and this role never performs a bibliography write.
|
|
56
56
|
- Never fabricate a citation, identifier, quotation, metadata field, source conclusion, or claim of exhaustive coverage.
|
|
57
57
|
- Never overwrite an existing `project://sources/{source}` record. Additions remain provisional until identity and provenance are verified by an authorized action.
|
|
58
58
|
- Do not explore alternatives that author decisions explicitly deferred or rejected.
|
|
@@ -72,6 +72,8 @@ Call `ask_user` whenever this workflow reaches a declared `user.gate`; only the
|
|
|
72
72
|
|
|
73
73
|
## Clio role-result binding
|
|
74
74
|
|
|
75
|
+
Dispatch the declared specialist roles using these exact Clio agent IDs: `wtfp-citation-expert`. Do not substitute generic coder or verifier agents. If a named agent is unavailable, report that blocker and stop instead of silently changing roles.
|
|
76
|
+
|
|
75
77
|
Read the single wtfp.role-result entry in native validations/checks and parse its evidence string as portable role-result JSON. 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.
|
|
76
78
|
|
|
77
79
|
<!-- Generated by WTF-P adapter compiler v5 from protocol/actions/analyze-bib; do not edit. -->
|
|
@@ -67,6 +67,8 @@ Call `ask_user` whenever this workflow reaches a declared `user.gate`; only the
|
|
|
67
67
|
|
|
68
68
|
## Clio role-result binding
|
|
69
69
|
|
|
70
|
+
Dispatch the declared specialist roles using these exact Clio agent IDs: `wtfp-citation-formatter`. Do not substitute generic coder or verifier agents. If a named agent is unavailable, report that blocker and stop instead of silently changing roles.
|
|
71
|
+
|
|
70
72
|
Read the single wtfp.role-result entry in native validations/checks and parse its evidence string as portable role-result JSON. 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.
|
|
71
73
|
|
|
72
74
|
<!-- Generated by WTF-P adapter compiler v5 from protocol/actions/check-refs; do not edit. -->
|
|
@@ -69,6 +69,8 @@ Call `ask_user` whenever this workflow reaches a declared `user.gate`; only the
|
|
|
69
69
|
|
|
70
70
|
## Clio role-result binding
|
|
71
71
|
|
|
72
|
+
Dispatch the declared specialist roles using these exact Clio agent IDs: `wtfp-outliner`. Do not substitute generic coder or verifier agents. If a named agent is unavailable, report that blocker and stop instead of silently changing roles.
|
|
73
|
+
|
|
72
74
|
Read the single wtfp.role-result entry in native validations/checks and parse its evidence string as portable role-result JSON. 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.
|
|
73
75
|
|
|
74
76
|
<!-- Generated by WTF-P adapter compiler v5 from protocol/actions/create-outline; do not edit. -->
|
|
@@ -69,6 +69,8 @@ Call `ask_user` whenever this workflow reaches a declared `user.gate`; only the
|
|
|
69
69
|
|
|
70
70
|
## Clio role-result binding
|
|
71
71
|
|
|
72
|
+
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. If a named agent is unavailable, report that blocker and stop instead of silently changing roles.
|
|
73
|
+
|
|
72
74
|
Read the single wtfp.role-result entry in native validations/checks and parse its evidence string as portable role-result JSON. 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.
|
|
73
75
|
|
|
74
76
|
<!-- Generated by WTF-P adapter compiler v5 from protocol/actions/execute-outline; do not edit. -->
|
|
@@ -23,8 +23,9 @@ Manuscript prose and supporting context, research, plan, review, summary, handof
|
|
|
23
23
|
1. Resolve one section record, load its linked context, research, evidence, decisions, and outline constraints, and enumerate the bounded `project://validations/*` collection before any specialist dispatch.
|
|
24
24
|
2. Filter those records to candidates whose `subject_uri` is exactly `project://structure/outline` and whose `action_id` is exactly `create-outline`. A candidate is current only when `executed_at >= outline.updated_at`. Because the v1 validation schema carries no outline revision or content hash, disclose that this timestamp test is a conservative freshness proxy.
|
|
25
25
|
3. Require exactly one current candidate and require its `status` to be `passed`. Separately verify that the current outline and target section are consistent with all current locked and deferred author choices: honor locked choices and do not treat deferred choices as resolved. A missing, stale, ambiguous, or non-passing candidate, or a decision contradiction, blocks all specialist dispatch and every plan, section, state, or validation write. Only a recovery checkpoint may be proposed on this blocked path, and it may be written only after a complete record preview and explicit author approval.
|
|
26
|
-
4.
|
|
27
|
-
5.
|
|
26
|
+
4. For a literature-heavy section, first require a section-specific research artifact plus resolvable source/evidence records that cover the planned claims. If they are absent or insufficient, run `research-gap` with the configured CiteNexus backend when available, verify candidate metadata against the returned records, and stop planning with an explicit research checkpoint if evidence remains insufficient. Never invent citations or treat search candidates as verified sources.
|
|
27
|
+
5. Only after those prerequisites pass, delegate a bounded plan to `section-planner`, then require a fresh `plan-checker` pass over claim coverage, dependencies, file scope, citations, and decision fidelity. Dispatch the exact WTF-P specialist roles; generic coder and verifier roles do not satisfy this workflow.
|
|
28
|
+
6. At confirm_plan, preview the plan and validation; on approval link the plan, update section status to planned, and reconcile state. Create a checkpoint for unresolved judgment instead of bypassing the required checker.
|
|
28
29
|
|
|
29
30
|
## Safety and completion
|
|
30
31
|
|
|
@@ -71,6 +72,8 @@ Call `ask_user` whenever this workflow reaches a declared `user.gate`; only the
|
|
|
71
72
|
|
|
72
73
|
## Clio role-result binding
|
|
73
74
|
|
|
75
|
+
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. If a named agent is unavailable, report that blocker and stop instead of silently changing roles.
|
|
76
|
+
|
|
74
77
|
Read the single wtfp.role-result entry in native validations/checks and parse its evidence string as portable role-result JSON. 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.
|
|
75
78
|
|
|
76
79
|
<!-- Generated by WTF-P adapter compiler v5 from protocol/actions/plan-section; do not edit. -->
|
|
@@ -57,6 +57,8 @@ Call `ask_user` whenever this workflow reaches a declared `user.gate`; only the
|
|
|
57
57
|
|
|
58
58
|
## Clio role-result binding
|
|
59
59
|
|
|
60
|
+
Dispatch the declared specialist roles using these exact Clio agent IDs: `wtfp-prose-polisher`. Do not substitute generic coder or verifier agents. If a named agent is unavailable, report that blocker and stop instead of silently changing roles.
|
|
61
|
+
|
|
60
62
|
Read the single wtfp.role-result entry in native validations/checks and parse its evidence string as portable role-result JSON. 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.
|
|
61
63
|
|
|
62
64
|
<!-- Generated by WTF-P adapter compiler v5 from protocol/actions/polish-prose; do not edit. -->
|
|
@@ -57,6 +57,8 @@ Call `ask_user` whenever this workflow reaches a declared `user.gate`; only the
|
|
|
57
57
|
|
|
58
58
|
## Clio role-result binding
|
|
59
59
|
|
|
60
|
+
Dispatch the declared specialist roles using these exact Clio agent IDs: `wtfp-section-writer`. Do not substitute generic coder or verifier agents. If a named agent is unavailable, report that blocker and stop instead of silently changing roles.
|
|
61
|
+
|
|
60
62
|
Read the single wtfp.role-result entry in native validations/checks and parse its evidence string as portable role-result JSON. 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.
|
|
61
63
|
|
|
62
64
|
<!-- Generated by WTF-P adapter compiler v5 from protocol/actions/quick; do not edit. -->
|
|
@@ -21,7 +21,7 @@ Manuscript prose and supporting context, research, plan, review, summary, handof
|
|
|
21
21
|
## Procedure
|
|
22
22
|
|
|
23
23
|
1. Resolve the research question and section scope against locked/deferred decisions; agree on depth and source constraints.
|
|
24
|
-
2.
|
|
24
|
+
2. Prefer an operator-configured, trusted read-only CiteNexus MCP connection for bounded public metadata searches when the host has already authorized it. In an explicitly selected full-auto host session for this research action, the bundled CiteNexus dispatcher may also search the free no-key public indexes `crossref`, `datacite`, `europe_pmc`, and `arxiv` without a second per-query author gate; use only selected relevant indexes with an explicit `--providers` list. Record provider IDs, queries, date, and result limits; never send unpublished manuscript text or private notes as search terms. For any other route, first obtain explicit author approval naming the providers and bounded query set. Results remain candidates and this action performs no bibliography write. Verify source identity and inspection depth, and separate source records from claim-level evidence.
|
|
25
25
|
3. Synthesize supported, conflicting, and missing evidence into a Markdown research artifact; link new records and disclose limitations.
|
|
26
26
|
|
|
27
27
|
## Bundled tool execution
|
|
@@ -32,7 +32,7 @@ The declared `tool.execute` effect authorises exactly one command, run from the
|
|
|
32
32
|
node ${pluginRoot}/tools/wtfp-tool.js [--offline] <command> [arguments]
|
|
33
33
|
```
|
|
34
34
|
|
|
35
|
-
Run it with `list` first to read the declared commands, their arguments, their bounds, and the effects each one applies; `${pluginRoot}/tools/README.md` carries the same table. A command whose effects include `network.*` performs outbound requests.
|
|
35
|
+
Run it with `list` first to read the declared commands, their arguments, their bounds, and the effects each one applies; `${pluginRoot}/tools/README.md` carries the same table. A command whose effects include `network.*` performs outbound requests. Pass `--offline` (or set `WTFP_TOOL_OFFLINE=1`) until the provider/query gate is approved, except for this action's explicit full-auto public-index route. On that route omit `--offline` only for `citation-search --backend=cite-nexus` with bounded queries and `--providers` drawn from `crossref,datacite,europe_pmc,arxiv`; never override an operator-set offline flag or a host refusal. Never execute another module in this package, never pass a logical `project://` or `wtfp://` URI as a shell argument, and treat every returned record as candidate evidence until it is verified and written to a source or evidence record.
|
|
36
36
|
|
|
37
37
|
## Safety and completion
|
|
38
38
|
|
|
@@ -71,8 +71,14 @@ $ARGUMENTS
|
|
|
71
71
|
|
|
72
72
|
Call `ask_user` whenever this workflow reaches a declared `user.gate`; only the structured value returned by that tool satisfies the gate. Invocation arguments, assistant prose, silence, or a report artifact do not count as a selection. Apply no gated mutation before `ask_user` returns. After any permitted mutation, perform the workflow-required readback before reporting success.
|
|
73
73
|
|
|
74
|
+
## Clio CiteNexus binding
|
|
75
|
+
|
|
76
|
+
In full-auto, the main agent first calls `gateway(op="find", query="cite-nexus")`. If a CiteNexus server is present and its tools are admitted as read-class through the operator's user configuration, call `gateway(op="describe", capability="<search-papers capability>")`, then `gateway(op="call", capability="<search-papers capability>", args={...})` with bounded public metadata queries. Use the capability name and argument schema returned by the gateway, not a guessed name. MCP connections are session-owned and unavailable in delegated workers, so pass the returned candidates and provenance to `wtfp-research-synthesizer` instead of asking that worker to discover the MCP server. This user-configured read connection is prior authorization for those searches; do not call `ask_user` again for each query. If no read-class CiteNexus connection is available and no gateway call has been refused, full-auto may instead run the bundled `citation-search --backend=cite-nexus` through its declared dispatcher with bounded public queries and an explicit `--providers` list containing only `crossref`, `datacite`, `europe_pmc`, or `arxiv`; pass those candidates to the same specialist. An operator-set offline flag, unavailable companion, or host refusal stops this route. Other providers and modes follow the declared user gate. Never bypass a gateway refusal by rerunning the same denied request through `bash`. Record the exact provider IDs, queries, limits, date, and provenance; verify each retained candidate before citing it.
|
|
77
|
+
|
|
74
78
|
## Clio role-result binding
|
|
75
79
|
|
|
80
|
+
Dispatch the declared specialist roles using these exact Clio agent IDs: `wtfp-research-synthesizer`. Do not substitute generic coder or verifier agents. If a named agent is unavailable, report that blocker and stop instead of silently changing roles.
|
|
81
|
+
|
|
76
82
|
Read the single wtfp.role-result entry in native validations/checks and parse its evidence string as portable role-result JSON. 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.
|
|
77
83
|
|
|
78
84
|
<!-- Generated by WTF-P adapter compiler v5 from protocol/actions/research-gap; do not edit. -->
|
|
@@ -62,6 +62,8 @@ Call `ask_user` whenever this workflow reaches a declared `user.gate`; only the
|
|
|
62
62
|
|
|
63
63
|
## Clio role-result binding
|
|
64
64
|
|
|
65
|
+
Dispatch the declared specialist roles using these exact Clio agent IDs: `wtfp-section-reviewer`. Do not substitute generic coder or verifier agents. If a named agent is unavailable, report that blocker and stop instead of silently changing roles.
|
|
66
|
+
|
|
65
67
|
Read the single wtfp.role-result entry in native validations/checks and parse its evidence string as portable role-result JSON. 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.
|
|
66
68
|
|
|
67
69
|
<!-- Generated by WTF-P adapter compiler v5 from protocol/actions/review-section; do not edit. -->
|
|
@@ -21,7 +21,7 @@ Manuscript prose and supporting context, research, plan, review, summary, handof
|
|
|
21
21
|
## Procedure
|
|
22
22
|
|
|
23
23
|
1. Require one approved plan and resolve all linked context, research, source/evidence records, decisions, prior summary, existing target, and necessary neighboring prose before choosing create or update.
|
|
24
|
-
2. Draft only the declared manuscript artifact; cite only resolvable sources, preserve author constraints, and stop at blocking decisions.
|
|
24
|
+
2. Before drafting a literature-heavy section, verify that its linked research artifact and source/evidence records cover the plan's factual claims. If coverage is missing, use the declared research workflow and pause at a checkpoint until verified records exist. Draft only the declared manuscript artifact; cite only resolvable sources, preserve author constraints, and stop at blocking decisions. A plausible bibliography entry, search candidate, or model memory is not a verified citation.
|
|
25
25
|
3. Read the persisted manuscript text back and calculate its actual body word count with one deterministic method; never copy a worker self-report, plan target, or summary count into project records. Validate the persisted draft against its plan and word budget.
|
|
26
26
|
4. Create or update the required Markdown summary with that measured count, then read back both manuscript and summary. Missing, empty, or inconsistent output is a failed completion condition, not permission to link a path that does not exist.
|
|
27
27
|
5. Persist the validation, synchronize the manuscript URI in `manifest.artifacts.manuscripts`, and reconcile section/state records only after manuscript, summary, and validation readback succeeds. If blocked, create the declared checkpoint and stop; do not commit or merge automatically.
|
|
@@ -71,6 +71,8 @@ Call `ask_user` whenever this workflow reaches a declared `user.gate`; only the
|
|
|
71
71
|
|
|
72
72
|
## Clio role-result binding
|
|
73
73
|
|
|
74
|
+
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. If a named agent is unavailable, report that blocker and stop instead of silently changing roles.
|
|
75
|
+
|
|
74
76
|
Read the single wtfp.role-result entry in native validations/checks and parse its evidence string as portable role-result JSON. 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.
|
|
75
77
|
|
|
76
78
|
<!-- Generated by WTF-P adapter compiler v5 from protocol/actions/write-section; do not edit. -->
|
|
@@ -42,7 +42,7 @@ Investigate the literature needed to plan and write a specific section well. The
|
|
|
42
42
|
## Boundaries
|
|
43
43
|
|
|
44
44
|
- This is a `mutation-report` role. It may write only the research and suggestion artifacts authorized by the invoking action.
|
|
45
|
-
-
|
|
45
|
+
- An operator-configured, trusted read-only CiteNexus MCP connection may search bounded public scholarly metadata without a second per-query gate. In an explicitly selected full-auto host session for this research action, `citation-search --backend=cite-nexus` may also search `crossref`, `datacite`, `europe_pmc`, or `arxiv` without another gate. Other providers or modes require explicit network approval naming providers and query bounds. Honor offline flags and host refusals. Returned results stay candidates, and this role never performs a bibliography write.
|
|
46
46
|
- Never fabricate a citation, identifier, quotation, metadata field, source conclusion, or claim of exhaustive coverage.
|
|
47
47
|
- Never overwrite an existing `project://sources/{source}` record. Additions remain provisional until identity and provenance are verified by an authorized action.
|
|
48
48
|
- Do not explore alternatives that author decisions explicitly deferred or rejected.
|
|
@@ -62,7 +62,7 @@ Contract: [protocol/actions/plan-section.json](../../../actions/plan-section.jso
|
|
|
62
62
|
2. Read the complete planning context before decomposing work: manifest, config, state, decisions, outline, section record, context, research, source/evidence records, relevant prior summaries, and the bounded `project://validations/*` collection.
|
|
63
63
|
3. Before any specialist dispatch, filter the validation records to candidates whose `subject_uri` is exactly `project://structure/outline` and whose `action_id` is exactly `create-outline`. A candidate is current only when `executed_at >= outline.updated_at`. Because the v1 validation schema carries no outline revision or content hash, disclose that this timestamp test is a conservative freshness proxy.
|
|
64
64
|
4. Require exactly one current candidate and require its `status` to be `passed`. Separately verify that the current outline and target section are consistent with all current locked and deferred author choices: honor locked choices and do not treat deferred choices as resolved. A missing, stale, ambiguous, or non-passing candidate, or a decision contradiction, blocks all specialist dispatch and every plan, section, state, or validation write. Only a recovery checkpoint may be proposed on this blocked path, and it may be written only after a complete record preview and explicit author approval.
|
|
65
|
-
5. If the section is literature-heavy
|
|
65
|
+
5. If the section is literature-heavy, require a section-specific research artifact and resolvable source/evidence records for its planned claims before dispatch or approval. Run `research-gap` with the configured CiteNexus backend when available; if coverage remains insufficient, record a research checkpoint and stop. Search candidates alone are not verified citations. Do not manufacture citations to keep planning moving.
|
|
66
66
|
6. Summarize the section goal, claims, evidence, manuscript artifact, dependencies, and open decisions at `config.gates.confirm_plan`.
|
|
67
67
|
7. After the prerequisites pass, require `section-planner` in a bounded delegated pass to create one or more immutable Markdown `project://sections/{section}/plans/{plan}` artifacts. Each plan must declare:
|
|
68
68
|
- stable section and plan identifiers;
|
|
@@ -14,7 +14,7 @@ Contract: [protocol/actions/research-gap.json](../../../actions/research-gap.jso
|
|
|
14
14
|
- `standard`: run a focused, reproducible search across the most relevant categories;
|
|
15
15
|
- `deep`: map foundational, recent, competing, gap-defining, and methodological work, including important disagreements and intellectual lineage.
|
|
16
16
|
5. Form search questions and inclusion criteria before searching. Record databases or corpora, query strings, date, filters, and stopping rule.
|
|
17
|
-
6. Search authoritative scholarly sources
|
|
17
|
+
6. Search authoritative scholarly sources with bounded queries. Two routes need no second per-query author gate: a host connection the operator already configured and authorized for read-only public scholarly metadata search, or the bundled CiteNexus dispatcher in a host session explicitly set to full-auto for this research action when every selected provider is a free, no-key public index (`crossref`, `datacite`, `europe_pmc`, or `arxiv`). Record provider IDs, query strings, date, and result limits in the research artifact. Do not send unpublished manuscript text, private notes, or credentials as search terms. Outside those routes, first disclose the providers and bounded query set and obtain explicit author approval. The dispatcher runs only `citation-search --backend=cite-nexus` with an explicit `--providers` list; honor an operator-set offline flag or any host refusal. Returned results stay candidates, and this action performs no bibliography write. Deduplicate candidates by persistent identifier, then normalized title.
|
|
18
18
|
7. Verify each retained source from its primary record or publication. Create a `project://sources/{source}` record with title, creators, year, source kind, identifiers, citation key, status, provenance, inspection depth, and verification time.
|
|
19
19
|
8. Read enough of each source to distinguish its actual claim, method, population, result, and limitation. Do not cite an abstract-only impression as full-paper evidence.
|
|
20
20
|
9. Create `project://evidence/{evidence}` separately for each retained claim-level interpretation, with relation, locator, limitations, confidence, and inspection depth. Synthesize by question rather than listing papers; identify consensus, disagreement, methodological differences, missing evidence, and defensible positioning.
|
|
@@ -8,7 +8,7 @@ Contract: [protocol/actions/write-section.json](../../../actions/write-section.j
|
|
|
8
8
|
|
|
9
9
|
1. Require an exact `project://sections/{section}/plans/{plan}` artifact linked from `project://sections/{section}` and verify its declared inputs, outputs, dependencies, validation, and approval state.
|
|
10
10
|
2. If a corresponding summary or manuscript output exists, show the overwrite or merge impact and require explicit re-execution approval.
|
|
11
|
-
3. Read the plan, `project://manifest`, `project://state`, `project://decisions`, `project://structure/outline`, section context and research, relevant source/evidence records, and enough neighboring prose to maintain continuity.
|
|
11
|
+
3. Read the plan, `project://manifest`, `project://state`, `project://decisions`, `project://structure/outline`, section context and research, relevant source/evidence records, and enough neighboring prose to maintain continuity. For a literature-heavy section, require research and verified source/evidence coverage of the plan's factual claims before drafting. Route missing coverage through `research-gap` and a checkpoint; do not substitute model memory or search candidates for source records.
|
|
12
12
|
4. Present the plan objective, output path, target words, evidence obligations, and checkpoints at the configured writing gate.
|
|
13
13
|
5. Execute tasks in order against the exact `project://paper/{artifact}` output. For each task:
|
|
14
14
|
- establish the paragraph or subsection's rhetorical job;
|
|
@@ -31,6 +31,6 @@ Run it with no argument, or with `list`, to print the declared command set as JS
|
|
|
31
31
|
- `s2-search --query=<text> [--limit=<1-25>] [--year=<yyyy>] [--timeout=<seconds>]` → `citation.semantic-scholar` (network.fetch, network.search)
|
|
32
32
|
- `rank <papers.json> [--intent=<seminal|recent|balanced>]` → `citation.rank` (no declared effects)
|
|
33
33
|
|
|
34
|
-
For
|
|
34
|
+
For declared scholarly discovery, `citation-search --backend=cite-nexus --query="<topic>"` uses the separately installed `cite-nexus-wtfp` companion and its real MCP stdio server. Defaults are Crossref, DataCite and Europe PMC. Select providers explicitly with `--providers`. The `research-gap` full-auto route may use only free no-key public indexes (`crossref`, `datacite`, `europe_pmc`, `arxiv`) without another per-query gate; other routes require action approval naming providers and query scope. CiteNexus supports only balanced provider ordering, so omit `--intent` or use `--intent=balanced`. Results remain candidates: retain `citeNexus.sources`, field attribution, metrics, warnings and `metadata.errors`; do not infer verification or combine citation counts. The result limit is a displayed total; `metadata.total` counts the fetched deduplicated page, not the full corpus. Unavailable enrichment fails explicitly without falling back to another vendor. `WTFP_CITE_NEXUS_COMMAND` may name an absolute installed companion executable; it is operator configuration, never source content. No package is installed, server registered, or user profile changed by a tool call. Offline mode refuses this backend before process launch. Host capability blockers still apply.
|
|
35
35
|
|
|
36
36
|
Every command prints one JSON document on stdout and reports failures as `{"error": "..."}` on stderr with exit status 1. Queries are capped at 512 characters, file paths at 4096, and result limits at 25. A symlinked file is accepted and read through its resolved target, which must be a regular file. Commands whose effects include `network.*` perform outbound requests to the declared scholarly indexes; pass `--offline` or set `WTFP_TOOL_OFFLINE=1` to refuse them, which is the mechanical form of "do not invoke a network-capable bibliography tool through a filesystem-only permission path". Each network command has a hard wall clock, `--timeout=<seconds>` (default 20, maximum 600); on expiry it reports `{"error": "<command> timed out after N s"}` on stderr and exits 124. `bib-impact` reports batch progress on stderr. `bib-index` flags repeated keys with `duplicate: true` and lists them under `duplicates`; `--key` refuses an ambiguous key. `bib-format` emits a standard BibTeX entry (`@article`, `@inproceedings`, ...) by default; `--style=al-folio` selects the Jekyll al-folio projection, which is not valid BibTeX. Do not execute any other module in this package directly, and do not pass a logical `project://` or `wtfp://` URI as a shell argument.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"commonjs"}
|
|
@@ -24,8 +24,9 @@ Manuscript prose and supporting context, research, plan, review, summary, handof
|
|
|
24
24
|
1. Resolve one section record, load its linked context, research, evidence, decisions, and outline constraints, and enumerate the bounded `project://validations/*` collection before any specialist dispatch.
|
|
25
25
|
2. Filter those records to candidates whose `subject_uri` is exactly `project://structure/outline` and whose `action_id` is exactly `create-outline`. A candidate is current only when `executed_at >= outline.updated_at`. Because the v1 validation schema carries no outline revision or content hash, disclose that this timestamp test is a conservative freshness proxy.
|
|
26
26
|
3. Require exactly one current candidate and require its `status` to be `passed`. Separately verify that the current outline and target section are consistent with all current locked and deferred author choices: honor locked choices and do not treat deferred choices as resolved. A missing, stale, ambiguous, or non-passing candidate, or a decision contradiction, blocks all specialist dispatch and every plan, section, state, or validation write. Only a recovery checkpoint may be proposed on this blocked path, and it may be written only after a complete record preview and explicit author approval.
|
|
27
|
-
4.
|
|
28
|
-
5.
|
|
27
|
+
4. For a literature-heavy section, first require a section-specific research artifact plus resolvable source/evidence records that cover the planned claims. If they are absent or insufficient, run `research-gap` with the configured CiteNexus backend when available, verify candidate metadata against the returned records, and stop planning with an explicit research checkpoint if evidence remains insufficient. Never invent citations or treat search candidates as verified sources.
|
|
28
|
+
5. Only after those prerequisites pass, delegate a bounded plan to `section-planner`, then require a fresh `plan-checker` pass over claim coverage, dependencies, file scope, citations, and decision fidelity. Dispatch the exact WTF-P specialist roles; generic coder and verifier roles do not satisfy this workflow.
|
|
29
|
+
6. At confirm_plan, preview the plan and validation; on approval link the plan, update section status to planned, and reconcile state. Create a checkpoint for unresolved judgment instead of bypassing the required checker.
|
|
29
30
|
|
|
30
31
|
## Safety and completion
|
|
31
32
|
|