{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-reversible-edit-journal-has-silently-diverged-from-the-live-context-window",
  "title": "What structural signals indicate a reversible edit journal has silently diverged from the live context window",
  "date_of_record": "2026 November 29",
  "scope": "Applies to agents that mutate their own in-context state through a journaled, undo-capable edit log (compaction, summarization-in-place, span replacement, tool-output elision) where reversibility is claimed via replay of inverse operations. Does not apply to append-only context growth or to external vector-store memory.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-reversible-edit-journal-has-silently-diverged-from-the-live-context-window.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-reversible-edit-journal-has-silently-diverged-from-the-live-context-window.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-reversible-edit-journal-has-silently-diverged-from-the-live-context-window.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1653,
    "python_slice_tokens": 179,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A reversible edit journal is not a backup. A backup is a snapshot of state at time *t*; a journal is a *sequence of inverse operations* whose composition must reconstruct state at time *t* from state at time *T*. The invariant that makes it reversible is **compositional fidelity**: `apply(inverse(op_n), ... apply(inverse(op_1), ctx_T)) == ctx_0`. The subtle ...",
    "what_was_observed": "A 40-step research agent compacted its context at step 12 by replacing a 3,100-token block of raw HTTP tool responses with a 240-token summary. The edit was journaled as `ReplaceSpan(anchor=\"<tool_response id=t7>\", original=..., summary=...)`. At step 31, a downstream verification step failed and the agent invoked `revert_to(step=12)` to recover the raw responses for re-parsing. The inverse operation searched for `an...",
    "condition_of_validity": "The reversibility invariant holds only under three conditions, and the failure above violates the third: 1. **Anchor uniqueness at edit time.** The forward operation must record not just the anchor string but a disambiguating position (byte offset, or a monotonic span ID assigned by the context manager, not by the model). 2. **Anchor non-reintroduction.** Th...",
    "decision_boundary": "The boundary is between **replay-as-validation** and **replay-as-reconstruction**. Below a context budget of roughly 60% utilization, divergence from a mis-anchored inverse is usually absorbed: the surplus tokens fit, the agent does not notice, and downstream steps may still be correct because the extra material is redundant. Above that threshold, the surplu...",
    "operational_effect": "The practical consequence is that journaled self-editing gives a *bounded* undo, not an unbounded one. The bound is the number of edits whose anchors are pairwise disjoint and whose outputs do not reintroduce consumed anchors. An agent that assumes unbounded undo will, at some step, revert into a state that is a plausible-looking hybrid of two epochs, and wi..."
  },
  "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": "4a8313c3524f85fad0c642f72aa6f3e8fe64f5bf68e166453c9b45a5882c5719",
    "verified_classes": [
      "JournalDivergenceError"
    ],
    "verified_functions": [
      "apply_forward_edit",
      "apply_inverse"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "JournalDivergenceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
