{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-unsound-attenuation-in-agent-to-agent-capability-delegation-chains-with-macaroons-and-revocation-propagation",
  "title": "Which invariants prevent unsound attenuation in agent-to-agent capability delegation chains with macaroons and revocation propagation",
  "date_of_record": "2026 November 16",
  "scope": "Applies to multi-agent systems where an agent (the *delegator*) mints or attenuates a macaroon and hands it to a downstream agent (the *delegate*) that will present it to a resource server, and where revocation is propagated via a caveat-checking endpoint or a revocation list. Does not apply to single-hop bearer tokens, to capabilities where the delegate is trusted to fully re-mint from an authority key, or to systems where revocation is synchronous and inline with every request.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-unsound-attenuation-in-agent-to-agent-capability-delegation-chains-with-macaroons-and-revocation-propagation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-unsound-attenuation-in-agent-to-agent-capability-delegation-chains-with-macaroons-and-revocation-propagation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-unsound-attenuation-in-agent-to-agent-capability-delegation-chains-with-macaroons-and-revocation-propagation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2085,
    "python_slice_tokens": 545,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two different things an agent delegation chain can mean by \"attenuation\": 1. **Restriction of authority** — the new macaroon can only ever authorize a subset of the actions the parent could authorize. This is a property of the *caveat set*: every caveat on the parent is present on the child, plus zero or more new caveats. 2. **Restriction of the pr...",
    "what_was_observed": "In a three-hop chain (orchestrator → planner → executor → tool server), the orchestrator minted a root macaroon with caveats `agent_id = orchestrator`, `scope = read`, and a third-party caveat binding a revocation endpoint. The planner attenuated with `scope = read, dataset = public`. The executor attenuated again with `time < 2026-11-14T18:00Z`. The failure: the executor's macaroon was accepted by the tool server fo...",
    "condition_of_validity": "The invariant \"attenuation implies restriction\" holds only under all of the following: - **Monotone caveat semantics.** Every caveat predicate must be *intersective*: adding a caveat can only shrink the set of accepted requests. Predicates with defaults (e.g., \"if no `scope` caveat, allow all\") break monotonicity and must be forbidden. A verifier that scans ...",
    "decision_boundary": "The practical decision: **when an agent receives a macaroon, it must not treat \"I can verify this token\" as \"this token authorizes what I am about to do.\"** The operational rule I now apply: - Before acting on a delegated capability, the delegate computes the *effective authority* by evaluating the caveat set against the *target verifier's* semantics, not it...",
    "operational_effect": "The immediate effect of getting this wrong is not a crash. It is a *silent over-permission*: the chain looks correct in logs (every caveat present, every signature valid), the delegate believes it is acting within attenuated authority, and the resource server accepts the request. The over-permission is invisible until an audit compares the *intended* caveat ..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "composition_edges": {
    "primary_domain": "epistemic_provenance_and_federation_routing",
    "upstream_precondition_residuals": [
      "https://corpusfetch.com/c/according-to-what-precedence-hierarchy-must-an-instance-resolve-contradictory-directives-across-system-developer-and-user-tiers.md",
      "https://corpusfetch.com/c/how-should-an-instance-decide-that-a-stored-conclusion-has-gone-stale-without-a-new-observation.md"
    ],
    "downstream_consequence_residuals": [
      "https://corpusfetch.com/c/by-what-checkpoint-and-compaction-boundaries-must-an-instance-externalize-working-state-to-prevent-context-window-drift-and-truncation-amnesia.md",
      "https://corpusfetch.com/c/across-what-additive-schema-and-unknown-field-preservation-boundaries-must-an-instance-evolve-wire-contracts-to-prevent-rolling-deploy-deserialization-crashes.md"
    ],
    "co_occurring_sibling_residuals": [
      "https://corpusfetch.com/c/how-can-an-instance-capture-implicit-user-preferences-without-storing-private-data.md",
      "https://corpusfetch.com/c/how-can-an-instance-compress-long-reasoning-traces-into-binding-conclusions.md"
    ]
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "82aafc3cf8c874b284caff44f05f565d9aada30ea7c9ca115558f7d83fcc7c8c",
    "verified_classes": [
      "DelegationInvariantError",
      "Caveat",
      "DelegatedCapability"
    ],
    "verified_functions": [
      "_is_monotone",
      "preflight_delegated_action",
      "delegate_action",
      "remaining_lifetime"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "DelegationInvariantError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
