Papers › REPOT: Recoverable Program-of-Thought via Checkpoint Repair

REPOT: Recoverable Program-of-Thought via Checkpoint Repair

28 May 2026arXiv:2605.30052added by Syntology

Parsa Mazaheri

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

One-shot Program-of-Thought (PoT) emits a Python program that prints a primitive-action plan; a single invalid action silently invalidates the trajectory. We introduce RePoT (Recoverable PoT): a deterministic verified replay that walks the plan through the environment to its first invalid transition, then one LLM call that resumes from the verified prefix. RePoT costs at most one extra LLM call on the ~14% of problems where PoT fails. RePoT beats PoT by +3 to +11pp across four closed-model configurations on PuzzleZoo-775 and peaks at 96.9% vs 86.3% on gpt-5.4-mini-medium; against the matched-budget PoT-retry baseline, RePoT wins decisively on Gemini (+3.8pp, 95% CI [+2.2,+5.4]), is within sampling noise on GPT-medium and Claude, and loses on GPT-mini -- a capability-scaling pattern we begin to address with Adaptive RePoT, a rule-based dispatcher that routes between suffix repair and a fresh PoT retry based on verified-prefix length (preliminary). We replicate on PlanBench Blocksworld (+1.1 to +11.4pp) and on four open-weights models (+3.3 to +20.0pp on three of four). On Derail-550, our controlled recovery benchmark, every condition with access to checkpoint information clears >=30% on GPT-medium and >=70% on Gemini, vs <=3.1% for error-only feedback -- showing that checkpoint information, not the specific verified-prefix tail, is the load-bearing recovery signal.

PaperPDFCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2605.30052")

Code

Syntology Ran 29 of 44 code samples harvested from 1 repository linked to this paper; 15 have no recorded run. Of those that ran: 8 ran · honoured contract; 8 ran · our draft was wrong; 13 ran with no contract checked.

By repository: found in paper text by Syntology: 44 samples from 1 repository, 29 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

parsa-mz/RePot found in paper text by Syntology report

Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

44 samples harvested; 29 ran; 8 honoured the contract we drafted; 15 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

8ran · honoured contract
8ran · our draft was wrong
13ran
15unverified

Licence: 0 of the 44 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from parsa-mz/RePot. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

ActionOption parsa-mz/RePot/repot/agents/repot/agent.py found in paper text by Syntology ran Apache-2.0 (permissive) · a23ef25544fb3944 · report
AgentConfig parsa-mz/RePot/repot/agents/repot/agent.py found in paper text by Syntology ran Apache-2.0 (permissive) · 1ac9ba96c7eff926 · report
CallTrace parsa-mz/RePot/repot/agents/repot/agent.py found in paper text by Syntology ran Apache-2.0 (permissive) · d1a7e248d404e760 · report
CandidateSolution parsa-mz/RePot/repot/agents/repot/agent.py found in paper text by Syntology ran Apache-2.0 (permissive) · a70938113a15d322 · report
EnvCapabilities parsa-mz/RePot/repot/agents/repot/agent.py found in paper text by Syntology ran Apache-2.0 (permissive) · 7466ce147055cf70 · report
GenerateRequest parsa-mz/RePot/repot/agents/repot/agent.py found in paper text by Syntology ran Apache-2.0 (permissive) · b1fd40df8a316213 · report
GenerateResult parsa-mz/RePot/repot/agents/repot/agent.py found in paper text by Syntology ran Apache-2.0 (permissive) · 7c19fdb3aca2aca8 · report
Problem parsa-mz/RePot/repot/agents/repot/agent.py found in paper text by Syntology ran Apache-2.0 (permissive) · dcde1456a391d895 · report
PythonExecutionResult parsa-mz/RePot/repot/agents/repot/agent.py found in paper text by Syntology ran Apache-2.0 (permissive) · 2d12f093b2818a8b · report
ReplayResult parsa-mz/RePot/repot/agents/repot/agent.py found in paper text by Syntology ran Apache-2.0 (permissive) · 322f9837e9f253b1 · report
StepResult parsa-mz/RePot/repot/agents/repot/agent.py found in paper text by Syntology ran Apache-2.0 (permissive) · ae2d47bf304abe79 · report
TraceStep parsa-mz/RePot/repot/agents/repot/agent.py found in paper text by Syntology ran Apache-2.0 (permissive) · 3703554ccf1bb6f3 · report
_SafetyVisitor parsa-mz/RePot/repot/agents/repot/agent.py found in paper text by Syntology ran Apache-2.0 (permissive) · 18d35ff45b9a3719 · report
_blocked_summary_default parsa-mz/RePot/repot/agents/repot/agent.py found in paper text by Syntology ran · our draft was wrong Apache-2.0 (permissive) · 3ee056b9fbb0ebf2 · report
_call_name parsa-mz/RePot/repot/agents/repot/agent.py found in paper text by Syntology ran · our draft was wrong Apache-2.0 (permissive) · b6d9e6240e442cf6 · report
_failure_type_from_replay parsa-mz/RePot/repot/agents/repot/agent.py found in paper text by Syntology ran · our draft was wrong Apache-2.0 (permissive) · 45cf583afc281d52 · report
_invalid_after_resolution_rate parsa-mz/RePot/repot/agents/repot/agent.py found in paper text by Syntology ran · honoured contract Apache-2.0 (permissive) · 168ecf7946f931c7 · report
_legal_action_adherence_rate parsa-mz/RePot/repot/agents/repot/agent.py found in paper text by Syntology ran · honoured contract Apache-2.0 (permissive) · c65b97e772044f34 · report
_loop_recovery_success_rate parsa-mz/RePot/repot/agents/repot/agent.py found in paper text by Syntology ran · honoured contract Apache-2.0 (permissive) · b38c2ea951b83a53 · report
_parse_schema_success_rate parsa-mz/RePot/repot/agents/repot/agent.py found in paper text by Syntology ran · honoured contract Apache-2.0 (permissive) · 4d335d1167decdfd · report
_state_drift_corrected_rate parsa-mz/RePot/repot/agents/repot/agent.py found in paper text by Syntology ran · honoured contract Apache-2.0 (permissive) · ca020975910b098b · report
_unknown_action_id_rate parsa-mz/RePot/repot/agents/repot/agent.py found in paper text by Syntology ran · honoured contract Apache-2.0 (permissive) · 6cd54586a4c96ba8 · report
execute_python_code parsa-mz/RePot/repot/agents/repot/agent.py found in paper text by Syntology ran · our draft was wrong Apache-2.0 (permissive) · 0848ac44b82df4b4 · report
extract_python_code parsa-mz/RePot/repot/agents/repot/agent.py found in paper text by Syntology ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · c75f985348c28391 · report
format_verified_prefix parsa-mz/RePot/repot/agents/repot/agent.py found in paper text by Syntology ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 0ce9fd2de524f32b · report
parse_moves_from_stdout parsa-mz/RePot/repot/agents/repot/agent.py found in paper text by Syntology ran · honoured contract fingerprinted Apache-2.0 (permissive) · 65ec67ed8f4f4063 · report
parse_moves_with_fallback parsa-mz/RePot/repot/agents/repot/agent.py found in paper text by Syntology ran · honoured contract Apache-2.0 (permissive) · add926ba89204411 · report
render_raw_output parsa-mz/RePot/repot/agents/repot/agent.py found in paper text by Syntology ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 2ec7d1b2fac541fb · report
stopped_reason parsa-mz/RePot/repot/agents/repot/agent.py found in paper text by Syntology ran · our draft was wrong Apache-2.0 (permissive) · ab7c42ff6f3a06d9 · report
Agent parsa-mz/RePot/repot/agents/repot/agent.py found in paper text by Syntology unverified Apache-2.0 (permissive) · f81a068f9b874a73 · report
Env parsa-mz/RePot/repot/agents/repot/agent.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 5ce648ae3d7b87f9 · report
FailureType parsa-mz/RePot/repot/agents/repot/agent.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 404ce1e617218640 · report
ModelClient parsa-mz/RePot/repot/agents/repot/agent.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 30c6395ce8bff078 · report
RePoTAgent parsa-mz/RePot/repot/agents/repot/agent.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 0640f106a3329809 · report
TraceEvaluation parsa-mz/RePot/repot/agents/repot/agent.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 79670beb202bc620 · report
TraceRun parsa-mz/RePot/repot/agents/repot/agent.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 6a412a811a6dd051 · report
_emit_code_and_extract parsa-mz/RePot/repot/agents/repot/agent.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 8f7f2b9625267d19 · report
_legal_summary_default parsa-mz/RePot/repot/agents/repot/agent.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 8daeac163a1e8745 · report
_pot_once parsa-mz/RePot/repot/agents/repot/agent.py found in paper text by Syntology unverified Apache-2.0 (permissive) · dac8deafecc5414d · report
_suffix_repair_once parsa-mz/RePot/repot/agents/repot/agent.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 9770e11a0ee1d9ab · report
_validate_python_code parsa-mz/RePot/repot/agents/repot/agent.py found in paper text by Syntology unverified Apache-2.0 (permissive) · acea023ba890729c · report
build_trace_run parsa-mz/RePot/repot/agents/repot/agent.py found in paper text by Syntology unverified Apache-2.0 (permissive) · d13ae2300717a6fb · report
code_prompt parsa-mz/RePot/repot/agents/repot/agent.py found in paper text by Syntology unverified Apache-2.0 (permissive) · f4d0597a1462df94 · report
replay_until_failure parsa-mz/RePot/repot/agents/repot/agent.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 3d7e88fcaccd1683 · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2605.30052, was issued in May 2026, after that date, so the archive has no leaderboard rows for it.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections