wtf-p 0.1.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.
Files changed (92) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +338 -0
  3. package/bin/install.js +358 -0
  4. package/bin/uninstall.js +485 -0
  5. package/commands/wtfp/analyze-bib.md +326 -0
  6. package/commands/wtfp/check-refs.md +205 -0
  7. package/commands/wtfp/create-outline.md +275 -0
  8. package/commands/wtfp/discuss-section.md +71 -0
  9. package/commands/wtfp/export-latex.md +216 -0
  10. package/commands/wtfp/help.md +342 -0
  11. package/commands/wtfp/insert-section.md +130 -0
  12. package/commands/wtfp/list-assumptions.md +109 -0
  13. package/commands/wtfp/map-project.md +197 -0
  14. package/commands/wtfp/new-paper.md +443 -0
  15. package/commands/wtfp/pause-writing.md +145 -0
  16. package/commands/wtfp/plan-revision.md +180 -0
  17. package/commands/wtfp/plan-section.md +247 -0
  18. package/commands/wtfp/polish-prose.md +177 -0
  19. package/commands/wtfp/progress.md +325 -0
  20. package/commands/wtfp/remove-section.md +147 -0
  21. package/commands/wtfp/research-gap.md +235 -0
  22. package/commands/wtfp/resume-writing.md +142 -0
  23. package/commands/wtfp/review-section.md +409 -0
  24. package/commands/wtfp/submit-milestone.md +211 -0
  25. package/commands/wtfp/write-section.md +273 -0
  26. package/package.json +40 -0
  27. package/write-the-f-paper/references/checkpoints.md +213 -0
  28. package/write-the-f-paper/references/continuation-format.md +223 -0
  29. package/write-the-f-paper/references/git-integration.md +241 -0
  30. package/write-the-f-paper/references/imrad-structure.md +212 -0
  31. package/write-the-f-paper/references/length-estimation.md +148 -0
  32. package/write-the-f-paper/references/plan-format.md +361 -0
  33. package/write-the-f-paper/references/principles.md +158 -0
  34. package/write-the-f-paper/references/questioning.md +132 -0
  35. package/write-the-f-paper/references/research-pitfalls.md +208 -0
  36. package/write-the-f-paper/templates/config.json +30 -0
  37. package/write-the-f-paper/templates/context.md +179 -0
  38. package/write-the-f-paper/templates/continue-here.md +142 -0
  39. package/write-the-f-paper/templates/data-inventory.md +142 -0
  40. package/write-the-f-paper/templates/discovery.md +146 -0
  41. package/write-the-f-paper/templates/issues.md +59 -0
  42. package/write-the-f-paper/templates/manuscript.md +253 -0
  43. package/write-the-f-paper/templates/narrative-arc.md +227 -0
  44. package/write-the-f-paper/templates/outline.md +274 -0
  45. package/write-the-f-paper/templates/phase-prompt.md +348 -0
  46. package/write-the-f-paper/templates/prior-drafts.md +204 -0
  47. package/write-the-f-paper/templates/project-context/argument-structure.md +267 -0
  48. package/write-the-f-paper/templates/project-context/bibliography.md +152 -0
  49. package/write-the-f-paper/templates/project-context/gaps.md +122 -0
  50. package/write-the-f-paper/templates/project-context/imrad.md +140 -0
  51. package/write-the-f-paper/templates/project-context/peer-review.md +152 -0
  52. package/write-the-f-paper/templates/project-context/style-guide.md +198 -0
  53. package/write-the-f-paper/templates/project-context/tools.md +170 -0
  54. package/write-the-f-paper/templates/project.md +185 -0
  55. package/write-the-f-paper/templates/research.md +384 -0
  56. package/write-the-f-paper/templates/review-comments.md +253 -0
  57. package/write-the-f-paper/templates/revision-issues.md +169 -0
  58. package/write-the-f-paper/templates/roadmap.md +187 -0
  59. package/write-the-f-paper/templates/section-archive.md +178 -0
  60. package/write-the-f-paper/templates/section-context.md +114 -0
  61. package/write-the-f-paper/templates/section.md +128 -0
  62. package/write-the-f-paper/templates/state.md +244 -0
  63. package/write-the-f-paper/templates/summary.md +277 -0
  64. package/write-the-f-paper/venues/acm-cs.yaml +102 -0
  65. package/write-the-f-paper/venues/arxiv-ml.yaml +103 -0
  66. package/write-the-f-paper/venues/ieee-cs.yaml +100 -0
  67. package/write-the-f-paper/venues/nature.yaml +81 -0
  68. package/write-the-f-paper/venues/thesis-chapter.yaml +101 -0
  69. package/write-the-f-paper/workflows/create-outline.md +462 -0
  70. package/write-the-f-paper/workflows/create-outline.wcn.md +194 -0
  71. package/write-the-f-paper/workflows/discuss-section.md +249 -0
  72. package/write-the-f-paper/workflows/discuss-section.wcn.md +63 -0
  73. package/write-the-f-paper/workflows/execute-section.md +704 -0
  74. package/write-the-f-paper/workflows/execute-section.wcn.md +219 -0
  75. package/write-the-f-paper/workflows/list-assumptions.md +183 -0
  76. package/write-the-f-paper/workflows/list-assumptions.wcn.md +42 -0
  77. package/write-the-f-paper/workflows/lit-review-phase.md +281 -0
  78. package/write-the-f-paper/workflows/lit-review-phase.wcn.md +92 -0
  79. package/write-the-f-paper/workflows/map-project.md +359 -0
  80. package/write-the-f-paper/workflows/map-project.wcn.md +73 -0
  81. package/write-the-f-paper/workflows/plan-section.md +409 -0
  82. package/write-the-f-paper/workflows/plan-section.wcn.md +236 -0
  83. package/write-the-f-paper/workflows/research-gap.md +469 -0
  84. package/write-the-f-paper/workflows/research-gap.wcn.md +119 -0
  85. package/write-the-f-paper/workflows/resume-paper.md +274 -0
  86. package/write-the-f-paper/workflows/resume-paper.wcn.md +93 -0
  87. package/write-the-f-paper/workflows/review-section.md +329 -0
  88. package/write-the-f-paper/workflows/review-section.wcn.md +91 -0
  89. package/write-the-f-paper/workflows/submit-draft.md +368 -0
  90. package/write-the-f-paper/workflows/submit-draft.wcn.md +69 -0
  91. package/write-the-f-paper/workflows/transition.md +375 -0
  92. package/write-the-f-paper/workflows/transition.wcn.md +113 -0
@@ -0,0 +1,128 @@
1
+ # Section Entry Template
2
+
3
+ Add this entry to `.planning/SECTIONS.md` when completing a section:
4
+
5
+ ```markdown
6
+ ## Section [X]: [Name] (Completed: YYYY-MM-DD)
7
+
8
+ **Delivered:** [One sentence describing what argument this section makes]
9
+
10
+ **Word count:** [Actual] / [Target] ([+/-] [delta])
11
+
12
+ **Plans completed:** [N] plans
13
+
14
+ **Key accomplishments:**
15
+ - [Main argument established]
16
+ - [Supporting point 1]
17
+ - [Supporting point 2]
18
+ - [Evidence/citations integrated]
19
+
20
+ **Claims made:**
21
+ 1. [Claim 1] — supported by [evidence]
22
+ 2. [Claim 2] — supported by [evidence]
23
+ 3. [Claim 3] — supported by [evidence]
24
+
25
+ **Citations added:** [N] citations
26
+ - [Key citation 1]: [context]
27
+ - [Key citation 2]: [context]
28
+
29
+ **What's next:** [Brief description of next section goals, or "Document complete"]
30
+
31
+ ---
32
+ ```
33
+
34
+ <structure>
35
+ If SECTIONS.md doesn't exist, create it with header:
36
+
37
+ ```markdown
38
+ # Completed Sections: [Paper/Grant Title]
39
+
40
+ [Entries in chronological order - oldest first for narrative flow]
41
+ ```
42
+ </structure>
43
+
44
+ <guidelines>
45
+ **When to create section entries:**
46
+ - After completing each major section
47
+ - Provides running record of progress
48
+ - Enables context restoration for later sessions
49
+
50
+ **Don't create entries for:**
51
+ - Individual paragraph completions (too granular)
52
+ - Work in progress (wait until section complete)
53
+ - Minor edits within completed sections
54
+
55
+ **Content to include:**
56
+ - Section goal and what was delivered
57
+ - Word count vs target (with delta)
58
+ - Key claims made and their support
59
+ - Major citations added
60
+ - Setup for next section
61
+
62
+ **After completion:**
63
+ - Update STATE.md word count table
64
+ - Update ROADMAP.md progress table
65
+ - Create SUMMARY.md for the section
66
+ </guidelines>
67
+
68
+ <example>
69
+ ```markdown
70
+ # Completed Sections: AI-Assisted Writing Framework
71
+
72
+ ## Section 1: Introduction (Completed: 2025-01-15)
73
+
74
+ **Delivered:** Establishes research gap in AI-assisted writing tools and positions our framework contribution
75
+
76
+ **Word count:** 847 / 800 (+47)
77
+
78
+ **Plans completed:** 1 plan (01-01)
79
+
80
+ **Key accomplishments:**
81
+ - Opened with compelling hook about researcher frustration
82
+ - Established context of AI writing tool proliferation
83
+ - Identified gap: no systematic framework for academic use
84
+ - Stated thesis: need for discipline-specific AI integration
85
+ - Previewed paper structure
86
+
87
+ **Claims made:**
88
+ 1. AI writing tools are proliferating but usage is ad hoc — supported by Smith (2023), Jones (2024)
89
+ 2. Academic writing has unique constraints not addressed by general tools — supported by Author (2022)
90
+ 3. A framework would improve adoption and outcomes — logical argument from gaps
91
+
92
+ **Citations added:** 4 citations
93
+ - Smith (2023): Context on AI tool proliferation
94
+ - Jones (2024): Survey of current usage patterns
95
+ - Author (2022): Academic writing constraints
96
+ - Brown (2023): Gap identification support
97
+
98
+ **What's next:** Section 2 (Literature Review) - Comprehensive review of AI writing tool research
99
+
100
+ ---
101
+
102
+ ## Section 2: Literature Review (Completed: 2025-01-18)
103
+
104
+ **Delivered:** Synthesizes three threads of AI writing research and positions our contribution
105
+
106
+ **Word count:** 1523 / 1500 (+23)
107
+
108
+ **Plans completed:** 2 plans (02-01, 02-02)
109
+
110
+ **Key accomplishments:**
111
+ - Organized literature into three thematic threads
112
+ - Critically analyzed each thread with synthesis
113
+ - Explicitly addressed ethical concerns
114
+ - Positioned our work against existing gaps
115
+
116
+ **Claims made:**
117
+ 1. Tool efficacy research shows promise but lacks researcher focus — supported by systematic review
118
+ 2. Ethics debates center on authorship, not methodology — supported by Jones & Chen (2024)
119
+ 3. Pedagogical integration models don't translate to research contexts — supported by gap analysis
120
+
121
+ **Citations added:** 15 citations
122
+ [List key citations...]
123
+
124
+ **What's next:** Section 3 (Methods) - Describe framework development process
125
+
126
+ ---
127
+ ```
128
+ </example>
@@ -0,0 +1,244 @@
1
+ # State Template
2
+
3
+ Template for `.planning/STATE.md` — the writing project's living memory.
4
+
5
+ ---
6
+
7
+ ## File Template
8
+
9
+ ```markdown
10
+ # Project State
11
+
12
+ ## Project Reference
13
+
14
+ See: .planning/PROJECT.md (updated [date])
15
+
16
+ **Core argument:** [One-liner from PROJECT.md Core Argument section]
17
+ **Current focus:** [Current section name]
18
+
19
+ ## Current Position
20
+
21
+ Section: [X] of [Y] ([Section name])
22
+ Plan: [A] of [B] in current section
23
+ Status: [Ready to plan / Planning / Ready to write / Writing / Section complete]
24
+ Last activity: [YYYY-MM-DD] — [What happened]
25
+
26
+ Progress: [░░░░░░░░░░] 0%
27
+
28
+ ## Word Count
29
+
30
+ | Section | Target | Current | % |
31
+ |---------|--------|---------|---|
32
+ | Abstract | 250 | 0 | 0% |
33
+ | Introduction | 800 | 0 | 0% |
34
+ | Methods | 1200 | 0 | 0% |
35
+ | Results | 1500 | 0 | 0% |
36
+ | Discussion | 1200 | 0 | 0% |
37
+ | **Total** | **5000** | **0** | **0%** |
38
+
39
+ ## Argument Strength
40
+
41
+ **Core thesis:** [Strong / Developing / Weak]
42
+ **Evidence gaps:** [List gaps or "None identified"]
43
+ **Logic flow:** [Coherent / Has jumps / Needs restructuring]
44
+
45
+ **By Section:**
46
+
47
+ | Section | Strength | Notes |
48
+ |---------|----------|-------|
49
+ | Abstract | - | Not started |
50
+ | Introduction | - | Not started |
51
+ | Methods | - | Not started |
52
+ | Results | - | Not started |
53
+ | Discussion | - | Not started |
54
+
55
+ ## Verification Status
56
+
57
+ - Citation check: [Not run / Passing / X issues]
58
+ - Coherence check: [Not run / Passing / X issues]
59
+ - Rubric check: [Not run / Passing / X issues]
60
+
61
+ ## Accumulated Context
62
+
63
+ ### Decisions
64
+
65
+ Decisions are logged in PROJECT.md Key Decisions table.
66
+ Recent decisions affecting current work:
67
+
68
+ - [Section X]: [Decision summary]
69
+ - [Section Y]: [Decision summary]
70
+
71
+ ### Deferred Issues
72
+
73
+ [From ISSUES.md — list open items with section of origin]
74
+
75
+ None yet.
76
+
77
+ ### Blockers/Concerns
78
+
79
+ [Issues that affect future writing]
80
+
81
+ None yet.
82
+
83
+ ## Session Continuity
84
+
85
+ Last session: [YYYY-MM-DD HH:MM]
86
+ Stopped at: [Description of last completed action]
87
+ Resume file: [Path to .continue-here*.md if exists, otherwise "None"]
88
+ ```
89
+
90
+ <purpose>
91
+
92
+ STATE.md is the writing project's short-term memory spanning all sections and sessions.
93
+
94
+ **Problem it solves:** Information is captured in summaries, issues, and decisions but not systematically consumed. Sessions start without context.
95
+
96
+ **Solution:** A single, small file that's:
97
+ - Read first in every workflow
98
+ - Updated after every significant action
99
+ - Contains digest of accumulated context
100
+ - Enables instant session restoration
101
+ - Tracks word count and argument strength
102
+
103
+ </purpose>
104
+
105
+ <lifecycle>
106
+
107
+ **Creation:** After ROADMAP.md is created (during init)
108
+ - Reference PROJECT.md (read it for current context)
109
+ - Initialize word count table from roadmap word budgets
110
+ - Set position to "Section 1 ready to plan"
111
+
112
+ **Reading:** First step of every workflow
113
+ - progress: Present status to user
114
+ - plan: Inform planning decisions
115
+ - write: Know current position
116
+ - transition: Know what's complete
117
+
118
+ **Writing:** After every significant action
119
+ - write-section: After SUMMARY.md created
120
+ - Update position (section, plan, status)
121
+ - Update word count table
122
+ - Note new decisions (detail in PROJECT.md)
123
+ - Update deferred issues list
124
+ - Add blockers/concerns
125
+ - transition: After section marked complete
126
+ - Update progress bar
127
+ - Clear resolved blockers
128
+ - Refresh Project Reference date
129
+
130
+ </lifecycle>
131
+
132
+ <sections>
133
+
134
+ ### Project Reference
135
+ Points to PROJECT.md for full context. Includes:
136
+ - Core argument (the ONE thesis that matters)
137
+ - Current focus (which section)
138
+ - Last update date (triggers re-read if stale)
139
+
140
+ Claude reads PROJECT.md directly for requirements, constraints, and decisions.
141
+
142
+ ### Current Position
143
+ Where we are right now:
144
+ - Section X of Y — which section
145
+ - Plan A of B — which plan within section
146
+ - Status — current state
147
+ - Last activity — what happened most recently
148
+ - Progress bar — visual indicator of overall completion
149
+
150
+ Progress calculation: (completed plans) / (total plans across all sections) × 100%
151
+
152
+ ### Word Count
153
+ Track progress toward length targets:
154
+ - Per-section breakdown
155
+ - Target vs current
156
+ - Percentage complete
157
+ - Helps identify sections that need trimming or expansion
158
+
159
+ ### Argument Strength
160
+ Track the quality of the argument:
161
+ - Core thesis strength (is it well-supported?)
162
+ - Evidence gaps (what's missing?)
163
+ - Logic flow (does it hang together?)
164
+ - Per-section assessment
165
+
166
+ Updated after each section completion.
167
+
168
+ ### Verification Status
169
+ Track the three-layer verification:
170
+ - Citation check (mechanical)
171
+ - Coherence check (logical)
172
+ - Rubric check (requirements)
173
+
174
+ Updated after running verification.
175
+
176
+ ### Accumulated Context
177
+
178
+ **Decisions:** Reference to PROJECT.md Key Decisions table, plus recent decisions summary for quick access. Full decision log lives in PROJECT.md.
179
+
180
+ **Deferred Issues:** Open items from ISSUES.md
181
+ - Brief description with ISS-XXX number
182
+ - Section where discovered
183
+ - Effort estimate if known
184
+ - Helps section planning identify what to address
185
+
186
+ **Blockers/Concerns:** From "Next Section Readiness" sections
187
+ - Issues that affect future work
188
+ - Prefix with originating section
189
+ - Cleared when addressed
190
+
191
+ ### Session Continuity
192
+ Enables instant resumption:
193
+ - When was last session
194
+ - What was last completed
195
+ - Is there a .continue-here file to resume from
196
+
197
+ </sections>
198
+
199
+ <size_constraint>
200
+
201
+ Keep STATE.md under 100 lines.
202
+
203
+ It's a DIGEST, not an archive. If accumulated context grows too large:
204
+ - Keep only 3-5 recent decisions in summary (full log in PROJECT.md)
205
+ - Reference ISSUES.md instead of listing all: "12 open issues — see ISSUES.md"
206
+ - Keep only active blockers, remove resolved ones
207
+
208
+ The goal is "read once, know where we are" — if it's too long, that fails.
209
+
210
+ </size_constraint>
211
+
212
+ <guidelines>
213
+
214
+ **When created:**
215
+ - During project initialization (after ROADMAP.md)
216
+ - Reference PROJECT.md (extract core argument and current focus)
217
+ - Initialize word count from roadmap word budgets
218
+ - Initialize empty sections
219
+
220
+ **When read:**
221
+ - Every workflow starts by reading STATE.md
222
+ - Then read PROJECT.md for full context
223
+ - Provides instant context restoration
224
+
225
+ **When updated:**
226
+ - After each plan execution (update position, word count, note decisions, update issues/blockers)
227
+ - After section transitions (update progress bar, clear resolved blockers, refresh project reference)
228
+
229
+ **Size management:**
230
+ - Keep under 100 lines total
231
+ - Recent decisions only in STATE.md (full log in PROJECT.md)
232
+ - Reference ISSUES.md instead of listing all issues
233
+ - Keep only active blockers
234
+
235
+ **Sections:**
236
+ - Project Reference: Pointer to PROJECT.md with core argument
237
+ - Current Position: Where we are now (section, plan, status)
238
+ - Word Count: Progress toward length targets
239
+ - Argument Strength: Quality assessment
240
+ - Verification Status: Three-layer check results
241
+ - Accumulated Context: Recent decisions, deferred issues, blockers
242
+ - Session Continuity: Resume information
243
+
244
+ </guidelines>
@@ -0,0 +1,277 @@
1
+ # Summary Template
2
+
3
+ Template for `.planning/sections/XX-name/{section}-{plan}-SUMMARY.md` - section completion documentation.
4
+
5
+ ---
6
+
7
+ ## File Template
8
+
9
+ ```markdown
10
+ ---
11
+ section: XX-name
12
+ plan: YY
13
+ document-type: [paper | grant | thesis]
14
+ tags: [searchable: methods, results, discussion, claims, evidence]
15
+
16
+ # Dependency graph
17
+ requires:
18
+ - section: [prior section this depends on]
19
+ provides: [what that section established that this uses]
20
+ provides:
21
+ - [bullet list of what this section contributes to the argument]
22
+ affects: [list of section names that will need this context]
23
+
24
+ # Writing tracking
25
+ word-count:
26
+ target: [planned words]
27
+ actual: [words written]
28
+ delta: [+/- difference]
29
+
30
+ key-claims:
31
+ - "Claim 1"
32
+ - "Claim 2"
33
+
34
+ citations-added:
35
+ - "author2023: context"
36
+ - "author2022: context"
37
+
38
+ issues-created: [ISS-XXX, ISS-YYY] # From ISSUES.md if any
39
+
40
+ # Metrics
41
+ duration: Xmin
42
+ completed: YYYY-MM-DD
43
+ ---
44
+
45
+ # Section [X]: [Name] Summary
46
+
47
+ **[Substantive one-liner describing what this section argues - NOT "section complete" or "writing finished"]**
48
+
49
+ ## Performance
50
+
51
+ - **Duration:** [time] (e.g., 23 min, 1h 15m)
52
+ - **Started:** [ISO timestamp]
53
+ - **Completed:** [ISO timestamp]
54
+ - **Word count:** [actual] / [target] ([+/-] [delta])
55
+ - **Tasks:** [count completed]
56
+
57
+ ## Accomplishments
58
+ - [Most important argument established]
59
+ - [Second key accomplishment]
60
+ - [Third if applicable]
61
+
62
+ ## Key Claims Made
63
+
64
+ The section establishes these claims:
65
+
66
+ 1. **[Claim 1]** — supported by [evidence/citation]
67
+ 2. **[Claim 2]** — supported by [evidence/citation]
68
+ 3. **[Claim 3]** — supported by [evidence/citation]
69
+
70
+ ## Citations Added
71
+
72
+ | Citation | Where Used | Purpose |
73
+ |----------|------------|---------|
74
+ | Author (Year) | Para X | [Why cited] |
75
+ | Author (Year) | Para Y | [Why cited] |
76
+
77
+ ## Task Commits
78
+
79
+ Each task was committed atomically:
80
+
81
+ 1. **Task 1: [task name]** - `abc123f` (draft/revise/cite/polish)
82
+ 2. **Task 2: [task name]** - `def456g` (draft/revise/cite/polish)
83
+ 3. **Task 3: [task name]** - `hij789k` (draft/revise/cite/polish)
84
+
85
+ **Plan metadata:** `lmn012o` (docs: complete plan)
86
+
87
+ ## Files Created/Modified
88
+ - `paper/section-name.md` - What was written
89
+ - `references.bib` - Citations added
90
+
91
+ ## Decisions Made
92
+ [Key decisions with brief rationale, or "None - followed plan as specified"]
93
+
94
+ ## Deviations from Plan
95
+
96
+ [If no deviations: "None - plan executed exactly as written"]
97
+
98
+ [If deviations occurred:]
99
+
100
+ ### Auto-fixed Issues
101
+
102
+ **1. [Rule X - Category] Brief description**
103
+ - **Found during:** Task [N] ([task name])
104
+ - **Issue:** [What was wrong]
105
+ - **Fix:** [What was done]
106
+ - **Text modified:** [paragraph/section affected]
107
+ - **Verification:** [How it was verified]
108
+ - **Committed in:** [hash] (part of task commit)
109
+
110
+ [... repeat for each auto-fix ...]
111
+
112
+ ### Deferred Enhancements
113
+
114
+ Logged to .planning/ISSUES.md for future consideration:
115
+ - ISS-XXX: [Brief description] (discovered in Task [N])
116
+ - ISS-XXX: [Brief description] (discovered in Task [N])
117
+
118
+ ---
119
+
120
+ **Total deviations:** [N] auto-fixed ([breakdown by rule]), [N] deferred
121
+ **Impact on plan:** [Brief assessment - e.g., "All auto-fixes necessary for accuracy. No scope creep."]
122
+
123
+ ## Issues Encountered
124
+ [Problems and how they were resolved, or "None"]
125
+
126
+ [Note: "Deviations from Plan" documents unplanned work that was handled automatically via deviation rules. "Issues Encountered" documents problems during planned work that required problem-solving.]
127
+
128
+ ## Next Section Readiness
129
+ [What's ready for next section]
130
+ [Any blockers or concerns]
131
+
132
+ ---
133
+ *Section: XX-name*
134
+ *Completed: [date]*
135
+ ```
136
+
137
+ <frontmatter_guidance>
138
+ **Purpose:** Enable automatic context assembly via dependency graph. Frontmatter makes summary metadata machine-readable so plan-section can scan all summaries quickly and select relevant ones based on dependencies.
139
+
140
+ **Fast scanning:** Frontmatter is first ~25 lines, cheap to scan across all summaries without reading full content.
141
+
142
+ **Dependency graph:** `requires`/`provides`/`affects` create explicit links between sections, enabling transitive closure for context selection.
143
+
144
+ **Word count tracking:** Tracks progress against word budget.
145
+
146
+ **Key claims:** The arguments this section establishes (enables coherence checking).
147
+
148
+ **Citations:** What sources were added (enables citation check).
149
+
150
+ **Issues:** ISS-XXX numbers for deferred items.
151
+
152
+ **Population:** Frontmatter is populated during summary creation in write-section.md. See `<step name="create_summary">` for field-by-field guidance.
153
+ </frontmatter_guidance>
154
+
155
+ <one_liner_rules>
156
+ The one-liner MUST be substantive:
157
+
158
+ **Good:**
159
+ - "Establishes three-factor model for academic writing productivity"
160
+ - "Methods section with participant demographics, protocol, and analysis approach"
161
+ - "Discussion synthesizes findings with prior literature, addresses limitations"
162
+
163
+ **Bad:**
164
+ - "Section complete"
165
+ - "Introduction written"
166
+ - "Discussion finished"
167
+ - "All tasks done"
168
+
169
+ The one-liner should tell someone what argument the section makes.
170
+ </one_liner_rules>
171
+
172
+ <example>
173
+ ```markdown
174
+ # Section 1: Introduction Summary
175
+
176
+ **Establishes research gap in AI-assisted writing tools and positions our contribution as the first systematic framework**
177
+
178
+ ## Performance
179
+
180
+ - **Duration:** 45 min
181
+ - **Started:** 2025-01-15T14:22:10Z
182
+ - **Completed:** 2025-01-15T15:07:33Z
183
+ - **Word count:** 847 / 800 (+47)
184
+ - **Tasks:** 4
185
+
186
+ ## Accomplishments
187
+ - Established context of AI writing tools proliferation
188
+ - Identified gap: no systematic framework for academic use
189
+ - Stated thesis: need for discipline-specific AI integration
190
+ - Previewed paper structure
191
+
192
+ ## Key Claims Made
193
+
194
+ 1. **AI writing tools are proliferating but usage is ad hoc** — supported by Smith (2023), Jones (2024)
195
+ 2. **Academic writing has unique constraints** — supported by Author (2022) + our argument
196
+ 3. **A framework would improve adoption and outcomes** — logical argument from gaps
197
+
198
+ ## Citations Added
199
+
200
+ | Citation | Where Used | Purpose |
201
+ |----------|------------|---------|
202
+ | Smith (2023) | Para 1 | Context on AI tool proliferation |
203
+ | Jones (2024) | Para 2 | Survey of current usage patterns |
204
+ | Author (2022) | Para 3 | Academic writing constraints |
205
+ | Brown (2023) | Para 4 | Gap identification support |
206
+
207
+ ## Files Created/Modified
208
+ - `paper/01-introduction.md` - Full introduction draft
209
+ - `references.bib` - 4 citations added
210
+
211
+ ## Decisions Made
212
+ - Used narrative hook (researcher frustration story) rather than statistics opening
213
+ - Positioned paper as "framework" not "tool" to emphasize conceptual contribution
214
+
215
+ ## Deviations from Plan
216
+
217
+ None - plan executed exactly as written
218
+
219
+ ## Issues Encountered
220
+ - Struggled with transition between gap and contribution; resolved by adding explicit "Therefore" connector
221
+
222
+ ## Next Section Readiness
223
+ - Introduction sets up methods section clearly
224
+ - Literature review context will be expanded in Related Work
225
+
226
+ ---
227
+ *Section: 01-introduction*
228
+ *Completed: 2025-01-15*
229
+ ```
230
+ </example>
231
+
232
+ <guidelines>
233
+ **When to create:**
234
+ - After completing each section plan
235
+ - Required output from write-section workflow
236
+ - Documents what actually happened vs what was planned
237
+
238
+ **Frontmatter completion:**
239
+ - MANDATORY: Complete all frontmatter fields during summary creation
240
+ - See <frontmatter_guidance> for field purposes
241
+ - Frontmatter enables automatic context assembly for future planning
242
+
243
+ **One-liner requirements:**
244
+ - Must be substantive (describe what argument was made, not "section complete")
245
+ - Should tell someone what was accomplished
246
+ - Examples: "Establishes three-factor model" not "Methods written"
247
+
248
+ **Performance tracking:**
249
+ - Include duration, start/end timestamps
250
+ - Include word count vs target
251
+ - Used for velocity metrics in STATE.md
252
+
253
+ **Key claims tracking:**
254
+ - List the main claims/arguments the section makes
255
+ - Include evidence/citation for each
256
+ - Enables coherence checking across sections
257
+
258
+ **Citations tracking:**
259
+ - List citations added with context
260
+ - Enables citation check verification
261
+
262
+ **Deviations section:**
263
+ - Documents unplanned work handled via deviation rules
264
+ - Separate from "Issues Encountered" (which is planned work problems)
265
+ - Auto-fixed issues: What was wrong, how fixed, verification
266
+ - Deferred enhancements: Logged to ISSUES.md with ISS-XXX numbers
267
+
268
+ **Decisions section:**
269
+ - Key decisions made during writing
270
+ - Include rationale (why this choice)
271
+ - Extracted to STATE.md accumulated context
272
+ - Use "None - followed plan as specified" if no deviations
273
+
274
+ **After creation:**
275
+ - STATE.md updated with position, word count, decisions, issues
276
+ - Next plan can reference decisions made
277
+ </guidelines>