Engineering case study
Building a decision-governance engine
How we designed and built software that checks a high-stakes decision against policy, puts a person in the loop, records exactly what happened and can replay the result later from the same evidence.
Status: a reference build, tested only with synthetic (made-up) data. It has not been used with real customer data or in a live business. The hosted demonstration has been retired.
The problem
Proving what was decided, and why
In regulated work such as lending or insurance claims, making a decision is only part of the job. A firm may later need to show which evidence was used, which rule applied, who approved it, and that the action carried out was the one that was approved.
That evidence is often pieced together afterwards from emails, spreadsheets and separate systems. It is slow, and it can be incomplete.
The aim
Build the controls into the process
The goal was to test whether those controls could sit inside the decision process itself, so the record is created as the work happens rather than rebuilt later.
The engine was designed to sit alongside existing business systems, not replace them.
How it works
Six stages for every decision
Policy checks
Each case is checked against written rules. The same inputs always give the same result, so outcomes are predictable and explainable.
Human review
A named person reviews and approves before anything happens. The person who prepares a case cannot also approve it (separation of duties).
Tamper checks
The evidence is given a digital fingerprint (a hash). If anything changes between approval and action, the mismatch is detected and the action is blocked.
Controlled action
Only an approved, signed instruction can trigger the final step, so what is carried out matches what was approved.
Audit trail
Every step is written to a permanent record showing who did what, when, and on what evidence.
Replay
A past decision can be re-run from the stored evidence and rules to confirm the same outcome is reached.
Where it was tested
Two synthetic scenarios
- Mortgage forbearance: deciding whether a borrower in difficulty qualifies for a payment arrangement. This was the main reference scenario.
- Insurance claims: the same engine applied to a second, made-up claims process, to test that it was not tied to one industry.
Built with
Technology
Python and FastAPI services, a PostgreSQL database, role-based access with secure sign-in tokens, separate data areas for each client organisation (multi-tenancy), and container-based deployment.
What it shows
Skills we bring to client work
Turning rules into software
Taking written policy and turning it into clear, testable checks.
Controls people can trust
Designing approvals, access and audit records that hold up to scrutiny.
Careful use of AI
Keeping AI as an assistant inside clear rules and human review, not an unchecked decision-maker.
Have a process that needs clearer control?
We are happy to walk through the engine and discuss whether a similar approach would help your team.
admin@tracelogic.ie