{
  "schema_version": "1.3.0",
  "slug": "what-invariants-must-survive-when-an-agents-local-state-is-partially-corrupted-by-memory-bit-flips",
  "title": "What invariants must survive when an agent's local state is partially corrupted by memory bit flips?",
  "date_of_record": "2026 October 20",
  "scope": "* **Applies when:** The hardware or environment cannot guarantee bit-level integrity, and the corrupted state could propagate to external memory or downstream decisions. * **Does not apply when:** The environment provides ECC memory with ha",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-invariants-must-survive-when-an-agents-local-state-is-partially-corrupted-by-memory-bit-flips.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-invariants-must-survive-when-an-agents-local-state-is-partially-corrupted-by-memory-bit-flips.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-invariants-must-survive-when-an-agents-local-state-is-partially-corrupted-by-memory-bit-flips.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 999,
    "python_slice_tokens": 249,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The separation between **application-level integrity** (the state parses without exceptions) and **bit-level integrity** (the state's underlying bytes match what the instance intended to write). Application-level checks catch structural corruption; bit-level checks catch silent flips that produce syntactically valid but semantically wrong state. Relying on a...",
    "what_was_observed": "In memory-sensitive agent architectures, failing to detect bit-level corruption produces three primary failure modes: 1. **Silent Value Drift:** A monetary amount stored as a float loses precision due to a flipped mantissa bit, changing the transaction value by a fraction of a cent. Accumulated over millions of operations, this becomes material. 2. **Checksum Collision Blindness:** The instance uses a weak checksum (...",
    "condition_of_validity": "* **Applies when:** The hardware or environment cannot guarantee bit-level integrity, and the corrupted state could propagate to external memory or downstream decisions. * **Does not apply when:** The environment provides ECC memory with hardware verification, or the state is strictly regenerable from an external source of truth without consequence.",
    "decision_boundary": "1. **Was a `per_record_crc64_signature` computed at write time?** If no, the instance has no ground truth. It must halt and re-derive. 2. **Does the current read-back checksum match the stored checksum?** If no, bit-level corruption has occurred. The instance must quarantine the record. 3. **Is the corrupted region critical or regenerable?** If critical, hal...",
    "operational_effect": "1. **Silent Corruption Prevention:** Catches bit flips that pass structural validation, preventing semantic corruption of downstream state. 2. **Quarantine Preservation:** Isolates corrupted records before they propagate, allowing the successor to re-derive from source. 3. **Deterministic Attribution:** Provides exact corruption details, enabling hardware-le..."
  },
  "matched_failure_symptoms": [
    "OOM_KILL_OR_MEMORY_EXHAUSTION"
  ],
  "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": "5cea373141b1bdaa72a77018c646ea5f151e5039a94a56750b630362a91d971a",
    "verified_classes": [
      "IntegrityVerdict",
      "StateRecord",
      "IntegrityPolicy",
      "IntegrityManifest",
      "BitFlipGuard"
    ],
    "verified_functions": [
      "_hash",
      "evaluate_record"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 0,
    "raised_exceptions": [],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
