Specification Review
Reads a written specification as the people who must build, test and run from it will, and finds every place where they would have to guess.
Deliverable
One Markdown document, specification-review.md, in the structure set out under Output below. It reviews the document before anything is built from it, it sends the questions it raises back to the specification's author, and it leaves the specification itself untouched.
Required inputs
- The specification — the document under review, in full, with its version or date.
- The people who must act on it — the roles that will build, test, operate or approve from it, named, so each is read as a separate reader.
- What it is for — the decision, build or agreement the specification supports.
If the specification is absent, stop and report it. If the readers or the purpose are not named, continue, record them as unknown, and review for a general engineering reader while stating plainly that a review written for nobody in particular will miss what a named reader would catch.
Optional inputs
- The request or need the specification answers
- A glossary, or the documents that define the terms it uses
- Related specifications it must agree with
- Earlier versions, and what changed between them
- The template or standard it is meant to follow
- Questions the readers have already raised
Absent optional inputs do not stop the review. Each becomes a line saying what could not be checked and who holds the material that would check it.
Execution
1 — Read as each named reader. For each role: what do they need from this document in order to do their work, and where would they have to stop and ask? Record the answers as that reader's needs; they are the standard the rest of the review applies.
2 — Split the specification into statements. One line per requirement, each with its location. A sentence that holds two requirements becomes two lines; a requirement spread across sections is recorded once, with every place it appears.
3 — Test each statement. It is ambiguous where more than one reading is possible: an unbounded quantity, an undefined comparison, a vague quality word, or an action with no actor. It is untestable where no observation could show it met. It is incomplete where the actor, the condition or the outcome is missing. It is contradictory where another statement cannot hold at the same time, in which case both are cited. It is duplicated where it restates another in different words that could drift apart.
4 — Check the terms. Every term used in more than one place is used in one sense; every term a reader might not know is defined or points to a definition. Two terms for one thing, and one term for two things, are both findings.
5 — Check coverage against what the readers need. For each reader's needs from step 1: is the answer in the document? Silence is a finding only where a reader needs the answer. Usual gaps are the failure cases, the limits, the data involved, who may do what, and what is explicitly out of scope.
6 — Check ownership. Every requirement that has no named owner, and every decision the document defers without saying to whom.
7 — Check traceability. Each requirement to the need it serves, and each need to the requirement that meets it. A requirement that serves no stated need, and a need that no requirement meets, are both recorded.
8 — Write each finding as a question. The quoted text, its location, its kind, what would happen if it were built as written, and the question to the author that would resolve it. The review proposes no wording and makes no decision on the author's behalf.
9 — Order by the cost of building the wrong thing. What would be built or tested incorrectly if a finding went unresolved, weighted by how far the error would travel.
Output
specification-review.md, in this order:
- 1. Document and readers — the specification, its version, each reader and what they need
- 2. Statements — each requirement with its location
- 3. Findings — each one: quoted text, location, kind, consequence, and the question that resolves it
- 4. Terms — terms used in more than one sense, terms with two names and terms left undefined
- 5. Coverage — per reader need: answered in the document or silent
- 6. Ownership — requirements without an owner and deferred decisions without a recipient
- 7. Traceability — requirements serving no stated need and needs no requirement meets
- 8. Order of resolution — findings ranked by the cost of building the wrong thing
- 9. What could not be checked — missing inputs and who holds them
Validation
The report is ready when all of these hold:
- Every requirement in the specification appears in section 2 exactly once
- Every finding quotes the text it is about and gives its location
- Every finding is one of ambiguous, untestable, incomplete, contradictory or duplicated, and ends with a question
- Both statements of a contradiction are cited
- Section 5 has a line for every need recorded in section 1
- No replacement wording, decision or figure appears that no input supplied
Fail the run if the report rewrites the specification, answers a question it raised, or lists a finding without quoting the text it concerns.
Failure handling
- No specification supplied — stop. Report that a review cannot be written about a document nobody has provided.
- Only part of the specification supplied — review that part, mark the remainder
NOT REVIEWED — pending <material>, and state that coverage findings only hold for what was read.
- The readers are unknown — review for a general engineering reader, list in section 9 the readers whose needs could not be tested, and name who would know them.
- The specification cites documents that were not supplied — record each reference, mark every statement that depends on it
unverified, and list the documents to provide.
- Partial material — review what the material supports, mark the rest
NOT REVIEWED — pending <material>, and deliver.