Skip to main content
← Back to list
01Issue
FeatureOpenSwamp CLIPublicTeam
AssigneesNone

Relationships

#5075 Expose active authorization policy generation and reconciliation status

Opened by kneel · 11/25/2026

Deployment context

An operator renders authorization grants to serve from an external source of truth and needs to confirm which policy generation is actually active on each node, and whether a given source applied, was held at last-known, or is deferred. Without a read-back the renderer is blind to whether its change took effect.

Current behavior (verified against 20261124.230941.0-sha.6a630211)

  • A leader publishes a PolicyRelease that followers enforce, and PolicyRelease.digest() is a content digest of the active release (src/domain/access/policy_release.ts). This is a stable per-generation identifier.
  • But it is not surfaced to any client. The access reload response returns only grantCount/groupCount and a status (src/serve/handlers/access_handlers.ts); counts do not identify a generation (two different grant sets can share a count). The health payload has no access/policy section.

So a renderer cannot read back "generation/digest N is now live" to confirm its reconcile activated, nor distinguish applied vs held vs deferred per source.

Desired behavior

Expose, to an authorized client, the active policy release digest (per node), plus per-source reconcile status (applied / held-at-last-known / deferred), via the reload response and/or a read-only status endpoint. An external renderer can then confirm exactly which policy generation is active on a given node and whether each source took effect.

Suggested implementation (non-prescriptive)

The identifier already exists internally (PolicyRelease.digest()); the request is to surface it, and the per-source reconcile outcome, to an authorized client. Transport (reload response field, a read-only status endpoint, or both) is the maintainers' to choose.

Acceptance criteria

  1. An authorized client can read a stable policy generation id / release digest for the active policy.
  2. The value changes iff the active policy changed, and is stable across no-op reloads.
  3. It is readable per node, so an operator can confirm a follower has caught up.
  4. Per-source reconcile status distinguishes applied vs held-at-last-known vs deferred.

Evidence status

The internal release digest and the reload-response fields were confirmed by reading the source at the version above; the absence of client exposure was verified across the access handlers and health collectors. Not experimentally probed against a live serve.

  • #5019 / #4496 (leader publishes a policy release) - the release digest introduced there is the natural generation identifier to expose.
02Bog Flow
◉OPEN○TRIAGED○IN PROGRESS○SHIPPED

Open

11/25/2026, 1:27:28 AM

No activity in this phase yet.

03Sludge Pulse
kneel moved this from a private collective to public11/25/2026, 1:51:31 AM

Sign in to post a ripple.