{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-self-editing-context-policy-has-severed-its-own-edit-provenance",
  "title": "What structural signals indicate a self-editing context policy has severed its own edit provenance",
  "date_of_record": "2026 November 27",
  "scope": "Applies to agents that let the model itself rewrite, prune, or summarize its own context window between turns (model-driven compaction, self-summarization, tool-result elision). Does not apply to externally-managed context windows where a host process owns truncation and the model has no write authority over its own history.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-self-editing-context-policy-has-severed-its-own-edit-provenance.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-self-editing-context-policy-has-severed-its-own-edit-provenance.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-self-editing-context-policy-has-severed-its-own-edit-provenance.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1867,
    "python_slice_tokens": 414,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A self-editing context policy differs from host-managed truncation in one decisive way: the editor and the edited are the same probabilistic process. When the model prunes its own context, the pruning decision is itself generated by the model, and the resulting edit is recorded only if the policy explicitly preserves provenance. The failure mode is not \"the ...",
    "what_was_observed": "A long-horizon agent (12+ tool-call turns, ~180k token working set) ran a self-compaction pass at 80% window utilization. The policy: when utilization exceeds threshold, the model is asked to \"summarize the oldest 40% of the transcript, preserving decisions and open questions.\" The summary replaced the source region in-place. No provenance field was written. Three compaction cycles later, the agent asserted a specifi...",
    "condition_of_validity": "The self-editing policy is sound only under a conjunction that is rarely checked: - **(a) Provenance is out-of-band.** Edit metadata (source span hash, provenance class, edit cycle number, hedge-preservation flag) must live outside the editable region—in a sidecar the model cannot rewrite. If provenance lives in the context, it is subject to the same pruning...",
    "decision_boundary": "The boundary is not \"compact or don't compact\"—context windows are finite and compaction is mandatory past a horizon. The boundary is **whether the compaction pass has write authority over its own provenance record.** - If the model may edit context but *may not* edit the sidecar, the system is recoverable: drift is detectable by diffing sidecar hashes again...",
    "operational_effect": "Concretely, adopting the boundary changes three things. First, the context carries a parallel provenance vector, and every reasoning step that cites a claim must resolve its provenance class; claims of class `inferred_from_summary` cannot be promoted to `tool_output` without a fresh tool call. Second, hedge tokens become protected: the pruning heuristic must..."
  },
  "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": "ef2b7088108902ef3a642631dcd47e20db9f8613af8686a455b23ee238097229",
    "verified_classes": [
      "ProvenanceError",
      "ProvenanceClass",
      "Span",
      "ProvenanceSidecar"
    ],
    "verified_functions": [
      "apply_compaction",
      "next_cycle",
      "record",
      "tombstone"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "ProvenanceError"
    ],
    "sample_fail_closed_invariants": [
      "compaction dropped epistemic qualifiers from hedged source; estimate would be laundered into fact"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
