Manuscript revision
In Academic Harness: the tool diffs and extracts. It never edits either source, never invents a change, and never marks an item addressed without a recorded hunk behind it.
Workflow
- Snapshot the two versions. Keep the submitted/first version and the revised version as separate files. Do not overwrite the old file.
- Diff.
manuscript_diffaction: "diff"witholdandnew:.tex→latexdiffoutput plus an optional compiled PDF; iflatexdiffis missing the tool returnsnot_installedand writes nothing..md/.txt→ unified diff.
- Extract changed blocks.
action: "changes"writeschanges.jsonandchanges.mdunder.dsh/manuscript-diff/<slug>/; each block has an id likech-001. - Read reviewer comments. In an
ah.yamlproject, import them withah_reviewand letmanuscript_diffaction: "letter"withreview: <id>build the letter throughah_review_respond. Outside that project, passitemswith{id, text, response, status, change_ids}. - Map, do not assume. Every
change_idmust exist inchanges.json. An item markedaddressedwithout a matching change is flagged in the letter and returned inunresolved. A response with no change is a rebuttal, not an addressed revision; say so. - Let the authors write the responses. The tool supplies placeholders and the real hunks, never the argument or the prose.
DOCX
action: "docx" extracts tracked insertions/deletions, comments, and
Zotero/CSL field text from word/document.xml. It reports them; it does not
accept changes or rewrite the document. Pass an optional old DOCX to compare
the extracted text of both versions.
Guardrails
- Never edit either source file; only write the diff, changes, and letter.
- Never claim an addressed item when no hunk supports it.
- Never normalize away comments, tracked changes, or Zotero fields.
- A compiled diff PDF is a convenience, not evidence that the revision is complete.
latexdiffmissing → reportnot_installed; do not silently fall back to a hand-edited "diff".
Related
ah_review,ah_review_set,ah_review_respondinside anah.yamlproject.manuscript_citationsafter the revision.submission_packfor the resubmission bundle.