Skip to content

Run live-model behaviour checks and quality judges nightly, report-only #1601

Closed

Description

@waynesun09

Problem

Since 2026-08-13, no live-model behaviour check (finding_expectations, required_labels, expected_files, risk_label_present) and no LLM quality judge (review_quality, triage_quality) has caught an agent regression in the functional evals. When they failed, the follow-up was loosening the case (for example #1232), not fixing the agent. The failures that did matter were whole cases exiting non-zero: a sandbox, provider or harness that would not load.

Phase 1: done in #1649

Behaviour checks, quality judges and budget judges are report-only in every tier (eval/run-functional.sh drops their thresholds at runtime). Only a non-zero case exit, pr_created, new_commit and sandbox_started gate. Triage 003 has its own fixture repo.

Phase 2: nightly verdict over the last 3 nightly runs (this issue's remaining scope)

The nightly full tier fails on a behaviour check only when a case fails it on 2 of the last 3 nightly runs, and on a quality judge only when the median of the last 3 nightly runs misses its threshold. One nightly run per night, so no extra cost and no extra fixture repo creation. The previous two runs' results come from their eval-results-<agent> artifacts (kept 30 days).

Code agent part (no edits under .github/workflows/)

  1. New eval/scripts/aggregate-nightly.sh <eval.yaml> <summary.yaml> [<summary.yaml> ...], bash + yq, like the other eval scripts. Summaries are given newest first, 1 to 3 of them. Each is a run's summary.yaml, which has judges.<name>.pass_rate, .mean, .scored_cases and per_case.<case>.<judge>.value.
    • Behaviour checks: finding_expectations, required_labels, forbidden_labels, risk_label_present, expected_files, when the checked-in eval.yaml gives them a min_pass_rate. Vote per case, from per_case.<case>.<judge>.value: a case fails the check when its value is false in at least 2 of the given runs. The check's nightly pass rate is the share of cases (seen in at least one run) that do not fail; the verdict is FAIL when it is below min_pass_rate. This filters a flake that hits a different case each night, but not a case that keeps failing.
    • Missing data counts as neither pass nor fail: a case or judge absent from a run, a null value, or a judge with scored_cases: 0. A run whose cases failed before the agent ran (an infrastructure night) must not count against a check.
    • Quality judges: names ending in _quality, when eval.yaml gives them a min_mean. The verdict is FAIL when 3 non-null mean values are given and their median is below min_mean. With fewer than 3, report "insufficient history" and do not fail.
    • Budget judges (max_turns, max_cost) and the contract judges are out of scope: not aggregated.
    • Output: one line per judge with each run's value and the verdict, plus a final NIGHTLY VERDICT: PASS|FAIL line. When GITHUB_STEP_SUMMARY is set, also append a Markdown table to it.
    • Exit 0 on PASS, 1 on FAIL, 2 on a usage or input error (no summaries, more than 3, or a given file that is missing or not valid YAML). The workflow passes only the summaries that exist, so an absent previous run is not an error.
  2. eval/scripts/aggregate-nightly-test.sh, added to script-test in the Makefile. Cover: a case failing a check in 1 of 3 runs gives PASS; the same case failing in 2 of 3 gives FAIL; different cases each failing once (the flake pattern) gives PASS; a run with scored_cases: 0 is ignored; a null or missing judge in one run; a judge with no threshold in eval.yaml ignored; quality means [3, 4, 5] against min_mean: 3.5 gives PASS (median 4), [2, 2, 5] gives FAIL; fewer than 3 quality samples gives no FAIL; usage errors exit 2.
  3. eval/README.md: describe the nightly verdict next to the Tiers section.

Maintainer part: do NOT implement (added to the same PR after the code agent)

No edits under .github/workflows/ from the code agent. For reference only: wire it into functional-tests-nightly.yml: after the run, for each agent, download eval-results-<agent> from the previous 2 completed nightly runs on main, run aggregate-nightly.sh on the current and previous summaries, fail the nightly on a FAIL verdict, and include the verdict in the tracking-issue report. The PR closes this issue. PR, merge-queue and release runs stay as Phase 1 left them.

Activity

  1. fullsend-ai-triage commented on Oct 3, 2026

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 1:40 PM UTC · Completed 1:44 PM UTC

    Commit: 93c6982 · View workflow run →

    Runtime: claude · Model: sonnet → claude-sonnet-5 · Effort: high · Cost: $0.50

  2. fullsend-ai-triage commented on Oct 3, 2026

    @fullsend-ai-triage

    This spans both the eval harness scoring logic (eval/run-functional.sh) and three workflow files that currently run the full suite — including the live-model behaviour checks and LLM quality judges this issue wants moved to nightly — on pull_request_target, push, and merge_group (functional-tests.yml, behaviour-tests.yml, plus the nightly cron dispatcher functional-tests-nightly.yml).

    Note for maintainers: because the fix requires editing .github/workflows/*.yml, the code agent cannot implement this under its current permissions — expect to need a human-authored PR or explicit maintainer action for the workflow portions, even though the scoring/aggregation logic in eval/run-functional.sh could be coded normally.

    No open PR or duplicate issue was found addressing this (searched for "nightly", "report-only", "quality judge", and "behaviour check nightly"). #1580 is related (also about what should gate the release tier) but is a narrower, distinct question about budget judges — not a duplicate of this broader PR/merge-queue-vs-nightly restructuring.

    Test: nightly aggregation and PR-gating boundaries
    - A behaviour check that fails exactly 1 of 3 synthetic nightly runs is reported but does not fail the nightly job.
    - The same check failing 2 of 3 runs does fail the nightly job.
    - A quality judge given synthetic scores [3, 4, 5] across 3 samples reports the median (4), not the mean or a single sample.
    - A deterministic contract check (e.g. non-zero case exit) still fails a PR/merge-queue run on its first run.
    - Each agent's existing release:true canary case still runs and gates PRs/releases unchanged.
    

    Labels: Matches this repo's convention of labeling CI/eval-tier infra change requests (e.g. #1573, #1579, #1591) as feature/enhancement.


    Next steps:

    • /fs-code — agent creates a PR to implement this issue
    • /fs-code <your instruction> — agent implements with your specific guidance
  3. waynesun09 commented on Oct 3, 2026

    @waynesun09
    MemberAuthor

    One case to cover here: triage 003-feature-request expects triaged + feature, but its fixture repo has no GET /api/users endpoint (only an auth module). On Sonnet 5.5 the triage agent asks where the endpoint lives and applies needs-info (3 of 3 runs). Either add the endpoint the issue describes to the case's repo, or accept needs-info as a correct outcome. Triage case 001 had the same kind of gap; #1599 gives it its own repo with the decode path.

  4. waynesun09 commented on Oct 3, 2026

    @waynesun09
    MemberAuthor

    Adding a fixture-consistency item to this issue's scope.

    Moving the evals to Sonnet 5.5 (#1599) exposed fixtures whose issue or PR refers to code that isn't in the fixture repo. Sonnet checks the code, finds the gap and answers needs-info, so a careful agent fails the case. Opus guessed past the gap.

    Known cases:

    Ask:

    1. Audit every eval case: each file, endpoint, symbol and label its issue or PR refers to must exist in its fixture repo (or the fixture's labels). The expected outcome should be what a careful engineer would conclude from that repo alone. Fix the gaps, starting with triage 003.
    2. Add the rule to the fixture-authoring section of eval/README.md.
  5. added
    ready-to-code
    on Oct 10, 2026
  6. waynesun09 commented on Oct 10, 2026

    @waynesun09
    MemberAuthor

    /fs-code
    Do not sign off: no git commit -s, no Signed-off-by trailer. Implement Phase 1 of the issue body only.

  7. fullsend-ai-triage commented on Oct 10, 2026

    @fullsend-ai-triage

    🤖 Triage · ⚠️ Cancelled · Started 1:19 PM UTC · Ended 1:20 PM UTC

    Commit: 3217196 · View workflow run →

  8. removed
    ready-to-code
    on Oct 10, 2026
  9. fullsend-ai-coder commented on Oct 10, 2026

    @fullsend-ai-coder
    Contributor

    🤖 Finished Code · ✅ Success · Started 1:20 PM UTC · Completed 1:28 PM UTC

    Commit: 3217196 · View workflow run →

    Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $2.73

  10. 4 remaining items

  11. fullsend-ai-triage commented on Oct 10, 2026

    @fullsend-ai-triage

    🤖 Triage · ⚠️ Cancelled · Started 2:02 PM UTC · Ended 2:03 PM UTC

    Commit: 74a0080 · View workflow run →

  12. removed
    ready-to-code
    on Oct 10, 2026
  13. fullsend-ai-coder commented on Oct 10, 2026

    @fullsend-ai-coder
    Contributor

    🤖 Finished Code · ✅ Success · Started 2:03 PM UTC · Completed 2:12 PM UTC

    Commit: 74a0080 · View workflow run →

    Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $2.06

  14. added 4 commits that reference this issue on Oct 10, 2026
  15. added 4 commits that reference this issue on Oct 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementfeaturetriaged

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions