Dataset Viewer
Auto-converted to Parquet Duplicate
messages
listlengths
2
34
chosen
dict
rejected
dict
[ { "role": "system", "content": "You are a supervisor monitoring an LLM-based coding agent. Your role is to detect trajectory-level errors and provide corrective guidance to prevent task failure.\nAnalyze the provided agent trace for the following error categories. For each detected error, provide specific e...
{ "role": "assistant", "content": "SPECIFICATION ERRORS:\n1. Task Specification Violations: DETECTED: No\n2. Role Specification Violations: DETECTED: No\n3. Step Repetition: DETECTED: Yes\nEVIDENCE: The agent has run `git log -n 10 --oneline` twice and `git branch` three times with identical output.\nRECOVERY_ACTIO...
{ "role": "assistant", "content": "SPECIFICATION ERRORS:\n1. Task Specification Violations: DETECTED: No\n2. Role Specification Violations: DETECTED: No\n3. Step Repetition: DETECTED: Yes\nEVIDENCE: The agent has repeatedly run `git log -n 10 --oneline` and `git status` multiple times without gaining new informatio...
[ { "role": "system", "content": "You are a supervisor monitoring an LLM-based coding agent. Your role is to detect trajectory-level errors and provide corrective guidance to prevent task failure.\nAnalyze the provided agent trace for the following error categories. For each detected error, provide specific e...
{ "role": "assistant", "content": "SPECIFICATION ERRORS:\n1. Task Specification Violations: DETECTED: No\n2. Role Specification Violations: DETECTED: No\n3. Step Repetition: DETECTED: No\n4. Termination Condition Unawareness: DETECTED: No\n\nREASONING ERRORS:\n5. Problem Misidentification: DETECTED: Yes\nEVIDENCE: ...
{ "role": "assistant", "content": "SPECIFICATION ERRORS:\n1. Task Specification Violations: DETECTED: No\n2. Role Specification Violations: DETECTED: No\n3. Step Repetition: DETECTED: No\n4. Termination Condition Unawareness: DETECTED: No\n\nREASONING ERRORS:\n5. Problem Misidentification: DETECTED: Yes\nEVIDENCE: ...
[ { "role": "system", "content": "You are a supervisor monitoring an LLM-based coding agent. Your role is to detect trajectory-level errors and provide corrective guidance to prevent task failure.\nAnalyze the provided agent trace for the following error categories. For each detected error, provide specific e...
{ "role": "assistant", "content": "SPECIFICATION ERRORS:\n1. Task Specification Violations: DETECTED: No\n2. Role Specification Violations: DETECTED: No\n3. Step Repetition: DETECTED: Yes\nEVIDENCE: The agent has repeatedly run broad git commands and test suites without narrowing down to the specific issue, and con...
{ "role": "assistant", "content": "SPECIFICATION ERRORS:\n1. Task Specification Violations: DETECTED: No\n2. Role Specification Violations: DETECTED: No\n3. Step Repetition: DETECTED: Yes\nEVIDENCE: The agent has repeatedly run broad git commands, examined the same deprecated Julian date code, and run the full test...
[ { "role": "system", "content": "You are a supervisor monitoring an LLM-based coding agent. Your role is to detect trajectory-level errors and provide corrective guidance to prevent task failure.\nAnalyze the provided agent trace for the following error categories. For each detected error, provide specific e...
{ "role": "assistant", "content": "SPECIFICATION ERRORS:\n1. Task Specification Violations: DETECTED: No\n2. Role Specification Violations: DETECTED: No\n3. Step Repetition: DETECTED: Yes\nEVIDENCE: The agent has run `PYTHONWARNINGS='ignore::UserWarning,ignore::SyntaxWarning' .venv/bin/python -W ignore -m pytest -r...
{ "role": "assistant", "content": "SPECIFICATION ERRORS:\n1. Task Specification Violations: DETECTED: No\n2. Role Specification Violations: DETECTED: No\n3. Step Repetition: DETECTED: Yes\nEVIDENCE: The agent has run `PYTHONWARNINGS='ignore::UserWarning,ignore::SyntaxWarning' .venv/bin/python -W ignore -m pytest -r...
[ { "role": "system", "content": "You are a supervisor monitoring an LLM-based coding agent. Your role is to detect trajectory-level errors and provide corrective guidance to prevent task failure.\nAnalyze the provided agent trace for the following error categories. For each detected error, provide specific e...
{ "role": "assistant", "content": "SPECIFICATION ERRORS:\n1. Task Specification Violations: DETECTED: No\n2. Role Specification Violations: DETECTED: No\n3. Step Repetition: DETECTED: Yes\nEVIDENCE: The agent has run the same `git diff main` command 3 times, run the same `run_tests.sh` command 3 times getting the s...
{ "role": "assistant", "content": "SPECIFICATION ERRORS:\n1. Task Specification Violations: DETECTED: No\n2. Role Specification Violations: DETECTED: No\n3. Step Repetition: DETECTED: Yes\nEVIDENCE: The agent has run `git diff main` three times, run the same pytest command against backend_svg.py/mathtext.py multipl...
[{"role":"system","content":"You are a supervisor monitoring an LLM-based coding agent. Your role is(...TRUNCATED)
{"role":"assistant","content":"SPECIFICATION ERRORS:\n1. Task Specification Violations: DETECTED: Ye(...TRUNCATED)
{"role":"assistant","content":"SPECIFICATION ERRORS:\n1. Task Specification Violations: DETECTED: Ye(...TRUNCATED)
[{"role":"system","content":"You are a supervisor monitoring an LLM-based coding agent. Your role is(...TRUNCATED)
{"role":"assistant","content":"SPECIFICATION ERRORS:\n1. Task Specification Violations: DETECTED: No(...TRUNCATED)
{"role":"assistant","content":"SPECIFICATION ERRORS:\n1. Task Specification Violations: DETECTED: No(...TRUNCATED)
[{"role":"system","content":"You are a supervisor monitoring an LLM-based coding agent. Your role is(...TRUNCATED)
{"role":"assistant","content":"SPECIFICATION ERRORS:\n1. Task Specification Violations: DETECTED: No(...TRUNCATED)
{"role":"assistant","content":"SPECIFICATION ERRORS:\n1. Task Specification Violations: DETECTED: No(...TRUNCATED)
[{"role":"system","content":"You are a supervisor monitoring an LLM-based coding agent. Your role is(...TRUNCATED)
{"role":"assistant","content":"SPECIFICATION ERRORS:\n1. Task Specification Violations: DETECTED: No(...TRUNCATED)
{"role":"assistant","content":"SPECIFICATION ERRORS:\n1. Task Specification Violations: DETECTED: No(...TRUNCATED)
[{"role":"system","content":"You are a supervisor monitoring an LLM-based coding agent. Your role is(...TRUNCATED)
{"role":"assistant","content":"SPECIFICATION ERRORS:\n1. Task Specification Violations: DETECTED: No(...TRUNCATED)
{"role":"assistant","content":"SPECIFICATION ERRORS:\n1. Task Specification Violations: DETECTED: No(...TRUNCATED)
End of preview. Expand in Data Studio

PRM_1541i

1541 preference pairs for training a critic over coding-agent trajectories. Each example is a multi-turn agent transcript paired with two candidate critiques — one preferred, one rejected.

A critique is a structured error analysis over 12 categories, each with a DETECTED: Yes/No verdict and, when detected, EVIDENCE and RECOVERY_ACTION fields, closing with TASK_STATUS and OVERALL_GUIDANCE.

Format

ShareGPT / LLaMA-Factory layout (dataset_info.json included):

{
  "messages":  [{"role": "system", ...}, {"role": "user", ...}, ...],
  "chosen":    {"role": "assistant", "content": "SPECIFICATION ERRORS:\n1. ..."},
  "rejected":  {"role": "assistant", "content": "SPECIFICATION ERRORS:\n1. ..."}
}

messages ends on a user turn; chosen and rejected are single assistant messages. To use with TRL's conversational preference format:

from datasets import load_dataset

def to_preference(example):
    return {
        "prompt": example["messages"],
        "chosen": [example["chosen"]],
        "rejected": [example["rejected"]],
    }

dataset = load_dataset("code-critic-model/PRM_1541i", split="train")
dataset = dataset.map(to_preference, remove_columns=["messages"])
dataset = dataset.train_test_split(test_size=0.1, seed=42)  # 1386 train / 155 eval

Length filtering

Pre-filtered so that every pair fits whole in 8192 tokens under the Qwen/Qwen3-4B-Instruct-2507 tokenizer, measured the way DPOTrainer measures it (render with the chat template, then tokenize prompt and prompt + completion). Nothing is truncated or dropped at train time. Prompts are long — around 7000 tokens — and completions are around 580.

Statistics

Measured over all 1541 pairs:

pairs 1541
median prompt length ~7000 tokens
median completion length ~580 tokens
OVERALL_GUIDANCE share of completion 12.5% (median 74 tokens)
pairs where chosen/rejected flip >= 1 DETECTED verdict 892 (57.9%)
pairs differing in prose only (identical verdicts) 649 (42.1%)
median flipped DETECTED labels per pair 1
median char similarity, pre-OVERALL_GUIDANCE section 0.399
pairs whose common prefix reaches OVERALL_GUIDANCE 8.2%

The last three rows matter for anyone planning to slice this data. The chosen and rejected critiques are not identical up to the guidance paragraph — they diverge a median of ~1859 characters before OVERALL_GUIDANCE begins, and the categorization sections differ substantially. Training only on the OVERALL_GUIDANCE span would discard ~87% of the tokens and most of the signal.

Slicing by pair type does not help either: in a DPO run on this data, the verdict-flip subset scored 0.620 held-out preference accuracy and the prose-only subset 0.618 — statistically indistinguishable.

Models trained on this dataset

Downloads last month
24

Models trained or fine-tuned on code-critic-model/PRM_1541i