Engineering & Architecture Brief Published: 2026-11-15
In an AGV fleet with agentic coordination, the worst configuration bug is not inside one file. It sits between two files: the zone reservation lease TTL on the coordinator and the comm-loss watchdog on the vehicle. Each value passes review in its own repository. Together they let a standby coordinator hand an intersection to a second vehicle while the first one is still rolling into it.
Why nobody catches it in review The agentic planner does not drive the vehicles. It asks for zone reservations through an MCP tool, and the coordinator grants each one as a time-bound lease, so a crashed planner or a hung WebAssembly sandbox cannot hold an intersection forever. That design is sound. The trouble starts when the vehicle team raises the onboard comm-loss watchdog, say from one second to three, because Wi-Fi roaming between access points was triggering nuisance safe stops on the mezzanine. The diff is small, the justification is real, the change lands in the firmware config repo, and the reviewer has no reason to open the coordinator's reservation settings, where the lease TTL has sat at 1500 ms since commissioning.
How it fails When the primary coordinator dies, the standby rebuilds the reservation table from replicated state, and it does the correct thing: it fences each lease it cannot confirm and waits out the TTL before regranting. That wait only protects you if the previous holder has physically stopped by the time the lease expires. With a 3 second watchdog and a 1500 ms lease, the vehicle that lost contact keeps executing its last authorized segment for well over a second after the standby considers the zone free. The standby grants the zone to a second AGV, the planner happily routes it, and the only remaining barrier is the vehicle's own field safety scanner, which the driverless industrial truck safety standards such as ISO 3691 treat as the last layer of protection, not the traffic control layer. Most of the time nothing happens because the timing rarely lines up. That rarity is exactly why it recurs: every postmortem calls it a one-off near miss.
A check you can run today Pull the effective values, not the defaults in the repo, from both sides: read the lease TTL from the running coordinator with something like `yq '.reservation.lease_ttl_ms' coordinator.yaml` against the deployed config, then collect the watchdog timeout and the worst-case braking time from every vehicle profile in the fleet, since mixed hardware generations rarely share one value. Apply this decision rule: the lease TTL must exceed the largest watchdog timeout plus the longest stopping time plus your measured clock skew between coordinator and vehicles, and if it does not, the configuration is unsafe whatever any single reviewer approved. If your vehicles export these values as metrics, encode the invariant as a standing alert, for example `max(agv_reservation_lease_ttl_ms) < on() max(agv_watchdog_stop_ms + agv_max_brake_ms + agv_clock_skew_ms)`, so a firmware rollout that breaks it pages someone before the next failover drill instead of after the next incident. For a runtime cross-check, scan reservation grants for cases where the previous holder's position telemetry carries a timestamp later than its lease expiry and shows nonzero velocity. On a healthy fleet that query returns nothing, and every row it does return is a recorded near miss.
Where the invariant should live Moving the check into CI on both repositories turns a cross-team assumption into a failing build, but it costs something: the vehicle team can no longer tune the watchdog without coordinating a lease change, and lengthening the lease means a crashed planner holds zones longer, which by our estimate cuts intersection throughput during a failover by a noticeable fraction on dense layouts, so the next decision is whether you accept that throughput loss or invest in explicit stop acknowledgements from vehicles, which let the standby release a zone as soon as the vehicle confirms zero velocity instead of waiting out a pessimistic timer.