Each output answers one question
A station run leaves things for people to read. Each one answers a different question, so each fact has one obvious home.
| Output | Answers | Lives |
|---|---|---|
| The run report | What happened in this run, and what needs me? | On the run's record. One per run. |
| The workpiece's files | What was done to this piece of work, and on what evidence? | In the workpiece folder, travelling with the work |
| Supporting documents | How did the run reach what its report says? | On the run's record, next to the report |
The run's output, what the station's code returns, is not on this list. It holds counts and ids for the run's record, not something a person reads.
The run report
The report is where a person starts. It covers the whole run: how many workpieces went through, which failed and why, what someone has to do next. It names each workpiece it mentions, so the reader can open the folder. How to write one: A report someone can act on.
The workpiece's files
What a station learned about one piece of work goes into that workpiece: what it extracted, what it checked, what the outside system answered. The files ride with the work, so the next station reads them and anyone holding the folder sees the whole history. See Workpieces.
Supporting documents
A supporting document is evidence attached to the run's record, so a reviewer reads it where they read the report. Write one when a station does something a reader may ask "how?" about:
| The station | The document shows |
|---|---|
| Fetches data | What came back |
| Calculates | The inputs and the result |
| Compares | Both values and the difference |
| Decides a status | The values and the rule that led to it |
| Asks a model (code first) | What it was given and what it answered |
A station that only reshapes data, sends a notification or updates another system makes no claim to prove. Its result goes in the report.
Nothing twice, nothing missing
Two tests on the whole set of outputs:
- Nothing twice. Pick any fact. If it is in two outputs, delete it from the one where it doesn't belong. A total shown in both the report and the evidence will one day disagree with itself.
- Nothing missing. Ask "how do you know?" about any line of the report. The answer must be in a workpiece file or a supporting document. A report that says "balance: matches" with nothing showing the two balances proves nothing.
Which output owns a fact follows from what kind of fact it is: see Facts apart from conclusions.
Related
- Report a run: attaching the report and supporting documents in Assembly Line
- Nothing leaves silently: what the report must count, including skips