Skip to content

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

Draft
Jacksondr5 wants to merge 3 commits into
j5code/evals-mid-turn-steerfrom
j5code/evals-runner-v0111
Draft

Jacksondr5 wants to merge 3 commits into
j5code/evals-mid-turn-steerfrom
j5code/evals-runner-v0111

Conversation

@Jacksondr5

@Jacksondr5 Jacksondr5 commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

Problem

The evals/j5-cli runner (#1125, with #1194 and #1207 stacked on it) 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 advance's eval report found these problems: /mnt/storage/j5/upstream-0.1.11-review/evals-report.md, "The runner needed four fixes for head".

What changed

This applies the advance's runner patch (evals-runs/runner-patch-for-head.diff), adapted to the rebased stack:

  • 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. The patch conflicted with test(evals): mid-turn J5 steer case (does not reproduce #1188's refusal) #1207 at this line, and I kept test(evals): mid-turn J5 steer case (does not reproduce #1188's refusal) #1207's gradeSteer checks next to them.
  • 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.

The stack itself is rebased onto j5/main at aabc4a14c2 in this branch only. FORK.md's knip case 95 had a conflict: I kept v0.1.11's text and added the evals workspace sentence. The base branches have not been force-pushed yet, so until #1125, #1194 and #1207 are rebased, GitHub shows the whole advance in this diff. The changes for this PR are the last two commits.

Smoke results

One sample each, --catalog j5, --shards 1, on commit b2b89067da:

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 ✅: the steered message was acted on 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

Jacksondr5 and others added 2 commits November 23, 2026 21:09
- 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 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@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 24, 2026 3:21am 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
… 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 <noreply@anthropic.com>
@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

This branch was successfully deployed

1 active deployment
Preview — d3abedec Deployed Nov 24, 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