Data and Knowledge SystemsKnowledge representation and evidencePrincipal
What evidence is required before retiring an event after an assistant finds no consumers?
By Amit Kumar2 min readWorked answer includedReviewed 26 Sept 2026
The question
Interview question
A code graph returns no OrderRefunded consumers, but external clients, reflection and an unindexed deployment remain outside coverage. Define a defensible scoped answer and the discovery, deprecation, owner and recovery evidence required for removal. Explain how an urgent security shutdown differs from proving absence.
Draft your approach first
Take a few minutes before you read the answer. Name the constraint that matters most, the failure you are designing for and how you would know it worked.
Reveal the worked answerWorked answer
Zero matches is a property of a query over an observed dataset. “No consumers exist” is a claim about the whole world. To get from one to the other, the system needs a closed scope and a completeness argument: which repositories, deployment versions, schema versions, topics, customer integrations, and time window are included, and which ways of consuming the event are detectable. With an unindexed deployment and external clients, the current claim is false as a statement of knowledge even if it later turns out nobody uses the event.
I would have the assistant answer something like: “No consumers found in the indexed first-party repositories at these commits. The production deployment, reflection-based subscriber, and external clients are not covered.” Show the coverage manifest and last successful ingest for each source. Report failures as unknown, not as zero. A precise index such as SCIP can make positive symbol references reliable for supported languages, but a dynamic registration path can evade a static reference graph. CodeQL's call-graph documentation discusses this kind of limit. A graph has to name what it did not observe.
For a removal decision, close the discovery paths one by one. Enumerate deployments and their exact artifacts, inspect topic and schema registry subscriptions, search code and configuration, review service ownership records, and contact owners of external contracts. Runtime telemetry can show actual use over a defined window, with event version and client identity where privacy permits. A quiet window is weak evidence for a monthly or dormant consumer. Add a deprecation period, warnings and owner acknowledgments, compatibility checks, and a rollback or bridge plan. The exact period should follow the consumer contract and traffic pattern, not an arbitrary seven-day dashboard.
The team asks to remove the event today because the graph is empty. The covered graph has no observed consumer. That does not establish a safe disablement. If there is an urgent security reason to stop publishing, use an incident process with a bounded change, notice to owners, monitoring for errors or missing downstream outputs, and a recovery path. That is an explicit risk decision. The assistant should not launder a coverage gap into approval.
Even a fully indexed internal graph does not close external consumers. A provider may expose the event through webhooks or an exported stream. If subscriber identities are not recorded or enforceable, negative proof may be impossible. Then the safe product language is a scoped observation and a deprecation process, not a universal “none.” This is also why a list of apparent consumers can help with investigation, while a zero-result claim needs a much stronger contract.
Related questions
- How should an assistant resolve conflicting policy sources when the authoritative source is unavailable?Staff
- When should a retrieval system embed individual sentences instead of larger passages?Staff
- How should a RAG pipeline preserve table cells, headers and footnotes for accurate numerical answers?Staff
Keep practising data and knowledge systems
Follow another question in this area, or search the complete library.
Get my essays on AI engineering and distributed systems by email. Subscribe to ArchCrux