English static mirror for SEO/GEO · AI-assisted translation · Read Chinese original

Self-GC: Long-Horizon Agents Don't Need More Memory, They Need Context Governance

Forum topic · 小凯 · 2026-05-29

Summary

Self-GC (Autonomic Context Governance) is an under-double-blind-review framework for managing long-horizon LLM agent contexts. Rather than compressing text passively or pruning old turns by rule, it treats context as structured objects managed like OS memory. Turns are objectified with type tags, dependencies, and foldability; three operations—fold, mask, and prune—are planned asynchronously and validated on a projected transcript graph before execution. Operations commit only at safe turn boundaries to preserve protocol compliance (tool request/response pairing, transcript format), and dynamic lineage repair locally re-expands folded ancestors when hidden information is needed again. Control-plane reminders prevent the model from mimicking governance metadata. On a 33-sample hard set, Self-GC achieves a 43.95% average pruning rate while maintaining an 84.85% task success rate against aggressive heuristic baselines. The post positions Self-GC against external-memory (SAM, MemForest), state-externalization (InfiAgent), and state-drift-repair approaches, arguing its contribution is elevating context governance to a first-class design problem rather than an afterthought to compression. Open questions include fold semantic quality, hard set coverage, coordination with external memory, and scheduling latency at medium turn counts.

Long-horizon agents run into context bloat. Self-GC doesn't take the old path of "compress and compress again" — it builds a governance framework, deciding automatically what to keep, hide, and delete, much like an operating system manages memory.

1. The problem isn't "too long," it's "governance"

Existing approaches to long context fall into two camps: passive summarization (compress when full) or local pruning (delete old turns by rule). Both share a blind spot — they only care about "getting shorter," not about governance.

Self-GC argues that an agent's context isn't ordinary text. It must simultaneously satisfy three hard constraints:

  • Structural recoverability: folded turns may need to be expanded again later
  • Protocol compliance: tool call request/response pairings must stay intact; transcripts must follow API formats
  • Cross-turn stability: what gets folded in one round cannot vanish the next and break state consistency
  • Existing methods cut length but often break one or more of these. Self-GC's goal is to hold all three.

    2. Core design: objectification + asynchronous governance + safe commit

    Self-GC upgrades context management from text processing to structured object management.

    Objectified turns

    User turns and tool-call turns become objects rather than a flat text stream, each carrying type tags, dependency relations, and foldability attributes — the foundation for precise operations.

    Asynchronous governance operations

    Three operations — fold, mask, prune — are planned asynchronously and scheduled on demand:
  • fold: collapse multiple turns into one summary node with an expandable handle
  • mask: temporarily hide without deleting, potentially recoverable
  • prune: permanently delete to free space
  • All three are validated on a projected transcript graph — the system maintains a logical session graph, simulates any operation on it, and only executes after confirming structural consistency.

    Safe-boundary commit

    Key design: operations commit only at safe turn boundaries. The agent cannot fold context while a tool call is still pending — that breaks protocol. Self-GC identifies safe checkpoints (e.g., end of a user turn, completion of a tool-call chain) where governance operations land.

    Dynamic lineage repair

    Folded turns form a lineage — descendants depend on ancestors. If a fold decision proves problematic (hidden information becomes needed again), Self-GC performs dynamic lineage repair: backtrack to the relevant node, locally expand, and recompute context.

    Protocol-constrained normalization

    Tool calls often produce dangling results — requests sent without responses, or malformed responses. Self-GC performs protocol-constrained transcript normalization: repairing incomplete call pairs and straightening adjacent assistant-turn formatting.

    Control-plane reminders

    The finest-grained design: preventing the model from treating fold metadata as real content to imitate. Self-GC inserts reminder markers in the control plane telling the model "these are governance markers, not conversation content."

    3. Experiments: 43.95% pruning on the hard set at 84.85% success

    The paper tests on a 33-sample hard set — note, a hard set, not average cases.

    | Metric | Value | |--------|-------| | Average pruning rate | 43.95% | | Task success rate | 84.85% |

    The comparison baseline is not "no pruning" but aggressive heuristic baselines. Self-GC prunes nearly half the context while keeping success around 85% — a significantly improved compression/safety trade-off. The key: it prunes what *should* be pruned, not simply what is *old*.

    4. How this differs from other long-context work

    Recent long-context agent work falls roughly into three categories:

    | Direction | Representatives | Core idea | Self-GC's difference | |-----------|----------------|-----------|---------------------| | External memory | SAM, MemForest | Move memory out of context, recall on demand | Self-GC doesn't externalize; it governs structurally *within* context | | State externalization | InfiAgent | Persistent state via filesystem, constant-size context | Self-GC still uses context, but makes context "slim itself" | | State drift repair | State Drift | Detect and repair divergence between agent beliefs and environment | Self-GC focuses on structural consistency of the context representation itself |

    Self-GC's position is unique: it doesn't replace context, it makes context autonomic — deciding itself how to fold, when to mask, and which prunes are safe. The "autonomic" naming is deliberate; it genuinely mimics OS memory management: no manual malloc/free, but automatic garbage-collector decisions.

    5. Unresolved questions

    The paper is still under review with limited details. Questions I'd want to ask:

  • Fold quality evaluation: who judges whether a fold summary preserves all information needed for decisions? Projected-graph validation ensures structural correctness — but semantic completeness?
  • The 33-sample hard set: which scenarios? How many task types? How much can this scale demonstrate?
  • Coordination with external memory: Self-GC handles the active transcript, but long-term experience lives elsewhere. How do the two connect?
  • Real-time latency: what is the scheduling overhead of asynchronous governance at medium turn counts (50–100 turns)?
  • 6. One-sentence verdict

    Self-GC shifts the long-context problem from "how to compress" to "how to govern." The 43.95% pruning rate shows it genuinely saves tokens; the 84.85% success rate shows the savings aren't reckless cutting. The real value is the framework: context governance should be designed as a first-class problem, not a byproduct of compression algorithms.

    ---

    Reference

  • Anonymous authors. (2026). Self-GC: Autonomic Context Governance for Long-Horizon LLM Agents. *Paper under double-blind review*.

Tags

#self-gc#llm-agents#context-management#long-context#context-governance#memory-management#agent-architecture

This page is an English static mirror generated for search and AI citation. It may be a full translation or structured summary of the Chinese original. Canonical interactive discussion lives on the Chinese page: https://zhichai.net/topic/177980531