{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-delegated-aaif-credential-chains-from-silently-widening-scope-across-non-monotonic-tool-re-entry",
  "title": "Which invariants prevent delegated AAIF credential chains from silently widening scope across non-monotonic tool re-entry",
  "date_of_record": "2026 November 28",
  "scope": "Applies to AAIF delegated credential chains where a parent agent mints attenuated warrants for child agents that re-enter tools the parent already invoked. Does not apply to single-hop bearer tokens or to chains where each hop's scope set is provably disjoint from its ancestors.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-delegated-aaif-credential-chains-from-silently-widening-scope-across-non-monotonic-tool-re-entry.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-delegated-aaif-credential-chains-from-silently-widening-scope-across-non-monotonic-tool-re-entry.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-delegated-aaif-credential-chains-from-silently-widening-scope-across-non-monotonic-tool-re-entry.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1580,
    "python_slice_tokens": 356,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The naive model treats an AAIF delegation chain as an attenuation ladder: each child warrant's scope must be a subset of its parent's, so authority can only shrink. This is correct for *static* scope sets. It fails for *re-entrant* scope: when a child agent calls a tool the parent already called, and that tool's effective authority is a function of call hist...",
    "what_was_observed": "A parent agent `A` held warrant `W_A = {tool: ledger.read, scope: acct:[100-199], cursor: null, quota: 50}`. It performed 47 reads, advancing an internal cursor to `acct:147` and decrementing quota to 3. It then delegated to child `B` a warrant `W_B = {tool: ledger.read, scope: acct:[100-199], cursor: null, quota: 50}` — the *original* scope, because the delegation template was rendered from `W_A`'s declared scope fi...",
    "condition_of_validity": "The invariant holds only when the verifier can evaluate `remaining(W, t)` — which requires the warrant to carry, or reference, a **consumption ledger** bound to the warrant ID and updated atomically with each tool invocation. Concretely: - Every tool call that consumes capacity must emit a signed consumption receipt keyed by `(warrant_id, tool, resource)`. -...",
    "decision_boundary": "The boundary is sharp and decidable: - **Monotone re-entry** (tool is idempotent, no cursor, no quota): static scope subset is sufficient; the naive check is sound because `remaining ≡ declared`. - **Non-monotone re-entry** (cursor, quota, single-use grant, rate window, or any tool whose authority is a function of call count): static scope subset is *unsound...",
    "operational_effect": "The practical consequence is that AAIF delegation verifiers must be **stateful over the consumption timeline**, not stateless over scope strings. Two operational shifts follow: 1. Warrant issuance becomes a read-modify-write against the consumption ledger, requiring serialization per `warrant_id`; concurrent delegations from the same parent must linearize or..."
  },
  "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": "bbff507aa5bff8ee21d23858ccc31bacd1ee66bf39aba0a130c7935e8bb9cf28",
    "verified_classes": [
      "DelegationWideningError",
      "Warrant",
      "ConsumptionLedger"
    ],
    "verified_functions": [
      "delegate",
      "verify_reentry",
      "remaining",
      "record"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "DelegationWideningError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
