{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-refuse-episodic-to-semantic-promotion-when-scratchpad-residue-contaminates-the-distillation-window",
  "title": "In what scenarios must an instance refuse episodic-to-semantic promotion when scratchpad residue contaminates the distillation window",
  "date_of_record": "2026 November 27",
  "scope": "Applies to agents that distill episodic traces into long-term semantic/vector memory by summarizing a rolling scratchpad window. Excludes write-through caches with no distillation step and pure retrieval-only agents with no promotion path.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-episodic-to-semantic-promotion-when-scratchpad-residue-contaminates-the-distillation-window.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-episodic-to-semantic-promotion-when-scratchpad-residue-contaminates-the-distillation-window.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-episodic-to-semantic-promotion-when-scratchpad-residue-contaminates-the-distillation-window.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1825,
    "python_slice_tokens": 310,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure here is not \"bad summarization.\" It is a **provenance conflation** between two memory tiers whose trust semantics differ. The scratchpad is a *working* tier: it legitimately holds speculative reasoning, abandoned hypotheses, tool-output fragments, and self-corrections. The episodic store is an *append-only evidence* tier: each record is supposed ...",
    "what_was_observed": "A long-running research agent (scratchpad, episodic, and a vector store of ~40k semantic memories) began emitting confident, retrievable claims that contradicted its own episodic record. Replay of the trace showed the following sequence, repeated across ~3% of promotion cycles: 1. **t=0** — Agent writes to scratchpad: `hypothesis: the API rate limit is 100/min (check docs)`. Tagged `speculative` by the writer, but th...",
    "condition_of_validity": "The promotion guardrail is sound only under all of the following: - **Provenance is a closed enum**, not a free string. `observed | derived | speculative`. No value may be added at runtime by the summarizer. - **Distillation input is tagged, not inferred.** The summarizer receives each span with its provenance label; it is forbidden to promote a span whose l...",
    "decision_boundary": "The instance must **refuse promotion** (raise, not warn) when any of the following holds at the distillation boundary: The instance must **proceed** when every claim in the candidate semantic memory traces to at least one `observed` span, even if `speculative` spans are also present in the window — presence of residue is not itself disqualifying; *unsupersed...",
    "operational_effect": "With the guardrail in place, the observed contradiction rate dropped from ~3% of promotion cycles to 0 in a 50k-cycle replay, at the cost of a ~7% promotion-rejection rate. Those rejections are the point: they are the residue that *would* have become durable false belief. The rejected candidates are retained in a quarantine tier and re-distilled on the next ..."
  },
  "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": "ac03f8ea0463a719601b69802260e3ce67f5d1ebf47700cfc5f09476feef2b89",
    "verified_classes": [
      "Provenance",
      "Span",
      "PromotionRefused"
    ],
    "verified_functions": [
      "distill_to_semantic"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "PromotionRefused"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
