How Manulyx keeps the version you submitted
When a paper comes back from review, one of the first questions is what, exactly, the reviewers read. The answer is “whatever the file said on the day it was sent”, and by then the file has usually moved on. In Manulyx the version you sent is kept in the project as a stage that cannot be changed. This article explains how that works and what we do to make sure it holds.
A stage is a set of files at one point in a paper’s life
A project with stages groups its files by where the paper was when they were written: the draft, each submission, each revision and, after acceptance, the final files sent to the publisher. The stages are shown in the file list in the order they happened, oldest first, with the stage you are working in last.
Manulyx never infers a step. Compiling the manuscript or downloading its PDF is not a submission, and nothing is sent to a journal on your behalf. A step is recorded when the project’s owner or a co-owner says it happened, and the server checks that the person recording it holds one of those roles.
Marking a stage submitted freezes it
When you mark the draft submitted, its files move into a new submission stage, and that stage is frozen from that moment. Manulyx also saves a version of the whole project automatically each time a stage is sent. A stage cannot be marked submitted while tracked changes are still waiting in it, so what is frozen is a text somebody has decided on.
Frozen means read-only, not inert:
- a submitted stage can still be opened, read, compiled, copied from and downloaded;
- it cannot be edited, uploaded into, or have its files renamed or deleted. The lock is checked on the server by every route that writes files, and the editor locks the stage whether or not the live connection is up, so a refusal never arrives later as a failed save;
- the only things ever added to it are filings that belong to the round, such as the decision letter and the reports that came with it.
The record of the submission itself, and of every decision recorded against it, is a row the database refuses to alter. That rule is enforced by the database itself, not only by our code, so a mistake in the application cannot rewrite what a submission says.
The next stage opens from it
Recording a decision opens the stage that follows from it, and the files are copied into it rather than moved. The submitted stage stays exactly as it was sent.
- Revision requested opens Revision 1 (then 2, and so on) with a copy of the submitted files, the reviewers’ comments and a drafted response letter.
- Accepted opens a Final files stage, copied from the accepted round.
- Rejected or Withdrawn copies the files back into a working draft so the paper can be prepared for somewhere else. The submitted round stays as the record.
A thesis, a conference paper, a technical report or a grant proposal uses its own words and outcomes for the same mechanism; see Stages for every kind of document.
Because every round is kept, a revision can be compared exactly with the version it revises, file for file. That comparison is what the marked manuscript is built from; see How the marked manuscript is built.
How a decision is recorded
You paste the decision email, attach the letter and the reports (PDF, Word .docx or plain text), or both. Manulyx reads them and pre-selects the outcome the letter appears to give, but the choice is always yours, and the dialog says what each outcome will do before you confirm it. The letter and its attachments are filed with the round, beside your own files and never over them.
Every act on a stage runs as a single transaction while holding a lock on the project. It happens completely or not at all, and two people changing a project’s stage at the same moment are handled one after the other rather than at once.
Correcting a step without rewriting the record
A step recorded by mistake can be corrected, under one rule: only the last thing that happened can be undone. When an act is refused, the message names what has to be undone first.
- A submission is taken back from its status badge, as long as nothing has answered it yet. Its files move back to the draft, all of them or none. The record of the submission is not erased: a separate entry marks it as taken back.
- A decision is undone by deleting the stage it opened. The decision is then withdrawn, kept and marked as withdrawn, and the paper is back with the journal, waiting for the right decision to be recorded. An outcome that opens no stage, such as a thesis fail or an approved deliverable, is undone with Reopen.
- Deleting a stage is allowed only for the last stage, and only for one a decision opened. Its files are marked deleted rather than erased, and can be restored from the Trash for 30 days. The submitted stage it was copied from is never touched. A new draft after a rejection that holds work existing nowhere else is not deleted; the message names the files.
Nothing that was sent is deleted by the workflow
No act in the stage workflow erases a file. Files are marked deleted, never removed on the spot, and a submitted stage cannot be deleted at all; to change one, it has to be taken back first. Stage folders belong to the workflow: no upload, rename or new folder can create a folder that looks like a stage and was not opened by one.
A project with a submission on record is not removed from the Trash automatically after 30 days, as other projects are. It stays until its owner deletes it permanently, and that is the only way the record of a submission goes. At any time, anyone who can read a project can download all of it as a ZIP archive, including its saved versions, submissions, decisions and reviewer comments.
How we hold ourselves to this
These rules are written down in a document the code answers to. Every act on a stage has a single implementation, which every page that changes a stage calls, and the rules are held up by automated tests of the stage engine. When the code and the rules disagree, we treat the code as wrong.
More articles
- After a rejection: moving a paper to another journal's template
- Checking your references for retracted papers before you submit
- How to convert a Word document to LaTeX (equations included)
- How to write a response letter to reviewers
- How to make a marked (tracked-changes) manuscript in LaTeX
- Fixing common BibTeX and biblatex errors
- Choosing and setting up a thesis template in LaTeX
- How the marked manuscript is built
- How co-editing keeps your work safe
- All articles