H-05Action & ErgonomicsDesignEngineeringStrategy

Align with Interface Priors

Honor conventions deeply embedded in model pretraining; eliminate Norman Tools and justify any bespoke abstraction against its recurring teaching cost.

Human UXAgent AXMatch between system and the real world→Interface priors

Imagine a coding agent on a Thursday afternoon. Its task: fix the flaky checkout test, then confirm the fix on staging before Friday's release.

The fix on its branch takes ten minutes. Staging still runs Monday's build, so the agent looks for a way to bring it up to date. In its tool list sits rebase(env, onto), described as "Rebase an environment." The agent knows exactly what rebase means. It calls rebase(env="staging", onto="main"), gets back {"ok": true}, and moves on.

At this company, "rebase" means something else. Years ago the platform team named their environment reset script after the git command, as a joke that stuck: you "rebase" an environment onto a fresh copy of production. The call deleted every row in the staging database and restored last night's scrubbed production snapshot. Two days of QA's seeded test accounts were gone, along with a load test another team had left running.

The checkout tests now fail, because the accounts they log in with no longer exist. The agent spends the next forty minutes repairing test fixtures for a problem it created. QA spends Friday morning re-seeding staging, and the release moves to Monday.

Nobody did anything unreasonable. The agent read the word the way thousands of documents taught it to, and the tool did what its authors built it to do. The bug is the name.

Why it happens

A model arrives at your tools already knowing a great deal. It has read git manuals, SQL tutorials, shell scripts, REST APIs and countless forum threads about all of them. Show it git log, SELECT … WHERE or grep -r and it knows what they do and which arguments they take. It even knows what the output will look like, before you write a word of documentation. The Guide calls this fluency an interface priorLexicon · 35Interface PriorHow fluently a model already knows an interface from pretraining.: how well a model already knows an interface from its training.

A strong prior is free instruction. A tool called run_sql that takes a SQL string needs almost no explanation, because the model has seen millions of examples. The same prior turns dangerous when your tool borrows the familiar name and then behaves differently. The word rebase arrived with its meaning attached: replay my commits on top of the latest code, leave the data alone. A five-word description that doesn't contradict that meaning can't overwrite it.

Jakob Nielsen's second usability heuristic asks interfaces to show a match between the system and the real world: speak the user's language and follow conventions they already know. For an agent, the real world is its training data. Git's meaning of "rebase" is the convention, and the platform team's private meaning is the jargon.

In The Design of Everyday Things, Don Norman argued that when people misuse an object, the design is usually to blame. Designers now have a name for a door whose handle says "pull" when you have to push: a Norman door. The agent version is a tool whose name or schema cues the wrong behavior. The Guide calls it a Norman toolLexicon · 32Norman ToolsMisleading tool names or schemas that trigger the wrong prior.. Norman tools are the worst kind of mismatch, because they fail exactly when the agent feels most confident.

A familiar name is a promise. A Norman tool breaks it.

A new hire would have been warned. Someone on the team would mention in week one that "rebase" wipes the database, or the new hire would ask before running it. The agent gets no week one. Every session starts from zero: same training, no memory of last Tuesday's mistake, no hallway conversation. The Guide calls this the perpetual noviceLexicon · 09The Perpetual NoviceAn agent starting every session without accumulated interface familiarity.. Whatever the agent needs to know about your conventions has to be in the context, every session.

That makes the opposite case expensive too. Suppose the same platform team built LensQL, a custom query language with its own pipe syntax, because it is shorter to type than SQL. The model has no prior for LensQL at all. So every session loads the LensQL docs into context before the first query. Even then, the agent slips back into SQL now and then, because SQL is what it knows best. The Guide states this as the teaching cost lawLexicon · 36The Teaching Cost LawRecurring per-session onboarding tax paid by any out-of-distribution tool.: any tool outside what the model was trained on charges an onboarding tax, and it charges it every session.

The figure below puts numbers on that tax. LensQL saves a few tokens on every query, but it starts each session in debt: the docs it had to load. Move the sliders to see how many queries a session must run before the bespoke language earns its keep. Then switch the design to "SQL lookalike" and watch the break-even point disappear.

LensQL design
Model
4k8k0Tokens per session03060Queries per sessionPlain SQLLensQL1,500 tokens of docs, paid every sessionBreak-even at 37 queries

Break-even at 37 queries per session. Below that, plain SQL is cheaper. Illustrative model, not measured data.

Fig. 5.1An illustrative break-even model. Plain SQL starts every session at zero because the model already knows it. LensQL starts above zero, at the cost of its docs, and each misfire into the wrong dialect costs a retry. A SQL lookalike misfires most, because the familiar look triggers the SQL prior.

Three things decide the outcome. The fixed cost is the docs. The savings per query have to be real. And the misfire rate depends on how far the language sits from what the model knows. A strict superset of SQL rarely misfires. A novel syntax sometimes does. A lookalike that accepts SELECT but rejects JOIN misfires constantly. Familiar-but-different is the Norman tool again, at the scale of a whole language.

What it costs

Confident wrong actions. A tool with no prior makes the agent cautious: it reads the docs and tries small things first. A Norman tool makes it bold. The rebase call went straight to staging with no hesitation, because nothing about it felt unfamiliar. The damage lands on other people's work, and nobody sees it until the side effects surface.

A tax on every session. Teaching tokens are not a one-time setup cost. A 1,500-token manual for your query language is paid by every session, every sub-agent and every retry after a context reset. Across thousands of sessions a month, that is a standing line item, and it also crowds the context window that the actual task needs.

Turns lost to dialect drift. Even with docs loaded, a model under pressure falls back on what it knows. Each slip costs an error, a re-read of the docs and a rewrite. These loops look like the agent being careless. They are the interface asking the agent to suppress its strongest habit, over and over.

Supervision and lock-in. When agents keep misusing an internal tool, teams usually respond with longer system prompts, approval gates or a bigger model. All three cost more than a rename. For decision makers, the rule of thumb is simple: every bespoke abstraction is a recurring cost, and it needs a recurring benefit to justify it.

The fix

In plain words:

  1. Use what the model already knows. Prefer SQL, git, shell conventions, HTTP verbs and standard names whenever they fit the job.
  2. Never borrow a familiar name for unfamiliar behavior. If your tool doesn't do what the well-known command does, give it a name that says what it actually does.
  3. Make bespoke tools pay their way. A custom abstraction is fine when it saves more, per session, than it costs to teach. Do the math before you ship it.

Here is the environment tool from the hook, before and after.

Beforetool definition → 30 tok
{
  "name": "rebase", 1
  "description": "Rebase an environment.", 2
  "parameters": {
    "env": "string",
    "onto": "string" 3
  }
}
  1. 1The name carries git's meaning: replay commits, keep the data. The tool does the opposite. It keeps no commits and destroys all data.
  2. 2The description repeats the name, so it reinforces the wrong prior instead of correcting it.
  3. 3onto is a git parameter name. Together with env, it invites exactly the call the agent made: rebase staging onto main.
Tokens30
Staging databases wiped by mistake1 wipes
Aftertool definition → 110 tok
{
  "name": "reset_env_data_to_snapshot", 1
  "description": "Deletes ALL data in the env's database and restores a scrubbed production snapshot. Does not touch code or git branches. To deploy a branch, use deploy_branch.", 2
  "parameters": {
    "env": { "enum": ["dev", "staging"] },
    "snapshot": { "type": "string",
                  "examples": ["prod-2026-11-25"] },
    "confirm_data_loss": { "const": true } 3
  },
  "annotations": { "destructiveHint": true } 4
}
  1. 1The name states the effect in plain words. No prior can misread it, and the word reset correctly suggests that something is lost.
  2. 2The description says what is destroyed, what is untouched, and points the agent to the tool it probably wanted.
  3. 3A required confirm_data_loss flag adds one deliberate step to a destructive call. That friction is the point, and it costs only a few tokens.
  4. 4The Model Context Protocol's destructiveHint annotation lets the harness ask for approval, so a human sees this call before it runs.
Tokens110
Staging databases wiped by mistake0 wipes
Illustrative example

Walk through the pins. Pin 1 is the whole heuristic in one line. A name is the first and strongest thing the agent reads about a tool, and the new name describes the effect, not the team's history. Pin 2 turns the description from an echo into a correction: it names what is destroyed and what is safe. Pin 3 removes onto, the parameter that finished the git sentence for the agent.

Everything the agent can read in a tool's definition is a cue for how to use it: the name, the parameter names, the types, the enums, the examples. The Guide calls these cues schema affordancesLexicon · 31Schema AffordancesUsage cues communicated through tool names, parameters and types.. In the old definition, every affordance pointed toward git. In the new one, every affordance points toward what the tool really does.

The fix has a second half that the diff can't show. The agent wanted to put its branch on staging, which is a deploy. So give that intent a tool shaped the way the agent already thinks: deploy_branch(env="staging", branch="fix/checkout-flake"). When the familiar intent has a familiar-looking tool, the agent stops reaching for the wrong one.

The same pattern on other tools

Norman tools hide in names chosen for humans who already had the context. Here are common shapes and their fixes:

Internal namePrior it triggersWhat it actually doesAligned version
rebase(env, onto)git rebase: replay commits, keep datawipes the database, restores a snapshotreset_env_data_to_snapshot(env, snapshot)
sync(repo)git pull: merge remote changes inforce-resets to remote, discards local editsreset_to_remote(repo, discard_local=true)
grep(pattern)regex match over textfuzzy semantic searchsemantic_search(query)
archive(ticket_id)hidden but recoverablehard delete after 24 hoursdelete_ticket(id), with the undo window in the response
query(q) taking LensQLSQLrejects most SQLrun_sql(sql) over curated views

The last row is the language case. You rarely need a new language to get a new capability. Expose curated SQL views with clear column names, and the agent writes the query it already knows:

SELECT region, SUM(net_amount) AS revenue
FROM orders_closed
WHERE closed_at >= '2026-07-01'
GROUP BY region;

If LensQL must stay, accept standard SQL and translate at the boundary, so the model's habit becomes the correct input. A strict superset keeps the prior working for you.

In MCP terms

MCP describes tool arguments in standard JSON Schema, a format models have seen countless times. The plainer your schema, the less reset_env_data_to_snapshot has to teach.

  • Tool name (name). This is the identifier the model calls. The spec only constrains its form: 1 to 128 ASCII letters, digits, _, - or ., case-sensitive. Whether it reads as git is up to you.
  • Description (description). The spec calls it a "hint" to the model. It is where the correction lives: what is destroyed, what is safe, and deploy_branch for a deploy. title is meant for UI and end users, so it can't rescue a misleading name.
  • Input schema (inputSchema). Stick to standard JSON Schema keywords: enum for env, const for confirm_data_loss, and examples, an array, for snapshot. The spec doesn't say clients show examples to the model, so repeat it in the description.
  • Annotations (destructiveHint, readOnlyHint). The defaults assume the worst: destructiveHint is true and readOnlyHint false unless you say otherwise. So the old rebase was already "destructive," and so was every harmless tool beside it. Mark safe tools readOnlyHint: true so the risky one stands out. They are hints, untrusted unless the server is.
  • Not in the protocol. MCP sets no naming style, and its examples mix getUser, DATA_EXPORT_v2 and admin.tools.list. Pick the convention your domain already uses and keep it.

Here is the fixed definition in MCP's shape:

{
  "name": "reset_env_data_to_snapshot",
  "inputSchema": {
    "type": "object",
    "properties": {
      "env": { "type": "string", "enum": ["dev", "staging"] },
      "snapshot": { "type": "string", "examples": ["prod-2026-11-25"] },
      "confirm_data_loss": { "const": true }
    },
    "required": ["env", "snapshot", "confirm_data_loss"]
  }
}

The root must be "type": "object", and required makes the data-loss flag mandatory.

Spot it in your traces

Here is the session from the hook as a trace. Turn 2 is the moment to look for: the agent explains the tool in its standard meaning, and the explanation is wrong.

TraceA coding agent preparing staging for a test run
  1. T1
    get_env_status(env="staging")→ { "build": "main@4e1a9c2", "deployed": "2026-11-23" }Staging is three days behind my branch.A sound first move. The agent checks the environment before testing on it.
  2. T2
    rebase(env="staging", onto="main")→ { "ok": true }Staging is rebased onto main, so it has the latest code.The agent describes git's meaning. The tool wiped the staging database and restored a snapshot. Nothing in its name or response said so.
  3. T3
    run_tests(suite="checkout", env="staging")→ { "passed": 3, "failed": 9, "error": "user qa_buyer_01 not found" }The fixtures must be broken. I'll repair them.The agent now debugs a problem it caused, because its model of the environment no longer matches reality.
  4. T4
    create_user(env="staging", email="qa_buyer_01@test.local")→ { "id": "u_5512" }Writes keep piling onto the wrong belief. QA's real seed data is still gone, and nobody has been told.

To find the same failure in your own logs, look for these signals:

  • Reasoning that paraphrases the standard meaning. Search the agent's reasoning for each internal tool name and read how it describes the tool. If the paraphrase matches git, SQL or shell and not your implementation, you have a Norman tool.
  • Surprise after success. A call returns ok, and the next call fails for reasons the agent didn't cause: missing records, a reset branch, an empty table. Line up successful writes with the errors that follow them.
  • Dialect leaks. Count calls to a bespoke language or CLI that contain standard syntax. Typical leaks are SQL keywords in a LensQL query, --flags in a tool that takes JSON, and git-style arguments to an internal deploy tool. Each one is the prior winning.
  • The same first error, every session. If session after session opens with the same syntax error on the same tool, the agent isn't learning, because it can't. That error is your teaching cost, paid in turns.
  • Docs per call. For each bespoke tool, divide the tokens of documentation in the system prompt by the average number of calls per session. A large ratio means the tool costs more to teach than it saves.

Review checklist

Run these against every tool you add or rename. Most take a minute with the tool definition open.

Review checklist · 7 items
  1. Give no tool the name of a well-known command or keyword unless it behaves the same way.How to check List tool names that match git, SQL, shell or HTTP vocabulary (rebase, sync, grep, commit, query). For each, confirm the behavior matches the standard meaning, or rename it.
  2. Name destructive tools after their effect, and say what they destroy in the first sentence of the description.How to check Read only the name and the first sentence. A new teammate should be able to say what data is lost without opening the code.
  3. Remove parameter names borrowed from a different tool's vocabulary.How to check For each parameter, ask which well-known command uses that name. If it is a command with different semantics (such as onto from git rebase), rename it.
  4. Prefer standard interfaces (SQL, git, shell, HTTP) over custom languages and CLIs where they fit the job.How to check For each bespoke language or CLI, write down what plain SQL or a standard command cannot do. If the list is empty, replace it.
  5. Justify every bespoke abstraction with a teaching-cost estimate.How to check Divide its documentation tokens by the average calls per session. Compare the result with the tokens it saves per call. It should be lower.
  6. Let bespoke languages accept the standard syntax the model will write anyway.How to check Send the tool a plain SQL (or standard CLI) version of a common request. It should run, or return an error that shows the exact translated form.
  7. Mark destructive tools with destructiveHint: true and require an explicit confirmation argument.How to check Inspect the tool's MCP annotations and schema. Calling it without the confirmation flag should fail validation, not run.

When laws collide

Aligning with priors sometimes means giving up a shortcut, and it combines well with the laws that make bespoke tools safe and cheap.

  • Pulls against · H-08Compositional Accelerators
    Where they clash
    Compositional Accelerators asks for tools that let the agent filter, batch and compute in one call. The quickest way to build one is often a small custom language, which is exactly what this heuristic warns about.
    How to have both
    Build the accelerator in a language the model already knows: SQL over views, a shell pipeline, a JSON filter with standard operators. Invent new syntax only when the teaching-cost math shows it pays back within a typical session.
  • How they combine
    When a bespoke tool earns its place, Just-in-Time Micro-Docs shrinks its teaching cost. One canonical example, inline in the description or the first error, replaces a long manual loaded up front.
    What you get
    The teaching cost drops from a full manual per session to a few dozen tokens paid only when the tool is used, which moves the break-even point much closer.
  • How they combine
    A renamed tool stops the agent from misreading it. A declared blast radius catches the cases a name can't, by marking the tool destructive so the harness can require approval or a dry run.
    What you get
    Two layers of defense. The name makes the wrong call unlikely, and the annotation makes it visible to a human before it runs.

How hard priors pull depends on the model. Smaller, faster models tend to lean harder on familiar patterns and follow unfamiliar instructions less reliably, while larger models read docs more carefully but still slip under pressure. The Guide's term for treating the model as the user persona is Persona = ModelLexicon · 12Persona = ModelTreating model family, scale and training as the user persona.: a tool that works for one model tier may fail for another. Aligned names help every tier, which is why they belong in the interface, not the prompt.

Terms from this page

35Interface Prior
How fluently a model already knows an interface from pretraining.
32Norman Tools
Misleading tool names or schemas that trigger the wrong prior.
09The Perpetual Novice
An agent starting every session without accumulated interface familiarity.
36The Teaching Cost Law
Recurring per-session onboarding tax paid by any out-of-distribution tool.
31Schema Affordances
Usage cues communicated through tool names, parameters and types.
12Persona = Model
Treating model family, scale and training as the user persona.
esc

Try “tokens”, “errors”, “stale”, “handoff” or “blast radius”.