
Proposed design and demonstration. Not executed; no client results or compliance assurance claimed.
The engineering problem
An assistant can summarise a customer record fluently while the underlying record contains a duplicate identity, an invalid status or an obsolete balance. Scaling the assistant scales exposure to those errors unless the pipeline makes quality visible.
Design the data contract
Choose one synthetic servicing dataset and name the fields that matter to the task. Test identity uniqueness, mandatory attributes, valid codes and time consistency. Give each check an owner and a response: block publication, quarantine a record, annotate a limitation or open a review task. A large collection of checks is less useful than a small set tied to a real consequence.
Treat a quality score as supporting evidence, not permission to use every record. A dataset can pass a global threshold while the one row needed for an enquiry is incomplete. Make record-level limitations available to downstream tools and define when the assistant should refuse to state an unsupported fact.
Proposed architecture

Proposed demonstration
- Seed missing IDs, duplicate records and stale timestamps in fictional data.
- Run explicit checks with expected pass/fail labels.
- Publish clean rows and route failures to a review table with reasons.
- Ask the same assistant question before and after controlled corrections.
Use fictional records in a disposable environment. Record the source version, configuration, expected outputs and any limitations before executing the exercise.
What to measure
- Detection rate for seeded defects
- False alerts requiring review
- Unsupported answers on defective records
Keep failures in the results and compare repeated runs against a defined baseline. This first draft contains no executed benchmark or production result.
Evidence to keep
Capture the injected defect, check result, owner response and downstream outcome. Do not claim an improvement in AI accuracy without a labelled baseline and repeated evaluation.
The next step is a reproducible implementation, sanitised screenshots and a measured validation record. Any regulatory applicability must be assessed for the institution, activity and jurisdiction; EU frameworks do not automatically apply to every New Zealand bank or insurer.
Worked example and design decisions
A fictional customer has two active identifiers and two different communication preferences. Deduplicating on the customer name can merge different people, while selecting the latest row can hide an unresolved source conflict. The quality gate should flag the ambiguity and prevent the assistant from presenting one preference as established fact.
Use this scenario to write the expected result before building the pipeline or agent. Identify the exact source facts, the permitted transformations and the outcome that a reviewer should see. Keep the reference result independent of the implementation under test.
A concrete data or asset contract
The following is a proposed application contract, not an assertion that these are native vendor API fields. Adapt names and types to the selected platform while preserving their intended meaning.
| Proposed field | Meaning and implementation concern |
|---|---|
record_id | Stable synthetic source record |
rule_id | Versioned quality rule |
observed_at | Time the check ran |
severity | Impact classification tied to consumer use |
result | Pass, fail or not evaluated |
remediation_owner | Accountable review group |
Document null semantics, stable identifiers and schema ownership with the contract. A missing observation, a zero amount and a denied lookup are different states and should not collapse into the same empty response.
Implementation blueprint
1. Create a labelled defect set
Seed duplicates, missing mandatory values, invalid codes and outdated observations. Record expected outcomes independently of the rule implementation so the evaluation can detect a rule that passes everything.
2. Separate rule execution from publication
Write check outcomes into a durable results table. Publish only records that meet the use-specific gate, while retaining rejected records and reasons for investigation.
3. Expose limitations to the assistant
Return a structured quality status alongside the requested fact. An unknown or conflicted field should remain unknown instead of becoming an empty string that the model interprets as a meaningful answer.
4. Close the remediation loop
Link a defect to the source owner and the correction event. Re-run the checks after correction and confirm the consumer sees the new state; do not mark the incident fixed simply because someone edited the source.
Failure analysis: test the uncomfortable case
A new optional field is added and a generic completeness percentage falls, although the critical fields remain correct. Conversely, a high overall score can hide a missing critical identifier. Use field criticality and task-specific gates instead of one undifferentiated score.
Build this condition into the synthetic test set. Capture the observed output, the control that should detect the issue and the recovery decision. If the system returns a polished but unsupported result, record that as a failure rather than a successful request.
Operational ownership and runbook
Track unresolved critical defects by age and owner. Review false alerts and revise rule versions deliberately. Keep the previous version available so a change in defect volume can be explained.
A useful incident record identifies the affected product or capability, the relevant run or request, the business time represented and the owner of the next action. Distinguish restoring infrastructure from restoring correct service output. Preserve enough versioned evidence to explain the recovered state.
Evidence required before a production claim
The core design controls for this topic are: Critical-field rules; use-specific publication gates; explicit unknown values; quarantined evidence; and a source-owner remediation process.
- Contract review: confirm field meaning, intended use, owner and access boundaries.
- Positive and negative tests: include the worked example, invalid inputs, restricted access and the failure case described above.
- Repeatable measurements: retain configuration, workload size, timing method, failures and the baseline used for comparison.
- Recovery evidence: demonstrate the documented recovery route and validate the resulting data or application behaviour.
This expanded article remains a proposed technical design. Environment-specific configuration, screenshots and measured outcomes should be added only after the implementation is executed and reviewed.
References and scope
References checked 29 October 2026. Sources provide context; the architecture and exercise are proposed editorial examples, not vendor-certified implementations.
