Every B2B team shipping AI eventually faces the same support ticket: a number changed, and the assistant blames 'updated supplier data.' The customer wants to know which supplier and when. Answering this usually requires engineers to dig through logs, but the standard reflex—adding SHAP or LIME feature importances—is often the wrong move. Feature attribution explains the model, but data lineage explains the answer. In data-heavy products, the answer is what the customer trusts, and it requires a different architectural approach.
The Four Questions Behind the Ticket
Strip away the technical jargon, and customers are asking four specific things that have nothing to do with model internals: Which records produced this output? How fresh are those records? What does the deterministic, non-AI number say for comparison? And who else can see this data? These map to provenance, freshness, fallback surfaces, and access scope. The demand is real: 66% of developers cite 'almost right' AI as their top frustration, driven by a lack of trust in accuracy. Building for these four questions addresses the actual user need, which is verification, not just model interpretation.
Provenance Starts at Ingestion
You cannot retrofit explainability if your pipeline is a monolith. The guide recommends a serverless architecture with named stages—upload, validation, processing, calculation—where every artifact carries an ID forward. For example, a German carbon management platform uses AWS Lambda and DynamoDB to ensure each stage is idempotent and replayable. Crucially, you must record validation rejections. If 1,204 rows fail schema validation at 03:12, that fact is the answer to half your support tickets. Dropping those rejects destroys the ability to explain why the output changed. Timestamping arrival separately from event time is also critical, as users often conflate when data happened with when the system received it.
Keep the Deterministic Surface Intact
The cheapest explanation is the unchanged number sitting next to the AI recommendation. GazeHealth, a US mental-healthcare analytics platform, illustrates this by placing AI recommendations alongside existing D3 charts rather than replacing them. This structural decision allows the deterministic view to carry the interpretive load while the AI offers suggestions. It also enables role-based access control, ensuring that 'who else can see this' is answered by the same system that renders the data. This approach treats explainability as a product engineering task, not just a data science deliverable, recognizing that the ratio of full-stack developers to data scientists in these engagements often favors the former.
Decision History Is the Audit Trail
An explanation that cannot be reconstructed next quarter is useless. CYDEF, a Canadian cybersecurity firm, redesigned its threat processing workflow to retain history in PostgreSQL and AWS Blob Storage. This allows analysts to return to previous steps, separating 'the model was wrong' from 'the data never arrived.' The EU AI Act’s Article 12 reinforces this by requiring automatic recording of events for traceability. To manage costs, split storage by access pattern: keep hot, indexed data for recent queries in relational stores, and archive older inputs in blob storage. This ensures that auditing does not degrade the live ingestion path.
Explanations Are Testable Artifacts
If your explanation is generated by code, it must be tested. The article provides a Jest test suite example that asserts cited records exist, belong to the correct tenant, and sum to the stated figure. This catches common failures like stale IDs after a replay or cross-tenant leaks from bad joins. However, there is a hard limit: you can test consistency, but you cannot test correctness. Formal attribution tools like SHAP still have a place in regulated contexts or model debugging, but for most B2B products, lineage is the part users actually ask for. Build provenance first, keep deterministic surfaces visible, retain history, and test explanations in CI.
Key Takeaways
- Feature attribution explains the model, but data lineage explains the answer; for B2B products, customers care about the latter.
- Provenance must be built at ingestion with named, replayable stages, recording validation rejections and separate event/receipt timestamps.
- Keep deterministic charts alongside AI recommendations to provide a trusted baseline and simplify access control visibility.
- Treat explanations as testable artifacts in CI, asserting that cited records exist, belong to the correct tenant, and match the computed output.
The Bottom Line
Stop trying to debug the black box when the real issue is the data pipeline. Build lineage first, keep the deterministic numbers visible, and treat your explanations as code that needs tests.