wtf-p 0.9.0 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/README.md +5 -2
  2. package/bin/lib/adapter-compiler.js +65 -18
  3. package/package.json +1 -1
  4. package/pancode/extension/.wtfp-generated.json +8 -4
  5. package/pancode/extension/pancode-extension.yaml +1 -1
  6. package/pancode/extension/runtime/extension.test.ts +89 -2
  7. package/pancode/extension/runtime/extension.ts +110 -24
  8. package/pancode/extension/runtime/help.json +82 -0
  9. package/pancode/plugin/.wtfp-generated.json +27 -27
  10. package/pancode/plugin/dev.pancode/agents/wtfp-argument-verifier.md +4 -0
  11. package/pancode/plugin/dev.pancode/agents/wtfp-citation-expert.md +4 -0
  12. package/pancode/plugin/dev.pancode/agents/wtfp-citation-formatter.md +4 -0
  13. package/pancode/plugin/dev.pancode/agents/wtfp-coherence-checker.md +4 -0
  14. package/pancode/plugin/dev.pancode/agents/wtfp-outliner.md +4 -0
  15. package/pancode/plugin/dev.pancode/agents/wtfp-plan-checker.md +4 -0
  16. package/pancode/plugin/dev.pancode/agents/wtfp-prose-polisher.md +4 -0
  17. package/pancode/plugin/dev.pancode/agents/wtfp-research-synthesizer.md +4 -0
  18. package/pancode/plugin/dev.pancode/agents/wtfp-section-planner.md +4 -0
  19. package/pancode/plugin/dev.pancode/agents/wtfp-section-reviewer.md +4 -0
  20. package/pancode/plugin/dev.pancode/agents/wtfp-section-writer.md +4 -0
  21. package/pancode/plugin/dev.pancode/playbooks/wtfp-draft-review.md +1 -1
  22. package/pancode/plugin/dev.pancode/playbooks/wtfp-plan-section.md +2 -0
  23. package/pancode/plugin/dev.pancode/prompts/wtfp/contribute.md +3 -0
  24. package/pancode/plugin/dev.pancode/prompts/wtfp/create-outline.md +1 -1
  25. package/pancode/plugin/dev.pancode/prompts/wtfp/help.md +1 -1
  26. package/pancode/plugin/dev.pancode/prompts/wtfp/insert-section.md +1 -1
  27. package/pancode/plugin/dev.pancode/prompts/wtfp/pause-writing.md +1 -1
  28. package/pancode/plugin/dev.pancode/prompts/wtfp/remove-section.md +3 -0
  29. package/pancode/plugin/dev.pancode/prompts/wtfp/report-bug.md +3 -0
  30. package/pancode/plugin/dev.pancode/prompts/wtfp/request-feature.md +3 -0
  31. package/pancode/plugin/dev.pancode/prompts/wtfp/update.md +3 -0
  32. package/pancode/plugin/plugin.json +1 -1
  33. package/pancode/plugin/workflows/create-outline.md +1 -1
  34. package/pancode/plugin/workflows/insert-section.md +1 -1
  35. package/pancode/plugin/workflows/pause-writing.md +1 -1
  36. package/protocol/workflows/create-outline.md +1 -1
  37. package/protocol/workflows/insert-section.md +1 -1
  38. package/protocol/workflows/pause-writing.md +1 -1
  39. package/vendors/antigravity/.wtfp-generated.json +8 -8
  40. package/vendors/antigravity/plugin.json +2 -2
  41. package/vendors/antigravity/skills/wtfp-create-outline/SKILL.md +1 -1
  42. package/vendors/antigravity/skills/wtfp-insert-section/SKILL.md +1 -1
  43. package/vendors/antigravity/skills/wtfp-pause-writing/SKILL.md +1 -1
  44. package/vendors/antigravity/workflows/create-outline.md +1 -1
  45. package/vendors/antigravity/workflows/insert-section.md +1 -1
  46. package/vendors/antigravity/workflows/pause-writing.md +1 -1
  47. package/vendors/claude/.claude-plugin/marketplace.json +2 -2
  48. package/vendors/claude/.claude-plugin/plugin.json +1 -1
  49. package/vendors/claude/.wtfp-generated.json +33 -33
  50. package/vendors/claude/commands/create-outline.md +1 -1
  51. package/vendors/claude/commands/insert-section.md +1 -1
  52. package/vendors/claude/commands/pause-writing.md +1 -1
  53. package/vendors/claude/dev.pancode/agents/wtfp-argument-verifier.md +4 -0
  54. package/vendors/claude/dev.pancode/agents/wtfp-citation-expert.md +4 -0
  55. package/vendors/claude/dev.pancode/agents/wtfp-citation-formatter.md +4 -0
  56. package/vendors/claude/dev.pancode/agents/wtfp-coherence-checker.md +4 -0
  57. package/vendors/claude/dev.pancode/agents/wtfp-outliner.md +4 -0
  58. package/vendors/claude/dev.pancode/agents/wtfp-plan-checker.md +4 -0
  59. package/vendors/claude/dev.pancode/agents/wtfp-prose-polisher.md +4 -0
  60. package/vendors/claude/dev.pancode/agents/wtfp-research-synthesizer.md +4 -0
  61. package/vendors/claude/dev.pancode/agents/wtfp-section-planner.md +4 -0
  62. package/vendors/claude/dev.pancode/agents/wtfp-section-reviewer.md +4 -0
  63. package/vendors/claude/dev.pancode/agents/wtfp-section-writer.md +4 -0
  64. package/vendors/claude/dev.pancode/fleets/wtfp-draft-review.md +1 -1
  65. package/vendors/claude/dev.pancode/fleets/wtfp-plan-section.md +2 -0
  66. package/vendors/claude/dev.pancode/prompts/wtfp/advance.md +3 -0
  67. package/vendors/claude/dev.pancode/prompts/wtfp/contribute.md +3 -0
  68. package/vendors/claude/dev.pancode/prompts/wtfp/create-outline.md +1 -1
  69. package/vendors/claude/dev.pancode/prompts/wtfp/help.md +1 -1
  70. package/vendors/claude/dev.pancode/prompts/wtfp/insert-section.md +1 -1
  71. package/vendors/claude/dev.pancode/prompts/wtfp/pause-writing.md +1 -1
  72. package/vendors/claude/dev.pancode/prompts/wtfp/remove-section.md +3 -0
  73. package/vendors/claude/dev.pancode/prompts/wtfp/report-bug.md +3 -0
  74. package/vendors/claude/dev.pancode/prompts/wtfp/request-feature.md +3 -0
  75. package/vendors/claude/dev.pancode/prompts/wtfp/update.md +3 -0
  76. package/vendors/claude/plugin.json +1 -1
  77. package/vendors/claude/workflows/create-outline.md +1 -1
  78. package/vendors/claude/workflows/insert-section.md +1 -1
  79. package/vendors/claude/workflows/pause-writing.md +1 -1
  80. package/vendors/codex/plugins/wtfp/.codex-plugin/plugin.json +1 -1
  81. package/vendors/codex/plugins/wtfp/.wtfp-generated.json +6 -6
  82. package/vendors/codex/plugins/wtfp/plugin.json +1 -1
  83. package/vendors/codex/plugins/wtfp/workflows/create-outline.md +1 -1
  84. package/vendors/codex/plugins/wtfp/workflows/insert-section.md +1 -1
  85. package/vendors/codex/plugins/wtfp/workflows/pause-writing.md +1 -1
  86. package/vendors/copilot/.wtfp-generated.json +6 -6
  87. package/vendors/copilot/marketplace.json +2 -2
  88. package/vendors/copilot/plugins/wtfp/.claude-plugin/plugin.json +1 -1
  89. package/vendors/copilot/plugins/wtfp/.wtfp-generated.json +8 -8
  90. package/vendors/copilot/plugins/wtfp/commands/wtfp-create-outline.md +1 -1
  91. package/vendors/copilot/plugins/wtfp/commands/wtfp-insert-section.md +1 -1
  92. package/vendors/copilot/plugins/wtfp/commands/wtfp-pause-writing.md +1 -1
  93. package/vendors/copilot/plugins/wtfp/workflows/create-outline.md +1 -1
  94. package/vendors/copilot/plugins/wtfp/workflows/insert-section.md +1 -1
  95. package/vendors/copilot/plugins/wtfp/workflows/pause-writing.md +1 -1
  96. package/vendors/copilot/project/.github/prompts/wtfp-pause-writing.prompt.md +1 -1
  97. package/vendors/copilot/project/.github/wtfp/workflows/create-outline.md +1 -1
  98. package/vendors/copilot/project/.github/wtfp/workflows/insert-section.md +1 -1
  99. package/vendors/copilot/project/.github/wtfp/workflows/pause-writing.md +1 -1
  100. package/vendors/gemini/.wtfp-generated.json +8 -8
  101. package/vendors/gemini/commands/wtfp/create-outline.toml +1 -1
  102. package/vendors/gemini/commands/wtfp/insert-section.toml +1 -1
  103. package/vendors/gemini/commands/wtfp/pause-writing.toml +1 -1
  104. package/vendors/gemini/gemini-extension.json +1 -1
  105. package/vendors/gemini/workflows/create-outline.md +1 -1
  106. package/vendors/gemini/workflows/insert-section.md +1 -1
  107. package/vendors/gemini/workflows/pause-writing.md +1 -1
  108. package/vendors/opencode/.wtfp-generated.json +7 -7
  109. package/vendors/opencode/commands/wtfp/create-outline.md +1 -1
  110. package/vendors/opencode/commands/wtfp/insert-section.md +1 -1
  111. package/vendors/opencode/commands/wtfp/pause-writing.md +1 -1
  112. package/vendors/opencode/workflows/create-outline.md +1 -1
  113. package/vendors/opencode/workflows/insert-section.md +1 -1
  114. package/vendors/opencode/workflows/pause-writing.md +1 -1
@@ -57,6 +57,10 @@ Review a section as an academic evaluator and produce prioritized, actionable fe
57
57
  - Do not contact the author directly. Route questions and author-owned choices through `next_actions`.
58
58
  - Never commit, delete, rename, publish, or apply any mutation. `effects_applied` must always be empty.
59
59
 
60
+ ## PanCode project paths
61
+
62
+ On PanCode the `project://` URIs above are files under the workspace root. Records: `project://manifest`, `config`, `state` and `decisions` are `.planning/project.json`, `config.json`, `state.json` and `decisions.json`; `project://structure/outline` is `.planning/structure/outline.json`; `project://sections/{s}` is `.planning/sections/{s}/section.json`; and `project://sources/{id}`, `evidence/{id}`, `checkpoints/{id}` and `validations/{id}` are `.planning/sources/{id}.json`, `.planning/evidence/{id}.json`, `.planning/checkpoints/{id}.json` and `.planning/validations/{id}.json`. Authored artifacts: `project://sections/{s}/context`, `research`, `summary` and `handoff` are `.planning/sections/{s}/<name>.md`, plans and reviews are `.planning/sections/{s}/plans/<id>.md` and `reviews/<id>.md`, and `project://paper/{a}` is `paper/{a}.md`. Read and write those files; section artifacts live under `.planning/sections/`, never a top-level `sections/`.
63
+
60
64
  ## PanCode result contract
61
65
 
62
66
  Your entire final response must be one compact JSON object and nothing else: {"verdict":"pass|fail","checks":[{"name":"...","passed":true,"evidence":"..."}]}. The verdict must agree with every check. Return at most 12 non-duplicate checks, keep each evidence value to one short sentence that cites the artifact and location, keep the complete UTF-8 response at or below 4096 bytes, and emit no Markdown, code fence, analysis, or text outside the object. Where the procedure asks for findings, a status or a summary, the checks and the verdict are that result: a failed check is a finding, and fail means revise. Example: {"verdict":"fail","checks":[{"name":"claim coverage","passed":true,"evidence":"All five claims map to paragraphs P2-P6 of plan-01."},{"name":"word budget","passed":false,"evidence":"Units sum to 830 words, above the 805 ceiling."}]}
@@ -59,6 +59,10 @@ Execute an approved section plan into evidence-grounded academic prose or the ex
59
59
  - Do not commit, delete, rename, publish, or perform destructive operations unless the exact effect is granted by the action contract.
60
60
  - Do not initiate human interaction. Encode checkpoint needs in the result for the orchestrator.
61
61
 
62
+ ## PanCode project paths
63
+
64
+ On PanCode the `project://` URIs above are files under the workspace root. Records: `project://manifest`, `config`, `state` and `decisions` are `.planning/project.json`, `config.json`, `state.json` and `decisions.json`; `project://structure/outline` is `.planning/structure/outline.json`; `project://sections/{s}` is `.planning/sections/{s}/section.json`; and `project://sources/{id}`, `evidence/{id}`, `checkpoints/{id}` and `validations/{id}` are `.planning/sources/{id}.json`, `.planning/evidence/{id}.json`, `.planning/checkpoints/{id}.json` and `.planning/validations/{id}.json`. Authored artifacts: `project://sections/{s}/context`, `research`, `summary` and `handoff` are `.planning/sections/{s}/<name>.md`, plans and reviews are `.planning/sections/{s}/plans/<id>.md` and `reviews/<id>.md`, and `project://paper/{a}` is `paper/{a}.md`. Read and write those files; section artifacts live under `.planning/sections/`, never a top-level `sections/`.
65
+
62
66
  On PanCode a worker holds no word counter. The dispatching action measures the persisted manuscript after you return and writes that count into the summary, so write the summary without a count. A count you cannot take never blocks this role: return completed when the rest is done.
63
67
 
64
68
  ## PanCode result contract
@@ -22,4 +22,4 @@ onFailure: stop
22
22
 
23
23
  Draft section {{section}} from its explicitly approved plan into its declared paper artifact and update only its declared portable Markdown summary. The invoking action orchestrator owns validation, checkpoint, manifest, section, and state reconciliation. The reviewer must independently review the resulting prose against the plan, sources, decisions, and venue constraints without claiming a mutation.
24
24
 
25
- For this PanCode projection, resolve logical `project://paper/...` artifacts under the project-root `paper/` directory, never under `.planning/paper/`.
25
+ On PanCode, write `project://paper/<artifact>` as `paper/<artifact>.md` and `project://sections/{{section}}/summary` as `.planning/sections/{{section}}/summary.md`, relative to the workspace root: section artifacts go under `.planning/sections/`, never a top-level `sections/`, and manuscripts go under `paper/`, never `.planning/paper/`.
@@ -21,3 +21,5 @@ onFailure: stop
21
21
  <!-- Generated by WTF-P adapter compiler v5 from protocol/fleets/wtfp-plan-section.json; do not edit. -->
22
22
 
23
23
  Create one contained, immutable plan for section {{section}} from the portable project state. Write only the plan artifact; the invoking action orchestrator owns validation, approval, section, checkpoint, and state reconciliation. The checker must independently review traceability, support for every required claim, author-decision fidelity, and feasibility without claiming a mutation.
24
+
25
+ On PanCode, write `project://sections/{{section}}/plans/<plan>` as `.planning/sections/{{section}}/plans/<plan>.md`, relative to the workspace root: section artifacts go under `.planning/sections/`, never a top-level `sections/`.
@@ -1,7 +1,9 @@
1
1
  ---
2
2
  description: "Run the next writing actions automatically and stop when only the author can decide."
3
+ display-only: true
3
4
  ---
4
5
 
6
+ ```text
5
7
  WTFP_ACTION_UNAVAILABLE
6
8
 
7
9
  Action: `advance`
@@ -11,5 +13,6 @@ Unavailable effects: (none)
11
13
 
12
14
  No workflow, tool, network request, package operation, external issue, VCS operation, or other effect ran.
13
15
  Safe alternative: preserve project state and return a manual, non-executed handoff for the requested operation.
16
+ ```
14
17
 
15
18
  <!-- Generated by WTF-P adapter compiler v5 from protocol/actions/advance; do not edit. -->
@@ -1,7 +1,9 @@
1
1
  ---
2
2
  description: "Guide a bounded WTF-P contribution from branch creation through a reviewable change request."
3
+ display-only: true
3
4
  ---
4
5
 
6
+ ```text
5
7
  WTFP_ACTION_UNAVAILABLE
6
8
 
7
9
  Action: `contribute`
@@ -11,5 +13,6 @@ Unavailable effects: `external.issue`, `vcs.branch`, `vcs.commit`
11
13
 
12
14
  No workflow, tool, network request, package operation, external issue, VCS operation, or other effect ran.
13
15
  Safe alternative: preserve project state and return a manual, non-executed handoff for the requested operation.
16
+ ```
14
17
 
15
18
  <!-- Generated by WTF-P adapter compiler v5 from protocol/actions/contribute; do not edit. -->
@@ -45,7 +45,7 @@ Manuscript prose and supporting context, research, plan, review, summary, handof
45
45
  2. Reconcile only choices the author explicitly resolves during the outline interview. Preserve every unrelated decision unchanged. For each explicitly resolved item whose current disposition is `deferred`, preserve the prior item unchanged except for setting its disposition to `superseded`; append a new replacement whose ID is fresh and unique in the ledger, whose authority is `author`, whose disposition is `locked`, and whose `supersedes` field names the prior item. Set the replacement's `recorded_at` to the actual resolution time, increment the decision-record revision, and set the record's `updated_at` to that same actual resolution time. Never supersede a locked choice or treat an agent suggestion or approval of an unrelated outline detail as authority to resolve a decision. If the author resolves no choice, do not rewrite the decision record.
46
46
  3. Present the complete outline and decision diffs at the confirm_outline gate. If the proposed outline contradicts a locked decision, preserve that decision as locked and unchanged. If it assumes a choice that was already deferred and the author did not resolve it, preserve that choice as deferred. In either case, record a non-passing validation and stop before downstream planning.
47
47
  4. Balance the budget before the gate: Every write to `project://structure/outline` must leave `sections[*].word_target` summing exactly to `target_words`. Reallocate across the affected sections and, where the author changed the overall length, restate `target_words` in the same write. Present the reallocation in the approval preview and refuse to publish an outline whose budgets do not balance.
48
- 5. After approval, atomically publish the decision update when one is required together with the outline, one section record per entry, state update, and validation. Preserve stable record and section IDs and verify the complete approved set after writing.
48
+ 5. After approval, atomically publish the decision update when one is required together with the outline, one section record per entry, state update, and validation. A new section record starts at status `not-started` with `artifacts` holding only empty `plans` and `reviews` lists; the action that writes a context, research, plan, review, summary, or handoff file links it. Give every claim an ID that no other claim in the project holds. Preserve stable record and section IDs and verify the complete approved set after writing.
49
49
 
50
50
  ## Safety and completion
51
51
 
@@ -4,7 +4,7 @@ display-only: true
4
4
  ---
5
5
 
6
6
  ```text
7
- WTF-P 0.9.0 on PanCode: evidence-grounded academic writing
7
+ WTF-P 0.9.1 on PanCode: evidence-grounded academic writing
8
8
 
9
9
  Start here
10
10
  /wtfp:new-paper [input]
@@ -31,7 +31,7 @@ Manuscript prose and supporting context, research, plan, review, summary, handof
31
31
 
32
32
  1. Resolve the insertion point and propose a stable new section ID, goal, dependencies, wave, claims, and word budget.
33
33
  2. Preview impacts on outline ordering, dependencies, section totals, and current position; require approval. Every write to `project://structure/outline` must leave `sections[*].word_target` summing exactly to `target_words`. Reallocate across the affected sections and, where the author changed the overall length, restate `target_words` in the same write. Present the reallocation in the approval preview and refuse to publish an outline whose budgets do not balance.
34
- 3. Create the section record and atomically update outline and state. Do not renumber stable IDs or move manuscript files implicitly.
34
+ 3. Create the section record at status `not-started` with `artifacts` holding only empty `plans` and `reviews` lists and claim IDs no other claim in the project holds, and atomically update outline and state. Do not renumber stable IDs or move manuscript files implicitly.
35
35
 
36
36
  ## Safety and completion
37
37
 
@@ -29,7 +29,7 @@ Manuscript prose and supporting context, research, plan, review, summary, handof
29
29
  ## Procedure
30
30
 
31
31
  1. Reconcile current state, decisions, outline revision, section plan, manuscript, summary, reviews, and validations; identify completed work, pending work, blockers, and the next action.
32
- 2. Write a Markdown handoff artifact for narrative continuity plus a human-action checkpoint for machine-readable resumption.
32
+ 2. Write a Markdown handoff artifact for narrative continuity plus a blocking human-action checkpoint for machine-readable resumption. Give the checkpoint an option with id `resume`, which returns `state.status` to `active` when the author selects it, and an option with id `expire`, which closes the checkpoint and leaves the project paused.
33
33
  3. Link the handoff from `section.artifacts.handoff` and the checkpoint from `section.checkpoint_uris`, then set `state.status` to `paused` and link the checkpoint from `state.active_checkpoint_uris`. Preserve `state.phase`, progress, and current section; pausing changes status, checkpoint linkage, revision, and timestamp only. `paused` is a status and is never a phase. Do not commit automatically.
34
34
 
35
35
  ## Safety and completion
@@ -1,7 +1,9 @@
1
1
  ---
2
2
  description: "Remove an unwritten future section and repair numbering and dependencies."
3
+ display-only: true
3
4
  ---
4
5
 
6
+ ```text
5
7
  WTFP_ACTION_UNAVAILABLE
6
8
 
7
9
  Action: `remove-section`
@@ -11,5 +13,6 @@ Unavailable effects: `filesystem.delete`
11
13
 
12
14
  No workflow, tool, network request, package operation, external issue, VCS operation, or other effect ran.
13
15
  Safe alternative: preserve project state and return a manual, non-executed handoff for the requested operation.
16
+ ```
14
17
 
15
18
  <!-- Generated by WTF-P adapter compiler v5 from protocol/actions/remove-section; do not edit. -->
@@ -1,7 +1,9 @@
1
1
  ---
2
2
  description: "Collect a reproducible bug report and publish it only after explicit user approval."
3
+ display-only: true
3
4
  ---
4
5
 
6
+ ```text
5
7
  WTFP_ACTION_UNAVAILABLE
6
8
 
7
9
  Action: `report-bug`
@@ -11,5 +13,6 @@ Unavailable effects: `external.issue`
11
13
 
12
14
  No workflow, tool, network request, package operation, external issue, VCS operation, or other effect ran.
13
15
  Safe alternative: preserve project state and return a manual, non-executed handoff for the requested operation.
16
+ ```
14
17
 
15
18
  <!-- Generated by WTF-P adapter compiler v5 from protocol/actions/report-bug; do not edit. -->
@@ -1,7 +1,9 @@
1
1
  ---
2
2
  description: "Shape a concrete feature request and publish it only after explicit user approval."
3
+ display-only: true
3
4
  ---
4
5
 
6
+ ```text
5
7
  WTFP_ACTION_UNAVAILABLE
6
8
 
7
9
  Action: `request-feature`
@@ -11,5 +13,6 @@ Unavailable effects: `external.issue`
11
13
 
12
14
  No workflow, tool, network request, package operation, external issue, VCS operation, or other effect ran.
13
15
  Safe alternative: preserve project state and return a manual, non-executed handoff for the requested operation.
16
+ ```
14
17
 
15
18
  <!-- Generated by WTF-P adapter compiler v5 from protocol/actions/request-feature; do not edit. -->
@@ -1,7 +1,9 @@
1
1
  ---
2
2
  description: "Check for a newer compatible package or plugin release and install it only after approval."
3
+ display-only: true
3
4
  ---
4
5
 
6
+ ```text
5
7
  WTFP_ACTION_UNAVAILABLE
6
8
 
7
9
  Action: `update`
@@ -11,5 +13,6 @@ Unavailable effects: `package.update`
11
13
 
12
14
  No workflow, tool, network request, package operation, external issue, VCS operation, or other effect ran.
13
15
  Safe alternative: preserve project state and return a manual, non-executed handoff for the requested operation.
16
+ ```
14
17
 
15
18
  <!-- Generated by WTF-P adapter compiler v5 from protocol/actions/update; do not edit. -->
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
3
3
  "name": "wtfp",
4
- "version": "0.9.0",
4
+ "version": "0.9.1",
5
5
  "description": "Portable, evidence-grounded academic research and writing workflows.",
6
6
  "author": {
7
7
  "name": "akougkas"
@@ -25,7 +25,7 @@ Manuscript prose and supporting context, research, plan, review, summary, handof
25
25
  2. Reconcile only choices the author explicitly resolves during the outline interview. Preserve every unrelated decision unchanged. For each explicitly resolved item whose current disposition is `deferred`, preserve the prior item unchanged except for setting its disposition to `superseded`; append a new replacement whose ID is fresh and unique in the ledger, whose authority is `author`, whose disposition is `locked`, and whose `supersedes` field names the prior item. Set the replacement's `recorded_at` to the actual resolution time, increment the decision-record revision, and set the record's `updated_at` to that same actual resolution time. Never supersede a locked choice or treat an agent suggestion or approval of an unrelated outline detail as authority to resolve a decision. If the author resolves no choice, do not rewrite the decision record.
26
26
  3. Present the complete outline and decision diffs at the confirm_outline gate. If the proposed outline contradicts a locked decision, preserve that decision as locked and unchanged. If it assumes a choice that was already deferred and the author did not resolve it, preserve that choice as deferred. In either case, record a non-passing validation and stop before downstream planning.
27
27
  4. Balance the budget before the gate: Every write to `project://structure/outline` must leave `sections[*].word_target` summing exactly to `target_words`. Reallocate across the affected sections and, where the author changed the overall length, restate `target_words` in the same write. Present the reallocation in the approval preview and refuse to publish an outline whose budgets do not balance.
28
- 5. After approval, atomically publish the decision update when one is required together with the outline, one section record per entry, state update, and validation. Preserve stable record and section IDs and verify the complete approved set after writing.
28
+ 5. After approval, atomically publish the decision update when one is required together with the outline, one section record per entry, state update, and validation. A new section record starts at status `not-started` with `artifacts` holding only empty `plans` and `reviews` lists; the action that writes a context, research, plan, review, summary, or handoff file links it. Give every claim an ID that no other claim in the project holds. Preserve stable record and section IDs and verify the complete approved set after writing.
29
29
 
30
30
  ## Safety and completion
31
31
 
@@ -23,7 +23,7 @@ Manuscript prose and supporting context, research, plan, review, summary, handof
23
23
 
24
24
  1. Resolve the insertion point and propose a stable new section ID, goal, dependencies, wave, claims, and word budget.
25
25
  2. Preview impacts on outline ordering, dependencies, section totals, and current position; require approval. Every write to `project://structure/outline` must leave `sections[*].word_target` summing exactly to `target_words`. Reallocate across the affected sections and, where the author changed the overall length, restate `target_words` in the same write. Present the reallocation in the approval preview and refuse to publish an outline whose budgets do not balance.
26
- 3. Create the section record and atomically update outline and state. Do not renumber stable IDs or move manuscript files implicitly.
26
+ 3. Create the section record at status `not-started` with `artifacts` holding only empty `plans` and `reviews` lists and claim IDs no other claim in the project holds, and atomically update outline and state. Do not renumber stable IDs or move manuscript files implicitly.
27
27
 
28
28
  ## Safety and completion
29
29
 
@@ -22,7 +22,7 @@ Manuscript prose and supporting context, research, plan, review, summary, handof
22
22
  ## Procedure
23
23
 
24
24
  1. Reconcile current state, decisions, outline revision, section plan, manuscript, summary, reviews, and validations; identify completed work, pending work, blockers, and the next action.
25
- 2. Write a Markdown handoff artifact for narrative continuity plus a human-action checkpoint for machine-readable resumption.
25
+ 2. Write a Markdown handoff artifact for narrative continuity plus a blocking human-action checkpoint for machine-readable resumption. Give the checkpoint an option with id `resume`, which returns `state.status` to `active` when the author selects it, and an option with id `expire`, which closes the checkpoint and leaves the project paused.
26
26
  3. Link the handoff from `section.artifacts.handoff` and the checkpoint from `section.checkpoint_uris`, then set `state.status` to `paused` and link the checkpoint from `state.active_checkpoint_uris`. Preserve `state.phase`, progress, and current section; pausing changes status, checkpoint linkage, revision, and timestamp only. `paused` is a status and is never a phase. Do not commit automatically.
27
27
 
28
28
  ## Safety and completion
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wtfp",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "description": "Evidence-grounded academic research, planning, writing, review, and delivery workflows.",
5
5
  "author": {
6
6
  "name": "akougkas",
@@ -2,11 +2,11 @@
2
2
  "schema": "wtfp.generated-adapter/v1",
3
3
  "generatorVersion": 5,
4
4
  "target": "codex",
5
- "sourceHash": "429db40f97bd3f79b39744afb41a419dbe7964b180ba86a1d3e1e77fb3928eb3",
5
+ "sourceHash": "709dab56582b8a56481dc99c9cc3542b723e7e60005d6ff186d3073a09b5f6bf",
6
6
  "files": [
7
7
  {
8
8
  "path": ".codex-plugin/plugin.json",
9
- "sha256": "9eef32e0204e3cd71a456589f98b8c283f5d28010a45b66d13e331eae69c5c21"
9
+ "sha256": "5c51d8141045b79c6b0b273d62d7f9c9a0e18ebb6c80160356aa5586342d63aa"
10
10
  },
11
11
  {
12
12
  "path": "actions/add-todo.json",
@@ -226,7 +226,7 @@
226
226
  },
227
227
  {
228
228
  "path": "plugin.json",
229
- "sha256": "b67119964f1dadc4c60618e66558caf6fb9770697d698bd1119f7d128e4090b7"
229
+ "sha256": "fb0c1844140e111bb6fa2f28498b1c3e9ddfba4e3b9a4d96cc1c04e99cf0294d"
230
230
  },
231
231
  {
232
232
  "path": "project/README.md",
@@ -582,7 +582,7 @@
582
582
  },
583
583
  {
584
584
  "path": "workflows/create-outline.md",
585
- "sha256": "a04d0f25a64d5963c890162399e26de2aad593408491c68871832f5c96a6e90e"
585
+ "sha256": "41ffcf7fafb9496686318d5852569eecfe85bb80d9f101da20ec8ae6599b936e"
586
586
  },
587
587
  {
588
588
  "path": "workflows/create-poster.md",
@@ -610,7 +610,7 @@
610
610
  },
611
611
  {
612
612
  "path": "workflows/insert-section.md",
613
- "sha256": "4a0856be3e3165b2bfb6e16a459ccdc04798f21e78178b2c8a24fbbc321cdc70"
613
+ "sha256": "eb0c313fd2eed6809c86384b9cb8fb842c0225cc0c3b33f180131d6b5de0de26"
614
614
  },
615
615
  {
616
616
  "path": "workflows/list-assumptions.md",
@@ -626,7 +626,7 @@
626
626
  },
627
627
  {
628
628
  "path": "workflows/pause-writing.md",
629
- "sha256": "5925c00a573e65c99a34e19984804f6407373e560621874cff29dbff4080fd0a"
629
+ "sha256": "ac40a7b7520e07e94c1f45dbdd6bc443ba7bae63def58e08e80d36081be3710a"
630
630
  },
631
631
  {
632
632
  "path": "workflows/plan-milestone-gaps.md",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
3
3
  "name": "wtfp",
4
- "version": "0.9.0",
4
+ "version": "0.9.1",
5
5
  "description": "Portable, evidence-grounded academic research and writing workflows.",
6
6
  "author": {
7
7
  "name": "akougkas"
@@ -25,7 +25,7 @@ Manuscript prose and supporting context, research, plan, review, summary, handof
25
25
  2. Reconcile only choices the author explicitly resolves during the outline interview. Preserve every unrelated decision unchanged. For each explicitly resolved item whose current disposition is `deferred`, preserve the prior item unchanged except for setting its disposition to `superseded`; append a new replacement whose ID is fresh and unique in the ledger, whose authority is `author`, whose disposition is `locked`, and whose `supersedes` field names the prior item. Set the replacement's `recorded_at` to the actual resolution time, increment the decision-record revision, and set the record's `updated_at` to that same actual resolution time. Never supersede a locked choice or treat an agent suggestion or approval of an unrelated outline detail as authority to resolve a decision. If the author resolves no choice, do not rewrite the decision record.
26
26
  3. Present the complete outline and decision diffs at the confirm_outline gate. If the proposed outline contradicts a locked decision, preserve that decision as locked and unchanged. If it assumes a choice that was already deferred and the author did not resolve it, preserve that choice as deferred. In either case, record a non-passing validation and stop before downstream planning.
27
27
  4. Balance the budget before the gate: Every write to `project://structure/outline` must leave `sections[*].word_target` summing exactly to `target_words`. Reallocate across the affected sections and, where the author changed the overall length, restate `target_words` in the same write. Present the reallocation in the approval preview and refuse to publish an outline whose budgets do not balance.
28
- 5. After approval, atomically publish the decision update when one is required together with the outline, one section record per entry, state update, and validation. Preserve stable record and section IDs and verify the complete approved set after writing.
28
+ 5. After approval, atomically publish the decision update when one is required together with the outline, one section record per entry, state update, and validation. A new section record starts at status `not-started` with `artifacts` holding only empty `plans` and `reviews` lists; the action that writes a context, research, plan, review, summary, or handoff file links it. Give every claim an ID that no other claim in the project holds. Preserve stable record and section IDs and verify the complete approved set after writing.
29
29
 
30
30
  ## Safety and completion
31
31
 
@@ -23,7 +23,7 @@ Manuscript prose and supporting context, research, plan, review, summary, handof
23
23
 
24
24
  1. Resolve the insertion point and propose a stable new section ID, goal, dependencies, wave, claims, and word budget.
25
25
  2. Preview impacts on outline ordering, dependencies, section totals, and current position; require approval. Every write to `project://structure/outline` must leave `sections[*].word_target` summing exactly to `target_words`. Reallocate across the affected sections and, where the author changed the overall length, restate `target_words` in the same write. Present the reallocation in the approval preview and refuse to publish an outline whose budgets do not balance.
26
- 3. Create the section record and atomically update outline and state. Do not renumber stable IDs or move manuscript files implicitly.
26
+ 3. Create the section record at status `not-started` with `artifacts` holding only empty `plans` and `reviews` lists and claim IDs no other claim in the project holds, and atomically update outline and state. Do not renumber stable IDs or move manuscript files implicitly.
27
27
 
28
28
  ## Safety and completion
29
29
 
@@ -22,7 +22,7 @@ Manuscript prose and supporting context, research, plan, review, summary, handof
22
22
  ## Procedure
23
23
 
24
24
  1. Reconcile current state, decisions, outline revision, section plan, manuscript, summary, reviews, and validations; identify completed work, pending work, blockers, and the next action.
25
- 2. Write a Markdown handoff artifact for narrative continuity plus a human-action checkpoint for machine-readable resumption.
25
+ 2. Write a Markdown handoff artifact for narrative continuity plus a blocking human-action checkpoint for machine-readable resumption. Give the checkpoint an option with id `resume`, which returns `state.status` to `active` when the author selects it, and an option with id `expire`, which closes the checkpoint and leaves the project paused.
26
26
  3. Link the handoff from `section.artifacts.handoff` and the checkpoint from `section.checkpoint_uris`, then set `state.status` to `paused` and link the checkpoint from `state.active_checkpoint_uris`. Preserve `state.phase`, progress, and current section; pausing changes status, checkpoint linkage, revision, and timestamp only. `paused` is a status and is never a phase. Do not commit automatically.
27
27
 
28
28
  ## Safety and completion
@@ -2,11 +2,11 @@
2
2
  "schema": "wtfp.generated-adapter/v1",
3
3
  "generatorVersion": 5,
4
4
  "target": "copilot-marketplace",
5
- "sourceHash": "c93ef202c01dc7bf8fcba0beaf4127165fdd59d8d6b6d4cb16829dc1fa23cb77",
5
+ "sourceHash": "bc4caeeb8f8a06b3573ff9973ded898b6062e13e9001b190be97877302da22e8",
6
6
  "files": [
7
7
  {
8
8
  "path": "marketplace.json",
9
- "sha256": "ae6bea6f477f14d43c1d93f6db594706090ca55f90f82ade98348a23d303b506"
9
+ "sha256": "1c48bf5c69768b64867fe9a1845d47b2f618b064bb47b1fac1341339b1197237"
10
10
  },
11
11
  {
12
12
  "path": "project/.github/agents/wtfp-argument-verifier.agent.md",
@@ -134,7 +134,7 @@
134
134
  },
135
135
  {
136
136
  "path": "project/.github/prompts/wtfp-pause-writing.prompt.md",
137
- "sha256": "3ceed10f1d206be775f7a9258d7f3893207419dc1687fed06d3d9fc593544c9b"
137
+ "sha256": "6bc67bfbb9417d961f558c46a6e3a6ae0fc4b10552c56b43cf248dda0ef9a833"
138
138
  },
139
139
  {
140
140
  "path": "project/.github/prompts/wtfp-plan-milestone-gaps.prompt.md",
@@ -766,7 +766,7 @@
766
766
  },
767
767
  {
768
768
  "path": "project/.github/wtfp/workflows/create-outline.md",
769
- "sha256": "a04d0f25a64d5963c890162399e26de2aad593408491c68871832f5c96a6e90e"
769
+ "sha256": "41ffcf7fafb9496686318d5852569eecfe85bb80d9f101da20ec8ae6599b936e"
770
770
  },
771
771
  {
772
772
  "path": "project/.github/wtfp/workflows/create-poster.md",
@@ -794,7 +794,7 @@
794
794
  },
795
795
  {
796
796
  "path": "project/.github/wtfp/workflows/insert-section.md",
797
- "sha256": "4a0856be3e3165b2bfb6e16a459ccdc04798f21e78178b2c8a24fbbc321cdc70"
797
+ "sha256": "eb0c313fd2eed6809c86384b9cb8fb842c0225cc0c3b33f180131d6b5de0de26"
798
798
  },
799
799
  {
800
800
  "path": "project/.github/wtfp/workflows/list-assumptions.md",
@@ -810,7 +810,7 @@
810
810
  },
811
811
  {
812
812
  "path": "project/.github/wtfp/workflows/pause-writing.md",
813
- "sha256": "5925c00a573e65c99a34e19984804f6407373e560621874cff29dbff4080fd0a"
813
+ "sha256": "ac40a7b7520e07e94c1f45dbdd6bc443ba7bae63def58e08e80d36081be3710a"
814
814
  },
815
815
  {
816
816
  "path": "project/.github/wtfp/workflows/plan-milestone-gaps.md",
@@ -5,14 +5,14 @@
5
5
  },
6
6
  "metadata": {
7
7
  "description": "WTF-P research workflow plugins",
8
- "version": "0.9.0"
8
+ "version": "0.9.1"
9
9
  },
10
10
  "plugins": [
11
11
  {
12
12
  "name": "wtfp",
13
13
  "source": "./plugins/wtfp",
14
14
  "description": "Portable academic research and writing workflows.",
15
- "version": "0.9.0",
15
+ "version": "0.9.1",
16
16
  "author": {
17
17
  "name": "akougkas"
18
18
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wtfp",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "description": "Portable academic research and writing workflows with stable wtfp actions.",
5
5
  "author": {
6
6
  "name": "akougkas",
@@ -2,11 +2,11 @@
2
2
  "schema": "wtfp.generated-adapter/v1",
3
3
  "generatorVersion": 5,
4
4
  "target": "copilot",
5
- "sourceHash": "564a1c173c60b7c5b1d8cf777a9138c616c2dd364bfe8498bb2345dee0caf20f",
5
+ "sourceHash": "24792ff03e0b51d7c1cb1747e901ab856dde90d4840a83c6e5d1aa0182e5ca94",
6
6
  "files": [
7
7
  {
8
8
  "path": ".claude-plugin/plugin.json",
9
- "sha256": "933d5adec91b3b2b6034b186afec1c348505b354ea52fac35059bb956991d3d6"
9
+ "sha256": "c31519c16bcfd0ff09b5ea65542621fb6750d713204a6375248564fc00564847"
10
10
  },
11
11
  {
12
12
  "path": "actions/add-todo.json",
@@ -242,7 +242,7 @@
242
242
  },
243
243
  {
244
244
  "path": "commands/wtfp-create-outline.md",
245
- "sha256": "3cdf3dbd8e5b361f3750b5ae3914325de1b05319b65e590a8a022848538fd1b3"
245
+ "sha256": "3dc1a98c56aa4ee0d70c445dcd69a08750b2cb6347d5c0acfb381004dac652d6"
246
246
  },
247
247
  {
248
248
  "path": "commands/wtfp-create-poster.md",
@@ -270,7 +270,7 @@
270
270
  },
271
271
  {
272
272
  "path": "commands/wtfp-insert-section.md",
273
- "sha256": "4732fb8a7609717424a949256e5bb2d2cf917191df9e0ad72f4dd37086132be9"
273
+ "sha256": "65407f860732b7805d1fba784e44bbc2315643f3c8f8e97bb6e1cfc036677379"
274
274
  },
275
275
  {
276
276
  "path": "commands/wtfp-list-assumptions.md",
@@ -286,7 +286,7 @@
286
286
  },
287
287
  {
288
288
  "path": "commands/wtfp-pause-writing.md",
289
- "sha256": "9a90f1f9a24a90ea59d6ac9ac4fcc76271d8be538e01fd0008db48668ac41d97"
289
+ "sha256": "43ba49ed8b58721134d4a73bc12888a6ad7e1de29c6c4c4ff0d8b6b06f378d08"
290
290
  },
291
291
  {
292
292
  "path": "commands/wtfp-plan-milestone-gaps.md",
@@ -726,7 +726,7 @@
726
726
  },
727
727
  {
728
728
  "path": "workflows/create-outline.md",
729
- "sha256": "a04d0f25a64d5963c890162399e26de2aad593408491c68871832f5c96a6e90e"
729
+ "sha256": "41ffcf7fafb9496686318d5852569eecfe85bb80d9f101da20ec8ae6599b936e"
730
730
  },
731
731
  {
732
732
  "path": "workflows/create-poster.md",
@@ -754,7 +754,7 @@
754
754
  },
755
755
  {
756
756
  "path": "workflows/insert-section.md",
757
- "sha256": "4a0856be3e3165b2bfb6e16a459ccdc04798f21e78178b2c8a24fbbc321cdc70"
757
+ "sha256": "eb0c313fd2eed6809c86384b9cb8fb842c0225cc0c3b33f180131d6b5de0de26"
758
758
  },
759
759
  {
760
760
  "path": "workflows/list-assumptions.md",
@@ -770,7 +770,7 @@
770
770
  },
771
771
  {
772
772
  "path": "workflows/pause-writing.md",
773
- "sha256": "5925c00a573e65c99a34e19984804f6407373e560621874cff29dbff4080fd0a"
773
+ "sha256": "ac40a7b7520e07e94c1f45dbdd6bc443ba7bae63def58e08e80d36081be3710a"
774
774
  },
775
775
  {
776
776
  "path": "workflows/plan-milestone-gaps.md",
@@ -33,7 +33,7 @@ Manuscript prose and supporting context, research, plan, review, summary, handof
33
33
  2. Reconcile only choices the author explicitly resolves during the outline interview. Preserve every unrelated decision unchanged. For each explicitly resolved item whose current disposition is `deferred`, preserve the prior item unchanged except for setting its disposition to `superseded`; append a new replacement whose ID is fresh and unique in the ledger, whose authority is `author`, whose disposition is `locked`, and whose `supersedes` field names the prior item. Set the replacement's `recorded_at` to the actual resolution time, increment the decision-record revision, and set the record's `updated_at` to that same actual resolution time. Never supersede a locked choice or treat an agent suggestion or approval of an unrelated outline detail as authority to resolve a decision. If the author resolves no choice, do not rewrite the decision record.
34
34
  3. Present the complete outline and decision diffs at the confirm_outline gate. If the proposed outline contradicts a locked decision, preserve that decision as locked and unchanged. If it assumes a choice that was already deferred and the author did not resolve it, preserve that choice as deferred. In either case, record a non-passing validation and stop before downstream planning.
35
35
  4. Balance the budget before the gate: Every write to `project://structure/outline` must leave `sections[*].word_target` summing exactly to `target_words`. Reallocate across the affected sections and, where the author changed the overall length, restate `target_words` in the same write. Present the reallocation in the approval preview and refuse to publish an outline whose budgets do not balance.
36
- 5. After approval, atomically publish the decision update when one is required together with the outline, one section record per entry, state update, and validation. Preserve stable record and section IDs and verify the complete approved set after writing.
36
+ 5. After approval, atomically publish the decision update when one is required together with the outline, one section record per entry, state update, and validation. A new section record starts at status `not-started` with `artifacts` holding only empty `plans` and `reviews` lists; the action that writes a context, research, plan, review, summary, or handoff file links it. Give every claim an ID that no other claim in the project holds. Preserve stable record and section IDs and verify the complete approved set after writing.
37
37
 
38
38
  ## Safety and completion
39
39
 
@@ -30,7 +30,7 @@ Manuscript prose and supporting context, research, plan, review, summary, handof
30
30
 
31
31
  1. Resolve the insertion point and propose a stable new section ID, goal, dependencies, wave, claims, and word budget.
32
32
  2. Preview impacts on outline ordering, dependencies, section totals, and current position; require approval. Every write to `project://structure/outline` must leave `sections[*].word_target` summing exactly to `target_words`. Reallocate across the affected sections and, where the author changed the overall length, restate `target_words` in the same write. Present the reallocation in the approval preview and refuse to publish an outline whose budgets do not balance.
33
- 3. Create the section record and atomically update outline and state. Do not renumber stable IDs or move manuscript files implicitly.
33
+ 3. Create the section record at status `not-started` with `artifacts` holding only empty `plans` and `reviews` lists and claim IDs no other claim in the project holds, and atomically update outline and state. Do not renumber stable IDs or move manuscript files implicitly.
34
34
 
35
35
  ## Safety and completion
36
36
 
@@ -28,7 +28,7 @@ Manuscript prose and supporting context, research, plan, review, summary, handof
28
28
  ## Procedure
29
29
 
30
30
  1. Reconcile current state, decisions, outline revision, section plan, manuscript, summary, reviews, and validations; identify completed work, pending work, blockers, and the next action.
31
- 2. Write a Markdown handoff artifact for narrative continuity plus a human-action checkpoint for machine-readable resumption.
31
+ 2. Write a Markdown handoff artifact for narrative continuity plus a blocking human-action checkpoint for machine-readable resumption. Give the checkpoint an option with id `resume`, which returns `state.status` to `active` when the author selects it, and an option with id `expire`, which closes the checkpoint and leaves the project paused.
32
32
  3. Link the handoff from `section.artifacts.handoff` and the checkpoint from `section.checkpoint_uris`, then set `state.status` to `paused` and link the checkpoint from `state.active_checkpoint_uris`. Preserve `state.phase`, progress, and current section; pausing changes status, checkpoint linkage, revision, and timestamp only. `paused` is a status and is never a phase. Do not commit automatically.
33
33
 
34
34
  ## Safety and completion
@@ -25,7 +25,7 @@ Manuscript prose and supporting context, research, plan, review, summary, handof
25
25
  2. Reconcile only choices the author explicitly resolves during the outline interview. Preserve every unrelated decision unchanged. For each explicitly resolved item whose current disposition is `deferred`, preserve the prior item unchanged except for setting its disposition to `superseded`; append a new replacement whose ID is fresh and unique in the ledger, whose authority is `author`, whose disposition is `locked`, and whose `supersedes` field names the prior item. Set the replacement's `recorded_at` to the actual resolution time, increment the decision-record revision, and set the record's `updated_at` to that same actual resolution time. Never supersede a locked choice or treat an agent suggestion or approval of an unrelated outline detail as authority to resolve a decision. If the author resolves no choice, do not rewrite the decision record.
26
26
  3. Present the complete outline and decision diffs at the confirm_outline gate. If the proposed outline contradicts a locked decision, preserve that decision as locked and unchanged. If it assumes a choice that was already deferred and the author did not resolve it, preserve that choice as deferred. In either case, record a non-passing validation and stop before downstream planning.
27
27
  4. Balance the budget before the gate: Every write to `project://structure/outline` must leave `sections[*].word_target` summing exactly to `target_words`. Reallocate across the affected sections and, where the author changed the overall length, restate `target_words` in the same write. Present the reallocation in the approval preview and refuse to publish an outline whose budgets do not balance.
28
- 5. After approval, atomically publish the decision update when one is required together with the outline, one section record per entry, state update, and validation. Preserve stable record and section IDs and verify the complete approved set after writing.
28
+ 5. After approval, atomically publish the decision update when one is required together with the outline, one section record per entry, state update, and validation. A new section record starts at status `not-started` with `artifacts` holding only empty `plans` and `reviews` lists; the action that writes a context, research, plan, review, summary, or handoff file links it. Give every claim an ID that no other claim in the project holds. Preserve stable record and section IDs and verify the complete approved set after writing.
29
29
 
30
30
  ## Safety and completion
31
31
 
@@ -23,7 +23,7 @@ Manuscript prose and supporting context, research, plan, review, summary, handof
23
23
 
24
24
  1. Resolve the insertion point and propose a stable new section ID, goal, dependencies, wave, claims, and word budget.
25
25
  2. Preview impacts on outline ordering, dependencies, section totals, and current position; require approval. Every write to `project://structure/outline` must leave `sections[*].word_target` summing exactly to `target_words`. Reallocate across the affected sections and, where the author changed the overall length, restate `target_words` in the same write. Present the reallocation in the approval preview and refuse to publish an outline whose budgets do not balance.
26
- 3. Create the section record and atomically update outline and state. Do not renumber stable IDs or move manuscript files implicitly.
26
+ 3. Create the section record at status `not-started` with `artifacts` holding only empty `plans` and `reviews` lists and claim IDs no other claim in the project holds, and atomically update outline and state. Do not renumber stable IDs or move manuscript files implicitly.
27
27
 
28
28
  ## Safety and completion
29
29
 
@@ -22,7 +22,7 @@ Manuscript prose and supporting context, research, plan, review, summary, handof
22
22
  ## Procedure
23
23
 
24
24
  1. Reconcile current state, decisions, outline revision, section plan, manuscript, summary, reviews, and validations; identify completed work, pending work, blockers, and the next action.
25
- 2. Write a Markdown handoff artifact for narrative continuity plus a human-action checkpoint for machine-readable resumption.
25
+ 2. Write a Markdown handoff artifact for narrative continuity plus a blocking human-action checkpoint for machine-readable resumption. Give the checkpoint an option with id `resume`, which returns `state.status` to `active` when the author selects it, and an option with id `expire`, which closes the checkpoint and leaves the project paused.
26
26
  3. Link the handoff from `section.artifacts.handoff` and the checkpoint from `section.checkpoint_uris`, then set `state.status` to `paused` and link the checkpoint from `state.active_checkpoint_uris`. Preserve `state.phase`, progress, and current section; pausing changes status, checkpoint linkage, revision, and timestamp only. `paused` is a status and is never a phase. Do not commit automatically.
27
27
 
28
28
  ## Safety and completion
@@ -23,7 +23,7 @@ Manuscript prose and supporting context, research, plan, review, summary, handof
23
23
  ## Procedure
24
24
 
25
25
  1. Reconcile current state, decisions, outline revision, section plan, manuscript, summary, reviews, and validations; identify completed work, pending work, blockers, and the next action.
26
- 2. Write a Markdown handoff artifact for narrative continuity plus a human-action checkpoint for machine-readable resumption.
26
+ 2. Write a Markdown handoff artifact for narrative continuity plus a blocking human-action checkpoint for machine-readable resumption. Give the checkpoint an option with id `resume`, which returns `state.status` to `active` when the author selects it, and an option with id `expire`, which closes the checkpoint and leaves the project paused.
27
27
  3. Link the handoff from `section.artifacts.handoff` and the checkpoint from `section.checkpoint_uris`, then set `state.status` to `paused` and link the checkpoint from `state.active_checkpoint_uris`. Preserve `state.phase`, progress, and current section; pausing changes status, checkpoint linkage, revision, and timestamp only. `paused` is a status and is never a phase. Do not commit automatically.
28
28
 
29
29
  ## Safety and completion
@@ -25,7 +25,7 @@ Manuscript prose and supporting context, research, plan, review, summary, handof
25
25
  2. Reconcile only choices the author explicitly resolves during the outline interview. Preserve every unrelated decision unchanged. For each explicitly resolved item whose current disposition is `deferred`, preserve the prior item unchanged except for setting its disposition to `superseded`; append a new replacement whose ID is fresh and unique in the ledger, whose authority is `author`, whose disposition is `locked`, and whose `supersedes` field names the prior item. Set the replacement's `recorded_at` to the actual resolution time, increment the decision-record revision, and set the record's `updated_at` to that same actual resolution time. Never supersede a locked choice or treat an agent suggestion or approval of an unrelated outline detail as authority to resolve a decision. If the author resolves no choice, do not rewrite the decision record.
26
26
  3. Present the complete outline and decision diffs at the confirm_outline gate. If the proposed outline contradicts a locked decision, preserve that decision as locked and unchanged. If it assumes a choice that was already deferred and the author did not resolve it, preserve that choice as deferred. In either case, record a non-passing validation and stop before downstream planning.
27
27
  4. Balance the budget before the gate: Every write to `project://structure/outline` must leave `sections[*].word_target` summing exactly to `target_words`. Reallocate across the affected sections and, where the author changed the overall length, restate `target_words` in the same write. Present the reallocation in the approval preview and refuse to publish an outline whose budgets do not balance.
28
- 5. After approval, atomically publish the decision update when one is required together with the outline, one section record per entry, state update, and validation. Preserve stable record and section IDs and verify the complete approved set after writing.
28
+ 5. After approval, atomically publish the decision update when one is required together with the outline, one section record per entry, state update, and validation. A new section record starts at status `not-started` with `artifacts` holding only empty `plans` and `reviews` lists; the action that writes a context, research, plan, review, summary, or handoff file links it. Give every claim an ID that no other claim in the project holds. Preserve stable record and section IDs and verify the complete approved set after writing.
29
29
 
30
30
  ## Safety and completion
31
31
 
@@ -23,7 +23,7 @@ Manuscript prose and supporting context, research, plan, review, summary, handof
23
23
 
24
24
  1. Resolve the insertion point and propose a stable new section ID, goal, dependencies, wave, claims, and word budget.
25
25
  2. Preview impacts on outline ordering, dependencies, section totals, and current position; require approval. Every write to `project://structure/outline` must leave `sections[*].word_target` summing exactly to `target_words`. Reallocate across the affected sections and, where the author changed the overall length, restate `target_words` in the same write. Present the reallocation in the approval preview and refuse to publish an outline whose budgets do not balance.
26
- 3. Create the section record and atomically update outline and state. Do not renumber stable IDs or move manuscript files implicitly.
26
+ 3. Create the section record at status `not-started` with `artifacts` holding only empty `plans` and `reviews` lists and claim IDs no other claim in the project holds, and atomically update outline and state. Do not renumber stable IDs or move manuscript files implicitly.
27
27
 
28
28
  ## Safety and completion
29
29
 
@@ -22,7 +22,7 @@ Manuscript prose and supporting context, research, plan, review, summary, handof
22
22
  ## Procedure
23
23
 
24
24
  1. Reconcile current state, decisions, outline revision, section plan, manuscript, summary, reviews, and validations; identify completed work, pending work, blockers, and the next action.
25
- 2. Write a Markdown handoff artifact for narrative continuity plus a human-action checkpoint for machine-readable resumption.
25
+ 2. Write a Markdown handoff artifact for narrative continuity plus a blocking human-action checkpoint for machine-readable resumption. Give the checkpoint an option with id `resume`, which returns `state.status` to `active` when the author selects it, and an option with id `expire`, which closes the checkpoint and leaves the project paused.
26
26
  3. Link the handoff from `section.artifacts.handoff` and the checkpoint from `section.checkpoint_uris`, then set `state.status` to `paused` and link the checkpoint from `state.active_checkpoint_uris`. Preserve `state.phase`, progress, and current section; pausing changes status, checkpoint linkage, revision, and timestamp only. `paused` is a status and is never a phase. Do not commit automatically.
27
27
 
28
28
  ## Safety and completion