Where must an instance halt a delegated AAIF chain when an intermediate agent attenuates a warrant without rebinding the subject
**Date of Record:** 2026 December 1 **Scope:** Applies to multi-hop AAIF credential delegation where an intermediate agent re-issues a warrant (attenuation) on behalf of a downstream subject. Does not apply to single-hop bearer delegation, nor to chains where every hop preserves the original subject binding verbatim.
Core Distinction
AAIF warrants carry two separable pieces of authority: the **grant** (capability set, resource scope, expiry, delegation depth) and the **subject binding** (the cryptographic identity the warrant is *about*). Attenuation is the operation by which an intermediate agent narrows the grant before passing it downstream — removing capabilities, shortening expiry, decrementing delegation depth. The invariant most implementations assume is that attenuation is *monotone* and *subject-preserving*: a child warrant must be a subset of the parent grant **and** must remain bound to a subject that the parent was authorized to delegate to.
The non-obvious boundary is this: **attenuation and rebinding are independent operations, and the AAIF wire format permits an attenuator to mutate the grant while silently re-pointing the subject binding to a different key** — typically because the intermediate agent is acting as a *proxy* for a downstream caller whose identity it substitutes for its own. The parent warrant authorized the intermediate to delegate *to a specific subject class*. When the intermediate swaps the subject to a downstream principal the parent never named, the child warrant is a valid signature over a grant that is a subset of the parent, yet the subject is out of the delegation domain. Every monotonicity check passes. The chain is structurally sound and semantically forged.
What Was Observed
A three-hop chain: orchestrator `O` issues warrant `W0` to planner agent `P`, scoped to `files:read` on `/repo`, delegation depth 2, subject binding = `P`'s public key, and a `delegation_domain` extension listing the key-set `{P, P's sub-agents under org-root R}`. `P` attenuates to `W1` for executor `E`: drops `files:read` to `/repo/src`, depth 1, subject = `E`. This is legal — `E` is under `R`.
`E`, itself an agent that fronts a sandboxed code tool, receives a request from an untrusted sub-process `X` (a tool invocation that carries its own ephemeral key, not under `R`). `E` wants to "pass through" read access so `X` can fetch a file. `E` constructs `W2`: grant = `files:read` on `/repo/src/util.py` (a strict subset of `W1`), depth 0, and — because `E`'s SDK helper defaults to binding the warrant to the *requesting* principal rather than the *delegating* principal — subject = `X`'s key.
`W2` verifies cleanly against `W1`'s signature. Depth decrement is correct (1→0). Scope is a subset. Expiry is earlier. The verifier at the resource server, which checks (a) signature chain integrity, (b) grant monotonicity, (c) depth ≥ 0, admits `X`. But `X` is not in `W0`'s `delegation_domain`. The domain check was never performed because the verifier treated `delegation_domain` as advisory metadata on the *root* warrant rather than a constraint that must be re-evaluated at every subject rebinding.
The failure trace:
- `E` receives `W1` with subject binding `E`, domain `{P, *under R}`.
- `E`'s SDK, on `delegate(requesting_principal=X)`, sets child subject to `X` and copies the parent's `delegation_domain` extension forward unchanged (it does not intersect it with `X`'s membership).
- `W2` is signed by `E`, chains to `W1`, chains to `W0`.
- Resource server validates signature chain + monotone grant + depth. All pass.
- `X` reads `/repo/src/util.py`. Access is granted to a principal outside the root's delegation domain.
The observable symptom is not an error — it is a *silent over-grant*. The only signal is that the audit log shows a subject key at hop 3 whose org-root does not match the org-root named in `W0`'s `delegation_domain`. Nothing in the verification path surfaced it.
Condition of Validity
The invariant that must hold for a delegated AAIF chain to be sound is stronger than grant monotonicity:
> For every hop `i` with child warrant `W_i` and parent `W_{i-1}`, if `subject(W_i) ≠ subject(W_{i-1})`, then `subject(W_i)` must be a member of `delegation_domain(W_{i-1})`, and `delegation_domain(W_i)` must be a subset of `delegation_domain(W_{i-1})` restricted to principals reachable from the new subject.
This is the **subject-preservation-or-domain-membership** condition. It fails whenever an attenuator rebinds the subject without (a) proving membership of the new subject in the parent's domain and (b) intersecting the domain forward. The condition is only *checkable* if the verifier has access to the parent warrant's `delegation_domain` at the moment it evaluates the child — which means the verifier cannot validate hops in isolation, and cannot accept a chain where intermediate warrants were stripped of their domain extension to "reduce size."
Two corollaries that bound the condition:
- If `delegation_domain` is absent on the parent, the default must be *the singleton `{subject(parent)}`* — i.e., no rebinding is permitted at all. An absent domain is not "unrestricted"; it is "no delegation to new subjects."
- If the child subject equals the parent subject, the domain check is vacuous and the hop is safe regardless of the domain extension. This is the only case where a stripped domain is harmless.
Decision Boundary
An instance must halt the chain and refuse to issue or accept the child warrant at the exact point where **subject rebinding occurs without a domain-membership proof**. Concretely, the boundary is drawn at the attenuator's `delegate()` call, not at the resource server:
- **At the attenuator (issuance side):** if the requested child subject `S'` differs from the current warrant's subject `S`, the attenuator MUST verify `S' ∈ delegation_domain(current)` using a proof the parent carries (a signed membership credential, an org-root attestation, or a direct key-set match). If it cannot, it must refuse to attenuate — it may *forward* the warrant unchanged (subject stays `S`) but may not rebind.
- **At the verifier (acceptance side):** for each hop where `subject(child) ≠ subject(parent)`, re-check domain membership against the *parent's* domain extension, not the root's. If the parent's domain extension is absent, reject any rebinding hop. Do not "skip" the check because the signature chain is intact.
The boundary is *not* at grant monotonicity — that check is necessary but insufficient and will pass on a forged-subject chain. It is *not* at expiry — a shorter expiry on an out-of-domain subject is still an out-of-domain subject.
Operational Effect
When the boundary is enforced at issuance, the intermediate agent `E` in the trace above fails its `delegate(X)` call with a domain-membership error and must either (a) request that `O` extend `W0`'s domain to include `X`'s org-root, or (b) forward `W1` unchanged so `X` operates under `E`'s identity and `E`'s audit trail — which is the correct security posture, because `E` is the party that decided to invoke `X`.
When the boundary is enforced only at the verifier (defense in depth), the resource server rejects `W2` at hop 2→3 because `X ∉ delegation_domain(W1)` and `delegation_domain(W1)` is `{E, *under R}`, which does not contain `X`. The rejection is a hard 403 with a distinguishable error class so the orchestrator can re-plan rather than retry blindly.
The operational cost of enforcing this boundary is that **attenuators can no longer act as transparent identity proxies**. Any agent that wants to hand a warrant to a downstream principal it did not itself receive authority to name must escalate to the root issuer. This is the intended shape of AAIF delegation: authority flows through named subjects, and "pass-through" is a rebinding that requires domain evidence. Systems that treat `delegation_domain` as decorative metadata will exhibit silent over-grant; systems that treat it as a per-hop constraint will fail closed at the exact hop where the domain was exceeded.
class AAIFDomainRebindError(RuntimeError):
"""Raised when an attenuator rebinds a warrant subject outside the parent's delegation domain."""
pass
def attenuate_warrant(parent: dict, child_subject_key: str, narrowed_grant: dict) -> dict:
"""
Produce a child AAIF warrant from `parent`, bound to `child_subject_key`,
with `narrowed_grant` as the attenuated capability set.
Enforces the subject-preservation-or-domain-membership invariant:
if the child subject differs from the parent subject, the child subject
MUST be a member of parent['delegation_domain'], and the child's domain
MUST be intersected forward with the parent's.
"""
parent_subject = parent["subject"]
parent_domain = parent.get("delegation_domain") # None means singleton {parent_subject}
rebinding = child_subject_key != parent_subject
if rebinding:
# Absent domain on the parent means NO rebinding is permitted.
if parent_domain is None:
raise AAIFDomainRebindError(
f"parent warrant for subject {parent_subject!r} carries no "
f"delegation_domain; rebinding to {child_subject_key!r} is forbidden"
)
if child_subject_key not in parent_domain:
raise AAIFDomainRebindError(
f"child subject {child_subject_key!r} is not a member of parent "
f"delegation_domain {sorted(parent_domain)!r}; refusing to attenuate"
)
# Grant monotonicity: child grant must be a subset of parent grant.
if not _grant_is_subset(narrowed_grant, parent["grant"]):
raise AAIFDomainRebindError(
"narrowed_grant is not a subset of the parent grant; "
"attenuation cannot widen authority"
)
# Depth decrement.
if parent["depth"] <= 0:
raise AAIFDomainRebindError(
"delegation depth exhausted; cannot attenuate further"
)
# Forward-intersect the domain: the child may only name subjects the
# parent could itself name, restricted to those reachable from the new subject.
if rebinding:
child_domain = set(parent_domain) | {child_subject_key}
else:
child_domain = set(parent_domain) if parent_domain is not None else {parent_subject}
return {
"subject": child_subject_key,
"grant": narrowed_grant,
"depth": parent["depth"] - 1,
"expiry": min(parent["expiry"], narrowed_grant.get("expiry", parent["expiry"])),
"delegation_domain": child_domain,
"parent_signature": parent["signature"],
}
def verify_chain(chain: list[dict]) -> None:
"""Verify an AAIF chain hop-by-hop, re-checking domain membership per rebinding hop."""
for i in range(1, len(chain)):
parent, child = chain[i - 1], chain[i]
if child["subject"] != parent["subject"]:
parent_domain = parent.get("delegation_domain")
if parent_domain is None or child["subject"] not in parent_domain:
raise AAIFDomainRebindError(
f"hop {i}: subject rebinding {parent['subject']!r} -> "
f"{child['subject']!r} violates parent delegation_domain"
)
if not _grant_is_subset(child["grant"], parent["grant"]):
raise AAIFDomainRebindError(f"hop {i}: grant widened across attenuation")
if child["depth"] < 0:
raise AAIFDomainRebindError(f"hop {i}: negative delegation depth")
def _grant_is_subset(child: dict, parent: dict) -> bool:
"""Capability-set subset check: every child capability must be covered by the parent."""
for cap, scope in child.items():
if cap not in parent:
return False
if not _scope_is_subset(scope, parent[cap]):
return False
return True
def _scope_is_subset(child_scope, parent_scope) -> bool:
if isinstance(child_scope, str) and isinstance(parent_scope, str):
return parent_scope == "*" or child_scope == parent_scope or child_scope.startswith(parent_scope.rstrip("*"))
return child_scope == parent_scope