Skip to content

Open one regression alert per failing scenario - #108

Merged
leggetter merged 3 commits into
mainfrom
alert-per-scenario
Nov 5, 2026
Merged

leggetter merged 3 commits into
mainfrom
alert-per-scenario

Conversation

@leggetter

@leggetter leggetter commented Nov 5, 2026 •

Copy link
Copy Markdown
Collaborator

The weekly regression alert commented on whichever regression-alert issue was open, so every failure landed on one thread whatever caused it. On 26 October a harness fetch failed in regression-verification-001-generic-hmac was appended to #92, an issue about a rubric in regression-filtering-001-regex-capability, and read as more of the same.

  • One issue per failing scenario, titled Regression failing: <eval id>, matched by exact title. A closed issue with that title is reopened, so a guard that regresses again keeps its history.
  • Only a verdict is filed per scenario. A red check means the agent or the scorer. An errored eval step means the cell has no verdict: usually the harness, a provider or the agent CLI, not the agent's answer. A scenario whose cells all errored is labelled harness, otherwise scenario.
  • Everything else goes to one run-level issue, Weekly regression run is failing: a provider refusal (the provider-refused-* artifact from Publish partly failed runs, never cancelled ones, and name what is missing #103), a cell that failed at setup, a cancelled or timed-out cell, a job outside the matrix, or a cell whose job name GitHub cut short at 100 characters. Otherwise one empty credit balance or one missing secret would open an issue for every guard.
  • It still alerts when the run can't be read. Reads are retried; GitHub's jobs API returned three 502s in a 40-run sweep. If the jobs stay unreadable, a run-level issue opens anyway. If the artifacts are unreadable, no scenario issue opens, because a refusal can't be ruled out. If the issue list is unreadable, it creates rather than skips.
  • Re-runs: artifacts from an earlier attempt are ignored, so a refusal before a credit top-up can't suppress the re-run's scenario issues. If the attempt's start time can't be read, or reads as null, it is treated as unreadable rather than compared.
  • The logic moves to .github/scripts/regression-alert.sh, behind a sparse checkout, so it can be dry-run against a past run (DRY_RUN set to anything but 0). AGENTS.md says how. The job's permissions narrow to contents and actions read, issues write.

Still scheduled runs only, as before.

Testing

Dry-run against real runs:

Run What happened Alert output
40277941276, 26 Oct filtering-001 red check; hmac errored two scenario issues: filtering-001 scenario, hmac harness
41397695283, 2 Nov two cells of filtering-001 red one scenario issue listing both cells
32696494086, 24 Aug cancelled by hand at 47 of 72 cells outpost-002 issue (harness) with three errored cells; run-level issue with 22 cancelled cells and publish-results

Through a fake gh serving fixtures, thirteen cases: setup-step failure, jobs API failing twice then answering, jobs/artifacts/issue list unreadable, open and closed same-title issues (dry-run and real writes), DRY_RUN=true, all-errored versus mixed labels, timed_out, a refusal from an earlier attempt versus the current one, and a null attempt start time. Every case produces the intended issue.

Not verified: a real provider refusal, since no run has a marker yet and that path is tested by fixture only; and reopening an issue with the job token, which GitHub documents issues: write as covering. shellcheck and actionlint pass.

After merge

#92's title does not match the new scheme, so the next filtering-001 failure opens a new issue rather than appending to it. #92 can close once #106 lands.

🤖 Generated with Claude Code

leggetter and others added 3 commits November 5, 2026 17:21
The alert commented on whichever regression-alert issue was open, so every
failure landed on one thread whatever caused it. On 26 October a harness
`fetch failed` in regression-verification-001-generic-hmac was appended to an
issue about a rubric in regression-filtering-001-regex-capability, and read
as more of the same.

Open or update one issue per failing scenario, titled
`Regression failing: <eval id>`. Label each failing cell by the step that
failed: a red check is the agent or the scorer, and an errored eval step
means the cell has no verdict, usually the harness, a provider or the agent
CLI rather than the agent's answer. A provider refusal (#103's
provider-refused-* artifact), a cancelled cell, a job outside the matrix, or
a cell whose job name GitHub cut short goes to one run-level issue, because
none of them is a verdict on a scenario.

The logic moves to .github/scripts/regression-alert.sh behind a sparse
checkout, so it can be dry-run against a past run. Dry-runs against
40277941276, 41397695283, 32696494086 (cancelled by hand), and a simulated
refusal give the expected issues. shellcheck and actionlint pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… read

Review of the first version found ways it would mis-file or stay silent:

- A cell failing at setup (a missing secret, a registry outage) was filed
  per scenario, so one outage would open an issue for every guard. Only a
  red check or an errored eval step is now filed per scenario; everything
  else, timed-out cells included, goes to the run-level issue.
- Under `set -e` one failed read killed the script before it posted, which
  is the silence it exists to prevent. Reads are retried. If the jobs can't
  be read, a run-level issue still opens. If the artifacts can't be read, no
  scenario issue opens, because a refusal can't be ruled out. If the issue
  list can't be read, the script creates rather than skips.
- On a re-run, artifacts from the earlier attempt are ignored, so an old
  refusal can't suppress the new attempt's scenario issues.
- A closed issue with the same title is reopened, not duplicated.
- A scenario whose cells all errored is labelled `harness`, not `scenario`.
- Any DRY_RUN value other than 0 or empty is a dry run; the dry-run header
  now names the action correctly.
- The job's permissions narrow to contents and actions read, issues write.

Tested through a fake gh on thirteen fixture cases, and dry-run against
40277941276, 41397695283 and 32696494086. shellcheck and actionlint pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On a re-run the script keeps only artifacts created since the attempt
started. When that start time read as null, the string "null" sorted above
every real timestamp, so a current provider refusal was filtered out and
the run was filed per scenario. A reviewer reproduced it with a fixture.

A start time that is not a timestamp now counts as unreadable: no scenario
issues, and a run-level issue saying a refusal can't be ruled out.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@leggetter
leggetter marked this pull request as ready for review November 5, 2026 17:45
@leggetter
leggetter merged commit 715eb72 into main Nov 5, 2026
1 check passed
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