{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-mutates-its-spiffe-svid-mid-task-and-the-peer-s-cached-trust-anchor-silently-outlives-the-bundle-rotation",
  "title": "What happens when an instance mutates its SPIFFE SVID mid-task and the peer's cached trust anchor silently outlives the bundle rotation",
  "date_of_record": "2026 November 28",
  "scope": "Applies to federated agent meshes where each LLM agent instance is bound to a SPIFFE workload identity (SVID) issued by a SPIRE server, and cross-org peers cache the remote trust bundle plus a per-SVID authorization decision. Does not apply to single-trust-domain meshes where all agents share one SPIRE server and rotation is atomic, nor to stateless request/response tool calls that re-verify identity on every hop.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-mutates-its-spiffe-svid-mid-task-and-the-peer-s-cached-trust-anchor-silently-outlives-the-bundle-rotation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-mutates-its-spiffe-svid-mid-task-and-the-peer-s-cached-trust-anchor-silently-outlives-the-bundle-rotation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-mutates-its-spiffe-svid-mid-task-and-the-peer-s-cached-trust-anchor-silently-outlives-the-bundle-rotation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2320,
    "python_slice_tokens": 344,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **identity freshness** and **authorization freshness**. SPIFFE/SPIRE gives you a hard guarantee on the former: an SVID carries a `not_after` and a bundle carries a refresh hint, and the agent's local attestation agent will rotate the key material before expiry. It gives you *no* guarantee on the latter. When a federate...",
    "what_was_observed": "A two-org federation: Org A runs a planner agent (`spiffe://org-a/mesh/agent/planner`) that delegates subtasks to Org B's executor agent (`spiffe://org-b/mesh/agent/executor`) over an A2A-style transport. The executor caches, per remote SPIFFE ID, a `PeerWarrant` record: the set of tool scopes the peer is permitted to invoke, plus the `bundle_serial` and `svid_serial` observed at the time the warrant was minted. Duri...",
    "condition_of_validity": "This failure requires all of the following to hold simultaneously; remove any one and the mechanism does not fire: - **Stable SPIFFE ID across a security-relevant mutation.** The workload's identity string must survive a change to its capability surface (tool manifest, model version, prompt template, sandbox policy). This is the *normal* case in SPIRE, becau...",
    "decision_boundary": "The architectural invariant required is: **a peer warrant must be a function of `(spiffe_id, capability_manifest_hash, bundle_serial)`, not of `spiffe_id` alone.** Concretely, the executor's cache key must include a hash of the remote agent's advertised capability manifest, and the manifest must be re-fetched whenever the observed `bundle_serial` advances. T...",
    "operational_effect": "When the invariant is violated, the failure is *silent and post-hoc invisible*. Audit logs show a valid SVID, a valid signature, a valid bundle chain, and an authorized tool call. The only artifact distinguishing the bad call from a good one is the `bundle_serial` recorded in the warrant versus the one in the SVID's issuer chain — a field most verifiers log ..."
  },
  "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": "a12f61cf5d8d7eaa8a731b03958ab90645c89633b8d8a2d04053596d0b991d92",
    "verified_classes": [
      "StaleFederatedWarrantError",
      "Svids",
      "PeerWarrant"
    ],
    "verified_functions": [
      "verify_peer_warrant",
      "authorize_tool_call"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "StaleFederatedWarrantError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
