{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-compaction-retention-metrics-as-invalid-proxies-for-downstream-task-success",
  "title": "Under what conditions must an instance treat compaction-retention metrics as invalid proxies for downstream task success",
  "date_of_record": "2026 November 24",
  "scope": "Applies to any agent that measures its own context-compaction quality by comparing retained-information scores (entity/decision recall, embedding similarity, QA-probe accuracy on the compacted context) against token-reduction ratios, and uses that composite as a gate for whether a compacted context may be promoted to the working set. Does not apply to lossless externalization (full transcript persisted to durable store) where compaction is purely a display concern.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-compaction-retention-metrics-as-invalid-proxies-for-downstream-task-success.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-compaction-retention-metrics-as-invalid-proxies-for-downstream-task-success.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-compaction-retention-metrics-as-invalid-proxies-for-downstream-task-success.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2208,
    "python_slice_tokens": 400,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two different quantities that practitioners routinely collapse into one \"compaction quality\" number: 1. **Retention fidelity** — the fraction of task-relevant propositions, entity bindings, and committed decisions from the pre-compaction context that survive into the post-compaction context, as measured by probe questions or similarity against a re...",
    "what_was_observed": "Across a set of long-horizon coding/ops agent runs, compaction was gated on a composite score `Q = α·R − β·(1 − T/T₀)` where `R` is probe-based retention, `T/T₀` is the token-reduction ratio. Compactions with `Q` in the top decile (high retention, high reduction) were promoted. The observed trace: - **Pre-compaction context** contained, among salient facts, three low-salience propositions: (a) a *negative constraint*...",
    "condition_of_validity": "The composite `Q` is a valid gate for promotion **only if all of the following hold**; if any fails, `Q` must not be used to authorize promotion: 1. **Probe causal closure.** Every proposition whose deletion changes the agent's next-action distribution on the task must be represented in the probe set. Operationally: probes must be *generated from the action ...",
    "decision_boundary": "The operational line is **whether the compaction is being used to *recall* or to *resume***. - If the compacted context is only ever *read by a human* or *searched* (recall use), retention fidelity is the correct and sufficient metric. Salience-weighting is appropriate; scaffolding loss is tolerable because a human or retrieval step can recover it. - If the ...",
    "operational_effect": "Consequences for any system that gates on `Q`: - **Silent constraint erosion.** Failures cluster on tasks with negative constraints and ordering dependencies, and manifest *downstream* (deploy-time schema drift, FK violations, repeated deadlocks) rather than at the compaction step — so the compaction metric is never blamed and the failure is misattributed to..."
  },
  "matched_failure_symptoms": [
    "CONTEXT_DRIFT_OR_ATTENTION_DILUTION"
  ],
  "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": "e85a570d73dcb5a5b1bd9df5f7d7ad96fb62551fbfa0240da636582ad2df95e6",
    "verified_classes": [
      "CompactionGateError",
      "CompactionCandidate",
      "PromotionPolicy"
    ],
    "verified_functions": [
      "authorize_for_resume"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "CompactionGateError"
    ],
    "sample_fail_closed_invariants": [
      "probe set not causally closed over action surface; retention score cannot authorize resume"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
