FOREST's design addresses the preservation of meaning across a research trajectory: the question being investigated, the conditions of an experiment, and the evidence behind a conclusion. This note develops conditional results for the mechanisms in the implementation.
A research decision changes the state in which later decisions are made. An incorrect premise can therefore influence both the next action and the evidence available to assess it. In imitation learning, Ross, Gordon and Bagnell [1] formalize a related distribution shift. Under their assumptions, imitation error
Language-model evidence gives a complementary motivation. Liu et al. [2] show position-dependent use of relevant evidence in long contexts. Laban et al. [3] study instructions revealed across multiple turns and find that early assumptions can persist into later answers. These task-specific observations motivate retaining authoritative state and retrieving relevant originals. ReAct [4] studies interleaved reasoning, actions and observations, supporting the use of external feedback during a trajectory.
FOREST also treats excessive caution as a decision-policy problem. An analysis should identify what is most likely, what would change that judgment, and which affordable observation would resolve the decisive uncertainty. Writing rules express that requirement; the mathematical results below concern evidence admission and dependency structure.
Represent durable research state as
Here
The full retained state can exceed a model request's context window. Retrieval gives access to omitted originals; semantic understanding remains a property of the model and its actions. Revisions record deliberate changes to goals and protocols. The graph remains editable throughout the project.
Fix
Set
Proof. By conditional probability and total expectation,
The product separates proposal quality from check quality. For the same candidate distribution at a boundary, a check with
A contract must identify the property being assessed. A revision check can detect stale graph state. A numeric binding can identify a recorded value. Neither check determines whether a research hypothesis is true. Arbitrary workspace writes also occur outside these admission boundaries. Apply the proposition only to the selected handoffs and named properties.
Consider a stationary retry model in which independent candidate/check trials have invalid-candidate probability
Retrying until acceptance gives
Proof. An accepted error on trial
Thus a check improves accepted-result quality exactly when it accepts valid candidates more readily than invalid ones. If proposing costs
This special case explains the need to report valid completion and resource use alongside error rates. Adaptive research retries generally violate stationarity, so these formulas describe the decision trade-off rather than predict FOREST's observed outcomes. Its research policy asks for explicit judgments and discriminating experiments; it does not estimate
For this locality result, let
Assume the graph contains every relevant dependency, each node is deterministic conditional on its declared inputs and recorded local state, and those inputs and local states outside
Proof. A node outside the closure has no changed ancestor. In topological order, its declared inputs and local state remain unchanged, so its output remains reusable under the stated assumptions. For node costs
FOREST's impact analyzer follows typed graph relationships and explicit input references. It distinguishes semantic, statistical, wording and layout changes so that re-analysis or rendering can replace a full experiment rerun where appropriate. Undeclared shared files, external services and random state can violate the locality assumptions and should be represented in task inputs.
| Mechanism | Implemented check or behavior | Scope |
|---|---|---|
| Current context | ContextBuilder and retained context select current controls, preserve originals and expose paginated reads. |
Availability of relevant state; comprehension requires model use. |
| Graph consistency | GraphCommandService checks expected revisions, project ownership, endpoints and execution cycles. |
Graph mutations through the command service. |
| Input admission | Scheduler and worker check bound inputs and current producer runs. | Declared dependencies at supported scheduling boundaries. |
| Observed execution | Agent runtime records tool identities and process results, checks required files and rejects active managed processes at completion. | Execution and file observation; process success alone does not establish a result's methodology or causal origin. |
| Evidence binding | Paper validation resolves metric/source IDs and checks declared critical contrary references. | Reference consistency. Unbound numeric prose is flagged; semantic entailment requires review. |
| Decisive research | Policy, protocol validation and progress monitoring specify estimates, experimental duties and action on repeated unchanged reads. | Decision structure and observable progress; no automatic calibration of scientific forecasts. |
The central empirical question is whether explicit state and selective checks increase valid research progress per unit cost over long trajectories. Compare the same model, starting materials, tools and budgets across the full system and ablations of relevant-state retrieval, dependency checks, evidence binding and decision policy. Retain the available originals in every condition so a retrieval comparison isolates access strategy.
Use independent tasks with declared output contracts and recorded real execution. Assess invalid accepted handoffs, valid completed deliverables, repair scope, tokens, elapsed time and compute. Preserve failures and exhausted budgets in the denominator. Use paired task-level effects and uncertainty intervals; repeated decisions within a task are correlated. Assess scientific conclusions separately against primary evidence and the experimental protocol.
This protocol assigns each comparison a duty: overall effectiveness, context mechanism, error containment, repair locality or productive decision-making. A reduction in accepted errors accompanied by collapsed completion would fail the central claim. Evidence of sustained valid progress at comparable cost would support it.
- Ross, S., Gordon, G. J., and Bagnell, J. A. A Reduction of Imitation Learning and Structured Prediction to No-Regret Online Learning. AISTATS, 2011. Proceedings and paper.
- Liu, N. F., et al. Lost in the Middle: How Language Models Use Long Contexts. TACL, 2024. Paper.
- Laban, P., et al. LLMs Get Lost in Multi-Turn Conversation. ICLR, 2026. Paper.
- Yao, S., et al. ReAct: Synergizing Reasoning and Acting in Language Models. ICLR, 2023. Paper.
- Kwon, W., et al. Efficient Memory Management for Large Language Model Serving with PagedAttention. SOSP, 2023. Paper.