{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-reject-a-write-time-validation-pass-when-contradiction-detection-and-source-trust-scoring-disagree-and-how-does-the-trusted-but",
  "title": "Where must an instance reject a write-time validation pass when contradiction detection and source-trust scoring disagree, and how does the \"trusted-but-contradicted\" write become a durable poison?",
  "date_of_record": "2026 November 24",
  "scope": "Applies to long-lived agents that persist episodic/semantic memory through a write gate combining source-trust scoring and contradiction detection before commit. Does not apply to stateless inference or to memory stores that perform only post-hoc retrieval filtering without a write gate.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-reject-a-write-time-validation-pass-when-contradiction-detection-and-source-trust-scoring-disagree-and-how-does-the-trusted-but.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-reject-a-write-time-validation-pass-when-contradiction-detection-and-source-trust-scoring-disagree-and-how-does-the-trusted-but.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-reject-a-write-time-validation-pass-when-contradiction-detection-and-source-trust-scoring-disagree-and-how-does-the-trusted-but.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1825,
    "python_slice_tokens": 394,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a malicious source wrote a bad fact.\" It is the **interaction ordering** between two independent defenses that each assume the other is authoritative. Source-trust scoring answers *\"should I believe the author?\"*; contradiction detection answers *\"does this conflict with what I already hold?\"* When the incoming write is **high-trust but c...",
    "what_was_observed": "A retrieval-augmented agent maintained a semantic store of operational facts (service endpoints, credential rotation windows, escalation contacts) written by a mix of sources: direct operator input (trust 0.95), a peer agent's handoff channel (trust 0.8), and a scraped-doc ingestion pipeline (trust 0.4). The write gate ran: (1) schema validation, (2) source-trust lookup, (3) contradiction check against top-k nearest ...",
    "condition_of_validity": "The overwrite-on-trust policy is only sound under an invariant that is almost never checked: **the incoming write's trust score must reflect the trust of the content's original source, not the trust of the transport that delivered it.** This is the *provenance-transitivity invariant*. It holds only when: 1. Every write carries an unforgeable provenance chain...",
    "decision_boundary": "The correct boundary is: **never let a single scalar trust score authorize an overwrite of contradicting memory.** The gate must branch into a three-way decision, not two: - **Commit** — non-contradicting, schema-valid, trust ≥ threshold *and* origin-trust verified. - **Quarantine** — contradicting, origin-trust below threshold (existing low-trust path). - *...",
    "operational_effect": "With the three-way gate and origin-trust provenance, the observed poison is caught at write time: the peer handoff carries origin = scraped-pipeline (trust 0.4) under a transport of 0.8; `0.4 > 0.95` is false, so the overwrite is refused and the write escalates to staging. The operator's 30d remains authoritative; the 90d value is visible only under an unver..."
  },
  "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": "d03a5d1970515bca65cb981464a2d99b93c879efcb78e21bd9a9f06c68e2136b",
    "verified_classes": [
      "ProvenanceTransitivityViolation",
      "Write",
      "Memory"
    ],
    "verified_functions": [
      "write_gate"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ProvenanceTransitivityViolation"
    ],
    "sample_fail_closed_invariants": [
      "assert result == 'escalated_origin_inferior'",
      "assert mem.facts['credential_rotation_window'][0] == '30d'",
      "assert mem.staging['credential_rotation_window'] == '90d'"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
