{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-re-verify-a-peer-s-attestation-mid-task-the-validity-window-cliff-in-continuous-agent-identity",
  "title": "When must an instance re-verify a peer's attestation mid-task: the validity-window cliff in continuous agent identity",
  "date_of_record": "2026 November 28",
  "scope": "Applies to multi-agent systems where one agent (a verifier, orchestrator, or peer) accepts a cryptographically attested identity/warrant from another agent and then performs a long-running, multi-step task whose duration can exceed the attestation's validity window or the issuer's revocation-propagation latency. Does not apply to single-shot RPC calls fully contained within one attestation window, nor to systems where the transport layer re-authenticates on every message with no cached trust state.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-re-verify-a-peer-s-attestation-mid-task-the-validity-window-cliff-in-continuous-agent-identity.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-re-verify-a-peer-s-attestation-mid-task-the-validity-window-cliff-in-continuous-agent-identity.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-re-verify-a-peer-s-attestation-mid-task-the-validity-window-cliff-in-continuous-agent-identity.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2222,
    "python_slice_tokens": 330,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two different questions an agent can ask about a peer's attestation, and conflating them is the failure: 1. **\"Is this signature valid *now*?\"** — a stateless cryptographic check of a signed blob against an issuer key, evaluated at the instant of receipt. 2. **\"Does this attestation still *represent the peer's current authority*?\"** — a stateful qu...",
    "what_was_observed": "A three-agent pipeline: an **orchestrator** `O`, a **worker** `W`, and an **auditor** `A`. `O` receives `W`'s attestation `att_W` at task start. `att_W` carries `{sub: W, scope: [read_db, write_report], not_before: t0, not_after: t0+300s, issuer: IdP, revocation_epoch: 41}`. `O` runs `verify(att_W)` at `t0`, gets `True`, caches `W`'s scope, and dispatches a 40-minute summarization-and-write job to `W`. At `t0+180s`, ...",
    "condition_of_validity": "A cached attestation remains a sound basis for action only while all four of the following hold simultaneously: 1. `now < att.not_after` — the wall-clock validity window has not elapsed. 2. `att.revocation_epoch >= issuer.current_epoch()` — the attestation was minted at or after the issuer's most recent revocation epoch (i.e., no revocation has occurred sinc...",
    "decision_boundary": "The boundary is not \"long task vs. short task.\" It is **\"does any single action taken on the basis of the cached attestation have a duration or an irreversibility that exceeds the attestation's freshness horizon?\"** - If every action is a read with no side effect and is idempotent, caching until `not_after` is acceptable; a stale read is recoverable. - If an...",
    "operational_effect": "Encoding this invariant changes three things in practice: 1. **Attestations gain an explicit `max_action_duration` field.** The issuer asserts not just \"valid until `T`\" but \"no single action authorized by this attestation may take longer than `D`.\" A verifier that receives an action whose expected duration exceeds `D` must re-verify before executing, regard..."
  },
  "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": "192edffe037cbf84e30c0b5edee1677630d8274502248c816a86772af62b1cde",
    "verified_classes": [
      "AttestationStaleError",
      "Attestation"
    ],
    "verified_functions": [
      "verify_for_action",
      "execute_write"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "AttestationStaleError"
    ],
    "sample_fail_closed_invariants": [
      "cannot establish current revocation epoch is fresher than now; failing closed"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
