5 of 6 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 2 violated it and 0 have no contract verdict; 3 failures of our instrument; 1 no recorded run), measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.
"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2402.11651.json · badge: /api/ran/2402.11651.svg
Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.
| Repository | Role | Ran |
|---|---|---|
| reason-wang/nat | canonical (classifier label) classifier basis: census |
5 ran · 1 no recorded run |
| Function | Status | Where it lives |
|---|---|---|
| get_api_keys | Ran ran; our contract draft was wrong, not the code |
reason-wang/nat/api/openai/utils.py pointer only (licence: NONE) · get_code("ccdac9914d4e77c2") How it ranThe body of this sample is withheld: GitHub detected no licence in this paper's repository, reason-wang/nat when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded. |
| is_partial_stop | Ran ran, violated the contract we drafted |
reason-wang/nat/utils/interactive.py pointer only (licence: NONE) · get_code("ddb4940f29bcdc41") How it ranThe body of this sample is withheld: GitHub detected no licence in this paper's repository, reason-wang/nat when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded. |
| is_sentence_complete | Ran ran, violated the contract we drafted |
reason-wang/nat/utils/interactive.py pointer only (licence: NONE) · get_code("4d56b8d8e97e745d") How it ranThe body of this sample is withheld: GitHub detected no licence in this paper's repository, reason-wang/nat when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded. |
| prepare_logits_processor | Ran ran; our contract draft was wrong, not the code |
reason-wang/nat/utils/interactive.py pointer only (licence: NONE); the stored copy get_code serves, from x-plug/multi-llm-agent, is pointer only (licence: NONE) · get_code("93c25411cf60d992") How it ranThe body of this sample is withheld: GitHub detected no licence in this paper's repository, reason-wang/nat when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded. |
| request | Ran ran; our contract draft was wrong, not the code |
reason-wang/nat/api/openai/completion.py pointer only (licence: NONE) · get_code("054b3127feb0f5fe") How it ranThe body of this sample is withheld: GitHub detected no licence in this paper's repository, reason-wang/nat when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded. |
| get_conv_template | Not yet run unverified (harvested, no recorded run) |
reason-wang/nat/prompts/conversations.py pointer only (licence: NONE) · get_code("f3dc205319b0e027") How it ranThe body of this sample is withheld: GitHub detected no licence in this paper's repository, reason-wang/nat when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded. |
Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 1 the same month, 1 later) and 4 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).
Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.
| Function | Also present in | Earliest-dated | Others named |
|---|---|---|---|
| get_conv_template | 69 other papers 16 dated earlier, 3 the same month, 45 later, 4 same year, order not determinable, 1 undated |
1911.03705 (2019-11) CommonGen: A Constrained Text Generation Challenge for Generative Commonsense Reasoning |
2112.05682 (2021-12) Self-attention Does Not Need $O(n^2)$ Memory 2204.07705 (2022-04) SUPER-NATURALINSTRUCTIONS: Generalization via Declarative Instructions on 1600+ NLP Tasks and 66 more not named here |
| prepare_logits_processor | 4 other papers 4 dated earlier |
2305.14233 (2023-05) Enhancing Chat Language Models by Scaling High-quality Instructional Conversations |
2310.16450 (2023-10) CLEX: Continuous Length Extrapolation for Large Language Models 2312.02614 (2023-12) Prompt Optimization via Adversarial In-Context Learning and 1 more not named here |
Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.
Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.
Large language models (LLMs) have achieved success in acting as agents, which interact with environments through tools such as search engines. However, LLMs are optimized for language generation instead of tool use during training or alignment, limiting their effectiveness as agents. To resolve this problem, previous work has first collected interaction trajectories between LLMs and environments, using only trajectories that successfully finished the task to fine-tune smaller models, making fine-tuning data scarce and acquiring it both difficult and costly. Discarding failed trajectories also leads to significant wastage of data and resources and limits the possible optimization paths during fine-tuning. In this paper, we argue that unsuccessful trajectories offer valuable insights, and LLMs can learn from these trajectories through appropriate quality control and fine-tuning strategies. By simply adding a prefix or suffix that tells the model whether to generate a successful trajectory during training, we improve model performance by a large margin on mathematical reasoning, multi-hop question answering, and strategic question answering tasks. We further analyze the inference results and find that our method provides a better trade-off between valuable information and errors in unsuccessful trajectories. To our knowledge, we are the first to demonstrate the value of negative trajectories and their application in agent-tunning scenarios. Our findings offer guidance for developing better agent-tuning methods and low-resource data usage techniques.
The same record, over MCP at https://syntology.ai/mcp:
get_harvested_code_for_paper("2402.11651")
get_code_for_paper("2402.11651")
have("2402.11651")
The run record, dated, one paper per request, free:
curl https://syntology.ai/api/ran/2402.11651.json
A badge for a README (the split and the date, never a ratio):
[](https://syntology.ai/paper/2402.11651)
Connect an agent — have() is free.