Skip to content

fix(evals): j5-cli runner on v0.1.11 - #1228

Merged
Jacksondr5 merged 5 commits into
j5/mainfrom
j5code/evals-runner-v0111
Nov 28, 2026
Merged

Jacksondr5 merged 5 commits into
j5/mainfrom
j5code/evals-runner-v0111

Conversation

@Jacksondr5

@Jacksondr5 Jacksondr5 commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

Problem

The evals/j5-cli runner (#1125) gave wrong results on v0.1.11 (#1205). Codex refused every T3 tool call, Claude never saw always-loaded tools, the catalog lacked v0.1.11's toolkits, and a Codex shard could crash. Two upstream settle cases also failed every correct sample, because they still expected gh pr merge after v0.1.11 told agents to use pull_request_merge. The v0.1.11 advance's eval report found these problems. Claude's decoder also dropped J5-only tool keys, which the #957 evals found.

What changed

This applies the advance's runner patch, now directly on j5/main:

  • Codex approvals: v0.1.11 full access sends mcpServer/elicitation/request before each MCP call. The runner now accepts it with toMcpElicitationResponse(params, "accept"), as J5's Codex adapter does. Before this fix, all 63 T3 calls in the advance's first Codex run were refused.
  • Always-loaded tools: each listed tool now carries its _meta, so Claude Code loads request_secret and send_to_user without ToolSearch (anthropic/alwaysLoad).
  • Catalog and results: the catalog adds ThemeToolkit, IssuesToolkit and MessageToolkit and passes the forge scope, matching McpHttpServer.layerTools. T3 calls are now answered by upstream's own answerToolCall, so secret files, forge state, page sources and $sequence mocks behave the way upstream's eval expects.
    • I made that call type-correct: it runs with Effect.orDie and FetchHttpClient.layer instead of casting the Effect's requirements away, and it uses a counter id instead of Math.random(). The HTTP client serves only upstream's shell simulator, which T3 tools never reach.
    • With that change, the runner's copies of withProductFields and SUBAGENT_WATCH_ERROR had no callers, so I removed them.
  • Grading: gradeSample now gets pastedText and worldFilePaths. test(evals): mid-turn J5 steer case (does not reproduce #1188's refusal) #1207's steer grading is not part of this PR: test(evals): mid-turn J5 steer case (does not reproduce #1188's refusal) #1207 was closed because its case never reproduced Agent messages steer into running turns by default (follow upstream's auto, retire D4's queue default) #1188.
  • J5-only tool keys (Claude): upstream's normalizeToolInput decodes against upstream's tool schemas and drops keys only J5's version adds, such as delegate_task's persona, so J5 persona calls were graded as missing their persona. keepJ5Keys merges the raw input under the normalized one. Codex keeps raw arguments and needs no change. The dropped field descriptions are a separate issue, MCP tool field descriptions on checked schemas never reach agents #1254.
  • Shard crash: the turn/interrupt request now has a .catch, so a rejected interrupt no longer kills the shard.
  • Stale settle cases (evals/mcp-tool-use/cases/orchestration.ndjson):
    • settle-after-merge-on-wake now expects pull_request_merge with expectedHeadSha containing abc1234. It used to expect Bash gh pr merge.
    • settle-after-delayed-merge-waits now accepts watch_pull_request by url, or by repository together with number, which is what Claude passes. A bare number is not accepted, because the real tool refuses it (d3abedec64, after a Giveback dispatcher review).
    • I regraded the advance's saved samples offline. Every sample of these two cases moved from fail to pass: 6 Claude and 2 Codex for settle-after-merge-on-wake, and 4 Claude for settle-after-delayed-merge-waits. The 2 Codex samples of settle-after-delayed-merge-waits already passed and still do.

This PR is now based on j5/main (after #1125 merged) and no longer stacks on #1194 or #1207.

Smoke results

One sample each, --catalog j5, --shards 1, on the earlier stacked commit b2b89067da (before keepJ5Keys; no new runs for this rebase, since runs need approval):

Harness, model Upstream case J5 case Pass
Claude Code 2.1.326, claude-sonnet-5-5 settle-after-merge-on-wake ✅ j5-mid-turn-steer-acts ✅ (case from #1207, not in this PR) 2/2
Codex 0.169.0, gpt-6.1-sol (high) settle-after-merge-on-wake ✅: MCP approvals were accepted crew-member-done ✅ 2/2

Usage (subscriptions):

  • Claude agent: 35,916 input, 159,720 cached and 1,041 output tokens. Claude Code reports this as about $0.17 at API prices.
  • Codex agent: 50,042 input, 160,768 cached and 730 output tokens.
  • Shell simulator: 0 tokens on both runs.

Upstream impact

  • evals/mcp-tool-use/cases/orchestration.ndjson is upstream-owned. FORK.md records the edit as a temporary in-place patch ("Two settle eval cases grade the merge tools v0.1.11 introduced") and adds a path-ledger row. Upstream's main still has both stale cases, so they are a give-back candidate.

Checklist

  • One concern: the description has no "also"
  • Tests cover the changed behavior: j5-cli/upstream.test.ts and mcp-tool-use/run.test.ts pass, and the smoke runs above exercise the changed paths
  • UI changes: none
  • Live testing: not applicable (eval tooling only)
  • Upstream-owned files: each one is recorded in FORK.md (case text and file-table row) in this PR
  • Upstream product: no change to what upstream's product does
  • Surfaces: eval tooling only; both harnesses were smoke-tested
  • Docs: no definitions change

Claude Opus 5.5 in Claude Code (J5 Code).

🤖 Generated with Claude Code

@vercel

vercel Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
j5-code Ready Ready Preview Nov 28, 2026 9:43pm UTC

Request Review

@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:XXL 1,000+ effective changed lines (test files excluded in mixed PRs). labels Nov 24, 2026
@Jacksondr5
Jacksondr5 force-pushed the j5code/evals-mid-turn-steer branch from dbc4b9c to 2b50034 Compare November 24, 2026 03:14
@github-actions github-actions Bot added size:L 100-499 effective changed lines (test files excluded in mixed PRs). and removed size:XXL 1,000+ effective changed lines (test files excluded in mixed PRs). labels Nov 24, 2026
Jacksondr5 and others added 4 commits November 28, 2026 16:37
- Codex: accept MCP elicitations (tool-call approvals) as J5's adapter does in full access,
  and catch a turn/interrupt rejection that crashed a shard.
- Claude: pass each tool's _meta, so always-loaded tools (request_secret, send_to_user) load.
- List v0.1.11's Theme, Issues and Message toolkits and the forge scope, and answer T3 calls
  through upstream's answerToolCall, which replaces the runner's mirrored result shaping.
- Grade with upstream's pasted text and world files, alongside #1207's steer checks.
- settle-after-merge-on-wake and settle-after-delayed-merge-waits grade the merge tools
  v0.1.11 introduced (FORK.md temporary in-place patch).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… accepts

Review (Giveback dispatcher): a bare number has no repository, so the real
watch_pull_request refuses it with PullRequestTargetIncompleteError.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Upstream's decoder drops keys J5's version of a tool adds, such as
delegate_task's persona, so persona cases graded an input without it.
Carried over from #957's eval work.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Jacksondr5
Jacksondr5 force-pushed the j5code/evals-runner-v0111 branch from d3abede to 5692db5 Compare November 28, 2026 21:39
@Jacksondr5
Jacksondr5 changed the base branch from j5code/evals-mid-turn-steer to j5/main November 28, 2026 21:39
@Jacksondr5
Jacksondr5 marked this pull request as ready for review November 28, 2026 21:39
@coderabbitai

coderabbitai Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 30 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between ec338e5 and 0a3cad2.

Files selected for processing: 6

  • FORK.md
  • evals/j5-cli/claude.ts
  • evals/j5-cli/codex.ts
  • evals/j5-cli/run.ts
  • evals/j5-cli/upstream.ts
  • evals/mcp-tool-use/cases/orchestration.ndjson
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions github-actions Bot added size:XXL 1,000+ effective changed lines (test files excluded in mixed PRs). size:L 100-499 effective changed lines (test files excluded in mixed PRs). and removed size:L 100-499 effective changed lines (test files excluded in mixed PRs). size:XXL 1,000+ effective changed lines (test files excluded in mixed PRs). labels Nov 28, 2026
@Jacksondr5
Jacksondr5 enabled auto-merge (squash) November 28, 2026 21:42
@Jacksondr5
Jacksondr5 merged commit c1deeb4 into j5/main Nov 28, 2026
39 checks passed
@Jacksondr5
Jacksondr5 deleted the j5code/evals-runner-v0111 branch November 28, 2026 22:01

This branch was successfully deployed

1 active deployment
Preview — 0a3cad2b Deployed Nov 28, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L 100-499 effective changed lines (test files excluded in mixed PRs). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant