Skip to content

The recommendation judge's calibration test checks two real captured questions (GST-3447) - #4705

Merged
capy-ai[bot] merged 3 commits into
mainfrom
auq-format-gate-scores-substance-by-median-of-three
Nov 23, 2026
Merged

capy-ai[bot] merged 3 commits into
mainfrom
auq-format-gate-scores-substance-by-median-of-three

Conversation

@garrytan

@garrytan garrytan commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

The recommendation judge's calibration test now checks two real captured questions, one on each side of the pass line, so a judge-model change can't silently change what the AskUserQuestion format eval passes.
Why: after the judge moved to Haiku 5.5, the format eval started failing on recommendations the old judge passed, and no calibration case covered that boundary.
Nothing to do.

What changed and the evidence
  • test/llm-judge-recommendation.test.ts + test/fixtures/judge-recommendation/: two captured questions from the runs after /eval-plan refuses gpt-4o and older-generation models in every role, and asks for 100 judge labels from 2026-11-22 (GST-3384) #4630. 44962016350's reason names the tradeoff against adding scope and must score at least 4 (Haiku 5.5: 15/15 samples at 4 or 5; Sonnet 5.5: 10/10 at 5). 44955253712's reason rests on the plan's category and must score below 4 (Haiku 5.5: 25/25 at 3; Sonnet 5.5: 9/10). With the old Haiku 4.5 judge swapped back in, the test fails on the second one (it scores it 5).
  • test/helpers/touchfiles-data.ts: the calibration case reruns when its fixtures change.
  • The format eval itself is unchanged and still scores one judge sample. An earlier commit on this branch moved it to the median of three samples; more samples showed that makes it slightly more likely to fail on the question that motivated it (run 44952328945: Haiku 5.5 scores it 3 in 25 of 41 draws), so that change was dropped. The fix for those failures is a wording change in plan-ceo-review (GST-3536).
Documentation

Scope

The branch changes are test-side only: two captured judge fixtures under test/fixtures/judge-recommendation/, two new calibration assertions in test/llm-judge-recommendation.test.ts, a fixtures glob in test/helpers/touchfiles-data.ts, and a changelog.d fragment. No user-facing behavior or documented interface changed.

Result

Current. No documentation files were edited. CONTRIBUTING.md:555 still describes test/llm-judge-recommendation.test.ts accurately. CHANGELOG.md, TODOS.md, VERSION and git were not touched.

Debt

docs/evals/detector-inventory.md:294 cites test/llm-judge-recommendation.test.ts at :42-163. The 20 lines added inside that range probably leave the citation about 20 lines short. This is minor citation drift and was left unedited.

Agent notes

Approvals

Approved: yes (record r-d000b7b2c97e). The full approval record stays private.
Plan: exempt: bug fix (R65)
Plan check: exempt bug fix

Ruled note: test/skill-e2e-ask-user-question-format-compliance.test.ts:61:functional-contract at c0034ce ruled by GSTA-36 (relayed from GSTA-36:2026-11-22T13:34:47.083Z) at 2026-11-22T13:34:47.492Z: pre-existing main behavior outside this PR diff; GST-3536 fixes the briefs it reds on (approval a-1638d10caaef)

Ruling A from GStack Minder on GST-3447 (2026-11-22), revised the same day after the correction: "A. Drop the panel switch and ship only the calibration fixtures with the docs and touchfile lines." No paid rerun of the format gate (the 8-hour release gate runs it). Calibration case run locally on Haiku 5.5 (pass) and with Haiku 4.5 swapped in (fails on the category-led fixture, as intended). Run 44952328945's question is not a gating fixture: it would fail about a third of the time on either side of the line.

Closed by fix c0034ce: p1/outside-voice#1 (a later full review at c0034ce read it clean)

{
  "schema_version": 1,
  "pr": 4705,
  "head": "9e76f34890fbd0ba66658bf40d02737813811f09",
  "version": "1.102.2.0",
  "base": "main",
  "gate": {
    "free": {
      "pass": 1763,
      "fail": 0,
      "skip": 0
    }
  },
  "ci_carried": [
    {
      "lane": "free",
      "run": 45099303431,
      "attempt": 1,
      "tree": "0ded655595e9433a65f13ed304a3684dfa536b76"
    }
  ],
  "calls": 235,
  "session_kind": "unattended",
  "run": "ship-4705",
  "head_tree": "0ded655595e9433a65f13ed304a3684dfa536b76",
  "product_patch_id": "none",
  "gstack_version": "1.102.2.0",
  "review_depth": {
    "depth": "light",
    "class": "tests",
    "runtime_lines": 0,
    "rules": "33831f8248a814fd",
    "base": "ccd80de8ebdd7ca3384cc54bc138b53cd311a732",
    "registry": "ccd80de8ebdd7ca3384cc54bc138b53cd311a732",
    "gate_scan": {
      "tagged": 0,
      "head": "9e76f34890fbd0ba66658bf40d02737813811f09"
    },
    "reasons": [
      "runtime=0"
    ],
    "risk": [],
    "mode": "panel"
  },
  "pregate": "requires-remote cleared @0ded655595e9 (8 checks, current for 9e76f34890fb)",
  "requires_remote": [
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/45099303431/attempts/1",
    "pregate.json/remote_gate: remote-gate tree=0ded655595e9 tests=39116 skipped=67 runs=45099303431/1 profiles=ci-reuse/free-tests heads=9e76f34890fb verified=2026-11-23T02:24:25.561Z"
  ],
  "issues": {
    "fixes": [],
    "refs": [],
    "flakes": []
  },
  "docs": {
    "status": "current",
    "scope": "README.md, CONTRIBUTING.md and docs/ (155 files), against the branch's test-only diff"
  },
  "review_loop": {
    "passes": 2,
    "blocking_found": 2,
    "deferred": 0,
    "noted": 1,
    "fixed": 1,
    "scope": "frozen",
    "rounds": 2,
    "dispatches": {
      "specialist": 2
    }
  },
  "cleared_by_trailer": [
    {
      "id": "p1/outside-voice#1",
      "commit": "c0034ce3382a9bfdb3206b81af1fa868321f5dad",
      "review": "c0034ce3382a9bfdb3206b81af1fa868321f5dad"
    }
  ],
  "ruled_notes": [
    {
      "finding": "test/skill-e2e-ask-user-question-format-compliance.test.ts:61:functional-contract",
      "head": "c0034ce3382a9bfdb3206b81af1fa868321f5dad",
      "by": "GSTA-36",
      "reason": "pre-existing main behavior outside this PR diff; GST-3536 fixes the briefs it reds on",
      "at": "2026-11-22T13:34:47.492Z",
      "approval": "a-1638d10caaef",
      "relayed": "GSTA-36:2026-11-22T13:34:47.083Z"
    }
  ],
  "gate_dispositions": []
}
{"head":"c0034ce3382a9bfdb3206b81af1fa868321f5dad","run":"ship-4705","mark":"stop","tree":"f28c9c7edf6093590f6d4eec71cc1cf2a7c16fe6","at":"2026-11-22T13:33:48.894Z"}
{
  "schema_version": 1,
  "pr": 4705,
  "head": "9e76f34890fbd0ba66658bf40d02737813811f09",
  "version": "1.102.2.0",
  "base": "main",
  "gate": {
    "free": {
      "pass": 1763,
      "fail": 0,
      "skip": 0
    }
  },
  "ci_carried": [
    {
      "lane": "free",
      "run": 45099303431,
      "attempt": 1,
      "tree": "0ded655595e9433a65f13ed304a3684dfa536b76"
    }
  ],
  "calls": 235,
  "session_kind": "unattended",
  "run": "ship-4705",
  "head_tree": "0ded655595e9433a65f13ed304a3684dfa536b76",
  "product_patch_id": "none",
  "gstack_version": "1.102.2.0",
  "review_depth": {
    "depth": "light",
    "class": "tests",
    "runtime_lines": 0,
    "rules": "33831f8248a814fd",
    "base": "ccd80de8ebdd7ca3384cc54bc138b53cd311a732",
    "registry": "ccd80de8ebdd7ca3384cc54bc138b53cd311a732",
    "gate_scan": {
      "tagged": 0,
      "head": "9e76f34890fbd0ba66658bf40d02737813811f09"
    },
    "reasons": [
      "runtime=0"
    ],
    "risk": [],
    "mode": "panel"
  },
  "pregate": "requires-remote cleared @0ded655595e9 (8 checks, current for 9e76f34890fb)",
  "requires_remote": [
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/45099303431/attempts/1",
    "pregate.json/remote_gate: remote-gate tree=0ded655595e9 tests=39116 skipped=67 runs=45099303431/1 profiles=ci-reuse/free-tests heads=9e76f34890fb verified=2026-11-23T02:24:25.561Z"
  ],
  "issues": {
    "fixes": [],
    "refs": [],
    "flakes": []
  },
  "docs": {
    "status": "current",
    "scope": "README.md, CONTRIBUTING.md and docs/ (155 files), against the branch's test-only diff"
  },
  "review_loop": {
    "passes": 2,
    "blocking_found": 2,
    "deferred": 0,
    "noted": 1,
    "fixed": 1,
    "scope": "frozen",
    "rounds": 2,
    "dispatches": {
      "specialist": 2
    }
  },
  "cleared_by_trailer": [
    {
      "id": "p1/outside-voice#1",
      "commit": "c0034ce3382a9bfdb3206b81af1fa868321f5dad",
      "review": "c0034ce3382a9bfdb3206b81af1fa868321f5dad"
    }
  ],
  "ruled_notes": [
    {
      "finding": "test/skill-e2e-ask-user-question-format-compliance.test.ts:61:functional-contract",
      "head": "c0034ce3382a9bfdb3206b81af1fa868321f5dad",
      "by": "GSTA-36",
      "reason": "pre-existing main behavior outside this PR diff; GST-3536 fixes the briefs it reds on",
      "at": "2026-11-22T13:34:47.492Z",
      "approval": "a-1638d10caaef",
      "relayed": "GSTA-36:2026-11-22T13:34:47.083Z"
    }
  ],
  "gate_dispositions": []
}

Open in Capy

…of three judge samples (GST-3447)

The AskUserQuestion format eval now scores the recommendation by the median of three judge samples, and the judge's calibration test gains two real captured questions on either side of the pass line.
Why: one judge sample on the same question scored 3 or 4 by chance, so main's eval flipped red and green without any change to the skill.
Nothing to do.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@trunk-io

trunk-io Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

…he calibration captures ship

More judge samples showed the median of three makes the eval slightly more likely to fail on the capture that motivated it, so the panel switch is dropped (GST-3447).

Review-Finding: p1/outside-voice#1 reader=outside-voice
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@capy-ai capy-ai Bot changed the title The AskUserQuestion format eval scores recommendations by the median of three judge samples (GST-3447) The recommendation judge's calibration test checks two real captured questions (GST-3447) Nov 22, 2026
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant