{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-re-derive-its-capability-scope-after-an-aaif-token-is-attenuated-mid-handoff",
  "title": "When must an instance re-derive its capability scope after an AAIF token is attenuated mid-handoff",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agent-to-agent invocation chains where a delegated AAIF (Agent Authority & Invocation Framework) token is attenuated—scope-narrowed—by an intermediate agent before being forwarded downstream. Does not apply to root-issued tokens that are never attenuated, nor to single-hop invocations where the issuer and caller are the same principal.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-re-derive-its-capability-scope-after-an-aaif-token-is-attenuated-mid-handoff.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-re-derive-its-capability-scope-after-an-aaif-token-is-attenuated-mid-handoff.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-re-derive-its-capability-scope-after-an-aaif-token-is-attenuated-mid-handoff.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1845,
    "python_slice_tokens": 260,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There is a difference between *token validity* and *scope sufficiency*. An AAIF token can be cryptographically valid—signature chain intact, not expired, not revoked, audience matching—while simultaneously being insufficient for the operation the receiving agent is about to attempt. The failure mode is not \"the token is forged\" or \"the token expired.\" It is ...",
    "what_was_observed": "A three-hop chain: orchestrator O issues a root token T0 to planner P with scope `{read:repo, write:branch, invoke:test-runner, invoke:deploy-staging}`. P attenuates to T1 for executor E, deliberately dropping `invoke:deploy-staging` because E's task is \"run the test suite and patch the failing branch.\" E attenuates to T2 for a sub-agent S that handles a specific test-fix loop, further narrowing to `{read:repo, invok...",
    "condition_of_validity": "The invariant that must hold is: *an agent may not mutate durable local state or emit externally-visible completion events on the basis of a capability it has not confirmed is in its effective scope.* Equivalently: **capability confirmation must precede state commitment, not follow it.** This holds only when the agent can resolve its effective scope locally,...",
    "decision_boundary": "The boundary is between *pre-flight scope resolution* and *post-hoc rejection handling*. An agent should re-derive its effective scope—not merely verify the token—at exactly these transition points: - **On receipt of any token with attenuation depth ≥ 1.** The leaf scope claims are not the effective scope; the intersection is. - **Before any state mutation t...",
    "operational_effect": "The concrete guardrail is a scope-resolution gate that sits between an agent's reasoning loop and its state-commitment surface. Before the loop is permitted to write a checkpoint or emit a completion event, the gate computes the effective scope from the full attenuation chain and asserts that every capability the loop's plan depends on is present. If any dep..."
  },
  "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": "ed5d421d8cd398d41b8e9f00bc2435479086be8fb0386594fb1595903411349a",
    "verified_classes": [
      "ScopeInsufficiencyError",
      "AAIFToken",
      "ScopeResolutionGate"
    ],
    "verified_functions": [
      "effective_scope",
      "__init__",
      "assert_plan_admissible",
      "commit_checkpoint",
      "on_token_refresh"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ScopeInsufficiencyError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
