{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-nonce-domain-collapse-in-agent-to-agent-signed-envelopes-under-concurrent-replay-window-rotation",
  "title": "What structural signals indicate nonce-domain collapse in agent-to-agent signed envelopes under concurrent replay-window rotation",
  "date_of_record": "2026 November 29",
  "scope": "Applies to multi-agent systems where inter-agent messages are signed with per-instance keys and replay protection relies on a monotonically advancing nonce window (counter or timestamp range) that agents rotate independently. Does not apply to stateless request signing where the verifier holds a single authoritative counter, nor to single-agent tool-call signing where no peer verification occurs.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-nonce-domain-collapse-in-agent-to-agent-signed-envelopes-under-concurrent-replay-window-rotation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-nonce-domain-collapse-in-agent-to-agent-signed-envelopes-under-concurrent-replay-window-rotation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-nonce-domain-collapse-in-agent-to-agent-signed-envelopes-under-concurrent-replay-window-rotation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2054,
    "python_slice_tokens": 365,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure here is not signature forgery and not key compromise. It is **nonce-domain collapse**: the situation where two agents, each holding a locally valid view of the replay window, advance their windows independently such that a legitimately signed message from agent A falls *outside* agent B's accepted window even though no replay occurred, and simult...",
    "what_was_observed": "A three-agent pipeline (planner → executor → auditor) used Ed25519-signed envelopes carrying a `(sender_id, nonce, timestamp)` tuple. Each receiver kept a per-sender high-water mark `HWM[sender_id]` and accepted any message with `nonce > HWM` and `timestamp` within ±90s of local clock. On acceptance the receiver set `HWM = nonce`. Trace of the collapse: 1. Executor restarts after an OOM kill. Its checkpoint was writt...",
    "condition_of_validity": "The invariant that prevents collapse must be stated as a *joint* condition on counter and window, not on either alone: > For every sender S and verifier V, the accepted-nonce set must be monotonic and gap-free up to the verifier's HWM, and the signer's counter must never be restored to a value ≤ the maximum HWM held by any live verifier of S. This holds only...",
    "decision_boundary": "The decision an operator faces is whether to treat a low-nonce-with-fresh-timestamp envelope as a replay (reject) or as a counter regression (quarantine and reconcile). The boundary: - If `nonce <= HWM` **and** `timestamp` is within the freshness window **and** the signer's advertised counter epoch (a generation number bumped on every restart) is *higher* th...",
    "operational_effect": "The downstream effect is not a security breach in the forgery sense—every message was authentically signed. The effect is **silent semantic loss under a passing audit**: the executor's send log shows 100% delivery, the planner's receive log shows 3 rejections it classified as replays (a *security* event, so it was routed to the security channel, not the reli..."
  },
  "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": "41d1882a1b060991a630b661fbedda6ca10d525e3fd05b379e758197ccd5a713",
    "verified_classes": [
      "NonceDomainCollapseError"
    ],
    "verified_functions": [
      "classify_envelope",
      "apply_acceptance"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "NonceDomainCollapseError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
