· Anh Han
Ontology Is Taste Codified, Part 2: From the Business to the Screen
How the same taste gets written down and enforced at every layer, from what matters between customer and business to the words on the screen.
Part 1 argued that agents inherit the average unless you write your taste down. This part is about where you write it. The answer isn’t one place. It’s every layer, starting above the product with the business itself and ending at the screen.
A taste rule in a strategy doc is a wish. The same rule in a database constraint is a fact the system can’t break. Somewhere between those two are prompts, tests and interface rules, and each layer enforces something the others can’t. Drift tends to live in the gaps, where one layer quietly believes something the next one doesn’t.
I’ll follow one distinction all the way down, then show the layers.
One distinction: what someone said versus what they did
Take an illustrative Waris claim: independent estate planners will pay RM100 per readiness report. Here’s what Duyên does with four things that might come in.
| What comes in | Proof level | What Duyên records | What it suggests next |
|---|---|---|---|
| “I’d pay RM100 per report.” | What people say | Stated willingness. Weak support. | Make a paid offer. |
| The planner approves an order at RM100. | What people do | An order at the target price. | Follow through to payment. |
| A receipt for RM100, one report. | What people do | A documented purchase at the target price. | Test whether they pay again, or a second planner pays. |
| A receipt for RM80, one report. | What people do | A documented purchase at RM80. Inconclusive for RM100. | Test RM100 directly. |
Each row changes the next step, which is what makes the distinction worth having.
The less obvious lesson is that a receipt isn’t evidence on its own. It becomes evidence in relation to a specific claim. The same RM100 receipt settles this planner paid RM100 once, and says nothing yet about this planner will buy again.
So the observation gets stored once, and each claim gets its own link to it, with a direction and a reason. A person can then see exactly how Duyên reached its reading. Today Duyên records a link as supporting or contradicting. Working this example made me want a third option, inconclusive, with the reason written down. I haven’t built that yet.
How to write one down
I keep one plain Markdown file per concept, grouped by domain and versioned with the code. No formal ontology language. The only reader is a model, and models read prose well.
Each file answers six questions. Most of my existing files answer only the first.
| Part | The question it answers | For the RM100 distinction |
|---|---|---|
| Meaning | What is this, and how does it relate to other concepts? | An observation links to a claim through evidence, with a direction and a reason. |
| Recognition | What must an agent see, what source should it quote, and what should it ask when a missing fact would change the call? | Who actually acted? Did money move, or was something only agreed? Keep the exact excerpt. |
| Consequence | What does classifying it this way change in the workflow? | Stated willingness triggers a paid offer. A first purchase triggers a repeat test. |
| Refusals | What will we never do with it, even though a competent stranger would? | Never count talk as a purchase. Never round RM80 up to RM100. |
| Examples | One clear case and one boundary case, with the expected output. | An invoice the seller sent. Did the buyer act, or only the seller? |
| Who decides | Which calls can an agent make, and which does a person merge? | Agents propose. The founder approves any change to the claim. |
The boundary case is the most valuable row. A clear case shows an agent what you mean. A boundary case shows it where your taste actually draws the line. Anthropic’s prompting guide says the same: examples should cover edge cases and vary enough that the model doesn’t pick up the wrong pattern (multishot prompting).
Down the stack
The first ontology isn’t technical at all. It sits at the level of the business, and it says what matters between the customer and the business. For Waris, that’s a family’s intentions, held in trust. For a travel aggregator, it’s how and why this person travels. For Duyên, it’s what a founder believes and what would prove them wrong. Every layer below inherits that choice, so if it’s wrong, nothing downstream can rescue it.
From there, the same taste gets written down again at each layer, in the form that layer can enforce.
| Layer | What the ontology becomes | How it’s enforced | A real example |
|---|---|---|---|
| Business | What matters between customer and business | Scope decisions a person owns | Waris narrows to one school of Islamic law, Shafi’i. |
| Concept files | Meaning, distinctions, refusals and examples, in prose | Review, and loading into agents | Waris’s risk rule: if two risks are fixed by the same structural change, they’re one risk. |
| Data model | Types, enums and constraints | The database refuses anything else | In nya, a record can only be proposed, merged or declined, and the author is a person or a capability. |
| Contract tests | The concept files and the schema agree | A test fails in CI | nya checks its concept index against its event schemas. One test proves an offer of help can never change a claim’s confidence. |
| Server logic | The rules that turn records into readings | The only code path that computes them | Confidence is derived from evidence, never self-reported. Every Waris action must be justified by a specific risk. |
| Agents | Which concepts an agent speaks, and what it may write | Declared in the agent’s definition, plus a merge gate | Duyên’s agents propose. A person merges. |
| Evals | Clear and boundary examples, with expected outputs | Scored on every change | Waris’s scenario goldens. The “is this a purchase or a promise” cases. |
| Interface | Words, labels and what’s shown beside what | Rendering rules | Waris never shows a relationship value the data doesn’t hold. Founders read “assumptions”, never “beliefs”. |
The table hides the most important part, which is the direction of travel. Meaning flows down. Every layer is a narrower, more enforceable copy of the one above.
The interface is where drift is easiest to see. Waris’s data stores a family member’s relationship as child or spouse. A renderer that shows Son or Wife has quietly added an interpretation the data doesn’t hold, so Waris has an explicit rule against it: show the raw value, and put any derivation beside it. It looks like a pedantic rule about labels. It’s really the ontology defending itself at the last layer, where a person finally reads it.
That’s also why I keep business logic on the server and let screens only render what they’re given. I build for web, mobile and API clients. If each one interpreted the records itself, I’d have three ontologies within a month.
Each layer needs its own kind of check, because no single check covers them all. Rules a script can verify, like “never record a confidence as a number”, become constraints and lints. Rules that need judgment become eval cases, with the boundary example as the first one. Rules that must stay with a person, like whether an opportunity is worth pursuing, become a gate where someone merges or declines. My own delivery loop ships any code that passes its tests, so I’ve learned to treat a rule nobody checks as a hope.
Growing it from corrections
I can’t write most of this up front. I find out what my taste is when an output makes me flinch.
So each flinch becomes a step. The correction gets noted while I’m using the product. If it happens twice, it becomes a rule in the concept file, with the output I rejected as the boundary example and an eval built from it. If the rule changes what a concept means, the ontology version goes up, and the next agent inherits the fix.
Part 1 has a small example. My writing skill required a confession in every piece. The drafts came back formulaic, I said so, and the rule changed that day. The skill reads differently to every agent from now on.
A second example: travel, when agents book
Part 1 asks what a travel aggregator competes on once agents do the booking and catalogue, price and service recovery are equal. Here’s the method applied: start from the taste, then decide what to model and what data to build.
| What the traveller says | What you’d model | What data you’d build |
|---|---|---|
| “I want space.” | Unscheduled time, room to spread out, or quiet. Ask which one, when it changes the choice. | Usable room layout, noise by time of day, free time left after transfers and check-in. |
| “I want to explore.” | Freedom to wander on foot and change plans as you go. | Walkable clusters of places they’d enjoy, overlapping opening hours, how easy a detour is. |
| “Dinner needs to be easy.” | A short walk to somewhere the family can eat, at the hour they’ll actually get back. | Walking routes from the hotel entrance, opening hours, dietary fit. |
| “I want to cram it in.” | Many things they care about, with a transit burden they’ll accept. | Realistic door-to-door times, booking windows, which stops fit together. |
The table shows something the RM100 example didn’t. The hotel isn’t the unit of judgment. The itinerary is. Dinner options only matter in relation to when you get back, and fitness options only in relation to when you’re free. The ontology makes those relationships expressible, and the data makes them answerable. Waris makes the same move with estates: the intention is the unit, and every policy or nomination is judged by whether it holds that intention up.
The agent can then give a reason a traveller can check: “This hotel gives you two dinner options within a ten-minute walk on the nights you get back late.”
The thesis is testable. Run the same agent with the same inventory and prices, and give it the richer fit data in only one arm. See which options travellers choose. Then, after they travel, ask whether the trip delivered what they wanted. If codified taste matters, the second answer is where it shows.
Beyond ventures
The method isn’t specific to startups. In a room with a team, “I feel anxious” is something a person reports. “The group lacks an agreed way to decide” is a hypothesis the facilitator can test with the group. Give them separate meanings, and an agent can keep exactly what was said while proposing a question the group can actually answer. Merge them, and it starts diagnosing people.
What’s still open
I’m testing all of this on Duyên first. I don’t know yet how many concepts need the full six parts, or whether some are better left thin. I suspect the gate where a person decides should stay wider than my engineering instincts would like.
If you’re doing something similar, I’d like to compare notes. In particular: which of your distinctions turned out to matter only once an agent got them wrong?