With the shift to AI, table-model lookup and a registry matter more than ever. They are the clearest way to turn an open name into one row, and to make a missing row a miss.
With the shift to AI, table-model lookup and a registry matter more than ever. They are the clearest way to turn an open name into one row, and to make a missing row a miss.
Current models complete a likely continuation from what they are shown. Give a model a messy intent and a table of keys, and the task becomes selection. Give it an open namespace, and it can complete a plausible name that is not in the table.
An enum or a typed action can close a small, fixed set. A table is how a large set stays closed while rows are added and retired. The registry is that table: one row per thing that exists, under a stable key. Lookup is resolve. It returns that row, or a miss. It does not invent a nearby one.
The model proposes a key. Resolve accepts or rejects it. The host performs the effect.
The contract on each row, as I want it, has five checks:
Identity. The key exists. A miss stays a miss.
Shape. Inputs, outputs, effects, and errors are declared.
Authority. This actor may use it. Anything else is withheld.
Time. The row is still live, and the trace pins the version.
Effect. A read returns the row. A write is a second step, after confirm.
The samples below only exercise identity, shape, and retirement. Authority and the separate write step belong on the same resolve. They are not shown here.
Ranking, planning, and synthesis stay on the model side. A table with no model is a router. A model with no table has nowhere to land a name.
One table, added to and retired
At Bühler, the work was a binary-to-UI contract over .NET interop, for a reported 35,000+ machine configurations. That is the scale where an enum stops being the right closed set. The UI cannot grow a special case per machine. A configuration has to be a row the UI looks up.
Add. A new line arrives as one row: key, the shape of what a screen may show, a version, an owner. Screens that already call resolve start showing it. There is no new screen because a new line exists.
Retire. The row is removed or marked expired. The next lookup is a miss. Screens stop because they held a key, not a private copy of the line. A dead row left in the table is worse than a miss. Callers keep using it.
The samples use a plant-line table and stand-in names. They are not Bühler source, and they are not the files from the skill below.
Adding line 12 is inserting a row. Retiring line 9 is deleting that row. Both go through the same lookup:
ts
function resolveLine(key: string) {
const row = lines[key as LineRow['key']]
if (!row) return { status: 'not_found' as const, key }
return { status: 'found' as const, row, version: row.version }
}
resolveLine('LINE_4') is found, at version 3. resolveLine('LINE_12') is not_found until a row is inserted. After LINE_9 is removed, resolveLine('LINE_9') is not_found too. The caller does not get to fill either gap.
The problem: an agent in an open world
Put a model in front of that table and both the add and the retire get dangerous. An operator says "the new line" or "line 9 was decommissioned." The model completes a likely key. If the name is not looked up, that key can be a line that was never built, or a line that was retired and is still a string in a prompt.
The same three misses show up whenever an agent is told to change the table by search:
tsx
// A row in the table. This is the entry.
const line = resolveLine('LINE_4')
// Looks like configuration. It is a trace switch. Do not retire it.
const DEBUG_TRACE_FLAGS = { verbose: false, spans: false }
// Was LINE_4. The key was read upstream and only a boolean was passed on.
function LinePanel({ isLineLive = false }: { isLineLive?: boolean }) {
return isLineLive ? <Running /> : <Stopped />
}
A search for LINE_4 finds the first. A search for "config-shaped" objects can delete the second and break tracing. The third never contains the key, so a retire that only greps the key leaves the panel alive.
I shipped this rule as an agent skill that removes a feature toggle by key. Retiring a toggle is deleting a row. The skill reads a machine-readable index before its prose. The index holds the real keys, the known lookalikes, the search for a value passed down without the key, and the definition of done: typecheck, build, tests, lint, and a search that the key is gone. The agent's confidence is not the definition of done. Later branches, separate from that skill, add audit-gated Snyk fixes. Same direction: the agent proposes, a check outside the agent decides.
Add and retire for a line table, a toggle skill, and an agent with no lookup
Case
Add
Retire
Line table
Insert LINE_12. Existing callers of resolveLine pick it up.
Delete LINE_9. The next lookup is not_found.
Toggle skill
A new key is a new row in the key registry.
Remove that row, then every value derived from it, including props that no longer spell the key.
Agent with no lookup
Invents a plausible key.
Keeps a retired key, or removes a lookalike.
The same lookup, for UI
A2UI (opens in a new tab) is a declarative UI protocol. An agent sends JSON, not executable code. The client renders with its own components, from a catalog it trusts. That catalog is a registry: a table of component rows. The same JSON can travel over A2A, AG-UI, SSE, or WebSockets.
A2A (opens in a new tab) is how agents collaborate without access to each other's internal state, memory, or tools. An Agent Card is the document an agent publishes so a client can discover it. For A2UI over A2A, advertising A2UI on that card is encouraged, not required. Renderers can also negotiate catalogs in message metadata (A2UI A2A extension (opens in a new tab)). An unpublished agent is a key with no row. A likely name does not insert one.
A2UI v1.0 tells a renderer to keep a placeholder when a child or a data binding has not arrived yet, so a stream can render progressively. That is a different rule from "unknown key, fail closed." Fail closed is the retire rule: the name is not in the table at all.
The sketch below is that stricter rule. It is not an A2UI message. An A2UI message names a catalog and a list of components. This is the same table lookup as the line registry, applied to widgets a developer wrote as normal components.
tsx
type LineStatusProps = { lineId: string; state: 'running' | 'stopped' }
export function LineStatus({ lineId, state }: LineStatusProps) {
return (
<p>
{lineId}: {state}
</p>
)
}
ts
export const widgets = {
LineStatus: {
version: 1,
props: z.object({
lineId: z.string(),
state: z.enum(['running', 'stopped']),
}),
render: LineStatus,
},
} as const
type WidgetId = keyof typeof widgets
type WidgetRef = { id: string; props: unknown }
export function resolveWidget(ref: WidgetRef) {
const row = widgets[ref.id as WidgetId]
if (!row) return { status: 'not_found' as const, id: ref.id }
const parsed = row.props.safeParse(ref.props)
if (!parsed.success) return { status: 'invalid' as const, id: ref.id }
return {
status: 'found' as const,
version: row.version,
render: () => row.render(parsed.data),
}
}
resolveWidget on that JSON is found, version 1. { "id": "SuperLineStatus", ... } is not_found. { "id": "LineStatus", "props": { "lineId": "LINE_4", "state": "maybe" } } is invalid. Delete the LineStatus row and the first JSON becomes not_found. The component file can remain on disk. It is not addressable until a row puts it back.
lineId is still only a string here. A production screen would run that string through resolveLine before painting, so a retired line cannot be displayed by a widget that is still registered. Two tables, one lookup.
What this shape does not survive: a protocol break that changes the id space, a payload that carries a component constructor, or a table used as the place where planning lives.
What holds
While a caller can be wrong and an action can matter, truth and effect stay outside the model. The model may act only through a key the table already holds.
With the shift to AI, table-model lookup and a registry matter more than ever. Match the open name onto one row. A missing row is a miss. The host performs the effect.