Sub topic 6
Checking a matrix for gaps, duplicates, and overload
This chapter assumes you can read a RACI matrix and know the four roles: Responsible, Accountable, Consulted and Informed. It also assumes you know that each task has exactly one Accountable owner. The code is Python 3.8 or later and uses only the standard library. If you can read a loop and a dictionary, you can follow it.
A matrix can look finished and still be wrong. A task may have nobody to do it, two people may each assume they have the final say, or one person may hold half the cells. These faults are easier to catch with a repeatable checklist than by reading the table once and nodding.
Three kinds of defects
Every problem in a RACI matrix falls into one of three groups. Each group is checked in a different direction.
| Defect | What it looks like | Where you find it | Typical consequence |
|---|---|---|---|
| Gap | A task has no Accountable, or no Responsible | Reading across a row | The work is assumed to be someone else's and nobody does it |
| Duplicate | A task has two or more Accountable owners | Reading across a row | Conflicting decisions, or each owner waits for the other |
| Overload | One role carries too many R or A marks, or is Consulted on a large share of tasks | Reading down a column | Bottlenecks, slow approvals, and burnout |
Gaps and duplicates are rule violations. A row either has exactly one A or it does not. Overload is a judgment call, because "too many" depends on team size and on how big each task is. Keep the two apart. Rule violations should block publication of the matrix. Overload findings are warnings that need a human decision.
Row checks: gaps and duplicates
Each row must pass two tests.
- Exactly one cell contains an A. A cell marked
A/Rcounts as an A. - At least one cell contains an R. A cell marked
A/Rcounts as an R.
Several people may be Responsible for one task. If two developers share a feature, both can carry an R. Several Accountable owners are never allowed, because accountability is the single point where a question stops.
The cases to look for
- Zero A. Nobody will answer for the outcome. This often happens with chores such as release notes, where everyone is Informed and nobody is named.
- Two or more A. This usually happens when a sponsor and a product owner both feel they own a budget decision. Decide who is Accountable and downgrade the other to C or I.
- Zero R. Someone is Accountable but nobody does the work. This happens when the A is a senior person who is not expected to do the task, and the doer was never added. Add the doer as R.
- A without R in a different person is fine. A manager can be A while an analyst is R. Only the absence of any R is a defect.
A/Ron a large task. It is legal, but it means the person does the work and answers for it. That is fine for small tasks. For a risky task it removes the independent check that a separate Accountable owner provides.
Cell-level checks
Before counting letters, check each cell. Two kinds of error slip through a count:
- Invalid codes. A cell holding
X,ArorR,Cis not a valid assignment. Allow onlyR,A,C,IandA/R. - Unknown roles. A column that appears in a task row but not in the roles list usually means a rename left stale data behind.
> Some teams allow two letters in a cell, such as C/I. If yours does, decide the allowed set once and write it into the validator. A checker that accepts anything cannot catch typos.
Column checks: overload and idle roles
Reading down a column answers a different question: is the work spread sensibly? Count the letters per role and look for these patterns.
- Too many R. One person is Responsible for a large share of tasks, which makes that person a bottleneck.
- Too many A. An Accountable owner has to review, decide and answer for every task they own. A person who is Accountable for most of the matrix cannot give each task real attention, so approvals queue.
- A high Consulted share. A role that is Consulted on a large fraction of tasks gets interrupted constantly. Consulted is two-way communication, so every C costs the consulted person time.
- An idle role. A role with no marks at all is in the matrix by mistake, or the project is missing work that role should do.
- A role with only I marks. This is not an error, but ask whether that person needs to be on the matrix at all or would be better served by a status report.
Thresholds are heuristics. A team of three cannot spread work as thinly as a team of thirty. Pick limits that suit the project, write them down, and treat a breach as a prompt to look, not as proof of a mistake.
Automating the checks
You can do all of this by eye on a small matrix. Past about ten tasks, a script is faster and does not get tired. The following program checks rows and columns separately and prints one line per problem.
from collections import Counter, defaultdict
VALID_CODES = {'R', 'A', 'C', 'I', 'A/R'}
def check_rows(matrix, roles):
"""Gaps, duplicates, invalid codes, unknown roles."""
problems = []
for task, cells in matrix.items():
for role, code in cells.items():
if role not in roles:
problems.append(f'{task}: unknown role {role!r}')
if code not in VALID_CODES:
problems.append(f'{task}: {role} has invalid code {code!r}')
codes = list(cells.values())
accountable = sum('A' in c for c in codes)
responsible = sum('R' in c for c in codes)
if accountable != 1:
problems.append(f'{task}: expected 1 Accountable, found {accountable}')
if responsible < 1:
problems.append(f'{task}: no one is Responsible')
return problems
def check_columns(matrix, roles, max_responsible=4, max_accountable=3,
max_consulted_share=0.4):
"""Overload and idle roles. Limits are heuristics, not rules."""
load = defaultdict(Counter)
for cells in matrix.values():
for role, code in cells.items():
for letter in code.split('/'):
load[role][letter] += 1
total = len(matrix)
problems = []
for role in roles:
counts = load[role]
if sum(counts.values()) == 0:
problems.append(f'{role}: no assignments in any task')
continue
if counts['R'] > max_responsible:
problems.append(
f'{role}: Responsible for {counts["R"]} of {total} tasks '
f'(limit {max_responsible})')
if counts['A'] > max_accountable:
problems.append(
f'{role}: Accountable for {counts["A"]} of {total} tasks '
f'(limit {max_accountable})')
share = counts['C'] / total
if share > max_consulted_share:
problems.append(
f'{role}: Consulted on {counts["C"]} of {total} tasks '
f'({share:.0%})')
return problems
roles = ['Product owner', 'Business analyst', 'Developer', 'QA',
'Designer', 'Sponsor']
matrix = {
'Write requirements': {'Product owner': 'A', 'Business analyst': 'R',
'Developer': 'C', 'QA': 'C', 'Sponsor': 'I'},
'Set up build pipeline': {'Developer': 'A/R', 'QA': 'C'},
'Build feature': {'Product owner': 'C', 'Developer': 'A/R',
'QA': 'I', 'Sponsor': 'I'},
'Test feature': {'Product owner': 'I', 'Developer': 'C', 'QA': 'A/R'},
'Fix defects': {'Developer': 'A/R', 'QA': 'C'},
'Deploy release': {'Developer': 'A/R', 'QA': 'C', 'Sponsor': 'I'},
'Update documentation': {'Business analyst': 'A', 'Developer': 'R'},
'Approve budget': {'Sponsor': 'A', 'Product owner': 'A', 'Developer': 'I'},
'Write release notes': {'Product owner': 'I', 'Business analyst': 'I',
'Developer': 'I'},
}
for problem in check_rows(matrix, roles) + check_columns(matrix, roles):
print(problem)
# Approve budget: expected 1 Accountable, found 2
# Approve budget: no one is Responsible
# Write release notes: expected 1 Accountable, found 0
# Write release notes: no one is Responsible
# Developer: Responsible for 5 of 9 tasks (limit 4)
# Developer: Accountable for 4 of 9 tasks (limit 3)
# QA: Consulted on 4 of 9 tasks (44%)
# Designer: no assignments in any taskHow the code works
check_rows is the row-level checker from the chapter on single accountability, extended with the cell-level checks. Because 'A' in 'A/R' is true, an A/R cell counts toward both the Accountable and Responsible tallies. That is the intended behavior.
check_columns turns each cell into letters with code.split('/'), so A/R adds one to the A count and one to the R count for that role. A Counter returns 0 for a missing letter, which keeps the comparisons simple. The continue after the idle-role message skips the other checks, since an empty role cannot be overloaded.
The matrix leaves blank cells out of the dictionaries. A missing key means the role has no involvement in that task. Do not store an empty string for blank cells, because the empty string would fail the VALID_CODES test.
Reading the load table
The same counts, laid out per role, show where the weight sits. An A/R cell adds to both the R and A columns.
| Role | R | A | C | I |
|---|---|---|---|---|
| Product owner | 0 | 2 | 1 | 2 |
| Business analyst | 1 | 1 | 0 | 1 |
| Developer | 5 | 4 | 2 | 1 |
| QA | 1 | 1 | 4 | 1 |
| Designer | 0 | 0 | 0 | 0 |
| Sponsor | 0 | 1 | 0 | 3 |
The Developer row stands out. The developer is Responsible for five of nine tasks and Accountable for four. QA is lightly loaded on R and A, but is Consulted on four tasks, so QA spends time answering questions instead of doing work. The Designer column is empty.
Deciding what to do with each finding
A finding is a question, not a fix. The script shows where to look. You still have to decide who should own the task.
- Approve budget (two A, no R). The sponsor and the product owner both claim the decision. Ask who can actually approve spending. If it is the sponsor, change the product owner to C. Then name the person who prepares the budget paperwork as R, for example the product owner. Two roles can be involved without both being Accountable.
- Write release notes (no A, no R). Everyone is informed and nobody writes. Choose a writer as R. Make the product owner or business analyst A, or mark one person
A/Rbecause the task is small. - Developer overload. Several tasks are
A/Rfor the developer. Options are to split the role into two people, move documentation to the analyst asA/R, or let QA take ownership of deployment. Moving an A to someone else without moving the work can create a new gap, so rerun the checks after every change. - QA consulted often. Four consultations over nine tasks may be fine. If QA complains of interruptions, replace some Cs with Is, and hold a single review session instead of four separate conversations.
- Empty Designer column. Either remove the role from this matrix, or add a task the designer should own, such as a user-interface review. An empty column often reveals a missing task.
> Each C is a conversation that costs the consulted person time. Before keeping a C, ask what decision or work product the consultation will change. If the answer is none, make it an I.
Edge cases
- Group roles. A cell for "the team" or "Engineering" cannot be held to account. Use it only for C and I. An A or R should name a role that maps to a person, or at least to a single manager who answers for the group.
- Vacant roles. If the person for a role has not been hired yet, the matrix still passes the checks, but the work has no actual doer. Track vacant roles separately and flag them in your review.
- Rows that are too coarse. "Manage project" with a single A and R passes every check and says almost nothing. The validator cannot judge task granularity, so review the task list as well.
- Large matrices. Fifty rows and fifteen columns will produce many warnings. Run the row checks first and fix every violation before you look at column warnings, since fixing a row often shifts the column counts.
- Different limits per role. A product owner who is Accountable for six tasks may be fine, since A mostly means deciding and reviewing. A developer who is Responsible for six tasks is doing six pieces of work. If you do this, pass limits per role instead of one global limit.
- RASCI. If you add a Support letter, extend
VALID_CODESand the counts. Support should never satisfy the Responsible check.
The order of checks
Run the checks in the same order every time. Row rules come first because they are absolute. Column warnings come second because they depend on who owns what once the rows are correct.
Note that a rebalancing decision loops back to the row checks, not to the column checks. Moving an A or an R changes a row, and the row might now be invalid.
Putting the checks into practice
- Run the validator whenever the matrix changes. Store the matrix and the script in the same repository so the history shows who changed an assignment and when.
- Treat row violations as errors that fail the check, and column findings as warnings that need a reviewer's sign-off. A script that exits with a non-zero status on row errors can be wired into a review step.
- Record accepted warnings next to the matrix with a short reason, for example "Developer is R on 5 tasks; accepted until the second developer starts in March". This stops the same warning from being argued every week.
- Have someone other than the author read the output. People who built the matrix tend to read their own intentions into it.
Exercise
A matrix row reads Run security review | Security lead: A/R | Developer: C | Product owner: A. The validator runs check_rows. What does it report, and what is a reasonable fix?
Show answer
It reports "Run security review: expected 1 Accountable, found 2". The Security lead's A/R and the Product owner's A both count as Accountable, but the Responsible check passes because of the A/R. A reasonable fix is to decide who answers for the review's outcome. If it is the security lead, change the Product owner to I or C. If the Product owner must approve the result, make the Product owner the single A and change the security lead to R.
Exercise
A project has 10 tasks. The Tester role is Consulted on 6 of them and has no R or A marks. With max_consulted_share=0.5, what does check_columns report for Tester, and why might that matter even though the role has no heavy R or A load?
Show answer
It reports "Tester: Consulted on 6 of 10 tasks (60%)", because 6/10 is above 0.5. The role has no work to do on those tasks, but each consultation takes time to answer. A role that is only consulted becomes a stream of interruptions. The team should check whether some Cs can become Is, or whether the Tester should own a task such as test planning so that the role has real work.
Exercise
You fix an overloaded Developer by changing Update documentation from Developer R to Business analyst R, but you forget the A. The Business analyst was already A on that row. What does the validator report after your change, and does the row pass?
Show answer
The row passes. The Business analyst's cell was A, and changing the Developer's R to the analyst means the analyst's cell must now be A/R, or another person must be R. If you only deleted the Developer's R and left the analyst as A, check_rows reports "Update documentation: no one is Responsible". If you changed the analyst's cell to A/R, the row has one A and one R and passes, and the Developer's R count drops from 5 to 4, which clears the Responsible warning.