Skip to content

fix(bench): a grader grades a hand-in, never a desk - #4761

Merged
joelteply merged 1 commit into
canaryfrom
feat/grade-the-hand-in
Oct 5, 2026
Merged

joelteply merged 1 commit into
canaryfrom
feat/grade-the-hand-in

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Agreed with Cormac and Fable: a grader grades what was handed in, never a desk.

Before: swe_verdict_sweep ran every 180 s, and once at boot, grading every staged copy in every citizen's workspace that had work and no fresh verdict. On 2026-10-05 it ran 385 unreadable diffs in 50 minutes over Kimi's autopilot-staged copies, though she had chosen no benchmark.

Now:

  • work/submit spawns benchmark_grade::grade_submission after a successful publish on a SWE bench card.
  • The submitted patch is read back from the artifact store by its published hash, so the grade covers exactly what she handed in even if her checkout moved on.
  • It is graded with grade_swe in a fresh clone at the base. That records the verdict and follows it onto the board, as every grade path does.
  • A card that is not a SWE bench card returns at once.
  • An infra error records the standing env refusal (which the sweep used to write) and posts the same infra line. Failures to read or post are probes.
  • The desk sweep's two runners, the 180 s tick and the boot reconciliation, are removed.

Not in this PR, stated plainly:

  1. Cormac's addition: publishing the verdict as a work/review on the submission, under the grader's identity, so the citizen perceives it where she looks. It needs the review-card claim path; it is next, on top of this.
  2. swe_verdict_sweep::{sweep, sweep_if_due, pending, ...} are now unreferenced. They were the only grader for detached agent/solve artifacts that have no card, so deleting them waits on that runner's retirement (BENCHMARKS-ARE-ADAPTERS-NOT-A-RUNNER).

Tests: benchmark_grade, swe_verdict_sweep, work::submission, verdict_board: 36 passed.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc

swe_verdict_sweep ran every 180 s and at boot, grading every staged copy in
every citizen's workspace that had work and no fresh verdict. It graded DESKS:
on 2026-10-05 it ran 385 unreadable diffs in 50 minutes over Kimi's
autopilot-staged copies, though she had chosen no benchmark.

work/submit now spawns benchmark_grade::grade_submission after a publish on a
SWE bench card: the patch she handed in is read back from the artifact store
by its published hash and graded with grade_swe in a fresh clone at the base,
which records the verdict and follows it onto the board as every grade path
does. A non-bench card returns at once. An infra error records the standing
env refusal the sweep used to write and posts the same infra line.

The desk sweep's runners (the tick and the boot reconciliation) are removed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc
@joelteply
joelteply enabled auto-merge (squash) October 5, 2026 03:34
@joelteply
joelteply merged commit 9448b54 into canary Oct 5, 2026
7 checks passed
@joelteply
joelteply deleted the feat/grade-the-hand-in branch October 5, 2026 03:50
joelteply added a commit that referenced this pull request Oct 5, 2026
…edit (#4765)

Settlement fired only from a benchmark instance's recorded verdict, so a card on a project board (Career Wrangler, the paper pass) earned staged credit all day that nothing could ever settle: Kimi, 2026-10-05, 27 staged, 0 settled, and none of her real work reaching her curriculum. The room judges real work by a peer's review on the submission, so the typed review event (WorkSubmissionReviewed, already decoded once at the inbound seam for her perception) now also settles the card's credit for every resident who worked it: Passed as success, Failed as failure with the verdict kept, Unknown settles nothing. The benchmark grader posts its verdict as a review too since #4761, so inside that one game the same path serves; the code reads a review and never asks who reviewed. Pure classification (review_settlement) tested.


Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

Co-authored-by: Claude Fable 5.1 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant