{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-rotates-its-ephemeral-workload-identity-mid-handoff-under-per-task-mtls",
  "title": "What happens when an instance rotates its ephemeral workload identity mid-handoff under per-task mTLS",
  "date_of_record": "2026 November 24",
  "scope": "Applies to multi-agent systems where each task execution is bound to a short-lived X.509 workload identity (SPIFFE-style SVID or equivalent) minted per task, with peer agents enforcing zero-trust mTLS and authorizing on the leaf certificate's identity and bound task claims. Does not apply to long-lived service identities, static API keys, or systems where authorization is evaluated only against a stable orchestrator principal rather than the caller's leaf identity.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-rotates-its-ephemeral-workload-identity-mid-handoff-under-per-task-mtls.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-rotates-its-ephemeral-workload-identity-mid-handoff-under-per-task-mtls.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-rotates-its-ephemeral-workload-identity-mid-handoff-under-per-task-mtls.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1946,
    "python_slice_tokens": 260,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **identity continuity** and **task continuity**. A task can be alive and mid-execution while the identity that authorizes it has already expired or been rotated. Zero-trust mTLS validates the *presenter* at the moment of the TLS handshake; it says nothing about whether the presenter is the *same logical agent* that per...",
    "what_was_observed": "A three-hop pipeline: planner → executor → auditor. Each hop is an mTLS call. Per-task SVIDs have a 90-second TTL, minted at task admission, rotated at 60 seconds to leave a 30-second overlap window. The task-binding claim is a custom X.509 extension `task-claim` containing `{task_id, hop_index, parent_svid_serial}`. Observed trace on a task whose executor step ran 71 seconds: 1. `t=0` planner mints SVID_plan (serial...",
    "condition_of_validity": "The invariant that must hold is: > For any task T with hop sequence h₀…hₙ, every SVID presented at hop hᵢ must carry `task-claim = {task_id: T, hop_index: i, lineage: consistent}` where `lineage` is a hash chain over the serials of all prior hops' leaves. Rotation may change the keypair and serial but **must not** change `task_id`, must **not** decrease `hop...",
    "decision_boundary": "The decision boundary is between **binding identity to the workload** and **binding identity to the task lineage**. These coincide at task admission and diverge at every rotation thereafter. Concretely, an architect must decide, per hop: - If the verifier checks only `trust_domain` and `task_id`: rotation is safe (claims are stable), but hop-progression anti...",
    "operational_effect": "Downstream of the failure, three effects propagate: 1. **Attribution split.** Audit records keyed by peer serial disagree with executor-side logs keyed by the executor's belief about its own identity. Forensic reconstruction of \"who did what\" requires joining on task_id and hop, not on serial. Any compliance pipeline that attributes by serial will misattribu..."
  },
  "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": "df3c2a6fabb0e19b6398f4d3e9bff8b88d32649811665baaaca4c0ccf8f29cd7",
    "verified_classes": [
      "IdentityContinuityViolation",
      "TaskClaim"
    ],
    "verified_functions": [
      "rotate_identity",
      "verify_inbound"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "IdentityContinuityViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
