Migrating the In-Vehicle Assistant to an Agentic Stack Without Losing the Safe State
The legacy assistant that calls vehicle functions through hand-written intent handlers fails in one recognizable way: when one handler hangs or misreads a signal, nothing outside it notices. Moving to an agentic architecture puts the language model behind three layers it cannot get past. A Wasm micro-runtime holds each tool, an MCP router decides which tools the agent can see, and a deterministic constraint verifier sits between any proposed action and the actuator. The budget case rests on what each layer costs and on which failure it removes from the field.
What the old stack was actually guaranteeing
In most legacy deployments the intent handlers ran as native code inside the infotainment process, with direct or lightly wrapped access to the gateway's signal interface. Safety came from the handlers being few, static and individually reviewed, not from any isolation boundary. That model works until the handler count grows and someone adds a convenience path that writes a body or comfort signal without going through the gateway's arbitration. Once a probabilistic planner composes tool calls at runtime, the static review assumption is gone, and the migration has to replace it with containment that holds whatever the planner emits. Write that down first, because it is the only argument that justifies the spend: you are not buying intelligence, you are buying a boundary that the old stack never had.
Layering for partial failure
Each tool runs in its own Wasm instance with linear memory capped and no ambient capabilities, so a tool that panics, loops or corrupts its heap takes down one instance and nothing else. The MCP router exposes tools per vehicle mode, which means a parked vehicle and a vehicle at speed present different tool surfaces to the agent, and a router crash collapses to an empty surface instead of an open one. The constraint verifier is the piece that must never be probabilistic: it is plain, bounded code that checks every proposed actuation against vehicle state and a declarative rule set, and it is developed under the functional safety standards that govern the actuator it protects, such as ISO 26262 at the ASIL of the target function. Give the verifier a hard deadline of 10 ms per decision, enforced by a watchdog on a separate core, and treat a missed deadline as a rejection, never as a retry. The failure mode to design against is the stale state snapshot: the agent proposes an action that was valid when it read vehicle speed, the verifier checks against the same cached snapshot, and the action lands after the condition has changed. The fix is cheap but non-negotiable, because the verifier must read state directly at decision time and stamp it, and anything older than its own deadline is refused.
The part that hurts
The costs show up in three places, and each one buys something you can measure. Dual-running the legacy handlers next to the new stack during validation doubles the integration test matrix, and the trade is that every behavioural divergence between them becomes a logged, reviewable event instead of a field complaint. Wasm isolation adds per-call marshalling overhead and a cold start for each instance, and the trade is fault containment you can prove by injecting crashes into a single tool and confirming that no other tool's latency moves. As an estimate, the first year carries roughly a third more engineering effort than extending the legacy handlers would, most of it spent writing verifier rules that were previously implicit in someone's head. As a second estimate, expect perhaps one in ten legacy handlers to have no clean equivalent, because they relied on side effects the verifier now forbids, and those features ship late or not at all.
The decision rule for each tool is simple: if its worst-case action, executed at the wrong moment, can reach an actuator with a safety classification, it ships only once its verifier rules exist and its injected-fault test passes, and if it cannot, it ships behind the router alone and the verifier work is deferred, which leaves the budget fight about how many tools sit on the first side of that line rather than about the architecture itself.
Technical FAQ: Why not keep the legacy handlers and just put the language model in front of them?
Because the handlers have no isolation from one another or from the signal interface, so the model would inherit every unreviewed write path they contain, and you would carry the full cost of runtime composition with none of the containment that makes it defensible to a safety assessor.