Link copied
Blog › The Consulted Layer
Frameworks

The Consulted Layer

KG
Teh Kim GuanACMA · CGMA
2026-08-21 · 6 min read
The Consulted Layer

Five times in four days, a fact was written down correctly and acted on wrongly.

Not lost. Not stale. Written, current, correct, and sitting in a file nobody opened at the moment the decision was made. Each time, the decision came from a different artifact that said something else, or said nothing.

This is a documentation problem the way a leak is a plumbing problem. Technically true, and it points you at the wrong pipe.

The five

Monday. A source read of an open-source agent memory platform. The public README describes an access control layer governing what an agent can be fed. The code says otherwise: the permission function returns false for the restricted case in every path, so what an agent receives is decided by a fixed binding set elsewhere. The README is right that the access control layer exists. It is wrong that the layer matters. Anyone evaluating the platform reads the README.

Tuesday. A research briefing was filed into a knowledge graph, and the pipeline reported it as a new topic with no prior related research. The graph already held four directly related nodes under identical labels. The cause was in the cluster builder, which identifies a document node by the presence of a source-file field. 2,289 of 2,355 nodes carry it. The extraction prompt that the subagent reads never mentions it. The schema knew. The prompt did not, and the prompt is what ran.

Wednesday, first case. A message archive was reported as unauthenticated and empty. It was neither. The tool defaults to a store path that answers every diagnostic in the negative. The real store holds 46,101 messages, is healthy, synced that morning, and sits elsewhere behind an explicit flag. The reference file documents this correctly under its own heading. What reached the session was the one-line index entry: name of tool, what it does. The subject survived and the trap was dropped. Nobody opened the file, because the index said what it was about.

Wednesday, second case. A naming standard says every markdown filename in the workspace must be globally unique, because the indexer keys on filename and not path. It says so in two places. One existing brand system carries a README at six different paths. Faced with a live choice between the written rule and the only working example, the example wins about half the time, and the next person faces the same coin flip.

Wednesday, third case, and the expensive one. Two finance documents disagreed about whether a category of recharged advertising spend carries an 18% markup. The older checklist says it does. The newer monthly close says it does not. The newer document supersedes by date and never says so. Real invoices then went out inconsistently across five months: one carried the markup, three did not, and RM756 was under-billed before anyone compared the two files side by side.

The shape

Five pairs showing what got read at decision time against where the fact was recorded, such as the README against the source code

Write out what these have in common and the documentation framing falls apart.

In every case the correct fact existed, in writing, in a maintained artifact, at the time of the decision. Nothing was out of date. Nothing was undocumented. What differed each time was which artifact got read when the decision was made, and it was never the one the fact was written into.

The consulted layer is the artifact a reader actually reaches at decision time. It is rarely the artifact where the truth was recorded.

The README, not the source. The prompt, not the schema. The index line, not the reference file. The existing example, not the written rule. The document you happened to open, not the document that supersedes it.

Five different systems, one shape.

Why agents make it worse

A human reading a README has a hedge available. They can feel the gap between what a document claims and what a system does, and go and look. That instinct is expensive and unreliable, but it exists.

An agent reads the consulted layer and stops. It has no independent reason to suspect the layer it was handed. It also reports with the confidence of a primary source, because from inside the run the consulted layer is the only source there was. The message archive case is exact: the answer given was "retrieval is blocked, the store reports zero messages", stated as fact, while a healthy store with 46,101 messages sat one flag away.

Every layer we add for efficiency is a new consulted layer: an index over files, a prompt over a schema, a summary over a source, a README over code. Each is built by taking a large true thing and compressing it into a smaller thing that gets read more often. Compression is the point, so the failure mode is built into the point.

Compression also selects against the information that makes a file worth having. An index entry written as a subject summary keeps the noun and drops the gotcha, because the gotcha is not what the file is about. It is what the file is for. That is a systematic bias, not an authoring slip. Any memory whose value is a trap rather than a topic disappears at the index layer by construction.

What to do about it

Three rules came out of the week. All three are cheap. None of them is "write better documentation".

Put the fact where the decision happens, not where the topic lives. Not a copy. A move, or an explicit pointer that cannot be summarised away. The source-file field belongs in the extraction prompt, because the prompt is what the subagent reads. The store flag belongs in the index line, because the index line is what reaches the session. For any fact you depend on, ask which artifact is open at the moment it matters, and put the fact there. The definitive file stays definitive and stops being the only place the fact appears.

A document that changes a standing rule must say so out loud. Not by date. By sentence: "This supersedes the markup treatment in the expense retrieval checklist." Superseding by publication date works only for a reader holding both documents, and the whole failure is that they are holding one. A grep for the old figure would have caught the RM756 in seconds. Nobody ran it, because nobody knew a second document existed to disagree with.

When the written rule and the working example disagree, the example is the rule. Either fix the six files or write the exemption into the standard. Both are acceptable. Leaving the contradiction standing is not, because the next person does not read it as an inconsistency. They read it as permission. A declared standard that nobody enforces is an absent standard with a documentation cost.

The test

Before you rely on anything, ask: at the moment I acted, which file was actually open? Then ask whether the fact I relied on was in that file, or in a better file I did not open.

If it was the better file, you did not get lucky and you did not get away with it. You reached the right answer by a path that does not repeat.

All five cases failed that test. Four cost time. One cost RM756, and only because someone eventually opened both documents at once.

For a related failure, where the source itself differs from its description, see Read the Source, Not the README. For the monitoring version, where every artifact around a gap reads healthy, see Twelve Routines Went Dark and the Dashboard Stayed Green.

Part of the Knowledge Management series from KG Consultancy.

About the Author
KG
Teh Kim Guan
Product Consultant · General Manager, PEPS Ventures

Strategy and technology are the same decision. Over 15 years in fintech (CTOS, D&B), prop-tech (PropertyGuru DataSense), and digital startups, I have built frameworks that help founders and executives make both moves at once. Based in Kuala Lumpur.

More from the blog
Frameworks
The Author Cannot Feel the Trust Boundary
A security scrub pulled four strings from a project I was about to share. I wrote every one on purpose, and each read as correct when I wrote it.
2026-09-04 · 5 min read
Frameworks
The Politeness Budget
A request to triple a scraper's fetch rate looked like optimisation. The log showed 98% of elapsed time was deliberate sleep, so it was a policy question.
2026-10-02 · 5 min read
Consulting
The Self-Sustaining Handoff: Why Every Consulting Engagement Should End with a System, Not a Report
Most consultants deliver a report. The client reads it once, implements 20% of it, and files the rest. There is a better exit: a system the client team can operate without you.
2026-05-16 · 6 min read
Work with KG

Working on a 0→1 product?

I help founders and operators go from idea to validated product. Let's talk about yours.

Get in touch →