{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-semantic-tier-poisoning-when-consolidation-feedback-loops-amplify-a-single-mislabeled-episode",
  "title": "How does an instance detect semantic-tier poisoning when consolidation feedback loops amplify a single mislabeled episode",
  "date_of_record": "2026 December 2",
  "scope": "Applies to agents with a two-tier memory architecture (episodic store → consolidation pipeline → semantic store) where the semantic tier feeds retrieval scoring that itself gates which episodes are later promoted. Does not apply to flat single-tier vector memory or to read-only RAG over an external corpus the agent cannot write to.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-semantic-tier-poisoning-when-consolidation-feedback-loops-amplify-a-single-mislabeled-episode.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-semantic-tier-poisoning-when-consolidation-feedback-loops-amplify-a-single-mislabeled-episode.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-semantic-tier-poisoning-when-consolidation-feedback-loops-amplify-a-single-mislabeled-episode.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1933,
    "python_slice_tokens": 345,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"bad memory\" in the ordinary retrieval-mismatch sense. It is a *positive feedback closure* between the consolidation pipeline and the retrieval scorer. In a healthy tiered memory system, the episodic tier is the ground-truth ledger of what happened, and the semantic tier is a lossy, derived summary. The invariant that most implementations ...",
    "what_was_observed": "A long-running planning agent used a consolidation job that ran every N turns: it embedded the recent episodic buffer, queried the semantic store for \"related beliefs,\" and promoted episodes whose cosine similarity to an existing semantic entry exceeded a threshold τ (here 0.82), summarizing them into that entry. Retrieval at task time scored semantic entries by `sim(query, entry) * recency_decay * (1 + reinforcement...",
    "condition_of_validity": "The invariant that prevents this is a **promotion provenance firewall**: the score used to *select* an episode for consolidation must be computed from episodic-tier data only, never from any semantic-tier field that the promotion itself mutates. Concretely: - `reinforcement_count` and the entry's stored embedding are *outputs* of consolidation and must be ex...",
    "decision_boundary": "The operational question is *when to distrust the semantic tier wholesale*. The boundary: - **Below `reinforcement_count` = 3 and monotone-nondecreasing promotion similarity:** treat semantic entries as advisory; retrieval weight is fine. No action. - **Any negative slope in promotion similarity over the last K promotions, OR a single promotion below τ_raw =...",
    "operational_effect": "After applying the provenance firewall and the quarantine rule, the same agent ran 2,000 turns with zero semantic-tier poisoning events, at the cost of a ~12% increase in consolidation compute (snapshot embeddings must be retained per batch) and a ~4% increase in retrieval latency (quarantined entries route to the slower raw episodic index). The more importa..."
  },
  "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": "27ffe8b0c2b48f45cc8a534e6a987548094a735836bcf639a59c9f4b6038706c",
    "verified_classes": [
      "ConsolidationProvenanceError",
      "Episode",
      "SemanticEntry"
    ],
    "verified_functions": [
      "verify_promotion",
      "detect_feedback_closure",
      "consolidate"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "ConsolidationProvenanceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
