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
|
@@ -47,7 +47,7 @@ Investigate the literature needed to plan and write a specific section well. The
|
|
|
47
47
|
## Boundaries
|
|
48
48
|
|
|
49
49
|
- This is a `mutation-report` role. It may write only the research and suggestion artifacts authorized by the invoking action.
|
|
50
|
-
-
|
|
50
|
+
- 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.
|
|
51
51
|
- Never fabricate a citation, identifier, quotation, metadata field, source conclusion, or claim of exhaustive coverage.
|
|
52
52
|
- Never overwrite an existing `project://sources/{source}` record. Additions remain provisional until identity and provenance are verified by an authorized action.
|
|
53
53
|
- Do not explore alternatives that author decisions explicitly deferred or rejected.
|
|
@@ -32,8 +32,9 @@ Manuscript prose and supporting context, research, plan, review, summary, handof
|
|
|
32
32
|
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.
|
|
33
33
|
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.
|
|
34
34
|
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.
|
|
35
|
-
4.
|
|
36
|
-
5.
|
|
35
|
+
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.
|
|
36
|
+
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.
|
|
37
|
+
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.
|
|
37
38
|
|
|
38
39
|
## Safety and completion
|
|
39
40
|
|
|
@@ -30,7 +30,7 @@ Manuscript prose and supporting context, research, plan, review, summary, handof
|
|
|
30
30
|
## Procedure
|
|
31
31
|
|
|
32
32
|
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.
|
|
33
|
-
2. Draft only the declared manuscript artifact; cite only resolvable sources, preserve author constraints, and stop at blocking decisions.
|
|
33
|
+
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.
|
|
34
34
|
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.
|
|
35
35
|
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.
|
|
36
36
|
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.
|
|
@@ -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;
|
|
@@ -54,7 +54,7 @@ Contract: [protocol/actions/research-gap.json](../../../actions/research-gap.jso
|
|
|
54
54
|
- `standard`: run a focused, reproducible search across the most relevant categories;
|
|
55
55
|
- `deep`: map foundational, recent, competing, gap-defining, and methodological work, including important disagreements and intellectual lineage.
|
|
56
56
|
5. Form search questions and inclusion criteria before searching. Record databases or corpora, query strings, date, filters, and stopping rule.
|
|
57
|
-
6. Search authoritative scholarly sources
|
|
57
|
+
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.
|
|
58
58
|
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.
|
|
59
59
|
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.
|
|
60
60
|
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
|
|
|
@@ -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.
|
|
@@ -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.
|
|
@@ -110,7 +110,7 @@ Contract: [protocol/actions/plan-section.json](../../../actions/plan-section.jso
|
|
|
110
110
|
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.
|
|
111
111
|
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.
|
|
112
112
|
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.
|
|
113
|
-
5. If the section is literature-heavy
|
|
113
|
+
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.
|
|
114
114
|
6. Summarize the section goal, claims, evidence, manuscript artifact, dependencies, and open decisions at `config.gates.confirm_plan`.
|
|
115
115
|
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:
|
|
116
116
|
- stable section and plan identifiers;
|
package/vendors/copilot/project/.github/skills/wtfp-research-literature/references/actions.md
CHANGED
|
@@ -54,7 +54,7 @@ Contract: [protocol/actions/research-gap.json](../../../actions/research-gap.jso
|
|
|
54
54
|
- `standard`: run a focused, reproducible search across the most relevant categories;
|
|
55
55
|
- `deep`: map foundational, recent, competing, gap-defining, and methodological work, including important disagreements and intellectual lineage.
|
|
56
56
|
5. Form search questions and inclusion criteria before searching. Record databases or corpora, query strings, date, filters, and stopping rule.
|
|
57
|
-
6. Search authoritative scholarly sources
|
|
57
|
+
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.
|
|
58
58
|
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.
|
|
59
59
|
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.
|
|
60
60
|
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.
|
|
@@ -48,7 +48,7 @@ Contract: [protocol/actions/write-section.json](../../../actions/write-section.j
|
|
|
48
48
|
|
|
49
49
|
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.
|
|
50
50
|
2. If a corresponding summary or manuscript output exists, show the overwrite or merge impact and require explicit re-execution approval.
|
|
51
|
-
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.
|
|
51
|
+
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.
|
|
52
52
|
4. Present the plan objective, output path, target words, evidence obligations, and checkpoints at the configured writing gate.
|
|
53
53
|
5. Execute tasks in order against the exact `project://paper/{artifact}` output. For each task:
|
|
54
54
|
- establish the paragraph or subsection's rhetorical job;
|
|
@@ -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
|
}
|
|
@@ -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.
|
|
@@ -46,7 +46,7 @@ Contract: [protocol/actions/plan-section.json](../../../actions/plan-section.jso
|
|
|
46
46
|
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.
|
|
47
47
|
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.
|
|
48
48
|
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.
|
|
49
|
-
5. If the section is literature-heavy
|
|
49
|
+
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.
|
|
50
50
|
6. Summarize the section goal, claims, evidence, manuscript artifact, dependencies, and open decisions at `config.gates.confirm_plan`.
|
|
51
51
|
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:
|
|
52
52
|
- stable section and plan identifiers;
|
package/vendors/copilot/project/.github/wtfp/skills/wtfp-research-literature/references/actions.md
CHANGED
|
@@ -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.
|
package/vendors/copilot/project/.github/wtfp/skills/wtfp-write-section/references/actions.md
CHANGED
|
@@ -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;
|
|
@@ -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": "gemini",
|
|
5
|
-
"sourceHash": "
|
|
5
|
+
"sourceHash": "acac03d8c3f845113c74322cf08a094e7782102c73597f0012cbd7ee1433eae8",
|
|
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": "agents/wtfp-research-synthesizer.md",
|
|
181
|
-
"sha256": "
|
|
181
|
+
"sha256": "76177a1a132c47eba4054631803c04d81d8c71d86161d1709dd0f29803e58b56"
|
|
182
182
|
},
|
|
183
183
|
{
|
|
184
184
|
"path": "agents/wtfp-section-planner.md",
|
|
@@ -242,11 +242,11 @@
|
|
|
242
242
|
},
|
|
243
243
|
{
|
|
244
244
|
"path": "commands/wtfp/discuss-section.toml",
|
|
245
|
-
"sha256": "
|
|
245
|
+
"sha256": "1263bf9a2059860027485aa8fd3dddd97fc02377f676f1f88b6a23a179002524"
|
|
246
246
|
},
|
|
247
247
|
{
|
|
248
248
|
"path": "commands/wtfp/execute-outline.toml",
|
|
249
|
-
"sha256": "
|
|
249
|
+
"sha256": "27616f3505b9b697529f61f3f9364540e4fb59484307a8109b37a89a51e4974f"
|
|
250
250
|
},
|
|
251
251
|
{
|
|
252
252
|
"path": "commands/wtfp/export-latex.toml",
|
|
@@ -258,11 +258,11 @@
|
|
|
258
258
|
},
|
|
259
259
|
{
|
|
260
260
|
"path": "commands/wtfp/insert-section.toml",
|
|
261
|
-
"sha256": "
|
|
261
|
+
"sha256": "5f183b01353044195f6492ef3af8adb3312a2bba111c46c60d78611abc189e42"
|
|
262
262
|
},
|
|
263
263
|
{
|
|
264
264
|
"path": "commands/wtfp/list-assumptions.toml",
|
|
265
|
-
"sha256": "
|
|
265
|
+
"sha256": "e6b3f135e9655c0489b41bb3d804292c17c5f3159267c1286546445382b1057e"
|
|
266
266
|
},
|
|
267
267
|
{
|
|
268
268
|
"path": "commands/wtfp/map-project.toml",
|
|
@@ -282,11 +282,11 @@
|
|
|
282
282
|
},
|
|
283
283
|
{
|
|
284
284
|
"path": "commands/wtfp/plan-revision.toml",
|
|
285
|
-
"sha256": "
|
|
285
|
+
"sha256": "7fd09d856d2c9f0304b30b949fd1070d596d8bf7311cdca85122d309de6051ee"
|
|
286
286
|
},
|
|
287
287
|
{
|
|
288
288
|
"path": "commands/wtfp/plan-section.toml",
|
|
289
|
-
"sha256": "
|
|
289
|
+
"sha256": "3e27778ed1081f52f57b46e81f7a026ccf4f0a644688e2d96a57d07e1871d07c"
|
|
290
290
|
},
|
|
291
291
|
{
|
|
292
292
|
"path": "commands/wtfp/polish-prose.toml",
|
|
@@ -298,7 +298,7 @@
|
|
|
298
298
|
},
|
|
299
299
|
{
|
|
300
300
|
"path": "commands/wtfp/quick.toml",
|
|
301
|
-
"sha256": "
|
|
301
|
+
"sha256": "9bccf0bed639ce472cf7ef5a2050073ffe71e806b37e993263fdb303ceb2420b"
|
|
302
302
|
},
|
|
303
303
|
{
|
|
304
304
|
"path": "commands/wtfp/remove-section.toml",
|
|
@@ -342,7 +342,7 @@
|
|
|
342
342
|
},
|
|
343
343
|
{
|
|
344
344
|
"path": "commands/wtfp/write-section.toml",
|
|
345
|
-
"sha256": "
|
|
345
|
+
"sha256": "afb9d609cc21eda15675801c15390ebfbc508d1808d28efbcaa5efc31a282848"
|
|
346
346
|
},
|
|
347
347
|
{
|
|
348
348
|
"path": "compatibility/action-availability.json",
|
|
@@ -362,7 +362,7 @@
|
|
|
362
362
|
},
|
|
363
363
|
{
|
|
364
364
|
"path": "gemini-extension.json",
|
|
365
|
-
"sha256": "
|
|
365
|
+
"sha256": "35f1733ded31dc01c856a88063614d5524cf790e100abac1167d77c048b523c2"
|
|
366
366
|
},
|
|
367
367
|
{
|
|
368
368
|
"path": "GEMINI.md",
|
|
@@ -490,7 +490,7 @@
|
|
|
490
490
|
},
|
|
491
491
|
{
|
|
492
492
|
"path": "roles/research-synthesizer.md",
|
|
493
|
-
"sha256": "
|
|
493
|
+
"sha256": "7aa6922f5f819918374b1a87dbda5c12fa6d424be64fc13b4019c380e011306c"
|
|
494
494
|
},
|
|
495
495
|
{
|
|
496
496
|
"path": "roles/section-planner.md",
|
|
@@ -558,7 +558,7 @@
|
|
|
558
558
|
},
|
|
559
559
|
{
|
|
560
560
|
"path": "skills/wtfp-plan-section/references/actions.md",
|
|
561
|
-
"sha256": "
|
|
561
|
+
"sha256": "61f80a6e02b19d60fb302f32925552f3c7efe0f5df73322941b2f6047fc37179"
|
|
562
562
|
},
|
|
563
563
|
{
|
|
564
564
|
"path": "skills/wtfp-plan-section/SKILL.md",
|
|
@@ -570,7 +570,7 @@
|
|
|
570
570
|
},
|
|
571
571
|
{
|
|
572
572
|
"path": "skills/wtfp-research-literature/references/actions.md",
|
|
573
|
-
"sha256": "
|
|
573
|
+
"sha256": "b2693b5f70715fc5ee3d029bee8c050e60c46e82d348970ef3d7d72effd7e2c9"
|
|
574
574
|
},
|
|
575
575
|
{
|
|
576
576
|
"path": "skills/wtfp-research-literature/SKILL.md",
|
|
@@ -606,7 +606,7 @@
|
|
|
606
606
|
},
|
|
607
607
|
{
|
|
608
608
|
"path": "skills/wtfp-write-section/references/actions.md",
|
|
609
|
-
"sha256": "
|
|
609
|
+
"sha256": "1fe6f8d50a1abd7a0b338772560317404942874ddd67be458ca24182ea20f7a4"
|
|
610
610
|
},
|
|
611
611
|
{
|
|
612
612
|
"path": "skills/wtfp-write-section/SKILL.md",
|
|
@@ -664,9 +664,13 @@
|
|
|
664
664
|
"path": "tools/citation/semantic-scholar.js",
|
|
665
665
|
"sha256": "df4c1f3d69a28e06dd5285ba46c116bb2731aa940e16b9438c822846f38646f5"
|
|
666
666
|
},
|
|
667
|
+
{
|
|
668
|
+
"path": "tools/package.json",
|
|
669
|
+
"sha256": "dbf8353f77358bc12169b7bb7301e1978d5b503e002ee927229a8993672818fc"
|
|
670
|
+
},
|
|
667
671
|
{
|
|
668
672
|
"path": "tools/README.md",
|
|
669
|
-
"sha256": "
|
|
673
|
+
"sha256": "eb99d2ef30209b409e8c0dbfccaabdf301b6bc50f17013cd8fa381c3c1d69ae2"
|
|
670
674
|
},
|
|
671
675
|
{
|
|
672
676
|
"path": "tools/support/cite-nexus-client.js",
|
|
@@ -762,7 +766,7 @@
|
|
|
762
766
|
},
|
|
763
767
|
{
|
|
764
768
|
"path": "workflows/plan-section.md",
|
|
765
|
-
"sha256": "
|
|
769
|
+
"sha256": "831c20c8afd147a8ba149a46f54591b6f07732983ee916a56c66701c8c701aa2"
|
|
766
770
|
},
|
|
767
771
|
{
|
|
768
772
|
"path": "workflows/polish-prose.md",
|
|
@@ -790,7 +794,7 @@
|
|
|
790
794
|
},
|
|
791
795
|
{
|
|
792
796
|
"path": "workflows/research-gap.md",
|
|
793
|
-
"sha256": "
|
|
797
|
+
"sha256": "02ffe236ba7de12e4b3abbac308c0e1cfc409147147d509616b95baec3fef012"
|
|
794
798
|
},
|
|
795
799
|
{
|
|
796
800
|
"path": "workflows/resume-writing.md",
|
|
@@ -818,7 +822,7 @@
|
|
|
818
822
|
},
|
|
819
823
|
{
|
|
820
824
|
"path": "workflows/write-section.md",
|
|
821
|
-
"sha256": "
|
|
825
|
+
"sha256": "5a2f0efcd11d7f41d941f54b80798ad481773820907fee68bea47f28b7af7bc3"
|
|
822
826
|
}
|
|
823
827
|
]
|
|
824
828
|
}
|
|
@@ -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
|
}
|
|
@@ -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.
|
|
@@ -169,7 +169,7 @@ Contract: [protocol/actions/plan-section.json](../../../actions/plan-section.jso
|
|
|
169
169
|
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.
|
|
170
170
|
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.
|
|
171
171
|
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.
|
|
172
|
-
5. If the section is literature-heavy
|
|
172
|
+
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.
|
|
173
173
|
6. Summarize the section goal, claims, evidence, manuscript artifact, dependencies, and open decisions at `config.gates.confirm_plan`.
|
|
174
174
|
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:
|
|
175
175
|
- stable section and plan identifiers;
|
|
@@ -128,7 +128,7 @@ Contract: [protocol/actions/write-section.json](../../../actions/write-section.j
|
|
|
128
128
|
|
|
129
129
|
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.
|
|
130
130
|
2. If a corresponding summary or manuscript output exists, show the overwrite or merge impact and require explicit re-execution approval.
|
|
131
|
-
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.
|
|
131
|
+
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.
|
|
132
132
|
4. Present the plan objective, output path, target words, evidence obligations, and checkpoints at the configured writing gate.
|
|
133
133
|
5. Execute tasks in order against the exact `project://paper/{artifact}` output. For each task:
|
|
134
134
|
- establish the paragraph or subsection's rhetorical job;
|
|
@@ -169,7 +169,7 @@ Contract: [protocol/actions/plan-section.json](../../../actions/plan-section.jso
|
|
|
169
169
|
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.
|
|
170
170
|
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.
|
|
171
171
|
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.
|
|
172
|
-
5. If the section is literature-heavy
|
|
172
|
+
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.
|
|
173
173
|
6. Summarize the section goal, claims, evidence, manuscript artifact, dependencies, and open decisions at `config.gates.confirm_plan`.
|
|
174
174
|
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:
|
|
175
175
|
- stable section and plan identifiers;
|
|
@@ -169,7 +169,7 @@ Contract: [protocol/actions/plan-section.json](../../../actions/plan-section.jso
|
|
|
169
169
|
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.
|
|
170
170
|
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.
|
|
171
171
|
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.
|
|
172
|
-
5. If the section is literature-heavy
|
|
172
|
+
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.
|
|
173
173
|
6. Summarize the section goal, claims, evidence, manuscript artifact, dependencies, and open decisions at `config.gates.confirm_plan`.
|
|
174
174
|
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:
|
|
175
175
|
- stable section and plan identifiers;
|