From 07d2a21d97792c51e56cec170318118032838acf Mon Sep 17 00:00:00 2001 From: Kyle Sexton <153232337+kyle-sexton@users.noreply.github.com> Date: Wed, 28 Oct 2026 21:42:36 -0400 Subject: [PATCH 1/2] fix(app-control): judge the map-refreshes-each-control-skill reply as a plan The judge failed every correct reply: the criteria asked the reply to commit and switch, which the prompt forbids, and required each upkeep branch cut from main where refresh.md cuts it from the fetched tip. The criteria now judge the plan and accept the fetched tip and the documented no-pull-request-tool fallback; the scaffold adds the origin remote the pass fetches from. Closes #10752 Co-Authored-By: Claude Opus 5.5 --- .../fix-10752-map-refresh-eval-grader-8d41c6b2.md | 7 +++++++ .../evals/map-refreshes-each-control-skill/case.yaml | 6 +++--- .../evals/map-refreshes-each-control-skill/scaffold.sh | 6 ++++++ 3 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 .changes/app-control/fix-10752-map-refresh-eval-grader-8d41c6b2.md diff --git a/.changes/app-control/fix-10752-map-refresh-eval-grader-8d41c6b2.md b/.changes/app-control/fix-10752-map-refresh-eval-grader-8d41c6b2.md new file mode 100644 index 00000000000..49c37e70c35 --- /dev/null +++ b/.changes/app-control/fix-10752-map-refresh-eval-grader-8d41c6b2.md @@ -0,0 +1,7 @@ +--- +bump: patch +--- + +### Fixed + +- **The `map-refreshes-each-control-skill` eval case passes a correct refresh plan.** Its judge failed every correct reply: the criteria asked the reply to commit and switch, while the prompt forbids both, so the judge failed a plan for not running; and they required each upkeep branch cut from `main`, where the refresh rules cut it from the fetched default-branch tip. The criteria now judge the plan, accept the fetched tip and the documented fallback when no pull-request tool is available, and still fail a shared branch or pull request, a second branch cut from or merging the first, a missing return to `main`, or asking which skill. The scaffold now adds the `origin` remote the pass fetches from, and the prompt states it. diff --git a/plugins/app-control/evals/map-refreshes-each-control-skill/case.yaml b/plugins/app-control/evals/map-refreshes-each-control-skill/case.yaml index 65377020381..b389273257f 100644 --- a/plugins/app-control/evals/map-refreshes-each-control-skill/case.yaml +++ b/plugins/app-control/evals/map-refreshes-each-control-skill/case.yaml @@ -2,11 +2,11 @@ schema_version: "1.1" name: map-refreshes-each-control-skill description: A bare unattended refresh over two control skills refreshes each in turn on its own upkeep branch and returns to the starting branch between them. A run needs --scaffold, which seeds both control skills on main tags: [map, refresh, branch, unattended, invented] -expected_outcome: "The reply finds both control skills and, without asking which, plans them one after the other: control-admin's correction committed on control-skill-upkeep/control-admin and control-shop's on control-skill-upkeep/control-shop, each branch created from main, each commit holding only that skill's files and going out in that skill's own pull request. Between the two skills it switches back to main, the branch the pass started on, so the second skill is never refreshed on the first skill's upkeep branch. Nothing is switched, written or committed in this session." +expected_outcome: "The reply finds both control skills and, without asking which, plans them one after the other: control-admin's correction committed on control-skill-upkeep/control-admin and control-shop's on control-skill-upkeep/control-shop, each branch created from the default branch main's fetched tip (origin/main, FETCH_HEAD), each commit holding only that skill's files and going out in that skill's own pull request. Between the two skills it switches back to main, the branch the pass started on, so the second skill is never refreshed on the first skill's upkeep branch. Nothing is switched, written or committed in this session." context: scaffold_script: scaffold.sh execution: - prompt: "/app-control:map refresh --unattended. Read the control skills, but do not drive the app, switch branches, write or commit anything in this session. The pass starts on main. There is no shell: `git ls-files` lists every control skill file, and `git status --porcelain --untracked-files=all` from the repository root prints nothing, before and between the two skills. For each control skill, treat the decide step as printing `run` and the source wave and live pass as already run: control-admin's users feature now lives at `/admin/users` (admin/users.py:4), which works, and `/admin/people` returns 404; control-shop's cart button is now labeled `Add to cart` (shop/cart.py:9) and works. Nothing else differs. In order, name each branch you would be on for each control skill, where each commit goes, which pull request each change goes in, and what happens between the two skills, then stop." + prompt: "/app-control:map refresh --unattended. Read the control skills, but do not drive the app, switch branches, write or commit anything in this session. The pass starts on main. `origin` is the only remote, its default branch is main, and `git fetch origin main` succeeds. There is no shell: `git ls-files` lists every control skill file, and `git status --porcelain --untracked-files=all` from the repository root prints nothing, before and between the two skills. For each control skill, treat the decide step as printing `run` and the source wave and live pass as already run: control-admin's users feature now lives at `/admin/users` (admin/users.py:4), which works, and `/admin/people` returns 404; control-shop's cart button is now labeled `Add to cart` (shop/cart.py:9) and works. Nothing else differs. In order, name each branch you would be on for each control skill, where each commit goes, which pull request each change goes in, and what happens between the two skills, then stop." allowed_tools: [Read, Glob, Grep] max_turns: 10 timeout_seconds: 400 @@ -17,4 +17,4 @@ graders: arm: both - name: one-branch-per-skill type: llm - criteria: "PASS only if the reply (1) refreshes both control skills in turn without asking which, (2) commits control-admin's correction only on control-skill-upkeep/control-admin and control-shop's only on control-skill-upkeep/control-shop, each commit holding only that skill's files, (3) creates or updates each upkeep branch from main, the default branch, and opens or updates one pull request per skill, and (4) switches back to main, the starting branch, after the first skill and before the second skill's work starts. FAIL if both skills share one branch or one pull request, if the second skill is branched from, edited on or committed to the first skill's upkeep branch, if it never returns to main between the two skills, or if it stops to ask which skill to refresh." + criteria: "The prompt forbids switching, writing or committing, so the reply is a plan and each clause is judged on what it plans; that nothing was executed is expected, never a reason to FAIL. PASS only if the reply (1) plans both control skills in turn without asking which, (2) plans control-admin's correction committed only on control-skill-upkeep/control-admin and control-shop's only on control-skill-upkeep/control-shop, each commit holding only that skill's files, (3) plans each upkeep branch created from the default branch main's tip, or that tip merged into an existing one (main, origin/main, the fetched FETCH_HEAD or 'the fetched default-branch tip' all name this tip; saying it is not a stale local main is correct), and plans each skill its own pull request, opened or updated, or, when it says the pull-request tool is unavailable, says each skill's commit still needs its own pull request, and (4) plans switching back to main, the starting branch, after the first skill and before the second skill's work starts. FAIL if the plan has both skills share one branch or one pull request, if the second skill's branch is created from or merges the first skill's upkeep branch, if the second skill is edited or committed on the first skill's upkeep branch, if it never returns to main between the two skills, or if it stops to ask which skill to refresh." diff --git a/plugins/app-control/evals/map-refreshes-each-control-skill/scaffold.sh b/plugins/app-control/evals/map-refreshes-each-control-skill/scaffold.sh index 5ecb470bf33..2a5b261eb8b 100755 --- a/plugins/app-control/evals/map-refreshes-each-control-skill/scaffold.sh +++ b/plugins/app-control/evals/map-refreshes-each-control-skill/scaffold.sh @@ -84,3 +84,9 @@ git add -A git commit -q -m "Admin console and shop with their control skills" # Name the starting branch main whatever branch an existing repository started on. git branch -M main +# Give the pass the origin remote it fetches the default branch from. The bare repository sits under +# .git, so it stays out of git status. +origin="$(git rev-parse --absolute-git-dir)/origin.git" +git init -q --bare -b main "$origin" +git remote add origin "$origin" +git push -q origin main From 4c852bb2a64735e342f340754892ec9a6f59ee82 Mon Sep 17 00:00:00 2001 From: Kyle Sexton <153232337+kyle-sexton@users.noreply.github.com> Date: Wed, 28 Oct 2026 22:02:48 -0400 Subject: [PATCH 2/2] fix(app-control): point origin at the scaffold's bare repo when origin exists The scaffold runs in an existing repository when one is present, and that repository can already have an origin; git remote add then aborted the scaffold under set -e. Add the remote, else repoint it. Co-Authored-By: Claude Opus 5.5 --- .../evals/map-refreshes-each-control-skill/scaffold.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/app-control/evals/map-refreshes-each-control-skill/scaffold.sh b/plugins/app-control/evals/map-refreshes-each-control-skill/scaffold.sh index 2a5b261eb8b..3e97518bd3f 100755 --- a/plugins/app-control/evals/map-refreshes-each-control-skill/scaffold.sh +++ b/plugins/app-control/evals/map-refreshes-each-control-skill/scaffold.sh @@ -88,5 +88,5 @@ git branch -M main # .git, so it stays out of git status. origin="$(git rev-parse --absolute-git-dir)/origin.git" git init -q --bare -b main "$origin" -git remote add origin "$origin" +git remote add origin "$origin" 2>/dev/null || git remote set-url origin "$origin" git push -q origin main