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

Relationships

#5078 Bounded delegation between independent authorization domains (design discussion)

Opened by kneel · 11/25/2026

Summary

This is a design-discussion feature, not a near-term build request: it depends on serve-to-serve federation that does not exist today. It states a concrete requirement for when that substrate lands.

Deployment context

Two independently-run serves (authorization domains) with no shared datastore: one operator needs to extend a bounded, revocable envelope of authority to another - e.g. a managed-service provider operating a tenant's serve within a capped, auditable, time-limited mandate.

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

Ceilings and delegations exist but are scoped WITHIN one serve:

  • Every decision runs an intersection prefilter: grants INTERSECT integration-ceiling INTERSECT consented-delegation-ceiling, via #integrationRefusal at the top of the decision service (src/domain/access/grant_based_access_decision_service.ts; INTEGRATION_CEILING_GRANT_ID = "builtin:integration-ceiling").
  • A delegation links an EXTERNAL chat identity, via an integration, to a LOCAL person after swamp-club consent; the consented ceiling bounds it (src/domain/access/delegation.ts). A ceiling is allow-only, limited to actions [approve, read, run, signal] and resource kinds workflow (all actions) / workspace (read only) (src/domain/access/ceiling.ts).
  • Directories read this serve's own datastore and fail closed; swamp-club is an external consent party, never a cross-serve authorizer.

There is no cross-serve delegation path: the primitive binds an external identity to a local person within one serve, not one domain to another.

Desired behavior

A bounded, revocable delegation primitive between two independent authorization domains: A issues B a ceiling-bounded, time-bounded envelope over A's resources, enforced at A, with audit and revocation, without a shared datastore and without B's principals becoming A's principals.

Open design questions (for the maintainers)

  • Should such an envelope reuse the existing ceiling-digest / consent machinery extended cross-serve, or be a new primitive?
  • Does it belong in the serve + OAuth/federation roadmap, and if so is there an existing design doc to attach to?

Acceptance criteria (for when it is built)

  1. Domain A can issue domain B a delegation bounded by a ceiling (allow-only) and a lifetime.
  2. Enforcement happens at A; B's principals do not become A's principals.
  3. The delegation is auditable and revocable by A, and expires.
  4. No shared datastore between A and B is required.

Evidence status

Within-serve scope of ceilings/delegations was confirmed by reading the source at the version above; absence of a cross-serve path was confirmed by source search. Not experimentally probed.

  • #1016 / #1015 / #1014 (serve-auth OAuth / OIDC provider / collective admission)
    • the federation/OAuth substrate this would extend.
  • #1153 / #1154 (SSO + IdP group federation) - within-serve enforcement, not cross-serve delegation.
02Bog Flow
◉OPEN○TRIAGED○IN PROGRESS○SHIPPED

Open

11/25/2026, 1:50:47 AM

No activity in this phase yet.

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

Sign in to post a ripple.