Sub topic 14
Measuring and improving the workflow
This chapter assumes you have read the chapters on states, review failure modes, risk tiers, and the audit trail. It also assumes you can read simple Python. You already record every transition in an audit log. That log is also your measurement data, so you don't need a separate tracking system.
Why measure
A pipeline with approval gates can look healthy while it fails. Reviewers may approve everything within minutes. Drafts may bounce back three times each. Nobody notices until a bad piece ships. A few simple numbers make these patterns visible.
Measure to find where the process needs changing. Do not use the numbers to rank individual reviewers. If people feel scored, they will game the numbers, and the data will stop telling you the truth.
Four metrics worth tracking
| Metric | How to compute it | What a bad value suggests |
|---|---|---|
| Review turnaround | Time from `in_review` to `approved` | Long: reviewers are overloaded or the queue is unclear. Very short: possible rubber-stamping. |
| Revision rate | Count of `changes_requested` transitions per item | High: briefs are weak or the rubric is unclear. |
| First-pass approval rate | Share of items with zero revision rounds | Near 100% on high-risk items is suspicious. |
| Check failure rate | Share of drafts that fail automated pre-checks | High: fix the brief, not the checks. |
Report each metric per risk tier. A high-tier item should take longer and need more revision than a low-tier one. If it doesn't, the extra approval step may not be doing real work.
Computing metrics from the log
The log from the Item class stores each transition with a timestamp, the actor, and the from and to states. Edit entries have no to key, so the code reads that key with .get.
from datetime import datetime
from statistics import median
def entry(at, old, new):
return {"at": at, "actor": "x", "from": old, "to": new, "note": ""}
def first_time(log, state):
for e in log:
if e.get("to") == state:
return datetime.fromisoformat(e["at"])
return None
def summarize(logs, fast_hours=3):
waits, revisions = [], []
for log in logs:
start = first_time(log, "in_review")
end = first_time(log, "approved")
if start and end:
waits.append((end - start).total_seconds() / 3600)
revisions.append(sum(1 for e in log if e.get("to") == "changes_requested"))
return {
"median_review_hours": round(median(waits), 1),
"revisions_per_item": round(sum(revisions) / len(revisions), 2),
"first_pass_rate": round(sum(1 for n in revisions if n == 0) / len(revisions), 2),
"fast_approvals": sum(1 for h in waits if h < fast_hours),
}
logs = [
[entry("2026-11-02T09:00:00+00:00", "draft", "in_review"),
entry("2026-11-02T15:00:00+00:00", "in_review", "approved")],
[entry("2026-11-03T09:00:00+00:00", "draft", "in_review"),
entry("2026-11-03T12:00:00+00:00", "in_review", "changes_requested"),
entry("2026-11-04T09:00:00+00:00", "changes_requested", "in_review"),
entry("2026-11-04T11:00:00+00:00", "in_review", "approved")],
[entry("2026-11-05T10:00:00+00:00", "draft", "in_review"),
entry("2026-11-05T12:00:00+00:00", "in_review", "approved")],
]
print(summarize(logs))This prints {'median_review_hours': 6.0, 'revisions_per_item': 0.33, 'first_pass_rate': 0.67, 'fast_approvals': 1}. The third item was approved in two hours. One fast approval is not proof of a problem. You should check whether that item was low risk or whether the reviewer skipped the rubric.
Turning numbers into changes
Treat each metric as a pointer to one cause, and change one thing at a time. Otherwise you cannot tell which change helped.
- High revision rate on one content type: improve the brief for that type, or add the recurring complaint to an automated check.
- Long waits: check queue size and reviewer availability before adding more steps.
- Many fast approvals: sample those items and re-review them against the rubric. If the reviewers missed problems, shorten the review batch or require a written reason for approval.
- Failures that slip through to publication: add them to the rubric or the pre-checks.
Exercise
Your high-risk content has a median review time of 10 minutes and a first-pass approval rate of 98%. Name one likely problem, and one step to check it.
Show answer
Reviewers may be rubber-stamping. Pull a sample of recent high-risk approvals and re-review them against the rubric. If you find problems that the first reviewers missed, change the process, for example by requiring written notes on each rubric item or by capping each reviewer's daily queue.