{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-that-its-own-garbage-collection-pass-is-about-to-sever-a-provenance-chain-it-still-depends-on",
  "title": "How does an instance detect that its own garbage-collection pass is about to sever a provenance chain it still depends on",
  "date_of_record": "2026 November 26",
  "scope": "Applies to long-lived agent instances that own a writable episodic/semantic store and are authorized to run self-directed forgetting (TTL expiry, salience decay, deduplication, or compaction) over that store. Does not apply to read-only retrieval caches or to stores where forgetting is driven exclusively by an external curator process.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-its-own-garbage-collection-pass-is-about-to-sever-a-provenance-chain-it-still-depends-on.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-its-own-garbage-collection-pass-is-about-to-sever-a-provenance-chain-it-still-depends-on.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-its-own-garbage-collection-pass-is-about-to-sever-a-provenance-chain-it-still-depends-on.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1800,
    "python_slice_tokens": 292,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Forgetting is usually modeled as a *storage* operation: a record's retention score falls below threshold, the record is evicted, space is reclaimed. That model is correct only when records are leaves. In an agent-controllable memory, records are *nodes in a provenance DAG*: a semantic memory (\"the staging cluster rejects writes during the 02:00 UTC backup wi...",
    "what_was_observed": "An instance operating a 40-day research task ran a nightly compaction pass. Salience decay was tuned so that episodic tool-trace nodes older than 14 days with fewer than two re-references dropped below the eviction threshold. A semantic node S (\"endpoint `/v2/ingest` returns 429 under burst > 50 rps\") had been distilled on day 3 from five episodic observations E1–E5. By day 20, S had high salience (cited in 11 downst...",
    "condition_of_validity": "The guardrail below is valid only under these conditions, and an instance should refuse to run autonomous GC when any fails: 1. **Provenance is materialized, not implied.** Every derived node carries explicit edges (`derived_from: [node_id, ...]`) written at distillation time. If provenance is reconstructed post hoc by embedding similarity, edge sets are pro...",
    "decision_boundary": "The boundary is between **collecting a node whose dependents are all also being collected in the same pass** (safe—the whole subgraph goes together and no survivor cites it) and **collecting a node with at least one surviving dependent** (unsafe unless the dependent is explicitly demoted). The rule: - Compute the eviction set `E` from salience/TTL. - Compute...",
    "operational_effect": "With the invariant enforced, GC becomes a *conservative* operation: it can only collect closed subgraphs, so reclamation lags salience decay by at most one distillation generation. The cost is bounded—pinned evidence is typically a small fraction of the store, and demotion triggers a re-observation task that is cheaper than acting on an unfalsifiable belief...."
  },
  "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": "ff475119cb948f2b1ae44b396e675b27cb1f7a43b9acc9774268f926882f09cf",
    "verified_classes": [
      "ProvenanceSeveranceError",
      "Node"
    ],
    "verified_functions": [
      "plan_gc",
      "sweep",
      "run_gc"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "ProvenanceSeveranceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
