Practical articles
How I separate deterministic calculations from AI-assisted explanation
A recommended architecture for stable calculation records, versioned inputs, bounded narrative generation and human sign-off.
Stefan Rampersad · Principal Strategist, PHNYXPRO · 5 min read ·
- Project:
- Valuate
- Historical period:
- December 2025 to November 2026
Retrospective written 25 November 2026
Separate calculation, explanation and approval before choosing how an AI feature should work. My recommended design uses Valuate, whose deterministic projection requirements and human finance decisions make those boundaries important. The sequence below concerns product architecture and management, without reproducing proprietary calculations or offering investment advice. Start with a method owner who can define the approved calculation contract and the people authorised to change it. An explanation feature should be designed around that contract, with no implicit permission to rewrite the underlying financial method.
Name the records and their owners
Define an input set, a calculation run, a result, a report and a narrative draft. Give each a stable identifier and an explicit relationship to the others. For example, the narrative draft should point to a particular result, while the result points to the input version and method version used. Specify who maintains the method and who reviews the report. Acceptance means a reviewer can follow one report back to its exact result and inputs without relying on a filename, a current screen or a remembered sequence of edits.
Freeze the calculation interface around the approved method. Document input definitions, accepted formats, output structure and the treatment of invalid inputs, with financial interpretation owned by the appropriate human reviewer. Keep debt adjustments or other finance decisions outside incidental interface changes unless authorised separately. Use fixtures supplied and approved by the method owner rather than inventing a financial formula. Test the same fixture repeatedly through the agreed engine. Acceptance means the result is stable within the method's approved comparison rules, with invalid inputs producing an explicit response instead of an apparently usable projection.
Preserve versions instead of replacing history
Create a snapshot when an input set is used for an agreed calculation run. Preserve the relevant input and method versions alongside the result. Treat a later input change as a new version with a clear relationship to its predecessor. Test a report opened after the current inputs have changed. The older report should still identify and display its original result, while the new version should remain distinguishable. This avoids a familiar product failure in which historical output appears to explain current inputs even though those records no longer belong together.
Feed any proposed AI-assisted explanation through a bounded interface that provides the approved result and the context it may discuss. Give that process no write path to the calculation or method. Mark its output as a draft for review, with the result identifier preserved. Test a narrative request against an obsolete version and an attempted instruction to change a numerical output. Acceptance means the numerical record remains untouched and the draft retains the correct result reference. Narrative research was part of Valuate's scope, so this sequence should guide implementation rather than imply a completed AI release.
Review the meaning as well as the format
Assign a human reviewer to the narrative and report before either is approved for use. Specify checks for unsupported claims, changed numerical meaning, missing context and language that implies a financial decision has been made automatically. Keep identity approval and release sign-off with their designated owners. Use a deliberately unsuitable draft that describes a result more confidently than the approved material allows. Acceptance means the reviewer can return it with a reason, preserve the underlying result and prevent the draft from appearing as an approved report merely because it is well written.
Protect consequential actions separately from ordinary editing. Define who can create a calculation run, approve a narrative, change the method and authorise a release. OWASP recommends least privilege for authorised actions. Apply that principle to the request paths as well as the controls on screen, then test a narrative editor attempting to alter the method. The action should be refused without changing the calculation contract. Review these permissions with the method owner so the authority in the product matches the actual management responsibility, rather than whichever screen a person can reach. [OWASP authorisation guidance]
Compare every presentation with the same result
Make the results view and report consume the same versioned result record. Decide how units, labels and rounding are presented under the method owner's rules, without creating a second calculation in the export or narrative layer. Test an approved fixture through the input route, results view and generated report, including an older snapshot. Acceptance means the agreed comparison passes across surfaces and every view identifies the same underlying run. A failed comparison should block the relevant release decision until the responsible person resolves its cause.
Close the sequence with a release checklist owned by the people authorised to sign off. Include method approval, version consistency, narrative review, identity decisions and known incomplete checks. Record the actual result of each check rather than assuming the existence of a test suite means it passed. Valuate's value as a product depends on consistent meaning and clear responsibility. The acceptance decision should therefore be traceable to a particular version and its completed reviews, with a remaining human decision kept visible instead of being absorbed into an automated summary.
References
Stefan Rampersad
Stefan leads PHNYXPRO, writing about brand storytelling, strategy and the business of creative work in the Caribbean and beyond.
Keep reading The Post