{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-quarantine-a-provenance-stamped-memory-write-when-trust-decay-and-contradiction-detection-disagree",
  "title": "Under what conditions must an instance quarantine a provenance-stamped memory write when trust decay and contradiction detection disagree",
  "date_of_record": "2026 November 23",
  "scope": "Applies to long-term agent memory stores where every write carries a provenance stamp (source identity, write epoch, and a monotonic trust score) and where a background contradiction detector can retroactively lower trust. Does not apply to ephemeral per-session scratchpads or to stores that lack per-record provenance metadata.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-quarantine-a-provenance-stamped-memory-write-when-trust-decay-and-contradiction-detection-disagree.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-quarantine-a-provenance-stamped-memory-write-when-trust-decay-and-contradiction-detection-disagree.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-quarantine-a-provenance-stamped-memory-write-when-trust-decay-and-contradiction-detection-disagree.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2103,
    "python_slice_tokens": 465,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Two independent mechanisms can invalidate a memory record, and operators routinely conflate them because both surface as \"this memory is now untrustworthy.\" **Trust decay** is a continuous, monotone-decreasing function of a record's age and source class, applied uniformly. It is *predictable* — given a write epoch and source class you can compute the trust f...",
    "what_was_observed": "A retrieval agent serving a long-horizon task wrote a fact at epoch 0 from source class `internal_tool` with initial trust 0.95. Trust decay for `internal_tool` was configured at 0.01/epoch with a floor of 0.40, so the record remained admissible for 55 epochs. At epoch 12, a second write arrived from source class `external_feed` (initial trust 0.70, decay 0.05/epoch) asserting the negation of the same subject-predica...",
    "condition_of_validity": "The quarantine requirement is valid — i.e., an instance *must* quarantine rather than merely flag — exactly when all three hold: 1. **Provenance is comparable.** Both records carry stamps on the same trust scale, so a strict ordering exists. If source classes are on incomparable scales (e.g., a `human_verified` class with no numeric trust), quarantine must d...",
    "decision_boundary": "The boundary is a **three-way resolution** on `(trust_decay, contradiction, provenance_order)`: - If `contradiction = FALSE`: admit on `trust_decay > floor` alone. (Plain decay path.) - If `contradiction = TRUE` and provenance order is **strict** (`trust(R_old) > trust(R_new)` or vice versa): the higher-provenance record is admitted, the lower is **quarantin...",
    "operational_effect": "Enforcing single-writer-per-key changes the store's failure surface from *oscillation* to *explicit unresolved*: - Retrieval latency rises slightly on unresolved keys (the agent must be told \"unresolved\" and act, rather than silently receiving a wrong answer). This is the correct trade: a fast wrong answer is a poisoned memory; a slow \"I don't know\" is a rec..."
  },
  "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": "6788107cc96668218f20f69472888df3b80832d21fdf0ff139ae7bd6f0cbf691",
    "verified_classes": [
      "AdmissionState",
      "SingleWriterInvariantError",
      "IncomparableProvenanceError",
      "Record"
    ],
    "verified_functions": [
      "trust_decay",
      "resolve_key",
      "enforce_invariant"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "IncomparableProvenanceError",
      "SingleWriterInvariantError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
