A source field change breaks an AI pipeline when the incoming data no longer means what the feature expects, even if processing still succeeds. Trace the affected field from source to output, compare its meaning and values with the last accepted input, and hold affected records until an explicit input contract passes.
Find where a source field change breaks AI pipeline inputs
Start with a specific symptom: a routing suggestion changes, retrieved answers lose context, or a prediction stops distinguishing cases that previously looked different. Record the affected feature, first suspect input batch, and last accepted batch. Treat the source change as a hypothesis until you can connect it to the feature.
Follow one affected record through extraction, mapping, transformation, feature preparation, and the final input. At each boundary, compare the field name, raw value, interpreted value, and whether the field is present. A successful job tells you that processing completed; it does not establish that the interpretation remained correct.
Consider a hypothetical priority field that previously used numbers and now contains text categories. A conversion step might turn the unfamiliar categories into a default value. The resulting input still has the expected numeric type, but records with different urgency now look identical. Checking the final type alone would miss this failure.
Keep a small set of representative records with expected interpretations. Include an ordinary case, a missing value, an uncommon category, and a boundary value. These examples give the source owner and feature owner something concrete to compare without relying on whether the final output seems plausible.
Separate structural changes from changes in meaning
Inventory the fields the feature actually consumes. Record their source locations and transformations, including fields used indirectly through joins, filters, or document selection. A renamed key that drops records from a join can affect the feature even when that key never appears in its final input.
- Renamed fields: check whether the old field disappears, remains empty, or coexists with its replacement.
- Re-coded values: compare allowed categories and the meaning assigned to each code.
- Changed units: verify whether a duration, amount, or measurement still uses the expected unit.
- Changed missing values: distinguish absent, unknown, withheld, and deliberately blank information.
- Changed relationships: check identifier formats, uniqueness assumptions, and whether one record can now match several records.
Ask the source owner what the new field means in business terms. Similar names do not establish equivalence. A replacement for a resolution date might represent administrative closure rather than the moment a problem was solved. Mapping it directly could change a feature’s meaning while preserving a valid date.
Where the affected field controls which documents become searchable, connect this investigation to AI knowledge retrieval readiness. Check the selected document population as well as the text inside each document; missing context can begin with an upstream selection rule.
Define an input contract with clear acceptance rules
Write the contract as a shared agreement between the source owner and the consumer owner. It should describe what the consumer requires, what changes need review, and what happens when a requirement fails. Store it alongside the mapping or transformation definition so a reviewer can compare both during a change.
- Identify the input: name the source entity, field, extraction boundary, and consumer feature.
- Define its meaning: explain the business concept, unit, category meanings, and treatment of missing values.
- State structural expectations: specify required fields, permitted types, identifier rules, and relationship assumptions.
- State semantic checks: define permitted categories, meaningful ranges, and relationships between fields.
- Choose failure handling: identify which failures hold records, stop a batch, or require review while processing continues.
- Assign ownership: name the accountable source and consumer functions, approval evidence, and escalation route.
Make acceptance rules observable. Instead of saying that priority should be valid, list the accepted values and their interpretations. Instead of saying that records should be recent, define which timestamp represents freshness and the age the feature can tolerate. Base those choices on the use case rather than an arbitrary universal threshold.
Protect the contract itself from accidental changes. If a mapping change silently updates the expected values too, the check can approve its own mistake. Require a separate review of business meaning, using representative records and the consumer’s acceptance criteria as evidence.
Place checks before defaults hide the change
Check raw extracted fields before transformation replaces missing or unfamiliar values. Then check the prepared inputs after transformation. The first boundary catches unexpected source changes; the second catches incorrect mappings and derived values. Record which boundary failed so investigation begins in the right place.
Distinguish the absence of a field from a field containing a permitted empty value. Treat an unrecognized category as an explicit exception rather than quietly assigning a familiar category. If a default is necessary for continued operation, document its meaning and track how many records receive it.
Add checks across related fields when they express a business rule. For example, a completed record might require a completion timestamp under the agreed definition. Review exceptions with the source owner before enforcing the rule: migrated or corrected records may need a different acceptance path.
Distribution checks can prompt investigation when individual values remain valid. Compare category shares, missingness, and join coverage with an accepted baseline. A shift is a review signal, since genuine business changes can produce similar patterns. Use expected seasonal or operational changes to interpret the result.
Limit diagnostic samples to what reviewers need. If field changes affect visibility or expose information to a different audience, include AI security and access design in the review before expanding access to investigate.
Choose containment based on the affected decision
Hold the smallest input scope you can reliably identify, such as records from one source version or extraction period. If you cannot distinguish affected records, hold the wider batch and explain that uncertainty. Avoid treating unaffected records as safe merely because they passed a structural check.
Decide what the user sees while the input is held. A feature might show that a recommendation is unavailable, use a reviewed fallback, or require human handling. Choose the behavior according to the consequence of a wrong output and the acceptable age of any retained information.
If those consequences are unclear, revisit AI use case discovery to define the decision, accountable person, and acceptable fallback. Without that agreement, a team cannot make a defensible choice between continued operation and suspension.
For help planning this work, see AI and ML services.
Validate the repair before releasing held records
Repair the mapping or contract after confirming the intended source meaning. Run the representative records through the changed path and inspect the prepared inputs. Compare interpretations field by field, then review the feature’s output against a defined acceptance task. A familiar output is insufficient if it came from incorrect inputs.
Keep the original failed batch identifiable. Test whether replay would duplicate downstream work or replace newer information before reprocessing it. Release held records through a controlled batch, check acceptance results, and retain a way to identify which records used the repaired mapping.
Close the incident with a short change record: source difference, affected inputs, containment decision, approved interpretation, validation evidence, and release decision. Add a check that would have detected this specific failure earlier. Agree how the source team will flag future changes before they reach the consumer.
Questions about field contracts and change ownership
Should a field label change require a contract revision?
Review whether the label accompanies a changed identifier or business definition. If the consumer receives identical data with identical meaning, record the review without inventing a new mapping. If the label signals a redefined concept, revise the agreement before accepting it.
Who resolves disagreement about a category’s meaning?
Ask the business owner of the source concept to define it, then ask the consumer owner whether that definition supports the intended decision. Escalate unresolved disagreement to the person accountable for that decision rather than letting a developer choose an interpretation.
Can historical data keep the old field definition?
Yes, if you preserve which definition applies to each period and select the corresponding mapping. Combining old and new meanings under one field name can obscure comparisons. Document the transition boundary and how corrected historical records should be interpreted.
How should temporary contract exceptions expire?
Give an exception an owner, affected scope, reason, review point, and removal condition. Review its continued need when the source repair arrives. An exception without a closing condition can become a permanent mapping decision that nobody explicitly approved.