arXiv(opens in a new tab)cs.CLSep 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2609.01600

CordisBench: Can Language Models Reason About Component Lifecycles in Dynamic Agent Harnesses?

Damien Sileo, Dimitri Kachler

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Dynamic agent harnesses let language models change the software that shapes their own execution. This flexibility brings a new reasoning burden: a local plugin change can propagate through dependencies and cleanup. We introduce CordisBench, a 1,200-question benchmark of this lifecycle reasoning. It combines a controlled formal setting with programs executed against Cordis, a runtime that manages component dependencies and cleanup, and asks models to identify affected components, predict state after a specified teardown order, determine which conditions hold under all or some orders, and choose reconfigurations that succeed when executed. Across these tasks, we evaluate three efficiency-oriented models at low reasoning effort with 2, 4, 8, 16, 24, or 32 relevant interactions, using deterministic task-specific scoring. Models usually handle small systems well but grow less reliable as more interactions become relevant, especially when predicting final state and when reasoning across teardown orders. Additional inference effort recovers marked gains for some models. The cost is nontrivial: on our 16-interaction subset, GPT-5.6 Luna uses nearly 3,000 reasoning tokens per question at medium effort. For these controlled instances, that cost is avoidable: an independent finite reference semantics agrees with Cordis execution on every observation and action outcome used for scoring across all 528 executable questions.

Resources: GitHub · Hugging Face

1 Introduction

Agent harnesses are becoming mutable at runtime. This flexibility lets an agent adapt its capabilities as its needs change by adding, removing, or reconfiguring plugins, services, memory policies, and tools. It also makes the harness itself part of the agent's evolving state: changing one component can deactivate others and trigger cleanup whose effects depend on what else is running. DeepSeek Harness is a recent example: models can construct and manipulate dynamic plugins, while Cordis manages their dependencies, lifetimes, and cleanup (DeepSeek, 2026; Shi et al., 2026). Cordis can carry out a requested change faithfully, but the model must still anticipate whether that change will leave the harness in the intended state. When dependencies and effects are formally available, their mechanical consequences can instead be computed or verified automatically. Our question is narrower: when the model must anticipate these consequences itself, without symbolic assistance or execution feedback, how reliably does that reasoning scale?

Consider two plugins that temporarily modify the same application setting. Each stores the value present when it starts and defines its cleanup to restore that captured value when it stops. Each cleanup is reasonable in isolation, yet different legal orders in which the plugins stop, which we call teardown orders, can leave different final states.

Figure 1 shows a minimal example. Cordis-Bench scales this reasoning problem to larger systems. It asks models what a lifecycle change affects, what state results under a named teardown order, which properties hold across possible orders, and which components must be removed first to guarantee a target. We evaluate these tasks in a compact formal setting and in executable Cordis programs.

To study how this reasoning scales, CordisBench increases the number of relevant interactions from 2 to 32 within each task while keeping the question form and answer format fixed. Larger instances therefore require the model to track more interacting effects without changing the task itself.

Our contributions are:

– CordisBench, a 1,200-question structured-output benchmark covering localization, schedule prediction, guaranteed and reachable conditions,

Initial state: mode=NORMAL
A startsreads NORMAL; stores NORMAL as the value its cleanup will restore; writes FAST.
B startsreads FAST; stores FAST as the value its cleanup will restore; writes SAFE.
The current state is now SAFE. If both plugins must stop:
B then ASAFE → FAST → NORMAL
A then BSAFE → NORMAL → FAST

Figure 1: Order-sensitive cleanup with two plugins modifying one setting. Each plugin captures the value it sees at activation and restores that value when it stops.

and reconfiguration;

  • a scaling design that increases the number of interactions a model must account for while keeping each task otherwise fixed;

  • a Cordis-native setting in which model predictions are checked against runtime execution and proposed reconfiguration sets are executed;

  • task-specific metrics showing that performance on small systems does not reliably carry over to larger compositions.