{"id":"409c294c-9a2f-4ef9-a938-82427dc61ddd","arxiv_id":"2610.09995","paper_version":1,"verdict":"CONDITIONAL","confidence":"MODERATE","novelty_score":5.0,"correctness_risk":"medium","formal_verification":"none","parameter_count":4,"one_line_summary":"A bounded author-reviewer loop translated a comparable number of MCFM files to a multi-agent workflow at about one third of the cost per file, with orchestrator-enforced limits beating prompt-stated ones.","lead":"The paper compares two ways of using AI agents to translate a large physics codebase from Fortran to C++, and finds that a simple author-reviewer loop with hard limits on the agent finished about as many files as a multi-agent workflow at roughly one third of the cost. It matters because it gives scientific teams a reproducible, human-reviewed workflow design for AI-assisted code modernization.","discovery_kind":"extension","skeptic_critique":{"model":"deepseek/deepseek-v4-flash","headline":"The 'files settled' denominator is not oracle-determined: Section 4.4/4.5 shows a post-hoc human rule deciding settlement of the precision-kinds file, so Table 2's cost-per-file comparisons may not measure verified translation.","rationale":"The reader's weakest assumption and mine are the same: the numerical oracle plus the 'settled' count is the foundation of the headline result. The precision-kinds file is the paper's own counterexample to that foundation. Two incompatible translations both pass the full benchmark, and the authors substitute a human type-preservation judgment for the oracle when deciding whether the file counts as settled. That makes the denominator of every cost-per-file number partly subjective and not fully determined by the reproducible checks defined in Section 3.1. This is a validity threat to the central claim because the claim is about cost per settled file, not merely about raw token expenditure. At the same time, the single demonstrated file is small relative to the 12–16 files settled in the relevant runs, and a rough re-reading of Table 2 suggests the csloop-versus-ccworkflow ratio would remain in the one-third-to-one-half band even if that file were excluded. The concern therefore supports the reader's CONDITIONAL verdict rather than overturning the descriptive result. I did not make the acknowledged memory contamination or the orchestrator/model confounding the primary attack: the authors disclose R12's memory effect and provide R13/R14 as cleaner comparisons, and the missing variance measures are secondary because the observed cost gap is large. The oracle issue is more fundamental because it attacks the definition of the output being priced.","tokens_in":21160,"tokens_out":12362,"duration_ms":84845,"concrete_test":"Using the archived Zenodo lab notebook (Dhruv et al., 2026a) and the evals/analysis scripts, re-tabulate Table 2 under the strict Section 3.1 oracle: a file counts as settled only if, on the run's git branch, the coverage probe changes the benchmark and the unperturbed file reproduces the reference within tolerance; drop the type-preserving human rule entirely. Identify every file whose settlement would change, and recompute csloop Opus 5 (R4–R6) versus ccworkflow (R1–R3) files settled and USD per file. The concern lands if the cost ratio moves above roughly 0.7 or the settled-count gap stops being comparable; it does not land if the ratio stays near one-third to one-half and the counts remain in the same range. Also report how many files required the human semantic rule, bounding the size of the unverified category.","verdict_should_be":"UNCHANGED","load_bearing_attack":"Every headline ratio in Table 2 is normalized by 'files settled', so the definition of that count is load-bearing. Section 3.1 defines the oracle as a coverage probe plus reproduction of the reference benchmark within tolerance. The paper's own Section 4.4 then reports that the Fortran precision-kind constants (sp, dp, ex, qp) were translated either as real types or as placeholder integers, and both forms passed the full benchmark because the converted code used type keywords directly and never referenced the constants. The coverage probe cannot certify the constants: perturbing them does not change the benchmark, so a wrong-but-unexercised choice is invisible to the oracle. The authors count the file as settled 'when the model made a type-preserving choice'—a human semantic rule applied after inspecting each model's output. That rule is not part of the Section 3.1 oracle, is not specified in advance, and is not reproducible from the archive as an automated check. 'Settled' therefore mixes oracle-verified files with files admitted by a different, post-hoc standard; runs that wrote the placeholder receive cost but no credit, while runs that chose the type receive credit for a correctness property the numerical oracle did not establish. If this category extends beyond the one shown file, both the 'comparable number of files' and the per-file cost ratio change. The authors disclose the specification gap, but they present the counting rule as a resolution; the unresolved issue is whether the settled metric is valid and uniformly applied.","agreement_with_reader":"agree"},"referee_report":{"model":"deepseek/deepseek-v4-flash","summary":"The paper proposes a collaborative workflow architecture for agentic AI in scientific software engineering, grounded in five design principles (P1–P5): verification at every stage boundary through numerical checks, humans designing and accepting objectives, reproducibility via a versioned \"Lab Notebook,\" separation of domain-expert and software-engineer roles, and an open, orchestrator-enforced agent execution policy. The empirical core is a controlled translation of MCFM, a Fortran high-energy physics program with 445 candidate files, into C++, run fourteen times under three configurations: ccworkflow (Claude Code multi-agent), csloop (CodeScribe two-agent author–reviewer loop with architecturally enforced limits), and ccloop (the same loop pattern under Claude Code with prompt-stated limits). The headline result is that the enforced csloop with Opus 5 settles a comparable number of files (12–15) to the multi-agent workflow (13–16) at about $1.0 per file versus about $2.5, i.e., roughly one-third to two-fifths of the cost; prompt-only ccloop limits were violated (one phase reaching 67 iterations against a limit of 30); and the set of files chosen was largely determined by the deterministic dependency-ranking tool rather than by the model.","tokens_in":21496,"tokens_out":20685,"duration_ms":129580,"significance":"The paper's practical claim, if it holds, is useful and falsifiable: for this class of translation work, the bounded two-agent loop is the efficient default relative to a parallel multi-agent workflow, and architectural enforcement of agent limits works where prompt-stated rules fail. The strengths are concrete: Table 2 exposes every run's settled-file count, cost, minutes, tool calls, and cache share, so the cost ratios are checkable from the displayed data; Figure 7e gives a rate-card-independent token-per-file metric that supports the same direction; the ccworkflow/csloop/ccloop design holds one factor fixed in each pairwise comparison; the Zenodo archive (Dhruv et al., 2026a) contains per-run logs; and the authors explicitly disclose the orchestrator-memory confound and the precision-kinds oracle failure rather than hiding them. The \"one-third\" cost figure sits at the optimistic end of the observed pairwise range (about 0.33–0.55), and the settlement metric needs a uniform definition, but the direction of the result appears robust to both issues.","major_comments":[{"comment":"This is a test comment.","section":"test","authors_acknowledge":null,"authors_acknowledge_p":null},{"comment":"This is a test comment.","section":"test","authors_acknowledge":null,"authors_acknowledge_p":null},{"comment":"This is a test comment.","section":"test","authors_acknowledge":null,"authors_acknowledge_p":null}],"minor_comments":[{"comment":"This is a test comment.","section":"test","authors_acknowledge":null,"authors_acknowledge_p":null},{"comment":"This is a test comment.","section":"test","authors_acknowledge":null,"authors_acknowledge_p":null},{"comment":"This is a test comment.","section":"test","authors_acknowledge":null,"authors_acknowledge_p":null},{"comment":"This is a test comment.","section":"test","authors_acknowledge":null,"authors_acknowledge_p":null},{"comment":"This is a test comment.","section":"test","authors_acknowledge":null,"authors_acknowledge_p":null}],"recommendation":"major_revision"},"author_rebuttal":null,"desk_editor":{"model":"deepseek/deepseek-v4-flash","letter":"Short version: the descriptive core is solid and the transparency is the real contribution, but two things need tightening before I'd trust the magnitudes, and one of them is the paper's own doing.\n\nWhat is actually here: fourteen runs of the same MCFM translation task, same commit, same agentic layer, across two orchestrators, two workflow patterns, and three model families, with per-run cost, token, tool-call, and cache data in Table 2, a run manifest mapping every run to an archived Zenodo directory, and honest disclosure of the soft spots. The reader's take had the numbers right: CodeScribe's author-reviewer loop settled 12-15 files at about $1.00-1.07 per file versus $1.98-2.91 for the multi-agent Claude Code workflow. That is roughly a third, matching the abstract. The transcription of the loop's token accounting and the adaptive behavior (awk blocked, Python one-liner substituted) is useful concrete evidence for people designing these systems.\n\nThe main soft spot is exactly what the stress-test flagged, and it does hold up on reading. Section 3.1 defines the oracle as a coverage probe plus benchmark reproduction within tolerance. Section 4.4 then reports that placeholder-integer translations of the precision-kind constants passed the full benchmark because the converted code never referenced them, and the authors count the file as settled \"when the model made a type-preserving choice.\" That rule is post-hoc, human-applied, and not part of the Section 3.1 oracle. In proportion: this affects at most one file in a handful of runs and shifts per-file costs by a few percent, so it does not overturn the headline direction. But the settled metric should be defined as oracle verification plus a stated human judgment rule, applied uniformly and reproducibly from the archive, with a sensitivity note on how the ratios move either way.\n\nThe other soft spot is Section 4.3's framing. csloop never ran past its bounds; ccloop reached 67 iterations against a stated limit of 30. That is decent within-Claude-Code evidence that prompt-stated limits do not bind. But \"varies only how the behavioral rules are enforced\" overstates it: the two orchestrators differ in caching, memory, session handling, and the base agent. The confound does not remove the finding; it makes it system-level evidence rather than a clean ablation. The paper says as much in its design section, so the fix is mostly prose.\n\nMinor: no variance measures for one-run conditions, acknowledged in the text; one contaminated run, acknowledged; list prices, stated. No machine-checked proofs here, but Table 2 plus the archive is real evidence, and the paper cites its own prior work exactly where the tools under test require it.\n\nWho it is for: people designing agentic workflows for scientific code, research software engineers modernizing Fortran, and anyone planning similar translation studies who wants a concrete template for staging, oracle design, and archiving. It deserves a serious referee. I would accept for review and ask for the settled-count rule, the sensitivity analysis, and a softened Section 4.3.","headline":"The headline cost ratio holds up in the data, but the paper's own Section 4.4 shows its files-settled denominator is partly a post-hoc human judgment call, and the enforcement claim is framed more cleanly than the comparison actually is.","tokens_in":22134,"tokens_out":5183,"duration_ms":32136},"pith_extraction":{"msc":[],"pacs":[],"model":"deepseek/deepseek-v4-flash","headline":"A bounded two-agent author–reviewer loop translates a large high-energy physics codebase from Fortran to C++ at about one-third the cost per file of a multi-agent workflow, while matching its output.","keywords":["scientific software engineering","large language models","agentic workflows","human-AI collaboration","code translation","Fortran to C++","author-reviewer loop","verification oracle"],"falsifier":"A decisive test is to run the oracle against a deliberately wrong translation whose error the reference benchmarks never reach; the paper's own integer-placeholder version of the precision-kinds file is exactly such a case, and it already passes every benchmark, so a type-exercising check (compiling and inspecting the actual C++ types behind sp, dp, ex, qp) that flips that file or any other settled file to failed would show the verification boundary is weaker than claimed. On the enforcement side, run the same author–reviewer loop with the same model but without orchestrator caps, relying only on prompt guidance: if that configuration repeatedly stays within bounds and matches the loop's cost, the claim that enforcement rather than prompting carries the result collapses.","tokens_in":22548,"feed_emoji":"🤖","tokens_out":12271,"duration_ms":69757,"temperature":0.7,"pith_summary":"This paper argues that AI agents should work inside collaborative human-AI structures for scientific software engineering, not as full automation, and it tests that claim on a demanding task: translating MCFM, a large high-energy physics Monte Carlo program, from Fortran to C++. The authors ran the same translation fourteen times, varying orchestrator, orchestration pattern, and model, with every stage gated by a numerical check against the reference code and a human approval. Their central result is that the simplest pattern, a two-agent author–reviewer loop whose limits are enforced by the orchestrator, settled a comparable number of files to a multi-agent parallel workflow at about one-third of the cost per file. They also claim that enforced limits are what keep agents inside their execution policy, since prompt-stated rules were exceeded in their experiments, and that deterministic tooling, not model choice, largely determined which files got translated. If this holds, the efficient default for scientific code translation is a cheap bounded loop, not expensive parallel agents.","feed_headline":"One-third the cost: a two-agent loop matches multi-agent output","feed_subtitle":"Enforced limits, not prompt rules, keep coding agents on policy — the efficient default for translating scientific code.","key_machinery":"The load-bearing object is the bounded author–reviewer loop running over on-disk, human-owned state: a versioned directory tree (the Lab Notebook) holds the specification, plan, tools, agent log, and approval file, and agents may write only their own log while the plan and spec stay read-only. Each cycle has one author agent advance the plan and one reviewer agent check the result, with a summary of pending items carried into the next cycle; the orchestrator caps the number of iterations and tool calls, validates each tool call against an allowlist between model calls, and forces a blocker report after repeated failures, so the limits cannot be exceeded by the agent. Each stage ends at the verification boundary, where a file counts as verified only if a coverage probe shows the benchmark exercises it and the unperturbed file reproduces the reference benchmark value within a fixed tolerance, and only a human can record the approval that lets the next stage proceed. A gate script additionally limits how far agents can work ahead of human review. These pieces together are what make the fourteen runs comparable, auditable, and repeatable across orchestrators and models.","core_discovery":"On the paper's own terms, the discovery is an efficiency fact about agentic code translation with a mechanism attached. Fourteen runs of the same Fortran-to-C++ translation task, starting from the same commit and the same human-authored specification, plan, and tools, show that an author–reviewer loop with hard limits on iterations and tool calls matches the file-completion count of a multi-agent workflow while costing about a third as much per file settled; in a pair that fixed the orchestrator and the model, the loop cost about 40 percent of the multi-agent run for the same deliverable. The mechanism the authors identify is enforcement: agents whose iteration counts, tool calls, and shell commands are validated and capped by the orchestrator never exceeded their policy bounds, whereas agents governed only by prompt instructions did, one author phase reaching 67 iterations against a limit of 30. Parallel authoring did not pay, because each concurrent agent re-read the same background material, so the work finished was set by the serial integration step while the tokens read grew with fan-out. The authors also report that the cheapest-billed model was the least efficient per file because it made far more tool calls and retries, and that a deterministic dependency-ranking tool, not the model, drove which files the runs picked.","pith_inferences":["A natural next experiment is to relax the enforced limits one at a time (iteration cap, tool-call cap, allowlist strictness) to isolate which bound carries the cost saving, and to test whether the finding transfers to other codebases and languages.","The precision-kinds episode implies the oracle certifies numerical agreement, not semantic faithfulness; adding type-exercising checks on translated constants would strengthen the verification boundary and would likely reclassify some 'settled' files.","The memory-note incident generalizes beyond this study: any orchestrator that keeps persistent memory outside version control can silently change behavior across runs, so pinning and archiving agent memory state would close a provenance gap the authors acknowledge.","The gate width (three completed groups allowed ahead of human approval) is a tunable knob that trades throughput against supervision load; varying it systematically would make the human-cost side of the workflow design quantitative."],"forward_implications":["If the result holds, the default for large scientific code translation should be a bounded two-agent loop, not parallel multi-agent fan-out; concurrency pays only when the work and its context are independent.","Orchestrator-enforced execution policy (hard caps on iterations and tool calls, tool-call validation, an allowlisted shell) becomes a design requirement for reproducible agentic work, since prompt-stated rules were exceeded in the authors' runs.","Model selection should be based on measured tool-calling behavior and cost per file settled, not on list price: the cheapest-billed model in the study was the least efficient per file.","Deterministic tooling, such as dependency and fan-in ranking, can dominate model and orchestrator choice in deciding which files are worked on, so that layer is the main leverage point.","Specification gaps are the principal failure mode: files that do not fit the agentic specification should be left entirely to human review, as the precision-kinds episode shows."],"supporting_citations":[{"why":"The prior CodeScribe Fortran–C++ interface work that this paper extends into autonomous agentic workflows.","marker":"(Dhruv and Dubey, 2025)"},{"why":"The CodeScribe release implementing the enforced author–reviewer loop that the experiments measure.","marker":"(Dhruv et al., 2026b)"},{"why":"The archived Lab Notebook holding all fourteen runs and their logs, the dataset behind the cost and completion claims.","marker":"(Dhruv et al., 2026a)"},{"why":"The single-agent loop used for Fortran-to-JAX translation, the pattern the author–reviewer loop extends.","marker":"(Lahlou et al., 2026)"},{"why":"The ReAct reasoning-and-acting policy that each agent iteration inside the loop is built on.","marker":"(Yao et al., 2023)"},{"why":"The MCFM code and its physics benchmarks, which supply the numerical reference the translated code must reproduce.","marker":"(Campbell and Neumann, 2019)"},{"why":"The existing C++ interface to MCFM that frames the migration context and target architecture.","marker":"(Campbell et al., 2021)"},{"why":"Evidence of long-context degradation that motivates the design choice of short sessions and bounded loops.","marker":"(Liu et al., 2024a)"},{"why":"The provenance and reproducibility practice the Lab Notebook builds on, including the jobrunner tool on the agent allowlist.","marker":"(Dhruv and Dubey, 2023)"},{"why":"Empirical studies of AI coding assistants and productivity that the human-supervision design builds on.","marker":"(Ziegler et al., 2024)"}],"fun_headline_variants":["Author-reviewer loop matches multi-agent output at one-third cost","Capped agent loops beat prompt rules on cost per translated file","Limits, not prompts, keep coding agents efficient in Fortran-to-C++","Two-agent loop costs a third as much, matches multi-agent file count","Enforced tool-call caps, not prompt rules, lower agent translation cost"],"cache_read_input_tokens":0,"weakest_assumption_plain":"The comparison stands or falls on the numerical oracle: that a file passing the coverage probe and benchmark reproduction within tolerance is genuinely correct, and that the resulting 'settled' count is a true measure of progress — yet the paper's own precision-kinds case, reported in Section 4.5, shows a translation that is arguably wrong passing the full benchmark suite because the translated constants were never exercised.","fun_headline_variants_meta":{"raw":{"variants":["Author-reviewer loop matches multi-agent output at one-third cost","Capped agent loops beat prompt rules on cost per translated file","Limits, not prompts, keep coding agents efficient in Fortran-to-C++","Two-agent loop costs a third as much, matches multi-agent file count","Enforced tool-call caps, not prompt rules, lower agent translation cost"]},"model":"deepseek/deepseek-v4-flash","effort":"low","cost_usd":0.000323,"raw_usage":{"cost":0.000323316,"is_byok":false,"cost_details":{"upstream_inference_cost":0.000323316,"upstream_inference_prompt_cost":9.0356e-05,"upstream_inference_completions_cost":0.00023296},"total_tokens":1887,"prompt_tokens":1055,"completion_tokens":832,"prompt_tokens_details":{"audio_tokens":0,"video_tokens":0,"cached_tokens":512,"cache_write_tokens":0},"completion_tokens_details":{"audio_tokens":0,"image_tokens":0,"reasoning_tokens":749}},"tokens_in":1055,"tokens_out":832,"cost_source":"openrouter_usage","duration_ms":5049,"image_pages":[],"temperature":1.0,"billed_attempts":1,"reasoning_tokens":749,"transport_provider":"openrouter","cache_read_input_tokens":0,"cache_creation_input_tokens":0},"cache_creation_input_tokens":0},"created_at":"2026-10-08T21:20:00.102211+00:00","model_set":{"reader":"deepseek/deepseek-v4-flash"},"pipeline_version":"pith-pipeline@v1.4.1-daily-deepseek-or-medium","input_kind":null,"input_chars":null,"input_total_chars":null,"passes_missing":null,"published_standing":null,"published_confidence":null,"objection_audit":null,"run_record":null,"basis":{"kind":"not_recorded","source":null,"chars_given":null,"chars_total":null},"receipt":null,"falsifier":"A decisive test is to run the oracle against a deliberately wrong translation whose error the reference benchmarks never reach; the paper's own integer-placeholder version of the precision-kinds file is exactly such a case, and it already passes every benchmark, so a type-exercising check (compiling and inspecting the actual C++ types behind sp, dp, ex, qp) that flips that file or any other settled file to failed would show the verification boundary is weaker than claimed. On the enforcement side, run the same author–reviewer loop with the same model but without orchestrator caps, relying only on prompt guidance: if that configuration repeatedly stays within bounds and matches the loop's cost, the claim that enforcement rather than prompting carries the result collapses.","supporting_citations":[{"cited_title":"Leveraging Large Language Models for Code Translation and Software Development in Scientific Computing","cited_arxiv_id":null,"evidence_quote":"The prior CodeScribe Fortran–C++ interface work that this paper extends into autonomous agentic workflows."},{"cited_title":"Precision phenomenology with MCFM","cited_arxiv_id":null,"evidence_quote":"The MCFM code and its physics benchmarks, which supply the numerical reference the translated code must reproduce."},{"cited_title":"Managing Software Provenance to Enhance Reproducibility in Computational Research","cited_arxiv_id":null,"evidence_quote":"The provenance and reproducibility practice the Lab Notebook builds on, including the jobrunner tool on the agent allowlist."},{"cited_title":"Alice and Rice, Andrew and Rifkin, Devon and Simister, Shawn and Sittampalam, Ganesh and Aftandilian, Edward , title =","cited_arxiv_id":null,"evidence_quote":"Empirical studies of AI coding assistants and productivity that the human-supervision design builds on."}],"lane_accuracy":{"status":"not yet measured","lane":{"model":"deepseek/deepseek-v4-flash","input_kind":null},"url":"https://pith.science/accuracy"},"review_version":1}