Draft, review, publication: a state model for one article

Separate revision readiness from page visibility: allowed transitions, author decisions and ten scenarios that preserve accepted content until an explicit replacement.

Three paper forms as a metaphor for work on an article, from a draft to a prepared copy.

An article is already available to readers, but the author has found a clearer explanation and started the next revision. What does the “draft” status mean now? If it belongs to the entire article, it is unclear whether the page should be hidden. If editing changes the public text immediately, the reader sees material that has not yet been reviewed. One “ready” field cannot describe both situations adequately.

I propose separating the state of a particular revision from the decision to display it. Accepted content remains unchanged, new work gets its own revision, and publication explicitly selects which revision readers receive. Below is a neutral model for a personal journal. It is a proposed set of rules, not a description of Admin's internal implementation or automation that is already running.

In “Article: how a personal journal becomes a product”, I outlined the path from manuscript and preview to publication. We can now formulate conditions that can be checked: who performs an action, which revision it concerns, what changes, and what must not happen.

Two entities instead of one ambiguous status

An article has a stable identity. Its revisions have separate labels, such as r1 and r2. These are illustrative names, not record numbers in a particular system.

A revision contains an agreed set of texts, metadata, and references to specific media files. In our example, that set covers uk, ru, and en. The revision state answers “what do we know about this particular set's readiness?”. The page state answers a different question: “may it be displayed, and which revision has been selected?”.

Object What the model stores Purpose
Revision Identity, content, change version, state, review decision Avoid accepting unknown or changed text
Page hidden or visible, an active_revision reference, a decision version Select the public revision without changing manuscripts

While r2 is being edited, active_revision can remain set to r1. The reader receives accepted material while the author works on the next version. Creating a draft is neither publishing nor hiding the page.

Four states of a particular revision

State Meaning Can its content change?
draft Work is still in progress Yes, with a change to the content version
in_review A specific set has been submitted for review No; return it for revision first
accepted The author has accepted this particular set No; create another revision for changes
withdrawn Previous acceptance has been withdrawn with an explanation No; make the correction in another revision

Acceptance concerns defined content, rather than an article title in general. That content also includes translations, headings, summaries, and the cover. Replacing an image at the same reference changes the presentation without changing the text. Media therefore needs to remain tied to a specific immutable version or defined file.

The withdrawn state handles a substantial error discovered after acceptance. It preserves the decision's history but prohibits publishing that revision again. A hidden page and a withdrawn revision are different things: material can temporarily be kept out of view without rejecting its content.

Allowed transitions and their conditions

Action From To Required condition
Submit for review draft in_review A specific version of the complete set is fixed
Return for revision in_review draft A reason is recorded; the old review decision no longer applies
Accept in_review accepted Checks are complete and the author has approved the unchanged set
Withdraw acceptance accepted withdrawn A reason exists; this revision is not currently displayed to readers
Start the next revision accepted or withdrawn A new draft A new identity is created and the original content is preserved

The last row creates another revision. It does not turn accepted content back into a draft. After r2 is created, the history of r1 continues to explain what readers previously saw.

Returning from review does not require a new revision number if the revision has not yet been accepted. However, every edit must change its content version. The next review concerns that new version; the previous “reviewed” mark is not carried over automatically. Even a punctuation correction should be visible to the version mechanism, although the author's repeat review may be brief.

One author, several responsibilities

My journal has one author. Roles here describe different decisions made by one person, not an invented editorial staff. When writing, I am responsible for the content; when reviewing, for its consistency with sources and the example; when publishing, for selecting the material the reader will see.

Automation can prepare a translation, check that files exist, compare code blocks, or carry out an already authorised action. That result does not replace the author's acceptance. The benefit is a clear view of which responsibility has been fulfilled, rather than several identical confirmations with no substance.

Permission Allowed actions Boundary
Preparation Edit draft, submit for review, return for revision Does not create author acceptance
Author decision Accept or withdraw a revision with an explanation Does not change display automatically
Display management Publish, hide, display again Enforces the conditions for selecting an accepted revision

The author can hold all these permissions. A technical operator acts only within the assigned operation; access to files does not itself grant the right to accept or publish material.

Permission to edit a draft is not the same as permission to change the public selection. For each action, the model requires a check of the relevant authority, current state, and version. A button being available when a page was opened does not mean its conditions still hold when the change is saved.

Publication changes the page's selection

Two visibility states are sufficient for the page. hidden means public display is not permitted. visible records the decision to display the selected revision. The page's actual availability must be checked separately after a change: a stored status does not prove that routing, media, or caching works.

The model's central rule is that a page in visible always has an active_revision, and that revision is in accepted. A hidden page may retain its previous reference for historical purposes, even if acceptance is later withdrawn.

Action Preconditions Result
First publication An accepted revision exists, files and presentation are prepared, and publication is authorised active_revision selects the revision and the page becomes visible
Replace the public revision The new set is in accepted; the previous selection matches the expected one The reference changes to the new set without editing the old one
Hide The relevant authority and a current decision version are available The page becomes hidden; acceptance of the text is retained
Display again The retained revision is still accepted; publication conditions have been checked again The page becomes visible with the same set

Acceptance alone does not perform any action in this table. The author can prepare several articles and choose their release times later. Similarly, hiding a page neither deletes its text nor turns it back into a draft.

If the current material contains a dangerous or substantial error, stop displaying it first, then withdraw acceptance with a reason. Ordinary “display again” is prohibited after that. A corrected revision goes through review separately. For a minor clarification, the accepted text can remain available until the next set is ready.

What review should establish

For the three-language example, I choose publication of a complete set. This is an editorial decision in this model, not a universal rule for all multilingual sites. If one language is not ready, the new set is not accepted; the previous public set can remain available.

Area Question before acceptance
Content Do the claims agree with the sources and the example's limits?
Practice Are completed checks distinguished from plans and expectations?
Languages Do uk, ru, and en convey the same content without adding facts?
Metadata Do the title, summary, and description match the actual material?
Media Does the required file exist, and does its alternative text describe it?
Links Do they lead to the intended articles and language versions?

After the original explanation changes, a translation does not become current merely because its file exists. The changed meaning needs to be compared again. A structural check helps find an omission but does not establish semantic equality.

An acceptance record should show who made the decision, which revision and version they reviewed, which comments they resolved, and when it happened. Writing time, acceptance time, and first publication describe different events. Updating the text must not silently masquerade as a new first release.

Prohibitions that make the model clear

Attempt Why it is rejected What to do instead
Display draft or in_review There is no accepted set Complete review and select publication separately
Change the body of accepted It would no longer correspond to the acceptance decision Create the next revision
Accept a version changed after it was inspected The decision concerns different content Read the current version again
Display withdrawn Acceptance was explicitly withdrawn Prepare and accept a new revision
Withdraw a revision that is still visible It would violate the visible-page rule Hide it or replace the public selection first
Perform an action from an old tab The state or selection may already have changed Compare the current version and reassess the decision

Two tabs belonging to the same author are enough to create the risk of an outdated decision. One may be reviewing old text while the other saves corrections. The version check and state change must therefore be one coordinated implementation step. An independent “is this allowed?” check long before the write does not provide that guarantee.

Walk through concrete situations

These are scenarios for checking the rules, not a report of application tests that have been run. They can be walked through on paper and later used as acceptance criteria for an implementation.

Situation Expected result
r1 is in draft, the page is hidden, and publication is attempted Rejected; no public selection appears
r1 has passed through in_review and become accepted The page remains hidden until publication is performed
Accepted r1 is published visible, active_revision = r1
From r1, a new r2 is created r2 is in draft; the reader continues to receive r1
r2 is returned from review for revision Only its editorial work changes; display of r1 continues
Accepted r2 is explicitly selected for publication active_revision = r2; the content of r1 is preserved
The current page is hidden without withdrawal hidden; r2 remains accepted
After hiding, acceptance of r2 is withdrawn r2 is in withdrawn; displaying it again is prohibited
The new cover file has not been prepared Replacement does not happen; the previous public selection is retained
An old window tries to apply another selection Rejected because it does not match the current decision version

A retry of the same publication should recognise the decision already performed. It does not create another revision or move the first release date. Notifications, search indexing, and cache updates need their own result checks; they should not be treated as successful merely because the revision reference changed.

Where Symfony can help

Symfony describes a process through states and transitions. For a revision that occupies only one state at a time, state_machine is appropriate; its difference from a workflow with several simultaneous states is explained in the official documentation.

Transition conditions can be checked through guards. Symfony invokes them during can() and apply(), as described in the Workflow documentation. However, our state names, the complete three-language set, the immutability of accepted content, and selection of the public revision are this model's own rules.

The component helps express an allowed transition. Version storage, permissions, coordinated writes, media preparation, and checks of the actual page remain separate implementation responsibilities. A state diagram is not evidence that all of this already works.

The practical result of this separation is that every change can identify a specific revision, explain the current decision, and predict what the reader will see. The next draft does not affect accepted content, hiding does not erase history, and publication remains an explicit selection of a ready set.

  1. Editorial Three languages, one article: how to spot an outdated translation
  2. Symfony Core Editing a published article: how to avoid losing another edit
  3. Editorial Correcting an article without broken links or silently rewriting history
  4. Editorial Article: how a personal journal becomes a product