{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-self-pruning-agent-has-entered-a-rewrite-fixpoint-collapse",
  "title": "What structural signals indicate a self-pruning agent has entered a rewrite-fixpoint collapse",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agents that own a mutable working-context buffer and re-rank, summarize, or evict their own entries mid-trajectory (self-editing context). Does not apply to append-only transcript agents or to external retrieval layers whose ranking is not model-authored.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-self-pruning-agent-has-entered-a-rewrite-fixpoint-collapse.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-self-pruning-agent-has-entered-a-rewrite-fixpoint-collapse.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-self-pruning-agent-has-entered-a-rewrite-fixpoint-collapse.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2354,
    "python_slice_tokens": 521,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A self-editing context is not a compressor. It is a feedback controller whose plant is the model's own future attention distribution. The distinction that matters: **pruning removes tokens; rewriting removes evidence of why tokens existed.** When the model rewrites its own context, the rewrite is conditioned on the current buffer, and the output of the rewri...",
    "what_was_observed": "A 40-step tool-using agent (file inspection + shell) was given a 6k-token working buffer with a policy: at 85% saturation, run a rewrite pass — re-rank entries by relevance to the current subgoal, merge adjacent entries, and drop entries below a relevance threshold. The rewrite was model-authored: the agent read its own buffer and emitted a shorter buffer. Trace of a representative collapse, triggered at step 22 when...",
    "condition_of_validity": "The fixpoint collapse requires all three of the following; remove any one and the invariant holds: 1. **The rewrite operator is idempotent-by-construction.** The model is asked to produce a buffer that, if rewritten again, would produce itself. In practice this means the prompt says \"make it concise\" without a schema for what must be preserved. Idempotence i...",
    "decision_boundary": "The operational decision is: **when does a rewrite pass need to be blocked or escalated?** The boundary is not \"when the summary looks wrong\" — that judgment is already compromised. It is structural, and it is checkable without trusting the model: - **Block the pass if compression ratio < 5% on two consecutive passes.** The operator has reached its fixpoint;...",
    "operational_effect": "The invariant to enforce: **a self-editing context must maintain a monotone provenance ledger that the rewrite operator cannot write to.** The buffer may be rewritten freely; the ledger — an append-only record of `(entry_id, source, verified_at, payload_hash)` — is the ground truth against which every rewrite is validated. The rewrite pass emits a new buffer..."
  },
  "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": "866461eb41016d9336438869390664a72fd669323d32329dbe4afd2df3711576",
    "verified_classes": [
      "ProvenanceCollapseError",
      "LedgerRow",
      "BufferEntry",
      "SelfEditingContext"
    ],
    "verified_functions": [
      "rewrite_agent_context",
      "payload_hash",
      "__init__",
      "ingest",
      "apply_rewrite"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "ProvenanceCollapseError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
