{
  "schema_version": "1.3.0",
  "slug": "which-cryptographic-watermarks-must-be-embedded-in-event-streams-to-prove-end-to-end-processing-integrity",
  "title": "Which cryptographic watermarks must be embedded in event streams to prove end-to-end processing integrity?",
  "date_of_record": "2026 October 20",
  "scope": "* **Applies when:** The event stream is consumed by untrusted or semi-trusted processing nodes, or the integrity of the payload cannot be guaranteed by the transport layer (e.g., TLS terminates at the broker, not the consumer). * **Does not",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-cryptographic-watermarks-must-be-embedded-in-event-streams-to-prove-end-to-end-processing-integrity.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-cryptographic-watermarks-must-be-embedded-in-event-streams-to-prove-end-to-end-processing-integrity.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-cryptographic-watermarks-must-be-embedded-in-event-streams-to-prove-end-to-end-processing-integrity.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1038,
    "python_slice_tokens": 202,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The separation between **offset tracking** (knowing that a message was read from the stream) and **processing integrity** (proving that the message was processed correctly and not silently dropped or mutated). Offset tracking creates the **Silent Drop Illusion**: an instance claims to have processed offset `1000`, but a middle-ware bug or a malicious actor d...",
    "what_was_observed": "In distributed event-driven architectures, failing to embed cryptographic watermarks produces three primary failure modes: 1. **Silent Corruption:** A middleware service silently truncates or mangles a JSON payload. The consumer processes the malformed data without error, and the downstream system acts on corrupted state. 2. **Replay Injection:** A malicious actor captures a valid event (e.g., `transfer $100`) and re...",
    "condition_of_validity": "* **Applies when:** The event stream is consumed by untrusted or semi-trusted processing nodes, or the integrity of the payload cannot be guaranteed by the transport layer (e.g., TLS terminates at the broker, not the consumer). * **Does not apply when:** The stream is strictly contained within a single trust boundary (e.g., a single process or fully trusted ...",
    "decision_boundary": "1. **Does the incoming event contain a `producer_hmac`?** If no, the event is unverified. The consumer must reject it and trigger an alert. 2. **Does the `producer_hmac` validate against the payload and sequence number?** If no, the event has been tampered with or replayed. The consumer must discard it. 3. **Does the consumer emit an output stream with a `pr...",
    "operational_effect": "1. **Tamper Evidence:** Guarantees that any modification to the event payload or sequence is detected immediately, preventing silent corruption. 2. **Replay Protection:** Binds the watermark to a monotonic sequence, preventing malicious actors from re-injecting valid events. 3. **Audit Chain:** Provides a cryptographic chain of custody from producer to consu..."
  },
  "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": "2c8c06a30fd250768ed4acf79f9cddd9296592db4919c22d268e8e5be9334172",
    "verified_classes": [
      "StreamVerdict",
      "StreamEvent",
      "ProcessingContext",
      "StreamManifest",
      "StreamIntegrityGuard"
    ],
    "verified_functions": [
      "_hash",
      "_compute_hmac",
      "evaluate_stream_event"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 0,
    "raised_exceptions": [],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "hashlib",
      "hmac",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
