Codd's relational model, 1970: one fact in one place, for your agent too
TL;DR. In 1970 Edgar F. Codd proposed keeping data as plain tables and sparing users from knowing how it is stored. The same paper discussed redundancy and consistency: stored data that can be derived from other stored data, and stored values that must agree with the rules tying them together. Copies that drift apart are the everyday form of that problem, and the step from the paper to your tools is my reading. Your startup probably keeps a customer's plan in the users table, in billing and in the CRM. An AI agent that reads one copy can answer from it, and nothing in the answer says the copies differ. Name one place of record for each key fact, tell the agent, and run a check that lists where the copies disagree.
What did Codd propose?
Edgar F. "Ted" Codd was a mathematician at IBM's San Jose research lab. In June 1970 he published A Relational Model of Data for Large Shared Data Banks in Communications of the ACM. Its first line says that future users of large data banks "must be protected from having to know how the data is organized in the machine". At the time, programs found records by following links and paths set up for the machine. Codd proposed plain tables instead, linked by the values in them, so a question could be asked without knowing the layout. He received the 1981 Turing Award for the work that became the relational database.
The second half of the paper is about redundancy and consistency. Some redundancy is useful, and Codd says it comes from what the users of the data need. But when the same fact can be found in two places, the two can disagree. He treated consistency as a property of what the data bank holds at a given moment: the stored values either meet the rules that tie them together, or they do not.
I found no recording of Codd speaking, so this post has no clip. His own words are in the paper linked above.
What faded, what holds, and why?
Some of the paper is history now. Codd wrote his queries in mathematical notation. Two IBM colleagues, Donald Chamberlin and Ray Boyce, thought the ideas would travel further in words non-mathematicians knew, and in 1974 published a query language modelled on plain English, later called SQL, as Chamberlin recalls. That is what people and agents write today. Storing each fact exactly once also faded in analytics. I think report tables copy facts on purpose because they are read far more often than they are written, and that the trade is sound when every copy is rebuilt from one source.
What holds is the reasoning. Codd named three ways programs depended on how data was stored: on the order of records, on indexes, and on access paths (section 1.2). Remove them and a question survives a change of storage. That is why an agent can query a database without knowing its files. His flat tables were also meant to move easily between systems that store data differently, the same job a flat CSV export does between your tools today. And his point on consistency holds in a new form: copies are fine when one place is the record and the copies are checked against it.
Why does a 1970 idea matter now?
What small teams often lose, in my experience, is that last discipline. Tools copy facts around. Your app writes a plan into the users table at signup, billing keeps the plan the customer pays for, and the CRM holds the plan sales typed in. Nobody decides which one is true, so each tool answers from its own copy.
Until recently a person sat between those copies and the answer. Now an agent often reads the tables directly, and nothing tells it which copy is true. Two papers on agents that write SQL are relevant here. An October 2025 study by one author, now over a year old, tested eight models: one wide table did well on simple lookups, while tables that keep each fact once did better on aggregation questions such as counts and sums, because duplicated rows and empty values led models astray. A June 2026 paper from two universities tested views, partitions and clearer column names on two text-to-SQL benchmarks. It reports accuracy gains of up to 4.2 points, its best result, from single runs, and warns against one catch-all view because a wrong join can silently change a count.
I think the lesson for a startup is simple: decide where each key fact lives, and tell the agent.
Our test: does naming the place of record change the answer?
I ran this on 26 November 2026 with four made-up customers and one question: how many customers are on the pro plan right now? The plan sits in three tables. The users table says two, the CRM says two, and billing, the only place that reflects what customers pay for, says one.
I asked two open models on Cloudflare Workers AI, three times each with the tables alone and three times with a short note naming billing as the place of record, with default settings. The larger model, gpt-oss-120b, answered one in all six runs. The smaller model, Llama 4 Scout, answered two in all three runs without the note, each time after joining the users table to billing. With the note it answered one in all three runs and listed the copies that disagreed.
Three runs per case on two models is a direction, not a measurement. The larger model counted correctly on its own. The smaller one did not until it had the note, which names the table and the filter, so this tests whether a model follows a stated place of record, not whether it can find one.
What goes into your setup?
One place of record per key fact. Failure: plan, status and owner each live in three tables and drift. Guardrail: a short list that names the one table each key fact comes from. Check: ask two people where the customer's plan comes from, and compare.
Copies are allowed, and checked. Failure: a copy goes stale and nobody notices until a number is wrong. Guardrail: a query that lists every row where a copy disagrees with the record. Check: run it weekly. The count should be zero or shrinking.
The agent reads the list. Failure: the agent counts from a copy. In our test, the smaller model joined the users table to billing, and its answer of two matches the users table, not billing. Guardrail: the list sits where the agent reads its instructions. Check: ask the agent where it took the number from.
What changes by stage?
How many tools copy the same fact matters more than stage.
Before launch. One database, few copies. Write the place of record as a comment on each key column.
First paying customers. Billing and a CRM arrive, and with them the copies. Write the list and run the check weekly.
Growing, with a first data person. That person turns the check into a scheduled test and decides which copies to remove.
For your data team
For your data team
Show the technical part (2 code blocks)
This part gets technical. The list is a short markdown file next to your agent's instructions file:
# Facts of record (one place per fact)
- A customer's plan comes from subscriptions, rows with status = 'active'.
users.plan and crm_accounts.plan are copies that can be stale; never use them for plan counts.
- If the copies disagree with the record, say how many disagree.
That is the note from the test, word for word, with the line break moved. The check, on PostgreSQL 16:
-- Rows where a copy of the plan disagrees with the place of record (active subscription).
select u.id, u.email,
s.plan as billing_plan, -- record
u.plan as users_plan, -- copy
c.plan as crm_plan -- copy
from users u
left join subscriptions s on s.user_id = u.id and s.status = 'active'
left join crm_accounts c on lower(c.email) = lower(u.email)
where lower(u.plan) is distinct from lower(s.plan)
or lower(c.plan) is distinct from lower(s.plan)
order by u.id;
On the test data it returned three rows: one customer billed on starter but marked pro in the app and the CRM, one cancelled customer whose copies still show a plan, and one marked enterprise in the CRM only. is distinct from treats an empty value as a disagreement, which catches customers missing from one table. lower() keeps "Pro" and "pro" from counting as different. Give the agent a view built from the record, not the raw copies. The June 2026 paper's views cover join paths and names; building the view from the record is my addition.
Check it in 10 minutes
- Pick three facts your numbers depend on, such as plan, status and account owner.
- For each one, list every table or tool that stores it.
- Write down which one is the record. If nobody can say, that is the first finding.
- No coding agent and no repository? This step is for you. Export the plan column from the app and from billing into one sheet, match on email, and count the rows that differ. Then paste the two lines above into the instructions of the AI tool your team uses for data questions.
- The person who answers for the customer count owns the list.
This is the second post in the Classics series, after Minsky's frames. The post on one definition per metric covers the same discipline for numbers.
Spotted a mistake or a newer source? Tell us and we check it against the source. How we work.
Check your setup in 2 minutesAll postsGet new posts by email