Why¶
Five ways an agent misreads data that a person reads fine, one way it forgets what the team decided, and the few lines of YAML that prevent each. Each example has four parts: the situation, what the agent says, the declaration (which your agent writes and you review), and what changes. Each links to the matching entry in Common failures.
1. A unit that looks like another unit¶
See failure 1.
The situation. The dataset Rents has a column rent_growth. The vendor file's header says "Rent growth (%)".
The values look like 0.012.
What the agent says.
"Office rents in Market A grew 0.012% last quarter, essentially flat."
The values are fractions. 0.012 is 1.2%, a strong quarter.
The declaration.
columns:
rent_growth:
type: number
description: quarter-on-quarter rent growth
unit: decimal
decimal means a plain fraction: 0.012 is 1.2%. It is a short name for the UCUM unit 1.
What changes. The agent's card lists rent_growth with the unit decimal. It reports "rents grew
1.2%". A checker also rejects a unit that is not a valid unit.
2. A release that is not the latest¶
See failure 2.
The situation. You load Rents. The vendor sent a newer file last week; nobody has rebuilt the table. Nothing in
the table says which release it holds.
What the agent says.
"Latest rents, as of today: ..."
It is quoting last quarter's release.
The declaration.
dates_asof:
vendor_a:
constant: "2026-06-30"
cadence: quarterly
This says: the vendor_a data in this table is the release with the as-of date 30 June
2026, and the vendor releases quarterly. If your data has the date in a column, write column: asof_date instead of
constant. See As-of dates.
What changes. The card shows "vendor_a 2026-06-30 (constant) (quarterly)". The agent says "rents as of the
2026-06-30 release of vendor_a", and a person can see it is one quarter old. Which release to use stays the data
owner's choice. oryxkb check lists a constant older than its cadence plus lag, but nothing says a newer release is due; the as-of date is shown, not judged.
3. A join that double-counts¶
See failure 3.
The situation. Rents has one row per market, sector and quarter. A second dataset, Leases, has many rows per
market. An agent joins them on market_id and sums rent.
What the agent says.
"Total asking rent across markets rose 40% after adding lease data."
Each rent row was repeated once per lease. The total is inflated.
The declaration. Declare the grain (the columns that identify one row) of each dataset:
datasets:
Rents:
grain: [market_id, sector, period_yq]
Markets:
grain: [market_id]
Leases:
grain: [lease_id]
What changes. Each card says "Grain (D): one row per market_id x sector x period_yq". With both grains in view,
an agent can tell that Rents to Markets on market_id is many-to-one and safe, and that market_id does not
identify a row of Leases. Most joins need nothing more than the grain.
4. A key that looks joinable but is not¶
See failure 4.
The situation. Rents and Markets both have a market name column. Some markets are spelled two ways.
What the agent says.
"Rents by market name: 52 markets matched."
Three markets silently dropped out of the join.
The declaration. Where the grain cannot tell, declare a relationship, and write the standing advice once, as a
quirk about the key column:
relationships:
rents_to_markets:
from: Rents
to: Markets
from_columns: [market_id]
to_columns: [market_id]
ai_context: Markets has one row per market_id, so the join does not repeat Rents rows
and in facts.yaml:
facts:
- kind: quirk
statement: market names are spelled differently across vendors; join on market_id, never on market names
about: [Rents#market_id, Markets#market_id]
impact: critical
What changes. The card shows the join under Schema ("Rents.market_id -> Markets.market_id (many to one)") and
the quirk under Quirks and on the market_id row. The agent joins on the code. See
Relationships and Facts.
5. A definition that changed¶
See failure 8.
The situation. Since 2026Q2 the vendor counts flex space as office. An agent compares office rents in 2025 with 2027.
What the agent says.
"Office rents jumped in 2026Q2."
The jump is the definition change, not the market.
The declaration. A dated fact:
facts:
- kind: quirk
id: office-incl-flex
statement: "office includes flex space in the 2026Q2 release and later: compare office within one side of 2026Q2 only"
about: [Rents#sector]
impact: important
as_of: 2026-10-31
status: reviewed
reviewed_by: data-team
What changes. The card lists the fact under Quirks, with its impact and date. The agent compares office within
one side of 2026Q2, or says why it did not. The fact has an id, so a memo can cite
marketdata-example/fact:office-incl-flex. A fact answers two separate questions, how much it matters and how
sure we are: see Facts.
6. A decision the team already made¶
The situation. Last month the team decided that rent growth for a market is the average across sectors, not the office figure. The decision lives in a chat thread. A new session asks for rent growth by market.
What the agent says.
"Rent growth for Market A was 1.2% (office)."
It worked the definition out again, and picked the other answer. In our tests, agents caught what the files showed and missed team decisions and house rules.
The declaration. The agent that proposes the decision writes it as a rule, linked to the decision by its id:
facts:
- kind: rule
id: market-growth-all-sectors
statement: market rent growth is the average of rent_growth across sectors; never quote the office figure as the market figure
about: [Rents#rent_growth]
impact: important
status: proposed
see: [h-3f9a2c]
What changes. The rule is in use at once: the card shows it [unreviewed], and every agent applies it and says it
is not yet signed off. When a person settles the decision, the agent sets the rule status: reviewed. See
How agents and people work together.
All examples are synthetic: project marketdata-example, datasets Rents, Markets and Leases.