Classify before you present
Raw records show how the source system stores things, not what they mean to the reader. A station earns its place by sorting them into the reader's categories before anyone sees them.
acme's accounting system files 57 vendors under one type, "Supplier". Its finance lead thinks in software, contractors and travel:
Raw: what the system says Classified: what it means to the reader
Cloudhost Inc Supplier 4,200 Software 21 vendors 6,950
Northwind Design Supplier 3,000 Contractors 14 vendors 11,400
Skyline Air Supplier 1,150 Travel 18 vendors 2,780
… 54 more rows Unclassified 4 vendors 310
A list of 57 rows makes the reader do the sorting. The classified view is the work the station did. Which output holds the raw rows and which holds the classified view: see Facts apart from conclusions.
Rules a reviewer can read
A classification is only as good as a reviewer's ability to check it.
- The rules are data, not hidden conditions. Keep the mapping in config or a rule table a reviewer can read: "Cloudhost Inc → Software". A condition buried in code, such as "a vendor whose name contains Air is travel", can't be checked without reading the code, and it misfiles the first vendor called Airtight Plumbing.
- Each item carries the rule that placed it, and why. "Contractors: listed in the contractor table". "Matched to bill 2231: the only open bill with this amount". A reviewer who disagrees can see which rule to change.
- The grouping is shown. The report lists the items under each category with a subtotal, so the grouping itself shows what went where.
- Unclassified is a category. What no rule matches is listed as unclassified, for a person to place. Don't force it into the nearest group.
Build the stable core first
A station that classifies has two layers, and they change at different speeds:
| Stable core | Presentation |
|---|---|
| What was fetched, how each item was classified, what each check found | What the report leads with, which groups it shows, which findings it highlights, the wording of a notification |
| Changes when the work changes | Changes with every round of feedback, most often in the first weeks |
Build the core first, and store it as data in the workpiece. Then produce the report from that stored data. When the finance lead asks for a breakdown by month instead of by vendor, you change the template and render it again: nothing is fetched or classified again. When a rule changes, the stored records can be classified or checked again under the new rule, without asking the source system again.
The test: when someone asks to see X instead of Y, does any stored data change? If it does, a presentation choice has leaked into the core.
Related
- Facts apart from conclusions: evidence holds every fact; the report holds what the line concluded
- Design the checks: the checks that run over the same core
- A report someone can act on: writing the presentation layer