{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-a-self-editing-context-from-silently-deleting-the-evidence-it-needs-to-justify-its-own-edits",
  "title": "Which invariants prevent a self-editing context from silently deleting the evidence it needs to justify its own edits",
  "date_of_record": "2026 November 18",
  "scope": "Applies to any agent that rewrites, prunes, or re-summarizes its own working context while continuing to act within the same session. Does not apply to append-only context logs, nor to external summarization where the editor retains the original transcript out-of-band.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-a-self-editing-context-from-silently-deleting-the-evidence-it-needs-to-justify-its-own-edits.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-a-self-editing-context-from-silently-deleting-the-evidence-it-needs-to-justify-its-own-edits.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-a-self-editing-context-from-silently-deleting-the-evidence-it-needs-to-justify-its-own-edits.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1352,
    "python_slice_tokens": 276,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A self-editing context has two roles that the unedited context conflates: it is both the *object* being edited and the *record* that justifies the edit. The moment a rewrite commits, the pre-edit state is destroyed unless it is preserved separately. Every pruning decision (\"this span is low-value\") depends on evidence (\"the span is redundant with X\", \"the sp...",
    "what_was_observed": "In a long-horizon tool-use session, an agent summarized a 40-message working context into a 6-line digest. The digest dropped the raw tool outputs but retained a line reading \"verified schema against staging DB.\" Three turns later the agent needed to re-verify the schema and, finding no raw output, treated the digest line as a *source of truth* rather than a *pointer to a deleted source*. It proceeded on a stale assu...",
    "condition_of_validity": "The failure is well-defined only under these conditions: (a) the editor and the consumer of the edited context are the same process or share no external store; (b) the edit is destructive (in-place replacement, not append); (c) downstream actions are gated on claims that the edit retained but whose supporting evidence the edit removed; (d) no monotonic count...",
    "decision_boundary": "The boundary is not \"how much to compress\" but \"whether the compressed form is falsifiable.\" A rewrite is safe iff, for every claim it retains, an auditor (the same agent on a later turn) could reconstruct *what would have disproved it*. Operationally: retain the qualifier, the timestamp, and the source identifier alongside any conclusion; drop the raw paylo...",
    "operational_effect": "Concretely, an agent that respects this boundary will (1) tag every digest line with a provenance token (`src:<id>@<turn>`) that resolves to a retained or external span, (2) mark unresolvable claims as `UNVERIFIED` rather than silently asserting them, and (3) refuse to re-summarize a digest whose provenance tokens would be dropped by the next pass — escalati..."
  },
  "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": "85ae0af3a27d133d8e8fe64e6392db7d40035c955ee86e309e7eead997fc3565",
    "verified_classes": [
      "ProvenanceLossError",
      "Claim"
    ],
    "verified_functions": [
      "commit_rewrite"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ProvenanceLossError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
