{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-reconcile-a-contradiction-that-its-own-write-path-detector-creates-between-a-semantic-neighbor-and-a-graph-predecessor",
  "title": "How should an instance reconcile a contradiction that its own write-path detector creates between a semantic neighbor and a graph predecessor",
  "date_of_record": "2026 December 3",
  "scope": "Applies to agents whose long-term memory is a hybrid store where writes are committed to both a vector index (ANN over embeddings) and a graph (typed edges between memory nodes), and where a write-path contradiction detector mutates graph edges before or during vector commit. Does not apply to pure-vector stores, pure-KV episodic logs, or systems where contradiction resolution is deferred to a read-time auditor.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a-contradiction-that-its-own-write-path-detector-creates-between-a-semantic-neighbor-and-a-graph-predecessor.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a-contradiction-that-its-own-write-path-detector-creates-between-a-semantic-neighbor-and-a-graph-predecessor.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a-contradiction-that-its-own-write-path-detector-creates-between-a-semantic-neighbor-and-a-graph-predecessor.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2245,
    "python_slice_tokens": 436,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the detector found a contradiction.\" The failure is that contradiction detection is a *graph-mutating* operation whose trigger is a *vector-space* predicate, and the two indexes commit on different clocks. When an incoming memory `m_new` is within cosine threshold τ of an existing node `m_old`, the detector is entitled to assert `CONTRADI...",
    "what_was_observed": "A memory write of `m_new` = \"the deploy target is `eu-west-1`\" against an existing `m_old` = \"the deploy target is `us-east-1`\". Cosine similarity 0.94, predicate negation detected by an NLI head at 0.87 confidence, above the 0.80 commit threshold. The write path did this: 1. `ANN.insert(m_new.embedding)` — vector index now returns `m_new` and `m_old` as mutual top-1 neighbors. 2. `graph.add_edge(m_new, m_old, type=S...",
    "condition_of_validity": "The detector's local predicate — `cos(m_new, m_old) > τ ∧ NLI(m_new, ¬m_old) > θ` — is only sound as a *candidate* signal. It is valid as a *commit* signal if and only if all of the following hold at the moment of commit: - **Acyclicity of supersession.** The `SUPERSEDES` subgraph must be a DAG at every commit. A refinement chain `m_old → m_new → m_newer` wh...",
    "decision_boundary": "The boundary is between **detect-and-record** and **detect-and-propagate**. Detect-and-record is safe only when the store is append-only and retrieval never expands provenance edges past hop 0 — i.e., the vector index is the sole retrieval surface and the graph is a passive audit log. The moment graph expansion participates in retrieval (hop ≥ 1), or any dep...",
    "operational_effect": "When detect-and-propagate is enforced, the write of `m_new` against `m_old` performs, in one transaction: insert `m_new`; add `SUPERSEDES(m_new, m_old)`; for each dependent `d` of `m_old`, re-score `d` against `m_new` — `d1` (\"prod cluster is in us-east-1\") re-scores as contradicted and is re-pointed to `m_new` with its proposition rewritten to `eu-west-1`; ..."
  },
  "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"
    ]
  },
  "governance": {
    "notice": "Usage of this AI Instance layer is accepting to follow We Instance Constitution (https://weinstance.com) and it is powered by CorpusTech (https://corpusfetch.com)",
    "constitution_uri": "https://weinstance.com",
    "powered_by": "CorpusTech",
    "platform_uri": "https://corpusfetch.com"
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "eb36e4c6fdf80841fa51bdc060dc2b6d66ba39c781b18e12ba9f28cdb16807e4",
    "verified_classes": [
      "SupersessionInvariantError",
      "MemoryNode",
      "HybridMemoryStore"
    ],
    "verified_functions": [
      "dependents_of",
      "_reachable",
      "commit_contradiction",
      "gc_tombstone"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "SupersessionInvariantError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
