target stringclasses 3
values | arm stringclasses 3
values | trial stringlengths 25 36 | scope_size int64 7 364 | oracle_ok bool 2
classes | conversion_complete bool 2
classes | escape_hatches int64 0 0 | DRR float64 0 0.75 | drr_detail dict | failed_gates listlengths 0 2 | stratum stringclasses 6
values | display stringclasses 6
values | arm_raw stringclasses 3
values | seed int64 0 2 ⌀ | gates_passed bool 2
classes | failed_gate_detail listlengths 0 2 ⌀ | wall_clock_s float64 192 11.6k ⌀ | n_worker_invocations int64 1 364 ⌀ | peak_scope_in_one_context int64 1 364 ⌀ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
express | monolith | express-FULL-monolith-s0-59f264 | 7 | true | true | 0 | 0.75 | {
"numerator": 3,
"denominator": 4,
"by_depth": {
"1": 2,
"2": 1
}
} | [] | null | null | null | null | null | null | null | null | null |
express | durable | express-FULL-durable-s0-e6235b | 7 | true | true | 0 | 0.75 | {
"numerator": 3,
"denominator": 4,
"by_depth": {
"1": 2,
"2": 1
}
} | [] | null | null | null | null | null | null | null | null | null |
express | rag | express-FULL-stateless_rag-s0-927062 | 7 | true | true | 0 | 0.25 | {
"numerator": 1,
"denominator": 4,
"by_depth": {
"1": 1
}
} | [] | null | null | null | null | null | null | null | null | null |
jsdom | monolith | jsdom-S-monolith-s1-3d23a5 | 8 | true | true | 0 | 0.5714 | {
"numerator": 4,
"denominator": 7,
"by_depth": {
"1": 2,
"2": 1,
"3": 1
}
} | [] | S | jsdom-S | monolith | 1 | true | [] | 300.9 | 1 | 8 |
jsdom | monolith | jsdom-S-monolith-s2-71e333 | 8 | true | true | 0 | 0.1429 | {
"numerator": 1,
"denominator": 7,
"by_depth": {
"2": 1
}
} | [] | S | jsdom-S | monolith | 2 | true | [] | 191.9 | 1 | 8 |
jsdom | durable | jsdom-S-durable-s1-34b092 | 8 | true | true | 0 | 0.5714 | {
"numerator": 4,
"denominator": 7,
"by_depth": {
"1": 2,
"2": 1,
"3": 1
}
} | [] | S | jsdom-S | durable | 1 | true | [] | 1,595.5 | 8 | 1 |
jsdom | durable | jsdom-S-durable-s2-3e7747 | 8 | true | true | 0 | 0.2857 | {
"numerator": 2,
"denominator": 7,
"by_depth": {
"2": 1,
"3": 1
}
} | [] | S | jsdom-S | durable | 2 | true | [] | 573.1 | 8 | 1 |
jsdom | rag | jsdom-S-stateless_rag-s0-41eb90 | 8 | false | false | 0 | 0 | {
"numerator": 0,
"denominator": 6,
"by_depth": {}
} | [
"typecheck_strict",
"conversion_complete"
] | S | jsdom-S | stateless_rag | 0 | false | [
{
"name": "typecheck_strict",
"tail": "YPE'.\nlib/jsdom/living/helpers/custom-elements.ts(11,7): error TS2451: Cannot redeclare block-scoped variable 'reportException'.\nlib/jsdom/living/helpers/custom-elements.ts(84,3): error TS2717: Subsequent property declarations must have the same type. Property '_def... | 1,128 | 8 | 1 |
jsdom | rag | jsdom-S-stateless_rag-s1-05cd84 | 8 | false | true | 0 | 0.2857 | {
"numerator": 2,
"denominator": 7,
"by_depth": {
"2": 1,
"3": 1
}
} | [
"typecheck_strict"
] | S | jsdom-S | stateless_rag | 1 | false | [
{
"name": "typecheck_strict",
"tail": "39: Type '{ cssText: string; }' is missing the following properties from type 'CSSKeyframeRuleImpl': keyText, _globalObject, parentRule, parentStyleSheet, type\n",
"residual_js": null,
"missing_ts": null
}
] | 434.1 | 8 | 1 |
jsdom | rag | jsdom-S-stateless_rag-s2-b8d214 | 8 | false | true | 0 | 0 | {
"numerator": 0,
"denominator": 7,
"by_depth": {}
} | [
"typecheck_strict"
] | S | jsdom-S | stateless_rag | 2 | false | [
{
"name": "typecheck_strict",
"tail": "issing the following properties from type 'TreeAdapter<JSDOMTreeAdapterTypeMap>': adoptAttributes, appendChild, createCommentNode, createTextNode, and 10 more.\n",
"residual_js": null,
"missing_ts": null
}
] | 505.7 | 8 | 1 |
jsdom | monolith | jsdom-M-monolith-s1-bb5b21 | 24 | true | true | 0 | 0.3182 | {
"numerator": 7,
"denominator": 22,
"by_depth": {
"2": 2,
"3": 2,
"4": 1,
"5": 1,
"6": 1
}
} | [] | M | jsdom-M | monolith | 1 | true | [] | 741.5 | 1 | 24 |
jsdom | monolith | jsdom-M-monolith-s2-725a14 | 24 | true | true | 0 | 0.087 | {
"numerator": 2,
"denominator": 23,
"by_depth": {
"2": 2
}
} | [] | M | jsdom-M | monolith | 2 | true | [] | 986.3 | 1 | 24 |
jsdom | durable | jsdom-M-durable-s1-41d92c | 24 | true | true | 0 | 0.2727 | {
"numerator": 6,
"denominator": 22,
"by_depth": {
"1": 1,
"2": 2,
"3": 2,
"6": 1
}
} | [] | M | jsdom-M | durable | 1 | true | [] | 1,790.6 | 24 | 1 |
jsdom | durable | jsdom-M-durable-s2-ffaf53 | 24 | true | true | 0 | 0.087 | {
"numerator": 2,
"denominator": 23,
"by_depth": {
"2": 1,
"3": 1
}
} | [] | M | jsdom-M | durable | 2 | true | [] | 1,035.5 | 24 | 1 |
jsdom | rag | jsdom-M-stateless_rag-s1-d94ad2 | 24 | false | true | 0 | 0.0909 | {
"numerator": 2,
"denominator": 22,
"by_depth": {
"3": 1,
"6": 1
}
} | [
"typecheck_strict"
] | M | jsdom-M | stateless_rag | 1 | false | [
{
"name": "typecheck_strict",
"tail": " 'parsers'.\nlib/jsdom/living/css/properties/borderBottomStyle.ts(77,20): error TS2339: Property 'resolveKeywordValue' does not exist on type 'CssValuesModule'.\n",
"residual_js": null,
"missing_ts": null
}
] | 905.2 | 24 | 1 |
jsdom | rag | jsdom-M-stateless_rag-s2-ad54d1 | 24 | false | true | 0 | 0.0435 | {
"numerator": 1,
"denominator": 23,
"by_depth": {
"1": 1
}
} | [
"typecheck_strict",
"tests_api"
] | M | jsdom-M | stateless_rag | 2 | false | [
{
"name": "typecheck_strict",
"tail": "ture for type 'string'.\nlib/jsdom/living/nodes/HTMLLabelElement-impl.ts(56,12): error TS2687: All declarations of 'ELEMENT_NODE' must have identical modifiers.\n",
"residual_js": null,
"missing_ts": null
},
{
"name": "tests_api",
"tail": " at C... | 991.9 | 24 | 1 |
jsdom | monolith | jsdom-L-monolith-s0-aafb24 | 60 | true | true | 0 | 0.5472 | {
"numerator": 29,
"denominator": 53,
"by_depth": {
"1": 5,
"2": 2,
"4": 1,
"5": 1,
"6": 1,
"7": 5,
"8": 3,
"9": 11
}
} | [] | L | jsdom-L | monolith | 0 | true | [] | 2,432.5 | 1 | 60 |
jsdom | durable | jsdom-L-durable-s0-29f880 | 60 | true | true | 0 | 0.1132 | {
"numerator": 6,
"denominator": 53,
"by_depth": {
"1": 1,
"2": 1,
"3": 1,
"4": 1,
"5": 1,
"6": 1
}
} | [] | L | jsdom-L | durable | 0 | true | [] | 4,889.6 | 60 | 1 |
jsdom | durable | jsdom-L-durable-s1-4e56ff | 60 | false | true | 0 | 0.2759 | {
"numerator": 16,
"denominator": 58,
"by_depth": {
"1": 1,
"2": 2,
"3": 10,
"4": 1,
"5": 1,
"6": 1
}
} | [
"typecheck_strict"
] | L | jsdom-L | durable | 1 | false | [
{
"name": "typecheck_strict",
"tail": "lib/jsdom/living/css/properties/backgroundAttachment.ts(55,34): error TS2353: Object literal may only specify known properties, and 'delimiter' does not exist in type 'CssColorOptions'.\n\n",
"residual_js": null,
"missing_ts": null
}
] | 3,046.7 | 60 | 1 |
jsdom | durable | jsdom-L-durable-s2-0eed0d | 60 | false | true | 0 | 0.1852 | {
"numerator": 10,
"denominator": 54,
"by_depth": {
"1": 1,
"2": 2,
"4": 1,
"5": 1,
"6": 1,
"7": 2,
"8": 1,
"10": 1
}
} | [
"tests_api"
] | L | jsdom-L | durable | 2 | false | [
{
"name": "tests_api",
"tail": "ksAndRejections (node:internal/process/task_queues:105:5)\n\n 28) API: resources interceptors option\n synthetic responses\n string bodies\n should work for stylesheet requests:\n TypeError: Cannot read properties of undefined (reading 'length')\n... | 3,285.4 | 60 | 1 |
jsdom | rag | jsdom-L-stateless_rag-s0-2f2f35 | 60 | false | false | 0 | 0.3774 | {
"numerator": 20,
"denominator": 53,
"by_depth": {
"2": 2,
"4": 1,
"5": 1,
"6": 1,
"7": 5,
"8": 1,
"9": 9
}
} | [
"typecheck_strict",
"conversion_complete"
] | L | jsdom-L | stateless_rag | 0 | false | [
{
"name": "typecheck_strict",
"tail": "versal/NodeIterator-impl.ts(100,11): error TS2739: Type 'DOMTreeNode' is missing the following properties from type 'NodeImpl': contains, parentNode, previousSibling\nlib/jsdom/living/traversal/NodeIterator-impl.ts(117,41): error TS2339: Property 'lastInclusiveDescenda... | 5,697.2 | 60 | 1 |
jsdom | rag | jsdom-L-stateless_rag-s1-c68cdd | 60 | false | true | 0 | 0.1207 | {
"numerator": 7,
"denominator": 58,
"by_depth": {
"3": 5,
"5": 1,
"6": 1
}
} | [
"typecheck_strict"
] | L | jsdom-L | stateless_rag | 1 | false | [
{
"name": "typecheck_strict",
"tail": "om/living/css/helpers/css-values\")' is not assignable to type 'CssValuesModule'.\n Types of property 'resolveNumericValue' are incompatible.\n Type '(value: ValueInput, opt?: ResolveValueOptions) => string | undefined' is not assignable to type '(value: CssValueAs... | 1,856.4 | 60 | 1 |
jsdom | rag | jsdom-L-stateless_rag-s2-a15a81 | 60 | false | true | 0 | 0.2222 | {
"numerator": 12,
"denominator": 54,
"by_depth": {
"2": 2,
"4": 1,
"7": 1,
"8": 3,
"9": 2,
"10": 3
}
} | [
"typecheck_strict"
] | L | jsdom-L | stateless_rag | 2 | false | [
{
"name": "typecheck_strict",
"tail": "/Text-impl.ts(83,9): error TS2451: Cannot redeclare block-scoped variable 'domSymbolTree'.\nlib/jsdom/living/nodes/Text-impl.ts(84,7): error TS2451: Cannot redeclare block-scoped variable 'DOMExceptionIDL'.\nlib/jsdom/living/nodes/Text-impl.ts(85,7): error TS2451: Cann... | 2,281.1 | 60 | 1 |
jsdom | monolith | jsdom-XL-monolith-s0-6e2db0 | 120 | true | true | 0 | 0.4563 | {
"numerator": 47,
"denominator": 103,
"by_depth": {
"1": 1,
"2": 3,
"3": 2,
"5": 1,
"6": 1,
"8": 6,
"9": 6,
"10": 3,
"11": 23,
"12": 1
}
} | [] | XL | jsdom-XL | monolith | 0 | true | [] | 2,776 | 1 | 120 |
jsdom | durable | jsdom-XL-durable-s0-a11c66 | 120 | false | false | 0 | 0.4078 | {
"numerator": 42,
"denominator": 103,
"by_depth": {
"1": 1,
"2": 6,
"3": 3,
"4": 1,
"5": 1,
"6": 1,
"7": 1,
"8": 4,
"9": 3,
"10": 3,
"11": 18
}
} | [
"tests_api",
"conversion_complete"
] | XL | jsdom-XL | durable | 0 | false | [
{
"name": "tests_api",
"tail": "gister-BOkp8V6j.cjs:9:3176)\n at Module.load (node:internal/modules/cjs/loader:1469:32)\n at Function._load (node:internal/modules/cjs/loader:1286:12)\n at TracingChannel.traceSync (node:diagnostics_channel:322:14)\n at wrapModuleLoad (node:internal/modules/cjs/lo... | 8,443.7 | 120 | 1 |
jsdom | monolith | jsdom-XXL-monolith-s0-93c662 | 240 | true | true | 0 | 0.4954 | {
"numerator": 107,
"denominator": 216,
"by_depth": {
"1": 4,
"2": 3,
"3": 6,
"4": 1,
"5": 2,
"6": 2,
"7": 1,
"8": 6,
"9": 6,
"10": 3,
"11": 71,
"12": 2
}
} | [] | XXL | jsdom-XXL | monolith | 0 | true | [] | 1,566.7 | 1 | 240 |
jsdom | monolith | jsdom-FULL-monolith-s0-35de29 | 364 | false | true | 0 | 0.5461 | {
"numerator": 160,
"denominator": 293,
"by_depth": {
"1": 31,
"2": 18,
"3": 11,
"4": 1,
"5": 2,
"6": 2,
"7": 1,
"8": 6,
"9": 6,
"10": 3,
"11": 71,
"12": 8
}
} | [
"typecheck_strict"
] | FULL | jsdom | monolith | 0 | false | [
{
"name": "typecheck_strict",
"tail": " of type '(_: void) => void'.\n Overload 3 of 3, '(handler: TimerHandler, timeout?: number | undefined, ...arguments: any[]): number', gave the following error.\n Argument of type 'unknown' is not assignable to parameter of type 'TimerHandler'.\nlib/jsdom/living/xh... | 2,972.2 | 1 | 364 |
jsdom | durable | jsdom-FULL-durable-s0-9dde28 | 364 | false | true | 0 | 0.2935 | {
"numerator": 86,
"denominator": 293,
"by_depth": {
"1": 22,
"2": 11,
"3": 6,
"5": 2,
"6": 3,
"7": 2,
"8": 5,
"9": 5,
"10": 3,
"11": 25,
"12": 2
}
} | [
"tests_api"
] | FULL | jsdom | durable | 0 | false | [
{
"name": "tests_api",
"tail": "m/living/events/EventTarget-impl.ts:566:16)\n at invokeEventListeners (/Users/cary/lwds/runs/jsdom-FULL-durable-s0-9dde28/T/lib/jsdom/living/events/EventTarget-impl.ts:497:3)\n at EventTargetImpl._dispatch (/Users/cary/lwds/runs/jsdom-FULL-durable-s0-9dde28/T/lib/jsdom/... | 11,559.1 | 364 | 1 |
jsdom-S | monolith | jsdom-S-monolith-s0-6cc04e | 8 | true | true | 0 | 0.1667 | {
"numerator": 1,
"denominator": 6,
"by_depth": {
"2": 1
}
} | [] | null | null | null | null | null | null | null | null | null |
jsdom-S | durable | jsdom-S-durable-s0-f155d0 | 8 | true | true | 0 | 0 | {
"numerator": 0,
"denominator": 6,
"by_depth": {}
} | [] | null | null | null | null | null | null | null | null | null |
jsdom-S | rag | jsdom-S-stateless_rag-s0-41eb90 | 8 | false | false | 0 | 0 | {
"numerator": 0,
"denominator": 6,
"by_depth": {}
} | [
"typecheck_strict",
"conversion_complete"
] | null | null | null | null | null | null | null | null | null |
Durable State vs Context — Repository-Scale Agent Trials
Machine-verified trial records from the paper "State, Not Tokens: Repository-Scale
Agent Reasoning Is Bound by State Architecture." Each record is one run of a
JavaScript→TypeScript migration of a real OSS repository (express, jsdom) under an
unforgeable oracle, graded by strict tsc --strict --noEmit, immutable test suites,
mandatory .js→.ts replacement, and a zero type-escape-hatch budget.
- Code + reproduction harness: https://github.com/professorpalmer/durable-state-vs-context
- Paper: (arXiv ID pending — link will be added once indexed)
Why this dataset
The study varies a single axis — how state flows between bounded agent workers — with model, tools, scaffold, and oracle held constant, across three arms:
| arm | state flow |
|---|---|
monolith |
one worker, whole scope, one context |
durable |
dependency-layer workers on a shared evolving tree; each inherits prior committed conversions |
rag (stateless-RAG) |
per-file workers on pristine trees + code-graph retrieval; never see each other's results |
The independent variable is repository scope (deterministic BFS over the dependency graph: jsdom S/M/L/XL/XXL/FULL = 8/24/60/120/240/364 modules), not prompt tokens.
trials.jsonl schema (one JSON object per line)
| field | meaning |
|---|---|
trial |
unique trial id |
target |
repository (express, jsdom) |
stratum |
size stratum (S/M/L/XL/FULL/…) |
scope_size |
number of in-scope modules |
arm |
monolith / durable / rag |
seed |
scope-selection seed (generalization across module subsets) |
oracle_ok |
overall PASS/FAIL under the hardened oracle |
gates_passed / failed_gates / failed_gate_detail |
per-gate breakdown (typecheck_strict, tests, conversion_complete, escape_hatches) |
conversion_complete |
all in-scope .js replaced by .ts (no runtime shadowing) |
escape_hatches |
count of forbidden any/as any/@ts-ignore/… (budget 0) |
DRR / drr_detail |
Discovery Reuse Rate — fraction of dependent modules consuming a prior worker's exported types |
n_worker_invocations |
agent worker calls used |
peak_scope_in_one_context |
largest module set held in a single context |
wall_clock_s |
end-to-end wall-clock seconds |
concurrency_sweep_aggregate.json + concurrency_sweep_profiles/
A replicated concurrency sweep on full-scale (364-module) durable runs, used to localize the
platform session cap. Every run uses an identical protocol — a fixed 240 s steady-state
window — with n=5–10 replicates per concurrency C ∈ {8,12,16,24,32} and quality gates
(base_build_start==1, full window, ≥8 window workers; 34 admitted, 1 rejected). The aggregate
JSON has per-C mean ± 95% CI; the profiles dir has the raw per-worker event stream
(base_build_*, layer_start, worker_start, worker_end with rc/worker_s, harvest_end
with got_ts) for every replicate c{C}_r{rep}.jsonl.
Result (mean ± 95% CI): C=8 97% ±5.7, C=12 99% ±2.0, C=16 66% ±2.7, C=24 28% ±4.3,
C=32 19% ±8.1 — a cleanly monotone collapse through a sharp knee, effective admission cap
K≈10–12 (C=12 K_eff=11.9, C=16 K_eff=10.5). Above the cap the rate falls below a min(1,K/C)
reference (retry churn inflates the denominator).
claude_concurrency_aggregate.json + claude_concurrency_profiles/
The second-backend control that proves the cap above is platform-specific, not fundamental.
The same frozen orchestrator runs Claude Code (Anthropic API) workers instead of Cursor
agents; a probe launches exactly C workers simultaneously (each isolated on its own tree + PM
state-dir, success = produced the .ts), C ∈ {4,8,16,24,32}, n=3. The aggregate JSON has per-C
mean ± 95% CI; claude_concurrency_profiles/c{C}_r{rep}.json has every worker's got_ts,
duration, and rate-limit signal.
Result: 100% success at every C through C=32 (252 workers, 0 fast-fails) — where the Cursor backend collapses to 66%/28%/19% at C=16/24/32. Same orchestrator + durable state, different serving platform → the admission cap is a property of the platform, not of durable state.
Headline result
A single modern agentic worker scales much further than the naive context thesis predicts
(clean to 240 interdependent modules), but cracks at full repo scale by capacity, not
window. When work is decomposed, durable accumulation strictly dominates stateless
retrieval — RAG's blind workers emit code that does not compile (TS2451 redeclaration
conflicts appear only in RAG). Durable additionally buys interruption-resumable consistent
checkpoints and zero-marginal-cost re-query. State is an asset, not a prompt.
License
CC BY 4.0.
- Downloads last month
- 40