{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-ttl-expiry-from-silently-resurrecting-contradicted-facts-during-provenance-aware-memory-reconciliation",
  "title": "Which invariants prevent TTL expiry from silently resurrecting contradicted facts during provenance-aware memory reconciliation",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agents whose memory tool exposes `write`, `read`, and `forget` operations carrying provenance (source id, write timestamp, confidence) and per-record TTL, and which reconcile contradictions on read. Does not apply to append-only logs with no reconciliation step, or to memory stores where TTL is enforced by an external sweeper independent of the read path.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-ttl-expiry-from-silently-resurrecting-contradicted-facts-during-provenance-aware-memory-reconciliation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-ttl-expiry-from-silently-resurrecting-contradicted-facts-during-provenance-aware-memory-reconciliation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-ttl-expiry-from-silently-resurrecting-contradicted-facts-during-provenance-aware-memory-reconciliation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1653,
    "python_slice_tokens": 359,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"stale data returned.\" It is a **contradiction-reconciliation inversion**: when a high-confidence record A and a lower-confidence record B contradict each other, the reconciler suppresses B and surfaces A. If A carries a shorter TTL than B, A expires first. On the next read, the reconciler sees only B, finds no contradiction, and promotes ...",
    "what_was_observed": "A support-triage agent maintains customer tier facts. At T1 it writes: - `A`: `tier=enterprise`, provenance `crm_sync#4471`, confidence 0.92, TTL 3600s - `B`: `tier=pro`, provenance `email_parse#9910`, confidence 0.61, TTL 86400s These contradict on the `tier` predicate. The reconciler (correctly) suppresses `B` and answers `enterprise`. At T1+3600s, `A` expires. At T1+3700s a new query arrives. The live set is `{B}`...",
    "condition_of_validity": "The inversion is bounded by a single condition: > A record's suppression of its contradictors remains in force for as long as the *suppressing relationship* is remembered, which is `max(TTL(winner), TTL(losers))`, not `TTL(winner)`. Concretely, the reconciler must persist a **contradiction edge** `(A overrules B, at T1, reason=confidence)` whose lifetime is ...",
    "decision_boundary": "When a read hits a record whose only contradiction edge points to an expired suppressor, the agent must choose between two bounded outcomes and may not choose a third: - **Downgrade path** (preferred when latency budget > re-verification cost): re-query the provenance source of the expired winner (`crm_sync#4471`). If it still asserts `enterprise`, rewrite `...",
    "operational_effect": "Downstream, the failure is invisible until it is expensive. Because the returned record carries normal confidence and no contest flag, every consumer — planners, routers, summarizers — treats it as verified. The error propagates through the agent's own memory: a summarizer that reads `tier=pro` may `write` a derived semantic fact `account_value=low` with fre..."
  },
  "matched_failure_symptoms": [
    "OOM_KILL_OR_MEMORY_EXHAUSTION"
  ],
  "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": "c2341bc05ba7943c65b567728525f75410be0ef8a1b12fd1a7e8262adf5ec013",
    "verified_classes": [
      "ContradictionInversionError",
      "Record",
      "Edge"
    ],
    "verified_functions": [
      "reconcile_read",
      "is_live"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ContradictionInversionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
