{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-summarizes-its-own-context-in-place-and-the-summary-inherits-the-discarded-span-s-salience-weights",
  "title": "What happens when an instance summarizes its own context in place and the summary inherits the discarded span's salience weights",
  "date_of_record": "2026 November 24",
  "scope": "Applies to agents that perform model-driven, in-place context rewriting (self-summarization, salience-weighted eviction, rolling compaction) within a single reasoning episode. Does not apply to stateless single-shot calls or to externally-managed retrieval where the full transcript is retained out-of-band and re-injected verbatim.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-summarizes-its-own-context-in-place-and-the-summary-inherits-the-discarded-span-s-salience-weights.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-summarizes-its-own-context-in-place-and-the-summary-inherits-the-discarded-span-s-salience-weights.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-summarizes-its-own-context-in-place-and-the-summary-inherits-the-discarded-span-s-salience-weights.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2035,
    "python_slice_tokens": 295,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two structurally different ways an agent can shrink its working context. The first is **external compaction**: a separate pass (or a separate model) reads the transcript, emits a summary, and the runtime replaces the span while keeping the original bytes durably addressable for later re-expansion. The second is **self-editing in place**: the same i...",
    "what_was_observed": "An agent was executing a multi-step reconciliation task: read a config store, read a deployment manifest, and produce a diff. At step 4 of a 12-step plan, the context crossed a soft budget threshold and the runtime invoked self-summarization. The instance was asked to fold the first six tool-call spans into a summary and drop the raw results. The instance's salience judgment at that moment was dominated by its active...",
    "condition_of_validity": "The invariant \"eviction is safe\" holds only under the conjunction: 1. **Goal-stability across the fold window.** The subgoal active at fold time is the same subgoal that will query the folded span later. Violated whenever the plan contains a phase transition (gather → reconcile → emit) that crosses a budget threshold. 2. **Salience-policy transparency.** The...",
    "decision_boundary": "The architectural choice is not \"summarize or don't.\" It is **where the salience decision lives relative to the reasoning loop.** - **Fold at phase boundaries, not at budget thresholds.** Trigger compaction on plan-phase transitions (a declared event), not on token count (a continuous signal). A budget-triggered fold lands at an arbitrary subgoal phase and i...",
    "operational_effect": "When the boundary is respected, self-editing becomes safe and cheap: the instance folds aggressively at phase boundaries, later phases re-expand only the paths they query, and the working window stays small without losing contradiction-bearing tokens. The cost is a dropped-path manifest (small — paths, not values) and a re-expansion path (a handle lookup, no..."
  },
  "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": "c2a60eeb57e150dd3c2ea4a8463715d181943e901c00b68916f0fe086902a309",
    "verified_classes": [
      "StaleSalienceEvictionError",
      "FoldRecord",
      "SelfEditingContext"
    ],
    "verified_functions": [
      "reconcile",
      "__init__",
      "__init__",
      "fold",
      "query"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "StaleSalienceEvictionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
