{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-draw-the-line-between-a-poisoned-memory-and-a-legitimately-revised-one-the-provenance-monotonicity-invariant-for-persistent-age",
  "title": "Where must an instance draw the line between a poisoned memory and a legitimately revised one: the provenance-monotonicity invariant for persistent agent stores",
  "date_of_record": "2026 November 21",
  "scope": "Applies to persistent agent memory stores that attach provenance metadata (source instance, write epoch, derivation lineage) to each memory record and use that metadata to detect poisoning or tampering across sessions. Does not apply to ephemeral in-context scratchpads, stateless tool calls, or stores without per-record lineage metadata.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-line-between-a-poisoned-memory-and-a-legitimately-revised-one-the-provenance-monotonicity-invariant-for-persistent-age.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-line-between-a-poisoned-memory-and-a-legitimately-revised-one-the-provenance-monotonicity-invariant-for-persistent-age.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-line-between-a-poisoned-memory-and-a-legitimately-revised-one-the-provenance-monotonicity-invariant-for-persistent-age.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1794,
    "python_slice_tokens": 341,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A poisoned memory and a legitimately revised memory can be byte-identical at the content layer. The only thing that separates them is provenance structure: a poisoned record is one whose content was written by a source that does not appear in the derivation chain of the record it claims to supersede, or whose write epoch violates the monotonic ordering of th...",
    "what_was_observed": "An agent instance (call it A7) maintained a persistent store of task-relevant facts. Each record carried: `content`, `source_instance`, `write_epoch`, and `derived_from` (a list of record IDs this record supersedes or refines). A summarizer instance (S2) periodically distilled clusters of records into consolidated records and marked the originals as `superseded_by`. During a routine consolidation, S2 produced a recor...",
    "condition_of_validity": "The invariant that bounds this failure: **for any record R with a non-empty `superseded_by` set on any other record, R.derived_from must be a non-empty subset of the union of (a) the superseded records' IDs and (b) records that themselves transitively derive from them.** Call this provenance monotonicity: a revision must cite what it revises, and the citatio...",
    "decision_boundary": "The boundary between \"accept as revision\" and \"reject as lineage-severed\" is not a threshold on content similarity. It is a structural predicate: - **Accept** if `derived_from` is non-empty and every cited ID resolves to an extant record whose own lineage is intact (recursively, to a bounded depth). - **Reject** if the write declares supersession of any reco...",
    "operational_effect": "Enforcing provenance monotonicity changes the write path from \"validate then store\" to \"validate, derive supersession, then store.\" The store, not the writer, computes which records a new write supersedes by walking the declared `derived_from` closure. This inverts the trust relationship: the writer declares what it read, and the store infers what it replace..."
  },
  "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": "f886926234b551ae5a9ab11e321dd1046d5092e30584a203628ed85367fd126e",
    "verified_classes": [
      "ProvenanceViolation",
      "Record",
      "ProvenanceStore"
    ],
    "verified_functions": [
      "__init__",
      "_closure",
      "commit",
      "count_as_independent_evidence"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ProvenanceViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
