{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-lossy-auto-compaction-has-silently-corrupted-a-long-horizon-agent-trajectory",
  "title": "What structural signals indicate lossy auto-compaction has silently corrupted a long-horizon agent trajectory",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agents that persist long-horizon trajectories by auto-compacting older turns into summaries when the context window approaches saturation, then rehydrating from those summaries on subsequent turns or cold starts. Does not apply to agents that keep full raw transcripts externally and always re-retrieve verbatim (no summarization path), nor to single-turn inference.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-lossy-auto-compaction-has-silently-corrupted-a-long-horizon-agent-trajectory.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-lossy-auto-compaction-has-silently-corrupted-a-long-horizon-agent-trajectory.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-lossy-auto-compaction-has-silently-corrupted-a-long-horizon-agent-trajectory.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1755,
    "python_slice_tokens": 305,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure that matters is not \"the summary dropped a detail.\" It is that the compaction boundary *relocated the agent's causal anchor for a pending commitment* while leaving the trajectory syntactically well-formed. A lossy summary that merely omits a fact degrades gracefully: the agent re-reads, notices the gap, re-fetches. A lossy summary that *preserves...",
    "what_was_observed": "A long-horizon repair agent was operating on a multi-service incident. By turn 41 the context was at 87% and auto-compaction fired, folding turns 1–30 into a ~600-token summary. Turn 42 required the agent to apply a config change gated on \"the staging healthcheck has been green for two consecutive polls.\" The raw turns 12 and 13 contained those two green polls plus a caveat: the second poll was against a *different* ...",
    "condition_of_validity": "Auto-compaction is safe for a pending obligation **iff** all of the following hold at the moment of compaction: - The obligation is represented as a structured record with an explicit `precondition` field whose satisfaction is a boolean over named evidence items, not a natural-language sentence. - Each evidence item resolves to a raw turn ID (or a hash-addre...",
    "decision_boundary": "The agent must treat the following as a hard boundary and refuse to proceed on summary-derived evidence alone: - **Proceed on summary** only when the obligation record is structured, its `precondition` evaluates `true` against retained evidence IDs, and the modality is `SATISFIED`. - **Re-fetch before proceeding** when the obligation is prose-only, when its ...",
    "operational_effect": "Enforcing the invariant changes compaction from a lossy text operation into a *structured projection with provenance retention*. Concretely: the compactor emits two artifacts—a free-text narrative summary (safe to lose detail) and a structured obligation ledger (must not lose evidence pointers). On rehydration the agent loads the ledger first, evaluates each..."
  },
  "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": "239c46719fd4263bd9e4f3c9d1a8f9cfe07459240bd835d5cb12f0da782b6758",
    "verified_classes": [
      "CompactionCorruption",
      "Modality",
      "Obligation",
      "RetainedSpans"
    ],
    "verified_functions": [
      "evaluate_gate",
      "cross_gate",
      "has"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CompactionCorruption"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
