Sub topic 6
Who reviews: roles and separation of duties
This chapter assumes you have read the earlier chapters on content states and approval gates. It also assumes you can read simple Python and have prompted a large language model before. Here you decide who is allowed to approve a draft, and how to stop one person from controlling the whole path to publication.
Why roles matter
An approval gate only works if the person at the gate is qualified and independent. A gate that the author can open alone is not a gate. Separation of duties is the rule that no single person performs every step that matters. The person who writes the content does not also approve it.
With AI drafts, the "author" is slightly unusual. The model writes the text, but a person submits it and owns the brief. That person counts as the author for this rule.
Common roles
Most workflows need only a few roles. One person may hold several roles over time, but not on the same item.
| Role | Responsibility | May approve? |
|---|---|---|
| Author | Writes the brief, runs the AI draft, edits, and submits | No, not their own item |
| Subject reviewer | Checks facts, claims, and technical accuracy | Yes |
| Editorial reviewer | Checks tone, style, clarity, and the brief | Yes |
| Compliance or legal reviewer | Checks regulated claims, privacy, and rights | Yes, for higher-risk items |
| Publisher | Releases approved content to the channel | No approval power |
The publisher role is deliberately narrow. The publisher presses the button but cannot change the text or grant approval. The publish check from the earlier chapter compares the text with the approved hash, so a publisher cannot slip in an edit.
Enforcing separation in code
The state machine from the previous chapter already refuses approval from the author. That one check is the core of the rule:
def approve(self, reviewer):
if reviewer == self.author:
raise PermissionError("the author cannot approve their own item")
self._move(State.APPROVED, reviewer)
self.approved_digest = digest(self.text)A name comparison is the minimum. Real systems also check that the reviewer holds the right role. The sketch below adds that check and shows who may do what:
ROLE_PERMISSIONS = {
"author": {"submit", "revise"},
"subject_reviewer": {"approve", "request_changes"},
"editorial_reviewer": {"approve", "request_changes"},
"compliance_reviewer": {"approve", "request_changes"},
"publisher": {"publish"},
}
def allowed(roles, action):
return any(action in ROLE_PERMISSIONS[role] for role in roles)
print(allowed({"author"}, "approve"))
print(allowed({"subject_reviewer"}, "approve"))
print(allowed({"publisher"}, "revise"))The three calls print False, True, and False. Keep the permission table in one place so you can audit it. Do not scatter role checks across the codebase.
Where the pipeline splits duties
Pitfalls
Separation of duties fails quietly in a few common ways.
- Shared accounts. If two people use one login, you cannot tell who approved. Give each person their own identity.
- Role creep. A reviewer who is also the brief owner has a stake in the result. Check roles per item, not per person.
- Self-approval by proxy. An author asks a friend to approve without reading. Independence needs competence as well as a different name.
- Single reviewer bottleneck. If only one person holds a role, work stalls and people look for shortcuts. Train at least two reviewers per role.
For higher-risk content, require more than one approver, and count only people other than the author. The next chapters cover how automated checks and rubrics support these reviewers.
Exercise
A writer runs an AI draft, edits it, and then approves it because "I know the topic best." Which principle does this break, and what is the fix in the workflow?
Show answer
It breaks separation of duties, because the author is also the approver. The fix is to block approval when the reviewer is the author, as in the approve method, and to route the item to a subject reviewer who did not write or submit it.