essay.pack.render_word
Writes a validated essay pack to a .docx file only after the confirm step; drafts save nothing and confirmation must match the same pack.
Instructions
Essay: essay.pack.render_word (Confirm two-step). Draft writes nothing. Confirm writes a .docx only for the same pack after validation confirm. The essay id must be a sequence id. A bare module code is refused, so Word is not written at Essay-writer//output/. Say that reply to the user. File work does not own the chat. A sequence id writes that sequence's Word file, not the module's other sequences. Word only. No student name unless the assignment record requires it. When that record requires a registration number, print the number stored on the sequence. Do not invent it. Put the page number where the record says. Never confirm a changed pack. The first draft is authored from the stage 4b critical-review markdowns, one markdown per paper. Pass critical_reviews on the pack. Re-open a source paper only with reopen when that markdown does not cover the gap. Pass stage 6 for the first Word file or stage 9 for the final Word file. Those paths need an EQR PASS from the reviewer seat. This writer door does not review itself. Follow the server instructions for the Basics checklist. Stage 1 limiting conditions. The chat outcome is the short Basics pass, then a clean Confirm. After 4a and 4b Confirm, revisit the stage 3 plan before stage 5. Revisit stage 2 only if research breaks that lock: the essay thesis, or the report purpose and scope. The report central theme is the one-sentence answer. A thin edit is allowed. A break is not a thin edit. Check that section arguments still hold, that word weights still match the brief, and that source types are real titles with gaps named. invent-forbid: nothing in the plan that the research never showed. Use only the year printed in the opened source. Do not add a second year. If anything changes, show the delta and why it comes from the gathered sources, update the tracking note, and Confirm again before stage 5. If the theme or the purpose breaks, Confirm stage 2 and then Confirm stage 3. An essay keeps the thesis. A report has no thesis. Do not silently rewrite the plan into the draft. Stage LLM (no-fast): Basics 5: model grok-4.7, reasoning xhigh, fast off, context 256000; Basics 7: model grok-4.7, reasoning high, fast off, context 256000; Basics 8: model grok-4.7, reasoning high, fast off, context 256000; Basics 9: model grok-4.7, reasoning high, fast off, context 256000. Apply the Basics checklist already on this tool as rules. Follow every line. Apply stage 5 — Write your first draft guidance as rules (stage_settings rules). Follow every line. essay.stage writes tracking/5.md from that guidance. When that draft is stored, essay.stage starts stage 6. There is no Confirm card between stage 5 and stage 6. Apply stage 7 — Ask for feedback guidance as rules (stage_settings rules). Follow every line. essay.stage writes tracking/7.md from that guidance. On confirm, essay.stage saves the final look there and moves to stage 8 — Edit and redraft. Apply stage 8 — Edit and redraft guidance as rules (stage_settings rules). Follow every line. essay.stage writes tracking/8.md from that guidance. On confirm, essay.stage saves the final look there and moves to stage 9 — References and citations. Apply stage 9 — References and citations guidance as rules (stage_settings rules). Follow every line. essay.stage writes tracking/9.md from that guidance. On confirm, essay.stage saves the final look there and moves to stage 10 — Submit the final draft. When the brief is a report, stage 2 locks purpose and scope and stage 3 holds the central theme. A report has no thesis. An essay keeps the thesis. The write seat reads the writing helpers and Harvard Referencing in the server instructions. Those notes are not a source list. Keep the person the brief names. A diary keeps that brief voice and is not forced into third person. An essay or a report is not forced into first person to sound human. Ban AI-glue: do not pad with stock transitions, empty emphasis, or lines that could sit on any assignment. When no lecture, reading, or workplace detail is on the opened files, ask the student once for one real detail and use only that detail. Never invent a lecture, a reading, or a workplace detail. Do not open with a general sentence built only from the topic nouns. Do not close with an automatic In conclusion that only restates the topic. A paragraph closer must not only restate the topic sentence. Make it assignment-specific: a cited finding, a limit, or a figure. Use a connective only when the relation is true. However has to mark a real contrast. More connectives are not more coherence.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"essay_id": "<essay_id>",
"pack": "<pack>"
},
"name": "essay.pack.render_word"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pack | Yes | ||
| stage | No | ||
| essay_id | Yes | ||
| confirmPhase | No |