Complex products · Step 6 · 8 min read
Audit trails and history
When a crew climbed a turbine with the wrong permit, the first question is who changed what, and when. What an audit trail records, how to turn it into a history people can read on each record, who may see it, why nobody may edit it, and how history differs from undo.
In software that runs real equipment, "who changed this?" is a safety question. A work order in Gale passes through a planner, a supervisor, a safety officer, a technician and three other systems before it's closed. When something goes wrong, people need to see every change, by whom, when and why, without asking a developer to search the database. Designing that view is part of the product, not a report someone adds later.
What you'll be able to do after reading:
- Explain what an audit trail is and which questions it must answer
- List what each entry needs to record, including changes made by systems
- Design a readable history on a record, with the important changes easy to find
- Decide who sees the history, why it can't be edited, and how it differs from undo
1. Why history matters in B2B
An audit trail is the complete, time-ordered record of what happened to the data: every creation, change and deletion, with who and when. A history is the part of it that people read on screen, usually on one record ("History" tab of a work order).
Microsoft's documentation for its Dataverse platform lists the questions an audit log answers: "Who created or updated a record and when?", "Which fields in a record were updated?", "What was the previous field value before the update?", "Who deleted a record?" (Microsoft Learn, Manage Dataverse auditing).
In Gale those questions come from real moments:
- Safety. Sofia, the safety officer, needs to prove a permit-to-work was released after the turbine was isolated, not before.
- Money. Helena, the head of O&M, asks why CA-07 missed the availability target. The answer is in when each work order moved to On hold, and why.
- Disputes. A supplier says the part was never reserved. The history says when it was, and by which system.
- Everyday confusion. "Who moved my work order?" is the commonest question of all, and the history should answer it in five seconds.
2. What each entry records
The OWASP Logging Cheat Sheet, written for security logs, gives a rule that works for every audit trail: record "when, where, who and what" for each event (OWASP Cheat Sheet Series, Logging). For a field change, "what" also means the old and the new value. Dataverse, for example, creates an update entry only "when a new value is different from the old value of a column" (Microsoft Learn).
The moment of the change, with its time zone.
4 Nov 2026, 08:03 Europe/LisbonThe surface or system it came from.
Gale ConsoleThe actor: a person, a rule, an integration, an import. Both names if on behalf of someone.
Rule: wind limitThe record, the field, the old and the new value.
WO-2026-018734 · state: Scheduled → On holdA reason, when work stops or safety is involved.
Waiting for weather: forecast 15 m/sTwo details decide whether the trail is useful later:
- "Who" includes systems. Many changes in Gale aren't made by a person: the stock system reserves a part, a rule puts a work order On hold when the wind forecast passes 12 m/s (Gale's fictional climbing limit), an import creates 2,000 lines. Name them as such: "Stock system", "Rule: wind limit", "Import by Tiago". An entry that says "System" for all three is no help. When someone acts for someone else, record both: "Duarte, on behalf of Rita".
- "Why" when it matters. For state changes that stop work (On hold, Cancelled) and for safety actions, ask for a reason, from a short list plus free text. The reason is what Helena reads a month later.
3. A history people can read
A raw trail reads like a database: status_cd 03→05, upd_usr 1187. That's TurbineDesk's history screen, and nobody uses it. A good history turns the same data into sentences in the domain's words.
WO-2026-018734 · CA-07-T14 · History · Show: All changes · State changes only · Times in Europe/Lisbon · History can't be changed.
| When | Who | What happened |
|---|---|---|
| 5 Nov, 09:12 | Duarte (supervisor) | Moved the work order from Crew 7 to Crew 12 |
| 4 Nov, 08:03 | Rule: wind limit | Scheduled → On hold · waiting for weather (forecast 15 m/s on 4 Nov) |
| 4 Nov, 08:03 | Rita (planner) | Moved the planned start from 4 Nov to 6 Nov · "Wind window on the 6th" |
| 4 Nov, 07:58 | Rita (planner) | Planned → Scheduled |
| 4 Nov, 07:58 | Stock system | Reserved 4 part lines at stock location CA-07 · see parts |
- Sentences, not field names: "Rita moved the planned start from 4 Nov to 6 Nov".
- Newest first, with dates in the record's time zone and the zone shown when people work across countries (Europe/Lisbon, Europe/Madrid, Europe/Dublin).
- State changes stand out. They're the backbone of the story; field edits sit under them. A filter for "state changes only" turns 80 entries into 8.
- Group bursts. Twelve edits by one person in one minute are one entry that opens to show twelve.
- Links to what's referred to: the permit, the crew, the import file.
4. Nobody edits history
An audit trail is only trusted if nobody can change it, including administrators. A wrong entry is corrected by a new entry, never by editing the old one. OWASP asks teams to "build in tamper detection so you know if a record has been modified or deleted" (OWASP). For design, that means no edit or delete buttons on history entries, and a clear sentence on the screen: "History can't be changed."
Two decisions belong to the customer, not to the designer, and the design must leave room for them:
- Who can see it. Dataverse needs a "View Audit History" privilege to show a record's history (same source). In Gale, everyone who can open a work order sees its history, but the customer's IT admin can hide personal fields, such as who called in sick. See Permissions people understand.
- How long it's kept. Keeping history has a cost and, for personal data, legal limits. The Dataverse settings show the stakes: once logs are deleted, "you can't view the audit history for the period covered by that audit log". Ask the customer's legal and IT teams for the retention period (how long the entries are kept) before you design the screen that shows it.
5. History is not undo
Undo takes back the last action, usually your own, right after you did it. Nielsen's third heuristic asks for "a clearly marked 'emergency exit'" from actions people didn't mean (NN/g, 10 Usability Heuristics). History is different: it shows everything, by everyone, over the whole life of the record.
Some products add revert to the history: put a field back to an earlier value. Two rules make it safe:
- A revert is a new change, recorded like any other ("Duarte reverted the crew to Crew 7"). The history never shrinks.
- Some changes can't be reverted, because the world moved on. A released permit-to-work used for a climb, or a work order verified by the supervisor, can be followed by a new action (suspend the permit, reopen the work order), but not erased. Say why in the interface: "This permit was used at 09:12. To stop work, suspend it."
6. Common mistakes
- A history that shows field codes and user IDs instead of sentences.
- "System" as the author of every automatic change.
- No old value, only the new one.
- Dates without a time zone in a product used across countries.
- Edit or delete buttons on history entries, even for admins.
- No reason asked for when work stops.
- Treating history as a feature for auditors only, so it's buried in an admin screen.
7. Vocabulary
| Term | Meaning |
|---|---|
| Audit trail | The complete, time-ordered record of every change to the data, with who and when |
| History | The readable part of the audit trail, usually shown on one record |
| Entry | One line of the audit trail: one change, by one actor, at one moment |
| Actor | Whoever made the change: a person, a rule, an integration, an import |
| Old and new value | What a field held before and after the change |
| Tamper detection | A way to tell if an entry in the trail was changed or deleted |
| Retention period | How long the entries are kept before they're deleted |
| Undo | Taking back your last action, right after doing it |
| Revert | Setting a field back to an earlier value, recorded as a new change |
8. Try it (no tools needed)
Here is part of TurbineDesk's history for another work order, WO-2026-018752, as it appears on screen:
2026-11-10 14:20 u1187 status_cd 01>02
2026-11-11 07:45 u1187 status_cd 02>03
2026-11-11 07:46 SYS part_res NULL>R
2026-11-12 06:30 SYS hold_rsn NULL>PT
2026-11-12 06:30 SYS status_cd 03>05
You know that u1187 is Rita (planner); status 01 is Draft, 02 Planned, 03 Scheduled and 05 On hold; R means reserved; PT means waiting for the permit-to-work.
- Rewrite the five lines as a Gale history, newest first, in sentences.
- Decide which entries are state changes and mark them so they stand out.
- Name the actors of the three "SYS" lines properly. There are two different actors behind them. (Hint: which system reserves parts, and what puts a work order on hold when its permit isn't released by the planned start?)
- Check: could Helena, reading only your version, explain why this work order was late? If not, what is missing? Write the question you would add to the screen so that the reason is recorded next time.
It's good when someone who has never seen TurbineDesk can read your history aloud and it makes sense.
Reflection questions: In a tool you use at work, can you find out who changed something last week? How long would it take?
9. If you already practise
- Read your product's history screen out loud. Every line that sounds like code is a line to rewrite.
- Design the history with the data team: the trail needs the old value, the actor type and the reason stored from day one. You can't show what was never recorded.
- Put the history pattern in the design system, with the sentence templates, so each team doesn't invent its own.
Checklist
Learn more
- OWASP Cheat Sheet Series: Logging Cheat Sheet, event attributes and tamper detection
- Microsoft Learn: Manage Dataverse auditing, a real audit history and audit summary
- NN/g: 10 Usability Heuristics for User Interface Design, heuristic 3
Books, courses and videos to go deeper
- Designing Data-Intensive ApplicationsMartin KleppmannBook · O'Reilly, 2017 · on logs of events as the source of truth, for when you talk to the data team
- About FaceAlan Cooper, Robert Reimann, David Cronin and Christopher NoesselBook · 4th edition, Wiley, 2014 · on undo and history in interaction design
Related
Long flows and object states · Permissions people understand · System and integration errors · Redesign without stopping the work · The domain's words and a glossary