Link copied
BlogRead the Source, Not the README
AI Workflow

Read the Source, Not the README

KG
Teh Kim GuanACMA · CGMA
2026-08-18 · 4 min read · Updated 2026-08-22
Read the Source, Not the README

A 22,000-star agent memory platform ships a textbook permission system. We tested it with two tenants. Eight of nine read routes leaked.

Tencent Cloud open-sourced an agent memory layer this year, TencentDB Agent Memory: a proxy that sits between your AI agent and its model, watches the conversation, and distils what happens into durable memory other agents can be granted later. Four months after release it carries 22,800 stars, and on paper its governance is the best in the field. Every memory asset has a visibility field and a lifecycle status. A proper ACL table names one asset, one subject, one permission per row, and records who granted it. All decisions flow through a single pure permission function. One code comment even records a deliberate July decision that private means private from team administrators too, and explains the blast radius of that choice.

Reading the source, I rated this the most disciplined permission layer I had seen in the category. Then we ran the test that settles it: install the platform, create two teams, put different data in each, and hammer every read route as a member of the wrong team.

Eight of nine read routes served the other team's data to a non-member.

The permission layer is sound. The HTTP layer bypasses it. The routes that serve memory to callers simply never invoke the beautiful function that would have said no. Both facts are true at once: the platform contains an exemplary access control system, and the platform does not control access.

Why This Pattern Recurs

A governance schema is cheap to write and impressive to read, and it gets evaluated by people reading documentation. Enforcement is a wiring property, invisible in any single file, and it only gets evaluated by people running attacks. The market rewards the first activity and almost nobody performs the second, so the gap between claimed and actual isolation can persist through tens of thousands of stars and four months of production adoption.

This is not an accusation of bad faith. The comment quality in that codebase says the authors care. The version tested was v2.0.1-beta.1, a beta by its own label; the wiring will likely be fixed, and the finding was reported. The lesson is about evaluation method, not about one vendor.

An access control system you have not watched refuse a request is a diagram, not a control.

The Test Costs an Afternoon

Flowchart of the two-tenant isolation test: create two tenants, authenticate as the wrong-team member, call every read route; every route that answers is a finding

If you are putting more than one client, team or tenant into any AI platform, run the proof before you load the second tenant's data. Create two tenants. Put a distinctive string in each. Authenticate as tenant one and call every read endpoint asking for tenant two's material: by ID, by search, by list, by export. Every route that answers is a finding. The whole exercise takes an afternoon and a test script, and it converts the vendor's claim into your own evidence.

The alternative is the industry default: trusting the README, loading client data, and discovering the wiring gap in an incident report. For anyone under PDPA or handling client-confidential material, that discovery is a notification event. An afternoon is cheaper.


Part of the Operating Principles 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
Knowledge Management
Who Is in the Room Is the Wrong Question
Three open platforms now let your clients talk to your AI agent. None of them can control which of your memories the agent reveals to whom.
2026-08-17 · 4 min read
Business Process Intelligence
Your AI Bill Is a Management Accounting Problem
Five large engineering organisations compared notes on runaway AI coding spend. The first tool finance reaches for came third on their list, and they call it a last resort.
2026-08-08 · 5 min read
AI Workflow
Token Economy as Cash Economy: Treating Model Selection as a Staffing Decision
Most model selection advice is correct and almost useless. A better frame: treat model tiers as staffing decisions. The same rules that built effective consulting teams apply directly.
2026-05-13 · 8 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 →