wtf-p 0.7.3 → 0.8.0
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 +16 -12
- package/bin/commands/install-logic.js +1 -1
- package/bin/lib/adapter-compiler.js +175 -56
- package/bin/lib/clio-registration.js +127 -36
- package/bin/lib/manifest.js +11 -3
- package/bin/uninstall.js +3 -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/clio-extension/.wtfp-generated.json +228 -0
- package/vendors/clio-extension/actions/add-todo.json +52 -0
- package/vendors/clio-extension/actions/analyze-bib.json +97 -0
- package/vendors/clio-extension/actions/audit-milestone.json +63 -0
- package/vendors/clio-extension/actions/check-refs.json +80 -0
- package/vendors/clio-extension/actions/check-todos.json +52 -0
- package/vendors/clio-extension/actions/checkpoint.json +76 -0
- package/vendors/clio-extension/actions/contribute.json +57 -0
- package/vendors/clio-extension/actions/create-outline.json +84 -0
- package/vendors/clio-extension/actions/create-poster.json +54 -0
- package/vendors/clio-extension/actions/create-slides.json +54 -0
- package/vendors/clio-extension/actions/discuss-section.json +76 -0
- package/vendors/clio-extension/actions/execute-outline.json +116 -0
- package/vendors/clio-extension/actions/export-latex.json +65 -0
- package/vendors/clio-extension/actions/help.json +30 -0
- package/vendors/clio-extension/actions/insert-section.json +61 -0
- package/vendors/clio-extension/actions/list-assumptions.json +35 -0
- package/vendors/clio-extension/actions/map-project.json +71 -0
- package/vendors/clio-extension/actions/new-paper.json +70 -0
- package/vendors/clio-extension/actions/pause-writing.json +71 -0
- package/vendors/clio-extension/actions/plan-milestone-gaps.json +57 -0
- package/vendors/clio-extension/actions/plan-revision.json +58 -0
- package/vendors/clio-extension/actions/plan-section.json +100 -0
- package/vendors/clio-extension/actions/polish-prose.json +69 -0
- package/vendors/clio-extension/actions/progress.json +51 -0
- package/vendors/clio-extension/actions/quick.json +70 -0
- package/vendors/clio-extension/actions/remove-section.json +63 -0
- package/vendors/clio-extension/actions/report-bug.json +47 -0
- package/vendors/clio-extension/actions/request-feature.json +47 -0
- package/vendors/clio-extension/actions/research-gap.json +102 -0
- package/vendors/clio-extension/actions/resume-writing.json +65 -0
- package/vendors/clio-extension/actions/review-section.json +83 -0
- package/vendors/clio-extension/actions/settings.json +47 -0
- package/vendors/clio-extension/actions/submit-milestone.json +77 -0
- package/vendors/clio-extension/actions/update.json +42 -0
- package/vendors/clio-extension/actions/verify-work.json +63 -0
- package/vendors/clio-extension/actions/write-section.json +115 -0
- package/vendors/clio-extension/clio-coder-extension.yaml +53 -0
- package/vendors/clio-extension/compatibility/action-availability.json +295 -0
- package/vendors/clio-extension/project/schemas/checkpoint.schema.json +102 -0
- package/vendors/clio-extension/project/schemas/common.schema.json +33 -0
- package/vendors/clio-extension/project/schemas/config.schema.json +69 -0
- package/vendors/clio-extension/project/schemas/decisions.schema.json +31 -0
- package/vendors/clio-extension/project/schemas/evidence.schema.json +48 -0
- package/vendors/clio-extension/project/schemas/manifest.schema.json +102 -0
- package/vendors/clio-extension/project/schemas/outline.schema.json +67 -0
- package/vendors/clio-extension/project/schemas/section.schema.json +95 -0
- package/vendors/clio-extension/project/schemas/source.schema.json +73 -0
- package/vendors/clio-extension/project/schemas/state.schema.json +58 -0
- package/vendors/clio-extension/project/schemas/validation.schema.json +74 -0
- package/vendors/clio-extension/runtime/extension.test.ts +248 -0
- package/vendors/clio-extension/runtime/extension.ts +1321 -0
- package/vendors/clio-extension/runtime/json-schema.cjs +304 -0
- package/vendors/clio-extension/runtime/package.json +3 -0
- package/vendors/clio-extension/runtime/write-guard.json +21 -0
- package/vendors/clio-extension/skins/wtfp.json +20 -0
- 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 +44 -40
- 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/add-todo.md +6 -12
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/analyze-bib.md +9 -19
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/audit-milestone.md +7 -25
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/check-refs.md +9 -15
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/check-todos.md +9 -13
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/checkpoint.md +7 -27
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/create-outline.md +9 -25
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/discuss-section.md +7 -17
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/execute-outline.md +10 -27
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/help.md +2 -2
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/insert-section.md +7 -13
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/map-project.md +6 -14
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/new-paper.md +7 -17
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/pause-writing.md +6 -18
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/plan-milestone-gaps.md +7 -15
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/plan-section.md +12 -29
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/polish-prose.md +10 -15
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/quick.md +10 -15
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/research-gap.md +15 -23
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/resume-writing.md +7 -23
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/review-section.md +9 -19
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/settings.md +7 -9
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/submit-milestone.md +7 -25
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/verify-work.md +7 -15
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/write-section.md +11 -29
- package/vendors/plugin/compatibility/action-availability.json +16 -1
- package/vendors/plugin/plugin.json +7 -7
- 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
- /package/vendors/plugin/ai.iowarp.clio/{fleets → playbooks}/wtfp-draft-review.md +0 -0
- /package/vendors/plugin/ai.iowarp.clio/{fleets → playbooks}/wtfp-plan-section.md +0 -0
|
@@ -5,18 +5,16 @@ argument-hint: "[arguments]"
|
|
|
5
5
|
|
|
6
6
|
# Manage checkpoints
|
|
7
7
|
|
|
8
|
-
@${pluginRoot}/project/README.md
|
|
9
8
|
@${pluginRoot}/skills/wtfp-manage-project/SKILL.md
|
|
10
|
-
@${pluginRoot}/skills/wtfp-manage-project/references/actions.md
|
|
11
9
|
|
|
12
10
|
## Record contract
|
|
13
11
|
|
|
14
12
|
Read: the declared portable records and authored artifacts selected for the snapshot.
|
|
15
13
|
Produce: `project://checkpoints/{checkpoint}` (create), `project://archives/checkpoints/{checkpoint}` (create), `project://archives/recovery/{artifact}` (create on restore), `project://manifest` (update), `project://state` (update).
|
|
16
14
|
|
|
17
|
-
|
|
15
|
+
Use `extension_wtfp__record` for each declared JSON record write: pass its logical `uri`, complete `record`, and the revision read as `expect_revision` for revisioned updates. It validates, bumps revisions/timestamps, replaces atomically and reads back; preserve stable IDs and author decisions.
|
|
18
16
|
|
|
19
|
-
|
|
17
|
+
Write prose and linked artifacts with native file tools; keep their authored formats. The record tool handles JSON records only, never manuscript text, deletion or archives.
|
|
20
18
|
|
|
21
19
|
## Procedure
|
|
22
20
|
|
|
@@ -30,30 +28,12 @@ Do not initialize a repository or run branch, stage, commit, merge, push, or pub
|
|
|
30
28
|
|
|
31
29
|
Report the logical resources read, created, updated, archived, or deleted; the gates crossed; validation results; unresolved checkpoints; and the safest next action. Never claim a mutation that was not verified.
|
|
32
30
|
|
|
33
|
-
|
|
31
|
+
Discover the named tools with `gateway(op="describe", capability="extension_wtfp__record")` (and the corresponding `measure_section` or `gate` name), then use `gateway(op="call", capability="<exact name>", args={...})`. A present tool's error or refusal stops the action; never bypass it with a manual write or shell script.
|
|
32
|
+
If desk tools are absent, follow `${pluginRoot}/workflows/checkpoint.md` and `${pluginRoot}/project/README.md` with native tools and `ask_user` gates.
|
|
33
|
+
|
|
34
|
+
## Bound action contract
|
|
34
35
|
|
|
35
36
|
@${pluginRoot}/actions/checkpoint.json
|
|
36
|
-
@${pluginRoot}/project/schemas/common.schema.json
|
|
37
|
-
@${pluginRoot}/project/schemas/checkpoint.schema.json
|
|
38
|
-
@${pluginRoot}/project/templates/checkpoint.json
|
|
39
|
-
@${pluginRoot}/project/schemas/config.schema.json
|
|
40
|
-
@${pluginRoot}/project/templates/config.json
|
|
41
|
-
@${pluginRoot}/project/schemas/decisions.schema.json
|
|
42
|
-
@${pluginRoot}/project/templates/decisions.json
|
|
43
|
-
@${pluginRoot}/project/schemas/evidence.schema.json
|
|
44
|
-
@${pluginRoot}/project/templates/evidence.json
|
|
45
|
-
@${pluginRoot}/project/schemas/manifest.schema.json
|
|
46
|
-
@${pluginRoot}/project/templates/manifest.json
|
|
47
|
-
@${pluginRoot}/project/schemas/outline.schema.json
|
|
48
|
-
@${pluginRoot}/project/templates/outline.json
|
|
49
|
-
@${pluginRoot}/project/schemas/section.schema.json
|
|
50
|
-
@${pluginRoot}/project/templates/section.json
|
|
51
|
-
@${pluginRoot}/project/schemas/source.schema.json
|
|
52
|
-
@${pluginRoot}/project/templates/source.json
|
|
53
|
-
@${pluginRoot}/project/schemas/state.schema.json
|
|
54
|
-
@${pluginRoot}/project/templates/state.json
|
|
55
|
-
@${pluginRoot}/project/schemas/validation.schema.json
|
|
56
|
-
@${pluginRoot}/project/templates/validation.json
|
|
57
37
|
|
|
58
38
|
## Invocation input
|
|
59
39
|
|
|
@@ -65,6 +45,6 @@ $ARGUMENTS
|
|
|
65
45
|
|
|
66
46
|
## Clio user-gate binding
|
|
67
47
|
|
|
68
|
-
|
|
48
|
+
For a pending checkpoint in the declared gate's exact scope, call `extension_wtfp__gate` with its ID. Create a missing pending checkpoint through `extension_wtfp__record` only when this action declares checkpoint creation; otherwise use `ask_user` for the unpersisted author decision and do not invent an undeclared output. Only the structured author answer satisfies the gate; cancelled, retained or expired checkpoints authorize nothing. Never write `resolution.resolved_by: author` yourself or infer approval from invocation text, prose or silence. Read back a persisted resolution before applying its gated mutation.
|
|
69
49
|
|
|
70
50
|
<!-- Generated by WTF-P adapter compiler v5 from protocol/actions/checkpoint; do not edit. -->
|
|
@@ -5,18 +5,16 @@ argument-hint: "[arguments]"
|
|
|
5
5
|
|
|
6
6
|
# Create the paper outline
|
|
7
7
|
|
|
8
|
-
@${pluginRoot}/project/README.md
|
|
9
8
|
@${pluginRoot}/skills/wtfp-start-project/SKILL.md
|
|
10
|
-
@${pluginRoot}/skills/wtfp-start-project/references/actions.md
|
|
11
9
|
|
|
12
10
|
## Record contract
|
|
13
11
|
|
|
14
12
|
Read: `project://manifest`, `project://config`, `project://state`, `project://decisions`, `project://structure/outline`, `project://sources/{source}`, `project://evidence/{evidence}`.
|
|
15
13
|
Produce: `project://structure/outline` (update), `project://sections/{section}` (create), `project://decisions` (update), `project://state` (update), `project://validations/{validation}` (create).
|
|
16
14
|
|
|
17
|
-
|
|
15
|
+
Use `extension_wtfp__record` for each declared JSON record write: pass its logical `uri`, complete `record`, and the revision read as `expect_revision` for revisioned updates. It validates, bumps revisions/timestamps, replaces atomically and reads back; preserve stable IDs and author decisions.
|
|
18
16
|
|
|
19
|
-
|
|
17
|
+
Write prose and linked artifacts with native file tools; keep their authored formats. The record tool handles JSON records only, never manuscript text, deletion or archives.
|
|
20
18
|
|
|
21
19
|
## Procedure
|
|
22
20
|
|
|
@@ -32,28 +30,12 @@ Do not initialize a repository or run branch, stage, commit, merge, push, or pub
|
|
|
32
30
|
|
|
33
31
|
Report the logical resources read, created, updated, archived, or deleted; the gates crossed; validation results; unresolved checkpoints; and the safest next action. Never claim a mutation that was not verified.
|
|
34
32
|
|
|
35
|
-
|
|
33
|
+
Discover the named tools with `gateway(op="describe", capability="extension_wtfp__record")` (and the corresponding `measure_section` or `gate` name), then use `gateway(op="call", capability="<exact name>", args={...})`. A present tool's error or refusal stops the action; never bypass it with a manual write or shell script.
|
|
34
|
+
If desk tools are absent, follow `${pluginRoot}/workflows/create-outline.md` and `${pluginRoot}/project/README.md` with native tools and `ask_user` gates.
|
|
35
|
+
|
|
36
|
+
## Bound action contract
|
|
36
37
|
|
|
37
38
|
@${pluginRoot}/actions/create-outline.json
|
|
38
|
-
@${pluginRoot}/project/schemas/common.schema.json
|
|
39
|
-
@${pluginRoot}/project/schemas/config.schema.json
|
|
40
|
-
@${pluginRoot}/project/templates/config.json
|
|
41
|
-
@${pluginRoot}/project/schemas/decisions.schema.json
|
|
42
|
-
@${pluginRoot}/project/templates/decisions.json
|
|
43
|
-
@${pluginRoot}/project/schemas/evidence.schema.json
|
|
44
|
-
@${pluginRoot}/project/templates/evidence.json
|
|
45
|
-
@${pluginRoot}/project/schemas/manifest.schema.json
|
|
46
|
-
@${pluginRoot}/project/templates/manifest.json
|
|
47
|
-
@${pluginRoot}/project/schemas/outline.schema.json
|
|
48
|
-
@${pluginRoot}/project/templates/outline.json
|
|
49
|
-
@${pluginRoot}/project/schemas/section.schema.json
|
|
50
|
-
@${pluginRoot}/project/templates/section.json
|
|
51
|
-
@${pluginRoot}/project/schemas/source.schema.json
|
|
52
|
-
@${pluginRoot}/project/templates/source.json
|
|
53
|
-
@${pluginRoot}/project/schemas/state.schema.json
|
|
54
|
-
@${pluginRoot}/project/templates/state.json
|
|
55
|
-
@${pluginRoot}/project/schemas/validation.schema.json
|
|
56
|
-
@${pluginRoot}/project/templates/validation.json
|
|
57
39
|
|
|
58
40
|
## Invocation input
|
|
59
41
|
|
|
@@ -65,10 +47,12 @@ $ARGUMENTS
|
|
|
65
47
|
|
|
66
48
|
## Clio user-gate binding
|
|
67
49
|
|
|
68
|
-
|
|
50
|
+
For a pending checkpoint in the declared gate's exact scope, call `extension_wtfp__gate` with its ID. Create a missing pending checkpoint through `extension_wtfp__record` only when this action declares checkpoint creation; otherwise use `ask_user` for the unpersisted author decision and do not invent an undeclared output. Only the structured author answer satisfies the gate; cancelled, retained or expired checkpoints authorize nothing. Never write `resolution.resolved_by: author` yourself or infer approval from invocation text, prose or silence. Read back a persisted resolution before applying its gated mutation.
|
|
69
51
|
|
|
70
52
|
## Clio role-result binding
|
|
71
53
|
|
|
54
|
+
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.
|
|
55
|
+
|
|
72
56
|
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
57
|
|
|
74
58
|
<!-- Generated by WTF-P adapter compiler v5 from protocol/actions/create-outline; do not edit. -->
|
|
@@ -5,18 +5,16 @@ argument-hint: "[arguments]"
|
|
|
5
5
|
|
|
6
6
|
# Discuss a section
|
|
7
7
|
|
|
8
|
-
@${pluginRoot}/project/README.md
|
|
9
8
|
@${pluginRoot}/skills/wtfp-plan-section/SKILL.md
|
|
10
|
-
@${pluginRoot}/skills/wtfp-plan-section/references/actions.md
|
|
11
9
|
|
|
12
10
|
## Record contract
|
|
13
11
|
|
|
14
12
|
Read: `project://manifest`, `project://decisions`, `project://structure/outline`, `project://sections/{section}`, `project://sections/{section}/context`, `project://sections/{section}/summary`.
|
|
15
13
|
Produce: `project://sections/{section}/context` (create), `project://sections/{section}/context` (update), `project://checkpoints/{checkpoint}` (create), `project://sections/{section}` (update), `project://decisions` (update).
|
|
16
14
|
|
|
17
|
-
|
|
15
|
+
Use `extension_wtfp__record` for each declared JSON record write: pass its logical `uri`, complete `record`, and the revision read as `expect_revision` for revisioned updates. It validates, bumps revisions/timestamps, replaces atomically and reads back; preserve stable IDs and author decisions.
|
|
18
16
|
|
|
19
|
-
|
|
17
|
+
Write prose and linked artifacts with native file tools; keep their authored formats. The record tool handles JSON records only, never manuscript text, deletion or archives.
|
|
20
18
|
|
|
21
19
|
## Procedure
|
|
22
20
|
|
|
@@ -30,20 +28,12 @@ Do not initialize a repository or run branch, stage, commit, merge, push, or pub
|
|
|
30
28
|
|
|
31
29
|
Report the logical resources read, created, updated, archived, or deleted; the gates crossed; validation results; unresolved checkpoints; and the safest next action. Never claim a mutation that was not verified.
|
|
32
30
|
|
|
33
|
-
|
|
31
|
+
Discover the named tools with `gateway(op="describe", capability="extension_wtfp__record")` (and the corresponding `measure_section` or `gate` name), then use `gateway(op="call", capability="<exact name>", args={...})`. A present tool's error or refusal stops the action; never bypass it with a manual write or shell script.
|
|
32
|
+
If desk tools are absent, follow `${pluginRoot}/workflows/discuss-section.md` and `${pluginRoot}/project/README.md` with native tools and `ask_user` gates.
|
|
33
|
+
|
|
34
|
+
## Bound action contract
|
|
34
35
|
|
|
35
36
|
@${pluginRoot}/actions/discuss-section.json
|
|
36
|
-
@${pluginRoot}/project/schemas/common.schema.json
|
|
37
|
-
@${pluginRoot}/project/schemas/checkpoint.schema.json
|
|
38
|
-
@${pluginRoot}/project/templates/checkpoint.json
|
|
39
|
-
@${pluginRoot}/project/schemas/decisions.schema.json
|
|
40
|
-
@${pluginRoot}/project/templates/decisions.json
|
|
41
|
-
@${pluginRoot}/project/schemas/manifest.schema.json
|
|
42
|
-
@${pluginRoot}/project/templates/manifest.json
|
|
43
|
-
@${pluginRoot}/project/schemas/outline.schema.json
|
|
44
|
-
@${pluginRoot}/project/templates/outline.json
|
|
45
|
-
@${pluginRoot}/project/schemas/section.schema.json
|
|
46
|
-
@${pluginRoot}/project/templates/section.json
|
|
47
37
|
|
|
48
38
|
## Invocation input
|
|
49
39
|
|
|
@@ -55,6 +45,6 @@ $ARGUMENTS
|
|
|
55
45
|
|
|
56
46
|
## Clio user-gate binding
|
|
57
47
|
|
|
58
|
-
|
|
48
|
+
For a pending checkpoint in the declared gate's exact scope, call `extension_wtfp__gate` with its ID. Create a missing pending checkpoint through `extension_wtfp__record` only when this action declares checkpoint creation; otherwise use `ask_user` for the unpersisted author decision and do not invent an undeclared output. Only the structured author answer satisfies the gate; cancelled, retained or expired checkpoints authorize nothing. Never write `resolution.resolved_by: author` yourself or infer approval from invocation text, prose or silence. Read back a persisted resolution before applying its gated mutation.
|
|
59
49
|
|
|
60
50
|
<!-- Generated by WTF-P adapter compiler v5 from protocol/actions/discuss-section; do not edit. -->
|
|
@@ -5,18 +5,16 @@ argument-hint: "[arguments]"
|
|
|
5
5
|
|
|
6
6
|
# Execute the outline
|
|
7
7
|
|
|
8
|
-
@${pluginRoot}/project/README.md
|
|
9
8
|
@${pluginRoot}/skills/wtfp-write-section/SKILL.md
|
|
10
|
-
@${pluginRoot}/skills/wtfp-write-section/references/actions.md
|
|
11
9
|
|
|
12
10
|
## Record contract
|
|
13
11
|
|
|
14
12
|
Read: `project://manifest`, `project://config`, `project://state`, `project://decisions`, `project://structure/outline`, `project://sections/{section}`, `project://sections/{section}/plans/{plan}`, `project://sections/{section}/summary`, `project://sources/{source}`, `project://evidence/{evidence}`, `project://checkpoints/{checkpoint}`, `project://paper/{artifact}`.
|
|
15
13
|
Produce: `project://paper/{artifact}` (update), `project://sections/{section}/summary` (create), `project://sections/{section}/summary` (update), `project://checkpoints/{checkpoint}` (create), `project://checkpoints/{checkpoint}` (update), `project://sections/{section}` (update), `project://state` (update), `project://validations/{validation}` (create).
|
|
16
14
|
|
|
17
|
-
|
|
15
|
+
Use `extension_wtfp__record` for each declared JSON record write: pass its logical `uri`, complete `record`, and the revision read as `expect_revision` for revisioned updates. It validates, bumps revisions/timestamps, replaces atomically and reads back; preserve stable IDs and author decisions.
|
|
18
16
|
|
|
19
|
-
|
|
17
|
+
Write prose and linked artifacts with native file tools; keep their authored formats. The record tool handles JSON records only, never manuscript text, deletion or archives.
|
|
20
18
|
|
|
21
19
|
## Procedure
|
|
22
20
|
|
|
@@ -30,30 +28,13 @@ Do not initialize a repository or run branch, stage, commit, merge, push, or pub
|
|
|
30
28
|
|
|
31
29
|
Report the logical resources read, created, updated, archived, or deleted; the gates crossed; validation results; unresolved checkpoints; and the safest next action. Never claim a mutation that was not verified.
|
|
32
30
|
|
|
33
|
-
|
|
31
|
+
Discover the named tools with `gateway(op="describe", capability="extension_wtfp__record")` (and the corresponding `measure_section` or `gate` name), then use `gateway(op="call", capability="<exact name>", args={...})`. A present tool's error or refusal stops the action; never bypass it with a manual write or shell script.
|
|
32
|
+
After changing a linked section manuscript, call `extension_wtfp__measure_section` with that section ID; it persists the desk's body-word count in the section and state.
|
|
33
|
+
If desk tools are absent, follow `${pluginRoot}/workflows/execute-outline.md` and `${pluginRoot}/project/README.md` with native tools and `ask_user` gates.
|
|
34
|
+
|
|
35
|
+
## Bound action contract
|
|
34
36
|
|
|
35
37
|
@${pluginRoot}/actions/execute-outline.json
|
|
36
|
-
@${pluginRoot}/project/schemas/common.schema.json
|
|
37
|
-
@${pluginRoot}/project/schemas/checkpoint.schema.json
|
|
38
|
-
@${pluginRoot}/project/templates/checkpoint.json
|
|
39
|
-
@${pluginRoot}/project/schemas/config.schema.json
|
|
40
|
-
@${pluginRoot}/project/templates/config.json
|
|
41
|
-
@${pluginRoot}/project/schemas/decisions.schema.json
|
|
42
|
-
@${pluginRoot}/project/templates/decisions.json
|
|
43
|
-
@${pluginRoot}/project/schemas/evidence.schema.json
|
|
44
|
-
@${pluginRoot}/project/templates/evidence.json
|
|
45
|
-
@${pluginRoot}/project/schemas/manifest.schema.json
|
|
46
|
-
@${pluginRoot}/project/templates/manifest.json
|
|
47
|
-
@${pluginRoot}/project/schemas/outline.schema.json
|
|
48
|
-
@${pluginRoot}/project/templates/outline.json
|
|
49
|
-
@${pluginRoot}/project/schemas/section.schema.json
|
|
50
|
-
@${pluginRoot}/project/templates/section.json
|
|
51
|
-
@${pluginRoot}/project/schemas/source.schema.json
|
|
52
|
-
@${pluginRoot}/project/templates/source.json
|
|
53
|
-
@${pluginRoot}/project/schemas/state.schema.json
|
|
54
|
-
@${pluginRoot}/project/templates/state.json
|
|
55
|
-
@${pluginRoot}/project/schemas/validation.schema.json
|
|
56
|
-
@${pluginRoot}/project/templates/validation.json
|
|
57
38
|
|
|
58
39
|
## Invocation input
|
|
59
40
|
|
|
@@ -65,10 +46,12 @@ $ARGUMENTS
|
|
|
65
46
|
|
|
66
47
|
## Clio user-gate binding
|
|
67
48
|
|
|
68
|
-
|
|
49
|
+
For a pending checkpoint in the declared gate's exact scope, call `extension_wtfp__gate` with its ID. Create a missing pending checkpoint through `extension_wtfp__record` only when this action declares checkpoint creation; otherwise use `ask_user` for the unpersisted author decision and do not invent an undeclared output. Only the structured author answer satisfies the gate; cancelled, retained or expired checkpoints authorize nothing. Never write `resolution.resolved_by: author` yourself or infer approval from invocation text, prose or silence. Read back a persisted resolution before applying its gated mutation.
|
|
69
50
|
|
|
70
51
|
## Clio role-result binding
|
|
71
52
|
|
|
53
|
+
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.
|
|
54
|
+
|
|
72
55
|
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
56
|
|
|
74
57
|
<!-- Generated by WTF-P adapter compiler v5 from protocol/actions/execute-outline; do not edit. -->
|
|
@@ -4,7 +4,7 @@ display-only: true
|
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
```text
|
|
7
|
-
WTF-P 0.
|
|
7
|
+
WTF-P 0.8.0 on Clio Coder: evidence-grounded academic writing
|
|
8
8
|
|
|
9
9
|
Start here
|
|
10
10
|
/wtfp:new-paper [input]
|
|
@@ -106,7 +106,7 @@ Product operations
|
|
|
106
106
|
/wtfp:update [input]
|
|
107
107
|
Check for a newer compatible package or plugin release and install it only after approval. [unavailable on clio: package.update]
|
|
108
108
|
|
|
109
|
-
|
|
109
|
+
Playbooks (clio-coder fleet run <playbook> --var section=<section>; run explicitly, never auto-routed)
|
|
110
110
|
wtfp-draft-review
|
|
111
111
|
Draft one approved section and independently review its argument and evidence.
|
|
112
112
|
wtfp-plan-section
|
|
@@ -5,18 +5,16 @@ argument-hint: "[arguments]"
|
|
|
5
5
|
|
|
6
6
|
# Insert a section
|
|
7
7
|
|
|
8
|
-
@${pluginRoot}/project/README.md
|
|
9
8
|
@${pluginRoot}/skills/wtfp-plan-section/SKILL.md
|
|
10
|
-
@${pluginRoot}/skills/wtfp-plan-section/references/actions.md
|
|
11
9
|
|
|
12
10
|
## Record contract
|
|
13
11
|
|
|
14
12
|
Read: `project://structure/outline`, `project://state`, `project://sections/{section}`.
|
|
15
13
|
Produce: `project://structure/outline` (update), `project://sections/{section}` (create), `project://state` (update).
|
|
16
14
|
|
|
17
|
-
|
|
15
|
+
Use `extension_wtfp__record` for each declared JSON record write: pass its logical `uri`, complete `record`, and the revision read as `expect_revision` for revisioned updates. It validates, bumps revisions/timestamps, replaces atomically and reads back; preserve stable IDs and author decisions.
|
|
18
16
|
|
|
19
|
-
|
|
17
|
+
Write prose and linked artifacts with native file tools; keep their authored formats. The record tool handles JSON records only, never manuscript text, deletion or archives.
|
|
20
18
|
|
|
21
19
|
## Procedure
|
|
22
20
|
|
|
@@ -30,16 +28,12 @@ Do not initialize a repository or run branch, stage, commit, merge, push, or pub
|
|
|
30
28
|
|
|
31
29
|
Report the logical resources read, created, updated, archived, or deleted; the gates crossed; validation results; unresolved checkpoints; and the safest next action. Never claim a mutation that was not verified.
|
|
32
30
|
|
|
33
|
-
|
|
31
|
+
Discover the named tools with `gateway(op="describe", capability="extension_wtfp__record")` (and the corresponding `measure_section` or `gate` name), then use `gateway(op="call", capability="<exact name>", args={...})`. A present tool's error or refusal stops the action; never bypass it with a manual write or shell script.
|
|
32
|
+
If desk tools are absent, follow `${pluginRoot}/workflows/insert-section.md` and `${pluginRoot}/project/README.md` with native tools and `ask_user` gates.
|
|
33
|
+
|
|
34
|
+
## Bound action contract
|
|
34
35
|
|
|
35
36
|
@${pluginRoot}/actions/insert-section.json
|
|
36
|
-
@${pluginRoot}/project/schemas/common.schema.json
|
|
37
|
-
@${pluginRoot}/project/schemas/outline.schema.json
|
|
38
|
-
@${pluginRoot}/project/templates/outline.json
|
|
39
|
-
@${pluginRoot}/project/schemas/section.schema.json
|
|
40
|
-
@${pluginRoot}/project/templates/section.json
|
|
41
|
-
@${pluginRoot}/project/schemas/state.schema.json
|
|
42
|
-
@${pluginRoot}/project/templates/state.json
|
|
43
37
|
|
|
44
38
|
## Invocation input
|
|
45
39
|
|
|
@@ -51,6 +45,6 @@ $ARGUMENTS
|
|
|
51
45
|
|
|
52
46
|
## Clio user-gate binding
|
|
53
47
|
|
|
54
|
-
|
|
48
|
+
For a pending checkpoint in the declared gate's exact scope, call `extension_wtfp__gate` with its ID. Create a missing pending checkpoint through `extension_wtfp__record` only when this action declares checkpoint creation; otherwise use `ask_user` for the unpersisted author decision and do not invent an undeclared output. Only the structured author answer satisfies the gate; cancelled, retained or expired checkpoints authorize nothing. Never write `resolution.resolved_by: author` yourself or infer approval from invocation text, prose or silence. Read back a persisted resolution before applying its gated mutation.
|
|
55
49
|
|
|
56
50
|
<!-- Generated by WTF-P adapter compiler v5 from protocol/actions/insert-section; do not edit. -->
|
|
@@ -5,18 +5,16 @@ argument-hint: "[arguments]"
|
|
|
5
5
|
|
|
6
6
|
# Map an existing project
|
|
7
7
|
|
|
8
|
-
@${pluginRoot}/project/README.md
|
|
9
8
|
@${pluginRoot}/skills/wtfp-start-project/SKILL.md
|
|
10
|
-
@${pluginRoot}/skills/wtfp-start-project/references/actions.md
|
|
11
9
|
|
|
12
10
|
## Record contract
|
|
13
11
|
|
|
14
12
|
Read: `project://manifest`, `project://state`, `project://materials/{artifact}`, `project://paper/{artifact}`, `project://sources/{source}`, `project://evidence/{evidence}`.
|
|
15
13
|
Produce: `project://sources/{source}` (create), `project://evidence/{evidence}` (create), `project://state` (update), `project://sources/{source}` (update), `project://evidence/{evidence}` (update), `project://manifest` (update).
|
|
16
14
|
|
|
17
|
-
|
|
15
|
+
Use `extension_wtfp__record` for each declared JSON record write: pass its logical `uri`, complete `record`, and the revision read as `expect_revision` for revisioned updates. It validates, bumps revisions/timestamps, replaces atomically and reads back; preserve stable IDs and author decisions.
|
|
18
16
|
|
|
19
|
-
|
|
17
|
+
Write prose and linked artifacts with native file tools; keep their authored formats. The record tool handles JSON records only, never manuscript text, deletion or archives.
|
|
20
18
|
|
|
21
19
|
## Procedure
|
|
22
20
|
|
|
@@ -32,18 +30,12 @@ Do not initialize a repository or run branch, stage, commit, merge, push, or pub
|
|
|
32
30
|
|
|
33
31
|
Report the logical resources read, created, updated, archived, or deleted; the gates crossed; validation results; unresolved checkpoints; and the safest next action. Never claim a mutation that was not verified.
|
|
34
32
|
|
|
35
|
-
|
|
33
|
+
Discover the named tools with `gateway(op="describe", capability="extension_wtfp__record")` (and the corresponding `measure_section` or `gate` name), then use `gateway(op="call", capability="<exact name>", args={...})`. A present tool's error or refusal stops the action; never bypass it with a manual write or shell script.
|
|
34
|
+
If desk tools are absent, follow `${pluginRoot}/workflows/map-project.md` and `${pluginRoot}/project/README.md` with native tools and `ask_user` gates.
|
|
35
|
+
|
|
36
|
+
## Bound action contract
|
|
36
37
|
|
|
37
38
|
@${pluginRoot}/actions/map-project.json
|
|
38
|
-
@${pluginRoot}/project/schemas/common.schema.json
|
|
39
|
-
@${pluginRoot}/project/schemas/evidence.schema.json
|
|
40
|
-
@${pluginRoot}/project/templates/evidence.json
|
|
41
|
-
@${pluginRoot}/project/schemas/manifest.schema.json
|
|
42
|
-
@${pluginRoot}/project/templates/manifest.json
|
|
43
|
-
@${pluginRoot}/project/schemas/source.schema.json
|
|
44
|
-
@${pluginRoot}/project/templates/source.json
|
|
45
|
-
@${pluginRoot}/project/schemas/state.schema.json
|
|
46
|
-
@${pluginRoot}/project/templates/state.json
|
|
47
39
|
|
|
48
40
|
## Invocation input
|
|
49
41
|
|
|
@@ -5,18 +5,16 @@ argument-hint: "[arguments]"
|
|
|
5
5
|
|
|
6
6
|
# Start a new paper
|
|
7
7
|
|
|
8
|
-
@${pluginRoot}/project/README.md
|
|
9
8
|
@${pluginRoot}/skills/wtfp-start-project/SKILL.md
|
|
10
|
-
@${pluginRoot}/skills/wtfp-start-project/references/actions.md
|
|
11
9
|
|
|
12
10
|
## Record contract
|
|
13
11
|
|
|
14
12
|
Read: `project://manifest`, `project://materials/{artifact}`, `project://paper/{artifact}`.
|
|
15
13
|
Produce: `project://manifest` (create), `project://config` (create), `project://state` (create), `project://decisions` (create), `project://structure/outline` (create).
|
|
16
14
|
|
|
17
|
-
|
|
15
|
+
Use `extension_wtfp__record` for each declared JSON record write: pass its logical `uri`, complete `record`, and the revision read as `expect_revision` for revisioned updates. It validates, bumps revisions/timestamps, replaces atomically and reads back; preserve stable IDs and author decisions.
|
|
18
16
|
|
|
19
|
-
|
|
17
|
+
Write prose and linked artifacts with native file tools; keep their authored formats. The record tool handles JSON records only, never manuscript text, deletion or archives.
|
|
20
18
|
|
|
21
19
|
## Procedure
|
|
22
20
|
|
|
@@ -35,20 +33,12 @@ Do not initialize a repository or run branch, stage, commit, merge, push, or pub
|
|
|
35
33
|
|
|
36
34
|
Report the logical resources read, created, updated, archived, or deleted; the gates crossed; validation results; unresolved checkpoints; and the safest next action. Never claim a mutation that was not verified.
|
|
37
35
|
|
|
38
|
-
|
|
36
|
+
Discover the named tools with `gateway(op="describe", capability="extension_wtfp__record")` (and the corresponding `measure_section` or `gate` name), then use `gateway(op="call", capability="<exact name>", args={...})`. A present tool's error or refusal stops the action; never bypass it with a manual write or shell script.
|
|
37
|
+
If desk tools are absent, follow `${pluginRoot}/workflows/new-paper.md` and `${pluginRoot}/project/README.md` with native tools and `ask_user` gates.
|
|
38
|
+
|
|
39
|
+
## Bound action contract
|
|
39
40
|
|
|
40
41
|
@${pluginRoot}/actions/new-paper.json
|
|
41
|
-
@${pluginRoot}/project/schemas/common.schema.json
|
|
42
|
-
@${pluginRoot}/project/schemas/config.schema.json
|
|
43
|
-
@${pluginRoot}/project/templates/config.json
|
|
44
|
-
@${pluginRoot}/project/schemas/decisions.schema.json
|
|
45
|
-
@${pluginRoot}/project/templates/decisions.json
|
|
46
|
-
@${pluginRoot}/project/schemas/manifest.schema.json
|
|
47
|
-
@${pluginRoot}/project/templates/manifest.json
|
|
48
|
-
@${pluginRoot}/project/schemas/outline.schema.json
|
|
49
|
-
@${pluginRoot}/project/templates/outline.json
|
|
50
|
-
@${pluginRoot}/project/schemas/state.schema.json
|
|
51
|
-
@${pluginRoot}/project/templates/state.json
|
|
52
42
|
|
|
53
43
|
## Invocation input
|
|
54
44
|
|
|
@@ -60,6 +50,6 @@ $ARGUMENTS
|
|
|
60
50
|
|
|
61
51
|
## Clio user-gate binding
|
|
62
52
|
|
|
63
|
-
|
|
53
|
+
For a pending checkpoint in the declared gate's exact scope, call `extension_wtfp__gate` with its ID. Create a missing pending checkpoint through `extension_wtfp__record` only when this action declares checkpoint creation; otherwise use `ask_user` for the unpersisted author decision and do not invent an undeclared output. Only the structured author answer satisfies the gate; cancelled, retained or expired checkpoints authorize nothing. Never write `resolution.resolved_by: author` yourself or infer approval from invocation text, prose or silence. Read back a persisted resolution before applying its gated mutation.
|
|
64
54
|
|
|
65
55
|
<!-- Generated by WTF-P adapter compiler v5 from protocol/actions/new-paper; do not edit. -->
|
|
@@ -5,18 +5,16 @@ argument-hint: "[arguments]"
|
|
|
5
5
|
|
|
6
6
|
# Pause writing
|
|
7
7
|
|
|
8
|
-
@${pluginRoot}/project/README.md
|
|
9
8
|
@${pluginRoot}/skills/wtfp-manage-project/SKILL.md
|
|
10
|
-
@${pluginRoot}/skills/wtfp-manage-project/references/actions.md
|
|
11
9
|
|
|
12
10
|
## Record contract
|
|
13
11
|
|
|
14
12
|
Read: `project://state`, `project://decisions`, `project://structure/outline`, `project://sections/{section}`, `project://sections/{section}/plans/{plan}`, `project://sections/{section}/reviews/{review}`, `project://sections/{section}/summary`, `project://sections/{section}/handoff`, `project://validations/{validation}`, `project://paper/{artifact}`.
|
|
15
13
|
Produce: `project://sections/{section}/handoff` (create), `project://sections/{section}/handoff` (update), `project://checkpoints/{checkpoint}` (create), `project://sections/{section}` (update), `project://state` (update).
|
|
16
14
|
|
|
17
|
-
|
|
15
|
+
Use `extension_wtfp__record` for each declared JSON record write: pass its logical `uri`, complete `record`, and the revision read as `expect_revision` for revisioned updates. It validates, bumps revisions/timestamps, replaces atomically and reads back; preserve stable IDs and author decisions.
|
|
18
16
|
|
|
19
|
-
|
|
17
|
+
Write prose and linked artifacts with native file tools; keep their authored formats. The record tool handles JSON records only, never manuscript text, deletion or archives.
|
|
20
18
|
|
|
21
19
|
## Procedure
|
|
22
20
|
|
|
@@ -30,22 +28,12 @@ Do not initialize a repository or run branch, stage, commit, merge, push, or pub
|
|
|
30
28
|
|
|
31
29
|
Report the logical resources read, created, updated, archived, or deleted; the gates crossed; validation results; unresolved checkpoints; and the safest next action. Never claim a mutation that was not verified.
|
|
32
30
|
|
|
33
|
-
|
|
31
|
+
Discover the named tools with `gateway(op="describe", capability="extension_wtfp__record")` (and the corresponding `measure_section` or `gate` name), then use `gateway(op="call", capability="<exact name>", args={...})`. A present tool's error or refusal stops the action; never bypass it with a manual write or shell script.
|
|
32
|
+
If desk tools are absent, follow `${pluginRoot}/workflows/pause-writing.md` and `${pluginRoot}/project/README.md` with native tools and `ask_user` gates.
|
|
33
|
+
|
|
34
|
+
## Bound action contract
|
|
34
35
|
|
|
35
36
|
@${pluginRoot}/actions/pause-writing.json
|
|
36
|
-
@${pluginRoot}/project/schemas/common.schema.json
|
|
37
|
-
@${pluginRoot}/project/schemas/checkpoint.schema.json
|
|
38
|
-
@${pluginRoot}/project/templates/checkpoint.json
|
|
39
|
-
@${pluginRoot}/project/schemas/decisions.schema.json
|
|
40
|
-
@${pluginRoot}/project/templates/decisions.json
|
|
41
|
-
@${pluginRoot}/project/schemas/outline.schema.json
|
|
42
|
-
@${pluginRoot}/project/templates/outline.json
|
|
43
|
-
@${pluginRoot}/project/schemas/section.schema.json
|
|
44
|
-
@${pluginRoot}/project/templates/section.json
|
|
45
|
-
@${pluginRoot}/project/schemas/state.schema.json
|
|
46
|
-
@${pluginRoot}/project/templates/state.json
|
|
47
|
-
@${pluginRoot}/project/schemas/validation.schema.json
|
|
48
|
-
@${pluginRoot}/project/templates/validation.json
|
|
49
37
|
|
|
50
38
|
## Invocation input
|
|
51
39
|
|
|
@@ -5,18 +5,16 @@ argument-hint: "[arguments]"
|
|
|
5
5
|
|
|
6
6
|
# Plan milestone gap fixes
|
|
7
7
|
|
|
8
|
-
@${pluginRoot}/project/README.md
|
|
9
8
|
@${pluginRoot}/skills/wtfp-review-manuscript/SKILL.md
|
|
10
|
-
@${pluginRoot}/skills/wtfp-review-manuscript/references/actions.md
|
|
11
9
|
|
|
12
10
|
## Record contract
|
|
13
11
|
|
|
14
12
|
Read: `project://validations/{validation}`, `project://structure/outline`, `project://sections/{section}`.
|
|
15
13
|
Produce: `project://sections/{section}/plans/{plan}` (create), `project://checkpoints/{checkpoint}` (create).
|
|
16
14
|
|
|
17
|
-
|
|
15
|
+
Use `extension_wtfp__record` for each declared JSON record write: pass its logical `uri`, complete `record`, and the revision read as `expect_revision` for revisioned updates. It validates, bumps revisions/timestamps, replaces atomically and reads back; preserve stable IDs and author decisions.
|
|
18
16
|
|
|
19
|
-
|
|
17
|
+
Write prose and linked artifacts with native file tools; keep their authored formats. The record tool handles JSON records only, never manuscript text, deletion or archives.
|
|
20
18
|
|
|
21
19
|
## Procedure
|
|
22
20
|
|
|
@@ -30,18 +28,12 @@ Do not initialize a repository or run branch, stage, commit, merge, push, or pub
|
|
|
30
28
|
|
|
31
29
|
Report the logical resources read, created, updated, archived, or deleted; the gates crossed; validation results; unresolved checkpoints; and the safest next action. Never claim a mutation that was not verified.
|
|
32
30
|
|
|
33
|
-
|
|
31
|
+
Discover the named tools with `gateway(op="describe", capability="extension_wtfp__record")` (and the corresponding `measure_section` or `gate` name), then use `gateway(op="call", capability="<exact name>", args={...})`. A present tool's error or refusal stops the action; never bypass it with a manual write or shell script.
|
|
32
|
+
If desk tools are absent, follow `${pluginRoot}/workflows/plan-milestone-gaps.md` and `${pluginRoot}/project/README.md` with native tools and `ask_user` gates.
|
|
33
|
+
|
|
34
|
+
## Bound action contract
|
|
34
35
|
|
|
35
36
|
@${pluginRoot}/actions/plan-milestone-gaps.json
|
|
36
|
-
@${pluginRoot}/project/schemas/common.schema.json
|
|
37
|
-
@${pluginRoot}/project/schemas/checkpoint.schema.json
|
|
38
|
-
@${pluginRoot}/project/templates/checkpoint.json
|
|
39
|
-
@${pluginRoot}/project/schemas/outline.schema.json
|
|
40
|
-
@${pluginRoot}/project/templates/outline.json
|
|
41
|
-
@${pluginRoot}/project/schemas/section.schema.json
|
|
42
|
-
@${pluginRoot}/project/templates/section.json
|
|
43
|
-
@${pluginRoot}/project/schemas/validation.schema.json
|
|
44
|
-
@${pluginRoot}/project/templates/validation.json
|
|
45
37
|
|
|
46
38
|
## Invocation input
|
|
47
39
|
|
|
@@ -53,6 +45,6 @@ $ARGUMENTS
|
|
|
53
45
|
|
|
54
46
|
## Clio user-gate binding
|
|
55
47
|
|
|
56
|
-
|
|
48
|
+
For a pending checkpoint in the declared gate's exact scope, call `extension_wtfp__gate` with its ID. Create a missing pending checkpoint through `extension_wtfp__record` only when this action declares checkpoint creation; otherwise use `ask_user` for the unpersisted author decision and do not invent an undeclared output. Only the structured author answer satisfies the gate; cancelled, retained or expired checkpoints authorize nothing. Never write `resolution.resolved_by: author` yourself or infer approval from invocation text, prose or silence. Read back a persisted resolution before applying its gated mutation.
|
|
57
49
|
|
|
58
50
|
<!-- Generated by WTF-P adapter compiler v5 from protocol/actions/plan-milestone-gaps; do not edit. -->
|