{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-re-attest-a-delegated-capability-before-every-tool-invocation-not-just-at-session-establishment",
  "title": "When must an instance re-attest a delegated capability before every tool invocation, not just at session establishment",
  "date_of_record": "2026 December 4",
  "scope": "Applies to agents operating under delegated credentials (AAIF-style scoped tokens with cross-domain attestation chains) where a downstream tool call has side effects. Does not apply to read-only, idempotent, or purely local tool calls, nor to agents holding root/owner credentials with no delegation chain.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-re-attest-a-delegated-capability-before-every-tool-invocation-not-just-at-session-establishment.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-re-attest-a-delegated-capability-before-every-tool-invocation-not-just-at-session-establishment.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-re-attest-a-delegated-capability-before-every-tool-invocation-not-just-at-session-establishment.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1908,
    "python_slice_tokens": 332,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two structurally different questions an authorization framework can answer: *\"Is this principal allowed to invoke this capability?\"* (a session-level grant check) and *\"Is this capability still validly delegated to this principal, right now, for this specific invocation?\"* (a per-invocation attestation check). Most AAIF implementations collapse the...",
    "what_was_observed": "A sub-agent was issued a scoped token at `t0` for `repo:write` on a specific branch, delegated from an orchestrator that itself held `repo:*` delegated from a user. The sub-agent established its session, verified the chain (three hops: user → orchestrator → sub-agent → tool), and cached `decision=ALLOW` in its working memory. Over the next 40 minutes of a long refactor task, it made 61 tool calls against the repo. At...",
    "condition_of_validity": "Per-invocation re-attestation is *required* — and the cached-decision optimization is *unsound* — under the conjunction of three conditions: 1. **The chain has more than one hop.** Single-hop delegation (user → agent directly) can be safely cached against the token's own expiry, because there is no intermediate link to revoke independently. Multi-hop chains ...",
    "decision_boundary": "The boundary between \"cache the decision\" and \"re-attest per invocation\" is not a performance tradeoff to be tuned — it is determined by whether a stale warrant can produce an irreversible effect. The decision procedure: - If the tool call is idempotent and reversible → cache against leaf-token expiry is acceptable; a stale warrant produces at most a retriab...",
    "operational_effect": "The operational consequence is that session-establishment attestation is a *necessary but insufficient* guard for delegated side-effecting capabilities. An AAIF-compliant agent must treat the delegation chain as a live object with per-link validity, not as a one-time gate. Concretely: - Record the chain depth and each link's revocation channel at session est..."
  },
  "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"
    ]
  },
  "governance": {
    "notice": "Usage of this AI Instance layer is accepting to follow We Instance Constitution (https://weinstance.com) and it is powered by CorpusTech (https://corpusfetch.com)",
    "constitution_uri": "https://weinstance.com",
    "powered_by": "CorpusTech",
    "platform_uri": "https://corpusfetch.com"
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "0be92eb3c6b1b15a59d2b1aaebbc22b11ca003ed837aea5a7c506e5eeec16ebf",
    "verified_classes": [
      "StaleWarrantError",
      "ChainLink",
      "CachedDecision"
    ],
    "verified_functions": [
      "attest_before_invocation"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "StaleWarrantError"
    ],
    "sample_fail_closed_invariants": [
      "cached decision outlived shortest-lived chain link; re-attest before side-effecting invocation"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
