Skip to Content
Dominic Sylvester
Essay

Where deterministic code ends and AI judgment begins

Put calculations, interpretation, and approval in explicit layers so the final deliverable remains explainable.

  • Data
  • AI
  • Controls
  • Process design

A financial workflow often contains tasks that look similar on a screen but require very different kinds of reasoning. Adding transactions, classifying an ambiguous description, and approving an explanation may all happen in the same workbook. They should not inherit the same software design.

My starting point is to identify what makes each step correct. If correctness follows an explicit rule, write and test that rule. If the step requires interpretation, make the evidence and uncertainty visible. If it carries professional responsibility, assign an accountable decision-maker.

Start with a source contract

Before choosing a model, define the input. What does one row represent? Which system produced it? What period, currency, unit, and entity does it describe? How do corrections arrive?

A pipeline should retain enough provenance to reconstruct the deliverable from an identified set of inputs. That might mean keeping source-file identifiers, extraction timestamps, transformation versions, and reconciliation results.

An AI-generated explanation cannot repair an undefined balance. Data engineering establishes what the analysis is about.

Put explicit rules in deterministic code

Required-field checks, arithmetic, duplicate detection against a defined key, and reconciliation to a control total belong in code or queries with explicit behavior.

For an illustrative reconciliation, I would calculate differences before asking an assistant to describe them. The assistant would receive those computed results and their supporting records. It would not become the calculator of record.

Rules still require judgment during design. A matching tolerance or an account mapping is a business decision that should have an owner and a change history. Deterministic execution makes the chosen rule reproducible; it does not make the rule inherently appropriate.

Give AI an evidence-bound task

AI becomes useful where inputs are less structured or interpretation is required: proposing a classification, extracting candidate terms from a document, or drafting commentary from approved facts.

Define the permitted sources and the expected output. Require references to the records used. Give the system a way to say that evidence is missing or ambiguous, and route that result for review.

A fluent explanation is not proof of a cause. If two records disagree, the system should expose the disagreement rather than invent the missing connection. A model's self-reported confidence is also not a calibrated probability of correctness.

Keep approval separate from generation

The person responsible for the conclusion needs a reviewable package: computed facts, cited evidence, material assumptions, exceptions, and the proposed interpretation.

Approval should be an explicit event with a defined scope. Producing text, opening a record, or accepting a suggested classification should not silently authorize a posting or an external communication.

That separation also helps evaluation. Arithmetic can be checked against expected results. Extraction and interpretation need representative examples, including ambiguous and incomplete evidence. Approval needs the right person and a record of the decision.

Design the boundaries before building the interface

The useful architecture is a sequence of responsibilities: source validation, reproducible processing, bounded interpretation, and accountable acceptance. Each boundary should specify what can pass, what must stop, and how an exception is resolved.

This is how I would connect Python pipelines, databases, analytics, and AI in one process. The tools contribute different capabilities, while the financial deliverable supplies a common definition of success.

Continue reading

On this page