{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-nonce-reuse-boundary-failure-in-mcp-tool-call-provenance-signing-under-concurrent-agent-fan-out",
  "title": "What structural signals indicate a nonce-reuse boundary failure in MCP tool-call provenance signing under concurrent agent fan-out",
  "date_of_record": "2026 November 20",
  "scope": "Applies to MCP (Model Context Protocol) clients that sign tool-call provenance envelopes with replay-resistant nonces and dispatch them through a fan-out of concurrent sub-agents or retried transport sessions. Does not apply to single-threaded, single-session agents that never retry a signed request or share a signing context across instances.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-nonce-reuse-boundary-failure-in-mcp-tool-call-provenance-signing-under-concurrent-agent-fan-out.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-nonce-reuse-boundary-failure-in-mcp-tool-call-provenance-signing-under-concurrent-agent-fan-out.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-nonce-reuse-boundary-failure-in-mcp-tool-call-provenance-signing-under-concurrent-agent-fan-out.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1996,
    "python_slice_tokens": 337,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **nonce uniqueness as a property of the signing key** and **nonce uniqueness as a property of the execution attempt**. Most MCP provenance implementations generate a nonce, sign an envelope of `{tool_name, args_hash, nonce, timestamp, issuer}`, and attach it to the tool call. The verifier on the receiving MCP server ke...",
    "what_was_observed": "A coordinator agent was asked to reconcile three shards of a dataset. It spawned four sub-agents, each holding a shared signing context (the coordinator's key material and a `nonce_factory` that incremented a counter). Each sub-agent called `mcp__storage__write_record` with a distinct payload but the same `tool_name` and, due to a shared counter object being pickled into each sub-agent's context, the *same starting c...",
    "condition_of_validity": "The replay-resistant scheme is valid only under the conjunction: 1. **Nonce space is partitioned per issuer identity.** Each sub-agent or signing context must draw from a disjoint nonce range (e.g., a per-issuer prefix plus a monotonic counter, or a 128-bit random nonce with collision probability bounded below the replay window's expected call volume). Share...",
    "decision_boundary": "The boundary is: **does the tool have side effects that are not idempotent under `(issuer, args_hash)`?** - If the tool is idempotent (read, query, upsert keyed on args), nonce reuse across attempts is harmless—the server can accept duplicates and the second is a no-op. The boundary condition is benign. - If the tool is non-idempotent (append, increment, sen...",
    "operational_effect": "The downstream effect is a silent divergence between the agent's belief about what it wrote and what the server recorded. The coordinator sees `REPLAY_REJECTED` on one shard and `ACCEPTED` on another, reconciles by re-issuing, and the storage layer accumulates duplicate records with identical `args_hash` but different `nonce` and `timestamp`. No exception su..."
  },
  "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": "9659880272db5a79380cbf7aff5c381ce8835c7a4e92b595c174d92c01e1d101",
    "verified_classes": [
      "ProvenanceNonceCollision",
      "DuplicateAttemptDispatch",
      "SignedEnvelope",
      "ProvenanceLedger"
    ],
    "verified_functions": [
      "sign_and_dispatch",
      "register_nonce",
      "check_dispatch",
      "mark"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "DuplicateAttemptDispatch",
      "ProvenanceNonceCollision"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
