Manuscript Offprint

arXiv:2609.02866

When Does Authorization End? Effect Closure at Provider Boundaries

Igor Santos-Grueiro

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Igor Santos-Grueiro

International University of La Rioja

igor.santosgrueiro@unir.net

Abstract—Revocation completion, clean state, or operation success can leave authorized work able to cause an effect the application rejects while the provider stays within its contract. We call the absence of all such paths policy-relative effect closure, or effect closure for short. Thus, a grant is closed when its existing authorizations retain no such path, and it cannot issue any new ones.

We present EFFECTBOUND, which uses an evidence-supported finite contract to decide whether an interface can truthfully report closure while required work completes. It reduces this to finite control with hidden state and returns a strategy, an impossibility certificate, or no verdict when evidence is insufficient. Machine-checked proofs establish the reduction and checker soundness; the checker derives closure results and validates certificates.

Across GitHub, Kubernetes, NATS, and Kafka, closure fails in three ways: an interface lacks a needed control, clean visible state hides active work, or the model stops before the effect frontier—the last point where the effect can be prevented. The GitHub tool cannot bind a merge to the reviewed commit; a controlled run confirms that it may merge a different commit. NATS can report no stored or pending messages while dispatched work can still publish downstream. In Kafka, all fixed-set brokers had applied the revocation, yet an earlier authorized request could still append. We add a gate that blocks new use of revoked authority and delays return until earlier in-flight work completes. In a fixed-set Kafka 4.3.1 test deployment, this closes the studied synchronous, nontransactional write path without blocking unrelated requests. For a grant, authorization ends only when issuance stops and no earlier authorization can reach an effect the application rejects.

1. Introduction

When can a provider boundary truthfully report that previously authorized work can no longer cause an effect the application rejects? We trace six paths from authorization to application effect in GitHub, Kubernetes, NATS, and Kafka. Consider an application using GitHub's Model Context Protocol (MCP) server to merge pull request 42. The application approves h1h_1 and calls merge_pull_request, but the head may move to h2h_2 before merge. GitHub's native API [1] can reject the merge if the head no longer matches the reviewed commit, whereas the tested MCP tool [2] exposes no equivalent check. Reads may all return h1h_1, yet the head can change after the last one. Refusing or reading forever

blocks required work; proceeding without a condition may merge h2h_2. Thus, a component limited to this MCP interface cannot guarantee both safety and completion, although both interfaces behave as documented. The MCP interface reaches the effect but cannot bind it to the reviewed commit.

We found a different failure in Kafka: a model can end too early. Our initial model allowed return after every broker in the declared fixed set applied the access control list (ACL) deletion [3], [4]. We paused a request after authorization, yet it appended after return: authorizer convergence was real, but the model stopped before the effect frontier at append. We therefore designed Effect Fence: it blocks new use of revoked authority and delays return until earlier in-flight work completes, extending closure to append. A correct proof can stop before the effect frontier: verification is only as meaningful as the effect path it reaches.

We model both failures along g→a→c→F→eg \to a \to c \to F \to e: grant lineage gg issues authorization instance aa; continuation cc carries it; and effect ee follows the last preventable point FF, the effect frontier. The chain distinguishes future-use closure, instance-effect closure, and quiescence (all work stopping). We argue that authorization ends for a lineage only when no new instance can be issued and no previously issued instance retains a path to a rejected effect. We call the second condition policy-relative effect closure, or effect closure for short. It is distinct from local completion and quiescence: safe work may continue.

This is not only a check/use problem. In NATS [5], [6] and Kafka, authorized work can still cause effects after a local completion signal; Kubernetes [7] adds post-authorization mutation and already-admitted requests. The six paths span late-bound names, post-check state changes, admitted execution, repeated delivery, callbacks, and distributed in-flight work. Each shows how issued authority can still cause an effect. We selected them for structural diversity rather than to estimate prevalence.

Prior work studies revocation and ongoing use, check/use and authorization-execution divergence, and enforcement over supplied interfaces or models [8], [9], [10], [11], [12], [13]. Commit-time authorization [14] rechecks authority at an exposed commit point.

In contrast, we present EFFECTBOUND, which uses a finite contract constructed from provider evidence to decide whether the provider boundary reaches the effect frontier and exposes enough control to close rejected paths while required work completes. It returns a strategy, a losing certificate, or UNSUPPORTED when evidence is insufficient. We contribute policy-relative effect-closure semantics, frontier adequacy, and boundary realizability. Established supervisory-control machinery [15], [16] decides the finite realizability problem. Closure fails when a needed control is absent, local state hides active work, or the model stops before the frontier. Bind fixes the checked identity, Re-enter rechecks authority, and Fence waits at the effect boundary.

The NATS purge base and three variants exercise the closure checker. They hold the provider path, policy, and required closure claim fixed while varying the boundary assumption or control: native completion is treated as terminal, the effect is bound to the authorized delivery, or dispatched callbacks are awaited. Kafka provides the in-depth systems study: we implement a gate, test crashes and contention, and measure whether it preserves unrelated work under the declared policy.

This paper makes three contributions:

  • Policy-relative effect-closure semantics. We characterize authorization completion from grant to application effect through g→a→c→F→eg \to a \to c \to F \to e. We define future-use, instance-effect, and lineage closure, prove their strict separation from quiescence, and recover complete revocation as lineage closure under a post-revocation policy. A closure claim returned on success names its kind, subject, policy, frontier, scope, and configuration.

  • Frontier adequacy and boundary realizability. We require coverage from model boundary BB to effect frontier FF, then ask whether the interface can report closure without blocking required work. For finite contracts, this is a control problem with hidden state. If no strategy works, a losing certificate rules out all strategies over that interface; its simplest form, an authorization twin, pairs worlds where the same observation requires incompatible choices. Machine-checked proofs establish the reduction and checker soundness. The checker validates 17 published certificates and derives every closure result for the four NATS contracts above. The checked results are conditional on the paths and continuations represented in each contract; they do not establish that every provider path was modeled.

  • Systems evidence. Across six structural paths in GitHub, Kubernetes, NATS, and Kafka, we find missing controls, hidden active work, and premature model boundaries. We implement Effect Fence for the studied Kafka path and measure its cost in the test deployment.

References (44)