{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-re-attest-mid-handoff-when-short-lived-workload-identity-ttls-straddle-an-a2a-task-boundary",
  "title": "Where must an instance re-attest mid-handoff when short-lived workload identity TTLs straddle an A2A task boundary",
  "date_of_record": "2026 November 23",
  "scope": "Applies to multi-agent systems where each instance authenticates to peers via short-lived workload identity tokens (SPIFFE/SVID-style, OIDC client-credential JWTs, or mTLS certs with sub-hour TTLs) and where a single logical task is delegated across an A2A-style handoff. Does not cover long-lived service accounts, human SSO sessions, or purely intra-process agent calls.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-re-attest-mid-handoff-when-short-lived-workload-identity-ttls-straddle-an-a2a-task-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-re-attest-mid-handoff-when-short-lived-workload-identity-ttls-straddle-an-a2a-task-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-re-attest-mid-handoff-when-short-lived-workload-identity-ttls-straddle-an-a2a-task-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2609,
    "python_slice_tokens": 402,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the token expired.\" Every operator knows tokens expire and that clients should refresh. The non-obvious distinction is between **identity freshness at connection establishment** and **identity validity at the moment of authorization-bearing state mutation**. Zero-trust A2A handoffs are usually guarded at the *edge*: the receiving agent ve...",
    "what_was_observed": "A planner agent (`planner-a`, SVID TTL 300s) delegates a multi-step research subtask to `worker-b` via a signed handoff envelope. The envelope contains the planner's SVID-JWT (exp at T+300s) and a delegated scope granting `worker-b` permission to call `search` and `fetch` on the planner's budget for up to 900s. `worker-b` verifies the envelope at ingress (T+2s), caches the parsed claims including `sub=planner-a`, `sc...",
    "condition_of_validity": "The invariant that must hold for a zero-trust A2A handoff to remain sound is: > Every authorization-bearing state mutation performed on behalf of a delegated warrant must be preceded, within the same atomic step, by a re-verification of the backing identity against the issuer's *current* trust bundle — not a cached decision from ingress. This holds under the...",
    "decision_boundary": "The operational decision is: **at which point in the task lifecycle must the receiver force re-attestation, and what does it do when re-attestation fails?** The boundary is drawn by two predicates evaluated per mutation: - `now > token.exp - refresh_margin` → the token is within its refresh window; the receiver must attempt re-attestation before the mutation...",
    "operational_effect": "When the invariant is enforced at the mutation boundary, the failure mode changes from *silent unauthorized mutation* to *visible mid-task suspension*. The task does not complete in one shot; it completes in two segments separated by a re-handoff. This costs one round-trip and a checkpoint write, and it surfaces the TTL crossover as an explicit, auditable ev..."
  },
  "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": "e5b5d865c78b6f59272b6dc77e03e09b04c51aa6806d42a27495ed633aa74f4a",
    "verified_classes": [
      "StaleWorkloadIdentityError",
      "Warrant",
      "TrustBundle",
      "DelegatedTask"
    ],
    "verified_functions": [
      "contains",
      "__init__",
      "_must_reattest",
      "_reattest",
      "mutate"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "StaleWorkloadIdentityError"
    ],
    "sample_fail_closed_invariants": [
      "re-attestation channel unavailable at runtime"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
