Zero Labs
Industry News / AI

Beyond Lineage: A Field-Level Trust Contract for AI Data Consumers

Source · Towards AI By Venkat Peri

From the publisher’s feed, collected in the ZeroLabs newsroom.

Data catalogs tell you where your data came from. They don’t tell your AI generator whether to use it.There is a moment that happens in every serious AI data pipeline project, usually a few weeks after the demo worked and a few weeks before the first production incident.The team has done the right things. They have column-level lineage. They know which table every field comes from, what transformation produced it, and when the pipeline last ran. Their data catalog is current, certified models are tagged, and ownership is recorded. The governance story is clean.Then an AI generator cites a gain/loss figure that covers 38% of a portfolio. Or it classifies a client as actively engaged because the CRM shows 47 touchpoints, 39 of which were mass-broadcast emails. Or it produces a meeting brief citing conversations that never happened, because the CRM had no history for this client, and the model filled the gap rather than acknowledging it.None of this is a lineage failure. The lineage is correct. The pipeline ran. The certification is valid. The problem is different: it is upstream of the model, downstream of the catalog, and invisible to both.What Catalogs Are Built ForModern data catalog and lineage tools are remarkable engineering achievements. They answer a category of questions that was previously answerable only through institutional memory or painful manual investigation: Where does this field originate? What transformations has it been through? Who owns it? When did the pipeline last complete? What would break if this column changed?These are data engineer questions, and catalog tools answer them well — at the catalog layer, for properties that are true about a field independent of which specific record is being queried and when.The certification lifecycle tells you that a model was reviewed and approved. The PII propagation tells you that a field touches sensitive data. The freshness signal tells you that the pipeline completed at 11 pm. The column-level lineage indicates that the gain/loss field is derived by subtracting cost basis from market value.All of this is accurate. None of it tells the AI generator what it needs to know at the moment it decides whether to cite the gain/loss figure in a client briefing.The Question the Generator Actually AsksWhen an AI generator is about to use a field, the question it needs answered is not “where did this come from?” It is a cluster of related questions that can only be resolved against the specific record being processed, at the specific moment of query:Is this field complete for this record, or were some of the inputs missing? The gain/loss computation ran successfully, but was the cost basis present for all positions? For 10 of 26 positions? For none?Do the two sources agree on this value right now? The CRM says the client’s last contact was three weeks ago. A filtered view of personalized-only activity says it was three months ago. Both are correct queries against the same data. Which one should the generator use?Is this value appropriate for the context it’s being used in? A figure that is perfectly appropriate for internal trend analysis may not be safe to present to a client or include in a regulatory filing. Certification tells you the model is governed — it does not tell the generator whether this specific value is appropriate for this specific output context.What should the generator do when the answer to any of the above is “no”? Not as a policy question but as a live instruction: acknowledge the gap, caveat the figure, or suppress the field entirely.These are query-time questions. Catalog tools answer catalog-time questions. The distinction matters because it determines which layer of the architecture is responsible for providing the answer — and most current architectures leave the query-time layer empty.What Fills the GapThe missing piece is a trust envelope that travels with each data value from the moment it is assembled for AI consumption. Not a separate call to a catalog API that the generator has to make and interpret. Not a prompt engineering instruction that tells the model to “be careful with incomplete data.” A structured metadata sidecar, attached to each field, that answers the generator’s questions in a vocabulary the generator can act on deterministically.We call this the FieldTrust contract. It is a GraphQL type — a sidecar pattern atop existing data objects — that carries six categories of information for every field an AI consumer might use.Coverage state: a six-value enum (CURRENT, STALE, PARTIAL, ESTIMATED, ABSENT, UNRELIABLE) that describes the trustworthiness of the value for this specific record at this specific moment. CURRENT means the value is fresh from an authoritative source and safe to use. PARTIAL means it was computed across a collection where not all members contributed — the gain/loss figure computed from 10 of 26 positions. ABSENT means the source never populated this field for this record — not a pipeline failure, a structural absence, like cost basis on a retirement plan rollover. UNRELIABLE is the most consequential state: the value is present, correctly computed, and known to be misleading given its inputs. A null value is at least visibly absent. A UNRELIABLE value looks like data.Provenance: where the value came from (source), what fields it was derived from (derivedFrom), and for aggregations, the per-input coverage at computation time (inputCoverage). For a Snowflake-backed resolver, this includes the pipeline arrival timestamp (pipelineAsOf) separately from the query execution timestamp — because a resolver that ran at 9 am against data that arrived at 11 pm the night before is serving 10-hour-old data, and the generator should know.Conflict records: when two sources disagree on the same value, the disagreement is surfaced as a first-class object — not resolved silently. Each conflict record carries the alternative value, its source, an explanation of the discrepancy, and a resolution policy. The generator applies the policy rather than guessing. This is the piece that addresses the CRM last-contact problem: the raw last-contact date and the personalized-only last-contact date are different values derived from the same underlying data, and the generator needs both, along with the instruction on which to prefer.Valid use contexts: an array of contexts in which this value is appropriate (CLIENT_DISPLAY, AI_INPUT, REGULATORY_REPORTING, TREND_ANALYSIS, INTERNAL_ONLY). An empty array means the value must not appear in any generated output. This is different from certification, which is a property of the model — validFor is a property of this specific field value for this specific record. A partially covered cost basis field has validFor: ["INTERNAL_ONLY"]. The unreliable gain/loss figure has validFor: []. Neither requires recertifying the model; both require the generator to know.Freshness risk: a consumer-facing enum (REAL_TIME, NEAR_REAL_TIME, BATCH_DAILY, BATCH_LAGGED, UNKNOWN) that tells the generator what kind of lag it is operating under. A generator producing a real-time client response that draws on BATCH_DAILY data should caveat accordingly. A generator producing an overnight meeting brief does not need to.Upstream attestation: when a source system provides its own quality signals — a market data vendor flagging an estimated price, a custodian flagging a pending settlement, a healthcare system using FHIR observation status — the resolver translates the upstream signal into the FieldTrust vocabulary and records the source of the attestation. The generator sees the same coverage enum regardless of whether the trust signal was locally computed or passed through from upstream.The Coverage Propagation ProblemA catalog indicates that a gain/loss field is derived from the market value and cost basis. A The FieldTrust contract tells you that for this record, the cost basis was PARTIAL — 10 of 26 positions had real values — and therefore the gain/loss output is UNRELIABLE.This propagation is not something a catalog can do, because it requires knowing the actual values in the actual records at query time. But it is also not something the generator should have to figure out — it should receive the already propagated coverage state as part of the assembled payload.The propagation rule is pessimistic: output coverage is the minimum of input coverages, with a downgrade when missing inputs are load-bearing for the computation. “Load-bearing” means the missing input is a primary factor — cost basis is load-bearing for gain/loss, the regarding The field is load-bearing for inferring personalized contact dates, and the activity count is load-bearing for engagement summaries.This rule is implemented in the resolver at computation time, co-located with the computation. The resolver computes the value, assesses its inputs’ coverage, derives the output coverage, and populates the FieldTrust block simultaneously. Trust attestation is not a post-processing step — it is part of the computation.The validFor array propagates by intersection: the output's valid contexts are the intersection of its inputs' valid contexts. If any input has an empty validFor, the output has an empty validFor. If an upstream source restricted a field to INTERNAL_ONLY, that restriction propagates to every derived computation that depends on it. The generator does not need to know the source of the restriction — it sees an empty or constrained validFor and acts accordingly.Where the Catalog Layer FitsNone of this replaces what catalog and lineage tools provide. It depends on it.The provenance fields in FieldTrust — source, resolverBackend, derivedFrom — are populated from catalog metadata at query time. The resolver queries the catalog to determine which system a field originates from, its transformation chain, and whether it is certified. The catalog answers the catalog-time questions; the resolver uses those answers to populate the contract.The freshness fields — pipelineAsOf, freshnessRisk — are derived from pipeline execution timestamps that catalog tools track. The resolver reads the pipeline's last completion timestamp and translates it into the FreshnessRisk enum the generator needs.The validFor array is informed by certification status from the catalog, but it is not identical to it. A certified model may still produce a field that is INTERNAL_ONLY for a specific record if the underlying data is sparse or conflicted. Certification is a model-level property. validFor is a value-level property. Both matter; neither replaces the other.The division of responsibility is clean in principle and worth making explicit in architecture: the catalog answers what is true about a field in general. The FieldTrust contract answers what is true about this field value for this record right now. The generator needs both — and in current architectures, it typically gets only the first.The Pre-Filter LayerThe generator should not see the full FieldTrust sidecar for every field. The full contract carries provenance and observability fields — derivation chains, input coverage at each level, resolver backend identifiers — that are for governance and lineage tracing, not for generation decisions. Passing the full contract to the generator adds context window pressure without adding decision-making value.The correct architecture interposes a pre-filter layer between the data assembly step and the generator. The pre-filter applies hard rules mechanically, before the generator receives the payload:Fields with empty validFor are removed and replaced with a structured gap marker — a SuppressedField object that tells the generator the field exists, why it was suppressed, and what its coverage state was. The generator sees this explicitly and can acknowledge the gap without fabricating a value. Without the gap marker, the generator cannot distinguish "this field was suppressed" from "this field was absent from the source" — both look like null, and null is an invitation to fill.Fields that survive filtering have their FieldTrust blocks compressed to the subset the generator actually needs: coverage state, coverage note, valid contexts, conflicts, and freshness risk. Provenance chains and input coverage details are retained in the full resolver response for OpenLineage instrumentation and catalog lineage tracing — but they do not go to the generator.This creates a clean separation: the pre-filter enforces hard rules deterministically. The generator applies nuanced reasoning — how to scope output for a PARTIAL field, whether to caveat a BATCH_DAILY value given the use case, how to apply a conflict resolution policy — within what the pre-filter allows. Defense in depth: the contract defines the rule, the pre-filter enforces it, the generator's standing instruction is the third layer.Why AI Is the SupersetThe observation that motivates this architecture is worth stating explicitly: every governance signal that any other data consumer needs, an AI generator needs too — plus several it needs that no other consumer requires.A data engineer reading lineage can exercise judgment about what partial coverage means for a specific analysis. An AI generator cannot. It either has a trust signal or it doesn’t, and if it doesn’t, the only behavior available to a capable language model is to fill the gap.This means that building the trust contract to serve AI generators well automatically serves every other use case. The inverse is not true. A catalog and lineage implementation that serves engineers, compliance teams, and BI consumers perfectly still leaves AI generators without the query-time coverage signals, conflict records, and context-specific validity annotations they need.The practical implication: the governance investment pays off more completely when the FieldTrust contract is in scope from the start. Adding it later requires retrofitting every resolver and every consuming pipeline. Adding it early means the catalog integration, lineage instrumentation, and pre-filter layer are co-designed with the resolver architecture — and the AI consumers, the human consumers, and the governance layer all draw from the same underlying trust infrastructure.What the Generator Does With ItThe generator’s system prompt receives a standing instruction, stable across all households and all data states:Before using any field value in generated output, check its trust block. If a field is suppressed, acknowledge the gap instead of inventing content. If coverage is PARTIAL or ESTIMATED, scope output to what is documented and note the limitation. Only use fields where AI_INPUT is in validFor. For conflicted fields, apply the resolution policy in the conflict record.This single instruction handles every data-quality scenario without bespoke prompt engineering for each record. A household with full, current data across all fields — the generator proceeds normally. A household where CRM is entirely absent — the CRM fields arrive as SuppressedField markers, the generator produces an honest brief that tells the advisor what is known and what isn't. A household where the cost basis is partial — the gain/loss field is suppressed, the generator acknowledges the gap rather than citing a figure that covers 38% of the portfolio.The shift is from a system that produces confident-sounding output whose reliability varies invisibly, to a system that produces output whose scope is bounded by what the data can actually support. In a regulated environment, the latter is not just preferable — it is the only defensible architecture.The SchemaFor implementers, the complete FieldTrust GraphQL schema:enum CoverageStatus { CURRENT # fresh, authoritative, within freshness threshold STALE # present but beyond freshness threshold PARTIAL # computed across collection; not all items contributed ESTIMATED # inferred, not directly sourced ABSENT # structurally missing — not a pipeline failure UNRELIABLE # present but known to be misleading given its inputs}enum UseContext { CLIENT_DISPLAY AI_INPUT REGULATORY_REPORTING TREND_ANALYSIS INTERNAL_ONLY}enum TrustSource { REST_API MESH_COMPUTED SNOWFLAKE CRM CUSTODIAN_FEED DERIVED_FORMULA UPSTREAM_ATTESTED}enum FreshnessRisk { REAL_TIME NEAR_REAL_TIME BATCH_DAILY BATCH_LAGGED UNKNOWN}type ConflictRecord { source: String! value: String! asOf: String note: String resolution: String}type InputCoverage { field: String! coverage: CoverageStatus! itemsTotal: Int itemsCovered: Int}type FieldTrust { coverage: CoverageStatus! coverageNote: String source: TrustSource! derivedFrom: [String] inputCoverage: [InputCoverage] upstreamTrustSource: String upstreamTrustSchema: String asOf: String pipelineAsOf: String extractedAt: String freshnessRisk: FreshnessRisk validFor: [UseContext!] conflicts: [ConflictRecord!] resolverBackend: String}# Gap marker - replaces suppressed field values in AI payloadtype SuppressedField { suppressed: Boolean! coverage: CoverageStatus! coverageNote: String validFor: [UseContext!]}# Compressed trust - passed to AI after pre-filteringtype CompressedTrust { coverage: CoverageStatus! coverageNote: String validFor: [UseContext!] conflicts: [ConflictRecord!] freshnessRisk: FreshnessRisk}The sidecar attaches to existing types via extend:extend type FinancialSummary { __trust: FinancialSummaryTrust }extend type Activities { __trust: ActivitiesTrust }extend type Holdings { __trust: HoldingsTrust }extend type Performance { __trust: PerformanceTrust }extend type Holding { costBasisTrust: FieldTrust }Existing consumers ignore the __trust fields. AI consumers request them explicitly alongside the values they need. The schema remains backward compatible.The Standards GapThe FieldTrust contract draws on published standards for the components it can: Data Contract Specification for field ownership and SLA, OpenLineage for transformation chain recording, FHIR's observation status model as the conceptual basis for the CoverageStatus enum — the principle that status is a first-class field, not the absence of a value, comes from healthcare's hard-won experience with multi-source clinical data.What none of these standards address is the AI consumer layer: the specific need to communicate field-level trustworthiness in a form that a language model can act on before generating output. The coverage state question — is this field populated, stale, estimated, or structurally absent for this record? — has no published standard answer. The conflict resolution question — two sources disagree on this value, which one wins, and why? — has no published standard answer. The intent annotation question — is this value appropriate for client display, regulatory reporting, or AI input? — has no published standard answer.This is new territory. The wealth management domain has specific requirements that make getting it right more consequential than most — the regulatory stakes of a wrong number in an advisor briefing, the compliance exposure of fabricated client history, the client relationship cost of an AI that overstates its confidence in a meeting it knows little about. But the pattern generalizes: any domain in which AI generators consume multi-source structured data, where sources disagree, where some fields are structurally absent in some records, and where the consequences of overconfident generation are measurable will benefit from a trust envelope at the field level.The catalog tells you what is true about the data in general. FieldTrust tells the AI what is true about this value, right now, for this record. Both are necessary. Only one exists as a standard.The author works on AI and data infrastructure for wealth management at Advisor360°. The failure modes described in this article are drawn from our production evaluation pipeline — a context that makes the gap between a lineage-complete system and a trust-complete system visible in real data, with real consequences.This is the fourth in a series on why AI in wealth management is harder than the vendor space acknowledges. Earlier pieces in the series: “Can I Trust This Number?” covers the data quality and custodian problems that defeat most AI overlays before they start; “The AI Overlay Trap” explains why AI-on-top-of-someone-else’s-data products will hit a trust wall; “The Number Looks Right. That’s the Problem.” covers the specific failure mode of plausible wrongness and what fixes it.Beyond Lineage: A Field-Level Trust Contract for AI Data Consumers was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.