
An illustrative engineering scenario, written to explain the design. No client delivery or measured results are claimed.
The reporting challenge
A financial institution preparing an annual FATCA disclosure may need to assemble customer details, account information, balances, payments and due-diligence outcomes from several systems. Spreadsheet hand-offs can make it difficult to trace a disclosed value, distinguish an unresolved record from a valid one, or explain which version was approved.
Design one controlled preparation process with a clear source snapshot, an approved rule version and an evidence trail from account record to reporting output. The aim is repeatability and reviewability; no client delivery or measured improvement is claimed in this example.
Reporting context and scope
For New Zealand institutions with FATCA obligations, Inland Revenue provides reporting through myIR. Registration and filing responsibilities depend on the institution and its reporting arrangement. The solution must confirm the correct filer identity and route before producing a submission package. IRS technical material is useful schema context; it does not mean every New Zealand institution should send directly to IDES.
The example uses fictional records and a proposed New Zealand reporting workflow. Entity-specific tax treatment, reportability and filing responsibilities require the institution’s approved interpretation.
Proposed solution architecture

The governed reporting model
| Data area | Proposed design concern |
|---|---|
| Reporting institution | Reporting entity, applicable registration references and approved reporting arrangement |
| Account holder | Stable party key, identity, address and reviewed tax information |
| Financial account | Account reference, ownership links, account status and relevant reporting-period values |
| Due-diligence evidence | Reviewed classification outcome, supporting record and exception owner |
| Disclosure version | Reporting period, rule profile, source snapshot and approval reference |
Each record should carry the reporting period, source version, applicable rule profile and lineage reference. Separate source observations from reviewed conclusions so changes remain explainable.
Start with the question the reviewer will ask
“Where did this value come from?” is a better starting point than “Can we create the XML?” The file is the last step. Before it exists, someone needs to explain which source account was used, which balance belongs to the reporting period, and why the record was included.
Consider a fictional account whose customer details arrive on Monday but whose balance file is late. The pipeline should not quietly turn the missing balance into zero. It should retain the account, identify the missing input and send a specific exception to the team that owns it. That is the kind of behaviour the architecture is designed to make routine.
1. Land source data without changing the evidence
Use a restricted landing area for the account extract, customer records, financial values and reviewed due-diligence outcomes. A batch manifest records the source, reporting entity, reporting period, extraction time, row count and file checksum. The raw files remain unchanged within the institution’s retention policy.
A practical cloud implementation could use object storage for the landing files and a lakehouse for the working tables. Those are reference components, not a fixed product requirement. What matters is that an engineer can locate the exact source batch behind a reporting run. Re-running the same batch should be detected deliberately; it should not create a second unexplained population.
2. Build a reporting model before applying the rules
Keep the institution, customer, account, ownership relationship and financial values in separate, linked tables. Stable source keys identify records. Effective dates describe the business period; load timestamps describe when the platform received the data. These are different questions and need different fields.
Use decimal types for financial amounts and carry currency explicitly. A join from account to customer should produce an exception when the relationship is missing. An inner join that silently drops an unmatched account can make every later reconciliation look cleaner while hiding the real problem.
Prepare a reporting snapshot with its own run identifier. That gives the reviewer a consistent population even if source systems continue changing during preparation.
3. Keep reporting interpretation separate from transformation code
The engineering pipeline consumes an approved FATCA classification and reporting profile. It does not ask an LLM to decide whether a customer is reportable. The responsible tax and compliance owners approve the interpretation, including how exceptional or incomplete evidence is handled.
Implement repeatable checks in versioned transformations or a controlled rules service. Record the rule identifier, version, input record and outcome. A quality exception should explain what failed and who needs to act—for example, an unresolved account-holder relationship—rather than merely saying “validation failed”.
The exact release gate is configurable. Do not assume every missing field is treated identically across institutions, reporting arrangements and current guidance.
4. Make review a small application, not another spreadsheet
A simple review workspace can show the affected record, the failed check, the source evidence and the assigned owner. Store the exception and its resolution in a transactional table so two reviewers cannot overwrite one another’s decisions without detection.
For this reference design, internal states might include prepared, needs_review, validated and approved. These are application states, not regulator response codes. A resolution records the person, time, reason and evidence reference. A correction to a source value should create a new observed version rather than erase the earlier evidence.
Give data engineers, reviewers and authorised filers distinct permissions. The ability to fix a mapping should not automatically include the authority to approve or submit a disclosure.
5. Generate the file from the approved population
The output component reads a frozen candidate population and the selected schema profile. Run structural validation and the applicable business checks, then reconcile record counts and financial values against the reviewed population. Include explicit reasons for exclusions so every account in scope has an explainable outcome.
Create an artifact manifest containing the reporting period, source snapshot, rule version, schema profile, reconciliation reference and file checksum. Approval is attached to that artifact. If the file changes after approval, the checksum changes and the workflow requires another review.
The design prepares the file and its evidence. It does not assume a public submission API. An authorised user files through the applicable Inland Revenue process, and the platform records the returned evidence.
6. Treat corrections as part of normal operation
Uploading a package and receiving a technical receipt are not the same as having every record accepted. Keep the observed filing status and record-level feedback separate. Match feedback to the relevant artifact and assign any resulting work to an owner.
When a correction is needed, preserve the original artifact and use the scheme’s applicable correction references and record action. The working system should link the old record, the changed evidence and the replacement artifact. A fresh extraction alone does not explain why a previously filed record changed.
A useful operational test is to select one fictional report record and reconstruct its source, transformation, approval and correction history without relying on someone’s memory.
Where AI helps—and where rules stay explicit
AI can assist an authorised reviewer by summarising a data-quality exception, locating a mapping explanation or drafting a reconciliation narrative from permitted evidence. It should cite that evidence and preserve uncertainty.
Use approved deterministic logic and accountable review for reporting classifications, amounts and release decisions. An LLM should not invent missing tax identifiers, infer reportability from an unsupported clue or submit a disclosure without the authorised workflow. The AI component is optional; the reporting data product must remain operable without it.
Validation and failure scenarios
| Scenario | Intended control |
|---|---|
| Missing or inconsistent identity | Route to an owned exception; do not manufacture a tax identifier |
| Changed source record after approval | Create a new package version; do not silently alter the approved artifact |
| Wrong schema or business-rule profile | Block package release and record the failed profile check |
| Duplicate reporting record | Detect against the intended scope and identifier rules before release |
| Correction requested | Retain original evidence and link the approved correction lifecycle |
Proposed delivery outputs
- Source-to-disclosure mapping and reporting data contract
- Versioned rule and schema profiles with accountable owners
- Quality checks, population reconciliation and an exception work queue
- Human approval record, artifact archive and correction register
A staged implementation would begin with source discovery and a synthetic proof of concept, then rule-owner review, parallel validation and an operational handover. Platform selection follows the institution’s existing estate and control requirements rather than a fixed vendor assumption.
How success would be measured
Establish a baseline before implementation. Measure unresolved exceptions by owner and age, source-to-report reconciliation differences, preparation and review time, artifact validation failures and correction turnaround. Track the ability to reproduce a reviewed output from its recorded inputs and rule version.
These measures would be agreed with the institution before implementation and assessed during a parallel run.
Official references
Source context reviewed 29 October 2026. Confirm current domestic requirements for the entity, period and channel before implementation.
