Repository navigation
Tell curation agents the exact existing-row field_diff - #1158
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
When scheduled
add-evalsupdates an existing evaluation row, it is accepted only ifvalidation_evidence[].field_diffexactly equals the diff the server computes (_evaluation_changes).Evaluation update requires the exact field diff and primary evidence.Example: OBBSeg (paper 118930) failed twice trying to correct ISIC-2018 Dice from 0.95 to 0.948.
{"metrics": {"Dice": {"before", "after"}}}. The expected shape is{"metrics": {"before": {...}, "after": {...}}}.Change
…; expected field_diff for evaluation <id>: {...}. The original prefix is kept, so existing log searches still match.remote-paper-curation/SKILL.mddocuments 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.Validation
test_codex_callback_service.py,test_codex_add_evals.py,test_trending_model_curation.pyandtest_paper_curation_operator_retry.pyall 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_diffas JSON (expected field_diff for evaluation <id>: {...}), so agents can fix mismatches without guessing.remote-paper-curation/SKILL.mdspells out the required diff shape (per top-level field, wholebefore/aftervalues—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.