SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2606.26790 · 2026

OPID: On-Policy Skill Distillation for Agentic Reinforcement Learning

Fan Zhang, Shuo Yang, Shuai Zhang, Haoran Luo, Jianhua Tao, Lang Feng, Zheng Lian, Zhengxi Lu, Zhengqi Wen, Jinyang Wu, Yuhao Shen, Trajectory Timeline, and 1 more

arXiv · PDF · Open in the Atlas

Code that ran

16 of 18 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; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 15 failures of our instrument; 2 no recorded run), measured 2026-11-23; 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/2606.26790.json · badge: /api/ran/2606.26790.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.

RepositoryRoleRan
jinyangwu/OPID canonical (classifier label)
classifier basis: census
16 ran · 2 no recorded run
FunctionStatusWhere it lives
build_episode_records Ran
ran; our contract draft was wrong, not the code
jinyangwu/OPID/opid/analysis.py
code served (permissive licence) · get_code("c4b95f8ac11b9792")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned defaultdict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np
from collections import defaultdict

torch.manual_seed(0)

# Create a minimal tokenizer stand-in
class MinimalTokenizer:
    def decode(self, token_ids, skip_special_tokens=True):
        # Convert token IDs to a simple string representation
        return f"Response with tokens {token_ids.tolist()}"

# Create minimal arguments
tokenizer = MinimalTokenizer()

# obs_texts: Sequence of observation text strings
obs_texts = [
    "Your task is to: complete the first objective. This is step 1.",
    "Your task is: solve the second problem. This is step 2."
]

# responses: torch.Tensor of shape (batch_size, seq_len)
responses = torch.tensor([
    [101, 2054, 2003, 1037, 3231, 102, 0, 0],
    [101, 2054, 2003, 1037, 4597, 102, 0, 0]
], dtype=torch.long)

# response_mask: torch.Tensor of shape (batch_size, seq_len) with 1s for valid tokens
response_mask = torch.tensor([
    [1, 1, 1, 1, 1, 1, 0, 0],
    [1, 1, 1, 1, 1, 1, 0, 0]
], dtype=torch.long)

# traj_index: Sequence of trajectory identifiers
traj_index = ["traj_001", "traj_002"]

# step_indices: Sequence of step numbers
step_indices = [0, 1]

# step_rewards: Optional torch.Tensor of shape (batch_size,)
step_rewards = torch.tensor([0.5, 0.75], dtype=torch.float32)

# obs_raws: Optional Sequence of raw observation strings
obs_raws = [
    "Raw observation 1: complete the first objective",
    "Raw observation 2: solve the second problem"
]

ARGS = {
    "tokenizer": tokenizer,
    "obs_texts": obs_texts,
    "responses": responses,
    "response_mask": response_mask,
    "traj_index": traj_index,
    "step_indices": step_indices,
    "step_rewards": step_rewards,
    "obs_raws": obs_raws
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type defaultdict — a defaultdict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a defaultdict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
build_group_size_summary Ran
ran; our contract draft was wrong, not the code
jinyangwu/OPID/gigpo/core_gigpo.py
code served (permissive licence) · get_code("8b27d7fff6474834")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
from collections import defaultdict, Counter
from typing import Sequence, List, Dict, Any, Optional, Tuple

torch.manual_seed(0)

# The function takes group_size which is a Sequence[int]
# It processes these sizes, counts them, and builds a summary dict
# The function converts to int, filters positive values, and counts occurrences

ARGS = {
    "group_size": [1, 2, 2, 3, 3, 3, 4, 4, 5],
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
build_message Ran
ran; our contract draft was wrong, not the code
jinyangwu/OPID/utils/prompt_builder.py
code served (permissive licence) · get_code("d20db4e6b7e60238")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Read the function signature and body:
# - role: str (required, must be non-empty)
# - content: Any (required)
# - **extra_fields: Any (optional keyword arguments)

# The function checks that role is non-empty and constructs a dict
# with 'role', 'content', and any extra fields.

ARGS = {
    'role': 'user',
    'content': 'Hello, how can I help you?',
    'extra_fields': {
        'name': 'test_user',
        'timestamp': 1234567890,
    }
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
build_messages Ran
ran; our contract draft was wrong, not the code
jinyangwu/OPID/utils/prompt_builder.py
code served (permissive licence) · get_code("d5573e2aaa360199")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np
from typing import Optional, Iterable, Mapping, Any, List

torch.manual_seed(0)

# Create sample messages for history
sample_history = [
    {'role': 'user', 'content': 'Hello'},
    {'role': 'assistant', 'content': 'Hi there!'},
    {'role': 'user', 'content': 'How are you?'},
]

# Build the ARGS dictionary with all parameters
ARGS = {
    'system_prompt': 'You are a helpful assistant.',
    'user_prompt': 'What is the capital of France?',
    'assistant_prompt': 'The capital of France is Paris.',
    'history': sample_history,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
build_prompt_dict Ran
ran; our contract draft was wrong, not the code
jinyangwu/OPID/utils/prompt_builder.py
code served (permissive licence) · get_code("87c2f22727432999")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

# Analysis of build_prompt_dict function:
# - system_prompt: Optional[str]
# - user_prompt: Optional[str]
# - assistant_prompt: Optional[str]
# - history: Optional[Iterable[Mapping[str, Any]]]
# - **extra_fields: Any

# The function calls build_messages() which:
# - Creates Message dicts with 'role' and 'content' keys
# - Iterates through history if provided
# - Each history item must be a Mapping with 'role' and 'content'

# Build test data
system_prompt_value = "You are a helpful assistant."
user_prompt_value = "What is 2+2?"
assistant_prompt_value = "The answer is 4."

# Build history - list of valid message mappings
history_value = [
    {'role': 'user', 'content': 'Hello'},
    {'role': 'assistant', 'content': 'Hi there!'},
    {'role': 'user', 'content': 'How are you?'},
]

# Extra fields to pass
extra_fields_value = {
    'model': 'gpt-4',
    'temperature': 0.7,
    'max_tokens': 100,
}

# Construct ARGS dict with all parameters
ARGS = {
    'system_prompt': system_prompt_value,
    'user_prompt': user_prompt_value,
    'assistant_prompt': assistant_prompt_value,
    'history': history_value,
    **extra_fields_value,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
build_traj_step_indices Ran
ran, honoured the contract we drafted
jinyangwu/OPID/opid/analysis.py
code served (permissive licence) · get_code("60822cb885a1efba")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 1, dtype family int, shape (6,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
from collections import defaultdict

# Construct a valid traj_index argument
# The function iterates through traj_index and tracks counters per unique trajectory UID
# It returns step indices in trajectory order

# Example: a sequence of trajectory identifiers where samples from the same trajectory
# are grouped together or scattered
traj_index = ['traj_0', 'traj_0', 'traj_1', 'traj_0', 'traj_1', 'traj_1']

ARGS = {
    'traj_index': traj_index,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family int, shape (6,) — shape (6,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
compute_ce_dpo_loss_rm Ran
ran; our contract draft was wrong, not the code
jinyangwu/OPID/recipe/prime/prime_core_algos.py
pointer only (licence: MIT); the stored copy get_code serves, from LeapLabTHU/OPDVR, is pointer only (licence: NONE) · get_code("f220595adfc5e83c")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from LeapLabTHU/OPDVR, and GitHub detected no licence in that repository 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.

compute_detach_dpo_loss_rm Ran
ran; our contract draft was wrong, not the code
jinyangwu/OPID/recipe/prime/prime_core_algos.py
pointer only (licence: MIT); the stored copy get_code serves, from LeapLabTHU/OPDVR, is pointer only (licence: NONE) · get_code("4d91e4383716e42c")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from LeapLabTHU/OPDVR, and GitHub detected no licence in that repository 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.

compute_group_size_distribution_metrics Ran
ran; our contract draft was wrong, not the code
jinyangwu/OPID/gigpo/core_gigpo.py
code served (permissive licence) · get_code("31933b7ca2497b7f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# The function takes:
# 1. group_size: Sequence[int] - a sequence of group sizes
# 2. prefix: str - a string prefix for metric names

# Create a realistic group size distribution
group_size = [1, 2, 2, 3, 5, 8, 10, 15, 20, 25]

# Create a prefix string
prefix = "train"

ARGS = {
    "group_size": group_size,
    "prefix": prefix,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
compute_online_dpo_loss Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
jinyangwu/OPID/recipe/spin/core_algos.py
pointer only (licence: MIT); the stored copy get_code serves, from LeapLabTHU/OPDVR, is pointer only (licence: NONE) · get_code("f19825983a523003")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from LeapLabTHU/OPDVR, and GitHub detected no licence in that repository 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.

compute_onlinedpo_pref Ran
ran; our contract draft was wrong, not the code
jinyangwu/OPID/recipe/spin/core_algos.py
code served (permissive licence) · get_code("7a988deb09f43a64")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 1, dtype family float, shape (4,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create valid arguments for compute_onlinedpo_pref
# The function expects:
# - token_level_rewards: shape [batch_size * 2, seq_len]
# - response_mask: shape [batch_size * 2, seq_len]

batch_size = 2  # number of pairs
seq_len = 4

# Create token_level_rewards with shape [4, 4] (batch_size * 2 = 4, seq_len = 4)
token_level_rewards = torch.randn(batch_size * 2, seq_len)

# Create response_mask with same shape [4, 4]
# Binary mask where 1 indicates valid tokens, 0 indicates padding
response_mask = torch.ones(batch_size * 2, seq_len, dtype=torch.float32)
# Make some positions masked out for variety
response_mask[0, 3] = 0
response_mask[2, 2:] = 0

ARGS = {
    "token_level_rewards": token_level_rewards,
    "response_mask": response_mask,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 1, dtype family float, shape (4,) — shape (4,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
extract_message_text Ran
ran; our contract draft was wrong, not the code
jinyangwu/OPID/utils/openai_api.py
code served (permissive licence) · get_code("1a9de33642d4c7c7")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
from typing import Any, Optional

# Create a simple message object with the attributes that extract_message_text expects
class MockMessage:
    def __init__(self, content=None, reasoning_content=None):
        self.content = content
        self.reasoning_content = reasoning_content

# Create a simple choice object
class MockChoice:
    def __init__(self, message):
        self.message = message

# Create a simple response object
class MockResponse:
    def __init__(self, choices):
        self.choices = choices

# Test case 1: Response with both reasoning and content as string
message_with_reasoning = MockMessage(
    content="This is the main content",
    reasoning_content="This is the reasoning"
)
choice_with_reasoning = MockChoice(message_with_reasoning)
response_with_reasoning = MockResponse([choice_with_reasoning])

# Test case 2: Response with content as sequence of dicts (text type)
message_with_sequence = MockMessage(
    content=[
        {'type': 'text', 'text': 'First part'},
        {'type': 'text', 'text': 'Second part'}
    ],
    reasoning_content=None
)
choice_with_sequence = MockChoice(message_with_sequence)
response_with_sequence = MockResponse([choice_with_sequence])

# Test case 3: Response with content as sequence of dicts (content key)
message_with_content_key = MockMessage(
    content=[
        {'content': 'Item one'},
        {'content': 'Item two'}
    ],
    reasoning_content=None
)
choice_with_content_key = MockChoice(message_with_content_key)
response_with_content_key = MockResponse([choice_with_content_key])

# Test case 4: Response with None content
message_empty = MockMessage(content=None, reasoning_content=None)
choice_empty = MockChoice(message_empty)
response_empty = MockResponse([choice_empty])

# Use the first test case as the main argument
ARGS = {
    'response': response_with_reasoning
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_kl_controller Ran
ran; our contract draft was wrong, not the code
jinyangwu/OPID/recipe/spin/core_algos.py
pointer only (licence: MIT); the stored copy get_code serves, from LeapLabTHU/OPDVR, is pointer only (licence: NONE) · get_code("757d109d90121142")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from LeapLabTHU/OPDVR, and GitHub detected no licence in that repository 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.

reward_func Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
jinyangwu/OPID/recipe/r1/reward_score.py
code served (permissive licence) · get_code("c30b2a96103abd2c")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned MagicMock. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# Mock the recipe.r1.tasks modules to avoid import errors
import sys
from unittest.mock import MagicMock

mock_math = MagicMock()
mock_math.compute_score = lambda sol, gt: 0.85

mock_gpqa = MagicMock()
mock_gpqa.compute_score = lambda sol, gt: 0.92

mock_livecodebench = MagicMock()
mock_livecodebench.compute_score = lambda sol, gt: 0.78

sys.modules['recipe'] = MagicMock()
sys.modules['recipe.r1'] = MagicMock()
sys.modules['recipe.r1.tasks'] = MagicMock()
sys.modules['recipe.r1.tasks.math'] = mock_math
sys.modules['recipe.r1.tasks.gpqa'] = mock_gpqa
sys.modules['recipe.r1.tasks.livecodebench'] = mock_livecodebench

# Define arguments for reward_func
ARGS = {
    'data_source': 'Maxwell-Jia/AIME_2024',
    'solution_str': 'The answer is 42.',
    'ground_truth': '42',
    'extra_info': None
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, recipe, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type MagicMock — a MagicMock output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a MagicMock output the recorded ndim 1 and dtype family None describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
to_hashable Ran
ran; our contract draft was wrong, not the code
jinyangwu/OPID/gigpo/core_gigpo.py
code served (permissive licence) · get_code("862de021e4c430ca")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

ARGS = {
    "x": [
        42,
        3.14,
        "hello",
        True,
        np.int64(10),
        np.float32(2.5),
        np.array([1, 2, 3, 4]),
        [1, 2, "test"],
        (3.14, "tuple", True),
        {"key1": 5, "key2": "value", "nested": [1, 2, 3]},
        np.array([[1, 2], [3, 4]]),
        {"a": np.int32(1), "b": np.array([5, 6, 7])},
        [np.float64(1.5), {"inner": "dict"}, (1, 2, 3)],
    ]
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
unpad_dataproto Ran
ran; our contract draft was wrong, not the code
jinyangwu/OPID/verl/protocol.py
code served (permissive licence) · get_code("25f0ea3f460f6ce1")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned DataProto. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

class DataProto:
    """Stand-in class for DataProto that supports slicing."""
    def __init__(self, data):
        self.data = data
    
    def __getitem__(self, key):
        """Support slicing to return a new DataProto with sliced data."""
        sliced_data = self.data[key]
        return DataProto(sliced_data)
    
    def __repr__(self):
        return f"DataProto({self.data})"

# Create a small DataProto instance with some data
data_tensor = torch.randn(2, 4)
data_proto = DataProto(data_tensor)

ARGS = {
    "data": data_proto,
    "pad_size": 0
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataProto — a DataProto output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataProto output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_weight_loader Not yet run
unverified (harvested, no recorded run)
jinyangwu/OPID/verl/models/weight_loader_registry.py
code served (permissive licence) · get_code("acf240079d434746")
How it ran

no invocation recorded.

get_weight_saver Not yet run
unverified (harvested, no recorded run)
jinyangwu/OPID/verl/models/weight_loader_registry.py
code served (permissive licence) · get_code("55f217ce71432b58")
How it ran

no invocation recorded.

Also present in other papers' code

Of 18 samples lifted from this paper's linked repositories, 18 carry a function identity and 0 do not. Of the 18 distinct functions with an identity, 10 are also present in other papers whose code we hold (10 with at least one paper dated earlier, 9 the same month, 8 later) and 8 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.

FunctionAlso present inEarliest-datedOthers named
unpad_dataproto 89 other papers
71 dated earlier, 7 the same month, 8 later, 3 undated
2409.19256 (2024-09)
HybridFlow: A Flexible and Efficient RLHF Framework
2410.21236 (2024-10)
Flaming-hot Initiation with Regular Execution Sampling for Large Language Models
2025.findings-emnlp.1015 (2025 (year only))
MT-R1-Zero: Advancing LLM-based Machine Translation via R1-Zero-like Reinforcement Learning
and 86 more not named here
get_weight_loader 58 other papers
42 dated earlier, 6 the same month, 8 later, 2 undated
2409.19256 (2024-09)
HybridFlow: A Flexible and Efficient RLHF Framework
2505.14362 (2025-05)
DeepEyes: Incentivizing "Thinking with Images" via Reinforcement Learning
2505.20046 (2025-05)
REARANK: Reasoning Re-ranking Agent via Reinforcement Learning
and 55 more not named here
compute_ce_dpo_loss_rm 46 other papers
34 dated earlier, 5 the same month, 4 later, 3 undated
2409.19256 (2024-09)
HybridFlow: A Flexible and Efficient RLHF Framework
2410.02992 (2024-10)
Learning to Better Search with Language Models via Guided Reinforced Self-Training
2504.16084 (2025-04)
TTRL: Test-Time Reinforcement Learning
and 43 more not named here
compute_detach_dpo_loss_rm 44 other papers
32 dated earlier, 5 the same month, 4 later, 3 undated
2409.19256 (2024-09)
HybridFlow: A Flexible and Efficient RLHF Framework
2410.02992 (2024-10)
Learning to Better Search with Language Models via Guided Reinforced Self-Training
2504.16084 (2025-04)
TTRL: Test-Time Reinforcement Learning
and 41 more not named here
compute_online_dpo_loss 38 other papers
26 dated earlier, 5 the same month, 4 later, 3 undated
2409.19256 (2024-09)
HybridFlow: A Flexible and Efficient RLHF Framework
2410.02992 (2024-10)
Learning to Better Search with Language Models via Guided Reinforced Self-Training
2504.16084 (2025-04)
TTRL: Test-Time Reinforcement Learning
and 35 more not named here
get_kl_controller 38 other papers
26 dated earlier, 5 the same month, 4 later, 3 undated
2409.19256 (2024-09)
HybridFlow: A Flexible and Efficient RLHF Framework
2410.02992 (2024-10)
Learning to Better Search with Language Models via Guided Reinforced Self-Training
2504.16084 (2025-04)
TTRL: Test-Time Reinforcement Learning
and 35 more not named here
reward_func 28 other papers
22 dated earlier, 2 the same month, 2 later, 2 undated
2409.19256 (2024-09)
HybridFlow: A Flexible and Efficient RLHF Framework
2504.16084 (2025-04)
TTRL: Test-Time Reinforcement Learning
2505.14362 (2025-05)
DeepEyes: Incentivizing "Thinking with Images" via Reinforcement Learning
and 25 more not named here
get_weight_saver 10 other papers
8 dated earlier, 1 the same month, 1 undated
2512.14157 (2025-12)
Ophiuchus: Incentivizing Tool-augmented "Think with Images" for Joint Medical Segmentation, Understanding and Reasoning
2512.16848 (2025-12)
Meta-RL Induces Exploration in Language Agents
2601.04767 (2026-01)
AT 2 PO: Agentic Turn-based Policy Optimization via Tree Search
and 7 more not named here
to_hashable 10 other papers
7 dated earlier, 1 the same month, 2 later · 4 only as an assembly brick
2505.10978 (2025-05)
Group-in-Group Policy Optimization for LLM Agent Training
2509.13347 (2025-09)
OpenHA: A Series of Open-Source Hierarchical Agentic Models in Minecraft
2512.14157 (2025-12)
Ophiuchus: Incentivizing Tool-augmented "Think with Images" for Joint Medical Segmentation, Understanding and Reasoning
and 7 more not named here
compute_onlinedpo_pref 7 other papers
7 dated earlier
2506.12935 (2025-06)
SoundMind: RL-Incentivized Logic Reasoning for Audio-Language Models
2510.04678 (2025-10)
Multi-Agent Tool-Integrated Policy Optimization
2512.14157 (2025-12)
Ophiuchus: Incentivizing Tool-augmented "Think with Images" for Joint Medical Segmentation, Understanding and Reasoning
and 4 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-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Outcome-based reinforcement learning provides a stable optimization backbone for language agents, but its sparse trajectory-level rewards provide little guidance on which intermediate decisions should be reinforced or suppressed. Onpolicy self-distillation offers dense token-level supervision, yet existing skillconditioned variants often rely on external skill memories or retrieved privileged context, which are costly to maintain and can be mismatched with the state distribution induced by the current policy in multi-turn interaction. We propose OPID (On-Policy Skill Distillation), a framework that extracts skill supervision directly from completed on-policy trajectories. OPID represents trajectory hindsight as hierarchical skills: episode-level skills capture global workflows or failure-avoidance rules, while step-level skills capture local decision knowledge at critical timesteps. A critical-first routing mechanism uses step-level skills when critical decisions are identified and falls back to episode-level skills as default guidance otherwise. The selected skill is injected into the interaction history, allowing the old policy to re-score the same sampled response under both original and skill-augmented contexts. The resulting log-probability shift yields a tokenlevel self-distillation advantage, which is combined with the outcome advantage for policy optimization. OPID thus preserves RL as the primary training objective while introducing dense, distribution-matched hindsight supervision. Experiments on ALFWorld, WebShop and Search-based QA demonstrate that OPID generally improves agent performance, sample efficiency, and robustness over outcome-only RL and existing skill-distillation baselines. Our code is available at https://github.com/jinyangwu/OPID/tree/main.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2606.26790")
get_code_for_paper("2606.26790")
have("2606.26790")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2606.26790.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2606.26790.svg)](https://syntology.ai/paper/2606.26790)

Connect an agent — have() is free.