Skip to content

Tell curation agents the exact existing-row field_diff - #1158

Merged
NielsRogge merged 1 commit into
mainfrom
claude/eval-update-diff-detail
Nov 23, 2026
Merged

NielsRogge merged 1 commit into
mainfrom
claude/eval-update-diff-detail

Conversation

@NielsRogge

@NielsRogge NielsRogge commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

When scheduled add-evals updates an existing evaluation row, it is accepted only if validation_evidence[].field_diff exactly equals the diff the server computes (_evaluation_changes).

  • The skill only asked for "a field-level diff", and the schema accepts any object.
  • The rejection message didn't say what was expected, so the agent's one in-job retry repeated the mistake.
  • In the last 30 days, 13 jobs on 12 papers were rejected with Evaluation update requires the exact field diff and primary evidence.
  • The whole proposal is applied or rejected as one, so new evals in the same proposal are lost as well.

Example: OBBSeg (paper 118930) failed twice trying to correct ISIC-2018 Dice from 0.95 to 0.948.

  • One run sent {"metrics": {"Dice": {"before", "after"}}}. The expected shape is {"metrics": {"before": {...}, "after": {...}}}.
  • The other run's diff disagreed with the methodology text in the row it submitted.

Change

  • The rejection message now includes the server-computed diff as JSON: …; expected field_diff for evaluation <id>: {...}. The original prefix is kept, so existing log searches still match.
  • remote-paper-curation/SKILL.md documents the exact shape, gives an example, and says how to recover from the new message. Skill text ships with the release bundle, so the jobs image doesn't need a rebuild.
  • Adds a unit test for the message.

Validation

test_codex_callback_service.py, test_codex_add_evals.py, test_trending_model_curation.py and test_paper_curation_operator_retry.py all pass (193 tests). ruff and the backend comment ratchet are clean.

🤖 Generated with Claude Code


Note

Low Risk
Documentation plus a clearer validation error string; behavior is unchanged except for the helpful diff payload in rejections.

Overview
Scheduled add-evals updates to existing rows now fail with an error that includes the server-computed field_diff as JSON (expected field_diff for evaluation <id>: {...}), so agents can fix mismatches without guessing.

remote-paper-curation/SKILL.md spells out the required diff shape (per top-level field, whole before/after values—not per-metric nesting), an example for score fixes, and how to use the new rejection message. A unit test locks in the augmented error text.

Reviewed by Cursor Bugbot for commit 8825895. Bugbot is set up for automated code reviews on this repo. Configure here.

Scheduled add-evals rejects an existing-row update unless field_diff equals the
server-computed diff, but the skill never gave the format and the error never
showed the expected value, so the in-job retry repeated the mistake: 13
rejections on 12 papers in 30 days. Return the computed diff in the rejection
and document the {"field": {"before", "after"}} shape with an example.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@NielsRogge
NielsRogge merged commit 1b011f6 into main Nov 23, 2026
6 checks passed
@NielsRogge
NielsRogge deleted the claude/eval-update-diff-detail branch November 23, 2026 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant