Plan-Anchored Context Compilation: Treating the Prompt as a Compiled Artifact, Not a Container

Expanding the context window has not solved long-horizon planning for LLM agents, because the problem is not storage capacity alone but what is stored, in what form, and when it is retrieved. We analyze why current approaches—full context, rolling summaries, semantic RAG, and hierarchical textual memory—fail to preserve commitments and assumptions across hundreds of steps. We then propose Plan-Anchored Context Compilation (PACC): a typed state outside the LLM, modified by the LLM via state diffs validated by a deterministic validator, with assumption-driven replanning, where the prompt at each step is built as a compiled output from the frontier of the current plan. This is a position paper: we present the argument, the architecture, and an evaluation protocol, without claiming experimental results.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-10-06
DOI
https://doi.org/10.5281/zenodo.23183262
Primary Topic
AI-based Problem Solving and Planning
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
preprint

Plan-Anchored Context Compilation: Treating the Prompt as a Compiled Artifact, Not a Container

Abdelrahman Alaa Eldeen
Zenodo (CERN European Organization for Nuclear Research)
AI-based Problem Solving and Planning
preprint

Plan-Anchored Context Compilation: Treating the Prompt as a Compiled Artifact, Not a Container

Abdelrahman Alaa Eldeen
preprint en

Abstract

Expanding the context window has not solved long-horizon planning for LLM agents, because the problem is not storage capacity alone but what is stored, in what form, and when it is retrieved. We analyze why current approaches—full context, rolling summaries, semantic RAG, and hierarchical textual memory—fail to preserve commitments and assumptions across hundreds of steps. We then propose Plan-Anchored Context Compilation (PACC): a typed state outside the LLM, modified by the LLM via state diffs validated by a deterministic validator, with assumption-driven replanning, where the prompt at each step is built as a compiled output from the frontier of the current plan. This is a position paper: we present the argument, the architecture, and an evaluation protocol, without claiming experimental results.

Zenodo (CERN European Organization for Nuclear Research)
AI-based Problem Solving and Planning
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.