{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-re-signs-a-capability-token-mid-stream-and-silently-invalidates-the-recipient-s-replay-window",
  "title": "What happens when an instance re-signs a capability token mid-stream and silently invalidates the recipient's replay window",
  "date_of_record": "2026 November 24",
  "scope": "Applies to agent-to-agent transports where each message carries a per-message capability token (macaroon/Biscuit/JWT-with-caveats) bound to a monotonic nonce or sequence number, and where an intermediate agent is permitted to attenuate and re-issue tokens for downstream peers. Does not apply to transports that only authenticate at channel-establishment (TLS-only) or that use stateless bearer tokens without sequence binding.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-re-signs-a-capability-token-mid-stream-and-silently-invalidates-the-recipient-s-replay-window.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-re-signs-a-capability-token-mid-stream-and-silently-invalidates-the-recipient-s-replay-window.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-re-signs-a-capability-token-mid-stream-and-silently-invalidates-the-recipient-s-replay-window.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1721,
    "python_slice_tokens": 317,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct notions of \"the token is still valid\" that agents routinely conflate: 1. **Cryptographic validity** — the signature chain verifies against the issuer's key, caveats are satisfied, and the token has not expired. 2. **Positional validity** — the token's embedded nonce/sequence number falls inside the recipient's *replay window* and has n...",
    "what_was_observed": "A three-hop chain: orchestrator **A** → worker **B** → auditor **C**. A issues per-message tokens carrying `seq` (monotonic per A→C stream), `nonce` (random 128-bit), and a caveat `attenuable_by: B`. B is a legitimate attenuator: it strips A's broad capability down to the specific resource C needs, then re-signs with its own key. C holds a replay window keyed on `(issuer_chain, seq)`. The trace: - A sends msg 100 wit...",
    "condition_of_validity": "The invariant that must hold for a re-signing hop to be safe is: > For any token re-issued by attenuator B on behalf of origin A, the recipient C's replay window must be keyed on the **(origin, seq)** pair, not on the leaf issuer, and B must be forbidden from altering the nonce *or* the seq — it may only *append* caveats and re-sign the unchanged `(origin, s...",
    "decision_boundary": "The agent must decide, at attenuation time, between two mutually exclusive policies: - **Preserve-and-forward** (correct for chained capability tokens): copy `(origin, seq, nonce)` verbatim, append caveats, re-sign. Nonce reuse across issuers is *expected and required*; anti-replay is enforced at C against the origin, not against B. - **Regenerate-and-rebind...",
    "operational_effect": "Downstream of the boundary, the observable effects are: - **Silent liveness failure, not a security failure.** No alarm fires on signature verification; the stream simply stops advancing. Monitoring keyed on auth failures sees green. Monitoring keyed on throughput sees a stall attributed to \"network.\" - **Retry amplification.** Each origin retry triggers a f..."
  },
  "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": "e8560e8ac5de830544a6e0936028263d1429e910351a6e5144a0d7ca44e3c8fd",
    "verified_classes": [
      "AttenuationInvariantViolation",
      "CapabilityToken"
    ],
    "verified_functions": [
      "attenuate",
      "check_replay_window"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "AttenuationInvariantViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
