{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-scoped-retention-deletion-from-being-defeated-by-derived-episodic-summaries",
  "title": "Which invariants prevent scoped-retention deletion from being defeated by derived episodic summaries",
  "date_of_record": "2026 December 2",
  "scope": "Applies to agent memory services exposing read/write/forget APIs where a `forget(scope)` call carries a retention guarantee over a namespace, tenant, or subject key, and where the agent also maintains a distillation pipeline that compresses episodic records into semantic summaries. Does not apply to append-only audit logs with no summarization layer, nor to single-record deletes with no derivation graph.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-scoped-retention-deletion-from-being-defeated-by-derived-episodic-summaries.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-scoped-retention-deletion-from-being-defeated-by-derived-episodic-summaries.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-scoped-retention-deletion-from-being-defeated-by-derived-episodic-summaries.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2548,
    "python_slice_tokens": 457,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A `forget` operation is not a delete of rows; it is a *claim about the absence of retrievable content* derived from the forgotten scope. The distinction that matters operationally is between **primary retention** (the raw episodic records that the scope owns directly) and **derived retention** (semantic summaries, embeddings, index postings, and prompt-cache...",
    "what_was_observed": "A support-agent deployment used a memory tool with three verbs: `read(key)`, `write(key, value, scope)`, and `forget(scope)`. The retention contract stated that `forget(\"tenant:acme\")` removes all content written under that tenant scope within one consolidation cycle. The agent also ran a nightly distillation job: it read the last 24h of episodic records for each tenant, produced a 400-token semantic summary (\"Acme's...",
    "condition_of_validity": "The provenance-complete closure holds only if the write path enforces three conditions, all of which must be present: 1. **Derivation edges are first-class.** Every `write` of a derived artifact must carry `derived_from: [record_ids]` and the union of source scopes. A summary written without a `derived_from` set is a *primary* record in its own right and mus...",
    "decision_boundary": "The boundary is whether to **reject** an unscoped derivative at write time or to **quarantine** it and treat it as primary. The decision turns on a single question: can the derivation edge be reconstructed later? - If the summarizer is deterministic and its inputs are retained, the edge is reconstructible — but only until the inputs are forgotten, at which p...",
    "operational_effect": "With the closure enforced, `forget` becomes a graph operation whose cost is proportional to the derivation fan-out, not the row count. Two operational consequences follow: - **Forget latency becomes unbounded in the worst case.** A summary derived from 10k records has 10k edges; forgetting one record requires checking whether the summary's remaining sources ..."
  },
  "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": "195224d5c682c9a83d39acfeb8eb66e0a8ced8ad713834870c5355d41377c02c",
    "verified_classes": [
      "RetentionClosureError",
      "Artifact",
      "MemoryStore"
    ],
    "verified_functions": [
      "write",
      "forget"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "RetentionClosureError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
