> For the complete documentation index, see [llms.txt](https://ispectra.gitbook.io/mutamad/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ispectra.gitbook.io/mutamad/concepts/editorial-workflow.md). Agents can also search and read this documentation through its [MCP server](https://ispectra.gitbook.io/mutamad/~gitbook/mcp).

# Editorial workflow

How a page goes from a draft to the public site, and who decides at each step.

<figure><img src="https://171036656-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQSekKpxOCXC1q6G2NRy9%2Fuploads%2Fgit-blob-60e6a51932a6a867f9d5e452370a0855b8291e1c%2Fdiagram-workflow.svg?alt=media" alt="Draft, In review, Published, Archived, with Submit by the editor, Publish, Return to author and Archive by the reviewer"><figcaption><p>The Mutamad workflow, on every content type.</p></figcaption></figure>

## States and transitions

| From      | To        | Action                | Who                         |
| --------- | --------- | --------------------- | --------------------------- |
| Draft     | In review | **Submit for review** | Editor, reviewer, App Admin |
| In review | Published | **Publish**           | Reviewer, App Admin         |
| In review | Draft     | **Return to author**  | Reviewer, App Admin         |
| Published | Archived  | **Archive**           | Reviewer, App Admin         |

Once submitted, a page waits for a reviewer: only *Return to author* sends it back. A published page keeps showing while a new draft of it is written and reviewed.

## What surrounds every change

|                             | How                                                                                                                          |
| --------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
| **A reason for every edit** | Saving a change to an existing page without a revision log message is refused, on every content type. New content is exempt. |
| **One person at a time**    | Content Lock holds a page for 30 minutes while someone edits it. An editor can break a lock.                                 |
| **Notifications**           | Reviewers are emailed when a page is submitted; the author when it is published or returned.                                 |
| **Audit trail**             | Every transition is recorded: who, when, from which state to which.                                                          |
| **Revisions**               | Every version is kept, and compared field by field (Diff).                                                                   |
| **Autosave**                | The edit form saves a draft in the browser as you type.                                                                      |

## The second-reviewer rule

As shipped, a reviewer may publish their own work. A site whose policy asks for a second person turns on the ECA rule **"Mutamad: an approver does not publish their own work"** (**Configuration → Workflow → ECA**, administrator). Then a reviewer cannot publish a page whose latest version they wrote:

* on the edit form
* on the *Change to* control on a page
* on Canvas pages and their translations

`mutamad-verify` checks the rule is installed and reports whether it is on.

{% hint style="info" %}
A team with a single reviewer that turns the rule on needs the administrator to publish that reviewer's own pages.
{% endhint %}

## Canvas pages

Canvas pages (the home page, About us, landing pages) publish onto the live page and have no workflow states. Mutamad applies the same rule another way (`mutamad_canvas_controls`):

* an editor builds and saves, but cannot publish
* a page an editor creates starts unpublished
* a reviewer publishes, but never a change they made themselves (when the second-reviewer rule is on)
* every publish, and every refusal, is logged

Translations of Canvas pages follow the same rule through Canvas Translate: a reviewer who did not write a translation publishes it.

## Newsletter issues

An editor writes an issue; a reviewer who did not write it sends it.

## Content shipped with the site

The sample content a new site ships with is published at installation without the review step, as the administrator. The review it stands for is the code review of `mutamad_starter`. Content written on the site always goes through the workflow.
