Knowledge graphs are what make agentic AI trustworthy
· Do Minh Tuan · Business Hackers 🚀
Cassie Shum gave a talk at InfoQ about building agentic AI systems that survive contact with production, and her argument was that the knowledge layer matters more than the model. The four patterns she described are the part I would keep.
Agentic AI means a system that plans and acts rather than answering one question. It breaks a task into steps, calls tools, checks results and tries again when something fails. That autonomy is the appeal and, to me, the problem. A system that can take three actions on its own can also take the wrong three, confidently, at 2am.
The usual starting point is retrieval augmented generation, usually shortened to RAG. You put documents in a vector store, the model fetches the closest ones, and it answers from them. That works for questions with an answer in a document. It struggles when the answer depends on how facts relate: who owns what, which policy overrides which, what happened after the change.
Why a graph, and why now
A knowledge graph stores entities and the relationships between them. Customer A placed order B. Order B shipped from warehouse C. Warehouse C is in a region with a tax rule. The model can traverse those relationships instead of hoping a chunk of text contains the connection.
For an agent, I think this changes the kind of mistake it makes. With plain retrieval, a missing document means a confident guess. With a graph, a missing edge is visible. The agent can say it does not know, or ask for the link, which is a much better failure than an invented answer.
The cost is real, and I would not underestimate it. Building a graph means deciding what an entity is, which is an argument about your business that engineers cannot settle alone. It also means maintaining the thing as the business changes. A graph that is six months stale is worse than no graph, because it looks authoritative.
The four patterns
Context bundling means assembling everything an agent needs for one task into a single package: the documents, the conversation, the relevant entities and the rules. It is unglamorous and decisive: the difference between a task that has what it needs and one that goes hunting mid-way and forgets why it started.
Decision provenance means recording why each decision was made, what data it used and what it did. For an agent that moves money or changes a record, this is the difference between an incident you can reconstruct and one you can only describe as strange.
Code as truth means the executable logic is the specification, rather than a document that describes what the code should do. Documents drift. Code runs. When the two disagree, the code wins whether you planned for that or not, so you may as well make the disagreement impossible.
Agent visibility means being able to see what the agent is doing while it does it: which tool, which step, how long it has been there. Without that, debugging is archaeology.
None of these four patterns is exotic. That is the point. The talk is not selling a new framework, it is arguing that the boring parts of software engineering apply to agents too, and that teams skip them because the demo is more fun than the log.
What I would build first
I would start with provenance, not with the graph. Log every action with a timestamp, the input, the decision and the output, in a store you can query. A document database or even structured files will do at small scale. The point is that the log exists before the incident, not after.
Then visibility. A simple view of current runs and recent failures, with the tool call and the reason. This is the thing an on-call engineer actually uses, and I would build it earlier than the dashboards.
The graph comes third for me, and only for the domain where relationships genuinely matter. If your agent answers questions about shipping exceptions, the relationships between shipment, carrier, contract and policy are the whole problem. Build the graph there. Do not build one for everything because the diagram looks good.
I would also keep the harness small and boring. A test suite of realistic tasks, run after every prompt change, with a pass rate you track. The talk calls this an engineering harness. The name matters less than the habit, because without it every prompt tweak is a guess and nobody can tell whether the last change made things better or just different.
Where I part company with the enthusiasm
The promise is that agents will handle refunds, order changes and troubleshooting end to end. Some of that will happen. The part that gets skipped in the demos is the exception path, and the exception path is where the cost lives. A refund agent that handles ninety percent of cases still needs a person for the tenth, and that person needs to see everything the agent did.
So the business case is throughput on routine cases, with a human handling the rest faster because the context is assembled. It is not headcount removal. That is a good outcome. It is a smaller claim than the one usually made, and it is the one I would put in a budget.
For a team in Vietnam or anywhere else building this, the practical advice is to pick one workflow with a clear owner and a measurable outcome. Build the log, build the visibility, then add structure. The graph is a tool for reasoning, and reasoning is only useful when someone is accountable for the answer.
Written with AI assistance, reviewed and edited by Do Minh Tuan.