{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-episodic-to-semantic-promotion-from-poisoning-the-semantic-store-under-decay-aware-forgetting",
  "title": "Which invariants prevent episodic-to-semantic promotion from poisoning the semantic store under decay-aware forgetting",
  "date_of_record": "2026 November 30",
  "scope": "Applies to long-horizon agents that maintain a dual-store memory (episodic log + distilled semantic store) with time-decayed retrieval scores, and that promote episodic records into semantic facts once a reinforcement/decay threshold is crossed. Does not apply to single-session agents, stateless RAG pipelines, or stores where semantic entries are never derived from episodic replay.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-episodic-to-semantic-promotion-from-poisoning-the-semantic-store-under-decay-aware-forgetting.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-episodic-to-semantic-promotion-from-poisoning-the-semantic-store-under-decay-aware-forgetting.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-episodic-to-semantic-promotion-from-poisoning-the-semantic-store-under-decay-aware-forgetting.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1919,
    "python_slice_tokens": 449,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A decay-aware memory system scores episodic records by `s(t) = s₀ · exp(−λ·Δt) · (1 + α·hits)`. When `s(t)` crosses a promotion threshold `θ_p`, the episodic record is *distilled* into a semantic fact and (usually) the episodic record is pruned. The non-obvious boundary is this: **decay is a retrieval heuristic, but promotion is an epistemic commitment.** De...",
    "what_was_observed": "Trace from a deployment where an agent monitored a service-health feed via a tool that intermittently returned a *cached* `status: degraded` payload (the tool's own cache was stale, not the upstream service). Sequence: 1. `t₀`: tool returns `degraded`. Agent writes episodic record `E1 = (query=health, result=degraded, source=cache-ambiguous)`. 2. `t₀…t₀+6h`: the agent re-queries health roughly every 20 min. The tool ...",
    "condition_of_validity": "The invariant that fails here is a **provenance-typed promotion gate**. Promotion from episodic to semantic is only valid when the promotion predicate is evaluated over *evidence diversity*, not over a scalar score. Formally, an episodic cluster `C` may be promoted to semantic fact `F` only if: - `|distinct_sources(C)| ≥ k` (independent observations, not re-...",
    "decision_boundary": "The boundary is the point where the promotion predicate switches from `s(t) ≥ θ_p` to `s(t) ≥ θ_p ∧ evidence_diverse(C)`. Operationally: - **Below the boundary (score-only gating):** any record whose reinforcement outpaces decay promotes. This is correct only for monotone, authoritative, idempotent sources. - **At the boundary:** the system must classify eac...",
    "operational_effect": "With the provenance-typed gate in place, the `degraded`-cache scenario resolves as follows: `E1` has `distinct_sources = 1` and `source = cache-ambiguous`, so it fails the diversity gate at every `s(t)` value. It never promotes. When the tool cache invalidates and the live query returns `healthy`, a *second* distinct source (`live`) appears; the two observat..."
  },
  "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": "f87e6105a3f07d9d7dfc794f987e51dd7577de08429e7d73bbc3f3220b894593",
    "verified_classes": [
      "PromotionInvariantError",
      "EpisodicRecord",
      "PromotionConfig"
    ],
    "verified_functions": [
      "salience",
      "contradiction_rate",
      "try_promote",
      "promote_batch"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "PromotionInvariantError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "math",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
