Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

fix(nightly-watch): a master-red issue closed by hand never comes back on a green run

garrytan27ebee7e08c6
diff --git a/docs/architecture/key-files/ci-health-and-test-guards.md b/docs/architecture/key-files/ci-health-and-test-guards.md
index 87a0a73c84..7bbd5d511d 100644
--- a/docs/architecture/key-files/ci-health-and-test-guards.md
+++ b/docs/architecture/key-files/ci-health-and-test-guards.md
@@ -6,7 +6,7 @@ Current behavior and load-bearing invariants; history belongs in Git and CHANGEL
- `.github/workflows/nightly-watch.yml` + `scripts/nightly-issue.ts` — nightly-red and master-red incidents. `workflow_run` fires only for master-branch completions; the `resolve` job admits scheduled runs and push-to-master runs of Test and E2E Tests from this repository (head repository checked) plus dispatch, and `nightly-issue.ts --resolve` turns every entry path into the target workflow id and track (`schedule`, `push`; a replay writes `push`); `watch` queues on one group per repository + workflow + track. `nightly-issue.ts --run-id <id> [--replay-issue <n>] [--dry-run]` routes the run (`routeRun`: pull-request, fork, other-branch and non-allowlisted push runs are refused with a next step). Scheduled runs keep one `Nightly red: <workflow>` issue (label `nightly-red`): open on red with job/step pairs, every failing test file with its reproduce line, sanitized error excerpts, the first red run, the last green SHA and compare link, a "Next step for the agent" and a JSON block; update while red; reopen on a flap; close only on a later green scheduled run with complete evidence where every previously failing job executed. Rows in `.github/nightly-known-red.tsv` (at most 3; race-hunt jobs refused) keep a matching incident open under `known-red`. A scheduled Test or E2E Tests run also feeds that workflow's open master-red issue. Push runs go to `scripts/lib/master-red.ts`. A ratchet test fails when a scheduled workflow is not watched. Tests: `test/scripts/nightly-issue.test.ts`. Process: `docs/RELEASING.md#nightly-red-issues`, `docs/ci-red-runbook.md`.
- `scripts/lib/gh-issue.ts` — the GitHub seam shared by the CI watchers. `inert()` makes run-derived text (job, step and test names, error text) safe to show an agent: control characters stripped, length capped, backticks and pipes replaced, mentions and links neutralized; `redactCredentials()` strips user:password from database URLs. `GitHubClient` is the one interface the watchers call (`restClient()` uses `GH_TOKEN`/`GITHUB_TOKEN` in Actions or the authenticated `gh api` locally; `download()` reads artifact archives without forwarding the token to blob storage). `findIssueByTitle` finds an issue by label and exact title, open first, else the most recently updated closed one; `listLabeled`, `getIssue` and `linkedPulls` (PRs cross-referencing an issue) back master-red and CI health; `fetchArtifactJson` + `readZipEntry` read one JSON file from a run artifact and return a reason instead of throwing.
- `.github/workflows/ci-health.yml` + `scripts/ci-health-report.ts` — CI health report. Reads one window (`--days`, default 7, or `--since/--until`, also dispatch inputs) of same-repository pull-request and push-to-master runs of test.yml and e2e.yml (runs, jobs, check-run annotations, issues; never logs, fork runs or fork artifacts), paging the whole window (`listRuns` splits a query over the 1000-result search cap). It reports first-attempt pass rates (`firstAttempt()`), the exit criteria (master >= 95%, PR >= 90%; met, missed or indeterminate when the window cannot be read in full), stress-gate failures, failure classes, cancellation and completion coverage, master-red time to first response, the nightly-watch residual, the test files with the most failure annotations, shard spread and the count of fork runs it did not read; an explicit window with a missed target opens a follow-up issue. Tests: `test/scripts/ci-health-report.test.ts`. Docs: `docs/ci-red-runbook.md#ci-health-report`.
-- `scripts/lib/master-red.ts` — master-red reconciliation for push-to-master runs of Test and E2E Tests (`PUSH_ALLOWLIST`). Each watch evaluates every completed push run above the high-water mark (`evaluated`: run number, then attempt) stored in the newest `Master red: <workflow>` issue's `master-red:json` block (`applyRun` folds runs; cancelled runs change nothing); a missing or malformed block is rebuilt from the actions API (`pendingRuns`). It opens on red with the suspect range (`suspectRange`: compare plus commit-to-PR lookups), updates while red, closes when every previously failing job (E2E Tests: every failing file, from the manifest) ran and passed with complete evidence, records an incident that opened and closed between watches, and keeps a not-run-since failure open with the manual-close step. `externalPass` lets a scheduled run or an issue-bound E2E replay clear failures. Closing without a merged linked repair PR opens `flake` issues (`flakeFor`, `flake:json`); `closeFlakes` closes one after its repair PR merged and a later complete run passed its file and arm. Writes re-read the issue first and re-plan when it moved; a create race closes the newer duplicate. Tests: `test/scripts/nightly-issue.test.ts`. Docs: `docs/ci-red-runbook.md`.
+- `scripts/lib/master-red.ts` — master-red reconciliation for push-to-master runs of Test and E2E Tests (`PUSH_ALLOWLIST`). Each watch evaluates every completed push run above the high-water mark (`evaluated`: run number, then attempt) stored in the newest `Master red: <workflow>` issue's `master-red:json` block (`applyRun` folds runs; cancelled runs change nothing); a missing or malformed block is rebuilt from the actions API (`pendingRuns`). It opens on red with the suspect range (`suspectRange`: compare plus commit-to-PR lookups), updates while red, closes when every previously failing job (E2E Tests: every failing file, from the manifest) ran and passed with complete evidence, records an incident that opened and closed between watches, and keeps a not-run-since failure open with the manual-close step. A newest issue closed by hand while its block is red ends that incident (`closed_by_hand`): later runs are recorded on it as green, and only a new red run opens a new issue. `externalPass` lets a scheduled run or an issue-bound E2E replay clear failures. Closing without a merged linked repair PR opens `flake` issues (`flakeFor`, `flake:json`); `closeFlakes` closes one after its repair PR merged and a later complete run passed its file and arm. Writes re-read the issue first and re-plan when it moved; a create race closes the newer duplicate. Tests: `test/scripts/nightly-issue.test.ts`. Docs: `docs/ci-red-runbook.md`.
- `scripts/lib/ci-run.ts` — one run's failure evidence (`collectEvidence`): jobs, failing jobs' annotations and, for test.yml and e2e.yml, the `ci-manifest` artifact, returned as structured records (job, step, every failing test file and identity) apart from sanitized excerpts; a cancelled job is not run (listed in `cancelled`) unless its annotation says it timed out, and a red run whose only failures are aggregators of cancelled jobs is `ignored`; with `complete`/`problems` (an unreadable page, annotation or manifest is incomplete evidence, never zero failures). `reproduceCommand` builds `bun run test:stress <file> --iterations 10 [--postgres]` from a validated test path only. `exemptionRows` turns failing identities with an exact test name and signature into the stress gate's `<!-- gbrain-stress-exemption -->` records (backend per `stressBackend`, owner `agent on release duty`), written into master-red, flake and nightly-red bodies; `test/fixtures/nightly-watch/stress-exemption-contract.ts` vendors the gate's parser so the tests prove it accepts them.
- `scripts/ci-manifest.ts` — the versioned failure and execution manifest (`gbrain-ci-manifest/v1`). The `executed-receipts` job of test.yml and e2e.yml builds it from every lane's receipts (via `scripts/ci-executed-counts.ts`, declared skips from the expected-deltas TSV), binds it to the workflow, event, SHA, run id and attempt, and uploads it as `ci-manifest`; each failure carries the JUnit message (credentials redacted) and the stress gate's `failureSignature` (omitted when the message holds a credential); `checkManifest` refuses a manifest for another run or attempt; `passedFiles` lists files that executed tests and failed none. Docs: `docs/ci-red-runbook.md#ci-failure-manifest`.
- `scripts/release-gate.ts` — release.yml's `ci-gate` job. Polls the push-to-master runs of Test and E2E Tests on the release commit and writes `publish`/`sha`: both green publishes; a failed run publishes nothing and fails with the next step; a run cancelled by a newer push is followed to the next master commit with the same VERSION (published there) or marks the version superseded; non-master refs are refused; it fails with the backfill command after 110 minutes. Build, release, `latest-stable` and the publish jobs use the gated commit. Tests: `test/scripts/release-gate.test.ts`. Docs: `docs/RELEASING.md#release-ci-gate`.
diff --git a/docs/ci-red-runbook.md b/docs/ci-red-runbook.md
index 7f4e4dfb93..e41f785f28 100644
--- a/docs/ci-red-runbook.md
+++ b/docs/ci-red-runbook.md
@@ -48,6 +48,10 @@ response: a repair PR whose body says `Fixes #<issue>`.
by hand with a comment naming the replacement, or replay E2E files:
`gh workflow run e2e.yml --ref master -f full_corpus=true`, then
`gh workflow run nightly-watch.yml -f run_id=<that run id> -f replay_issue=<issue>`.
+- **Closed by hand:** a closed issue whose JSON block is still red ends that
+ incident. The watch records later runs on it as green (its body says it was
+ closed by hand) and never reopens it or opens a new issue for its failures;
+ only a new red push run opens a new incident.
- **Serialization:** each watch queues on one group per repository, target
workflow and track (`schedule` or `push`; a replay writes `push`). Before the
first write it re-reads the issue and re-plans when the issue moved. When two
diff --git a/scripts/lib/master-red.ts b/scripts/lib/master-red.ts
index ea3fc668e0..5f13802c0d 100644
--- a/scripts/lib/master-red.ts
+++ b/scripts/lib/master-red.ts
@@ -68,6 +68,8 @@ export interface MasterRedState {
blocked: string[];
/** Expiry of the stress-gate exemption records this issue carries (14 days after the watcher last saw it red). */
exemption_expires?: string;
+ /** The issue that was closed by hand while red; the watch ended that incident without proof its failing jobs passed. */
+ closed_by_hand?: number;
rebuilt?: string;
}
export interface FlakeRecord {
@@ -150,6 +152,7 @@ export function applyRun(prev: MasterRedState, run: RunInfo, ev: RunEvidence): M
if (ev.verdict === 'red') {
if (state.status !== 'red') {
state.status = 'red';
+ delete state.closed_by_hand;
state.first_red = ref;
state.suspect = { from_sha: state.last_green?.sha ?? null, to_sha: run.head_sha, prs: [], complete: false, note: 'not looked up yet' };
state.open_jobs = [];
@@ -231,6 +234,7 @@ function filesList(state: MasterRedState): string[] {
function nextStep(state: MasterRedState, repo: string, issue: number | undefined): string {
const ref = issue ? `#${issue}` : 'this issue';
+ if (state.status === 'green' && state.closed_by_hand) return `None: #${state.closed_by_hand} was closed by hand while red, so this watch ended that incident without proof that its failing jobs passed. The next red push run opens a new incident.`;
if (state.status === 'green') return 'None: every previously failing job ran and passed on a later run.';
const lines: string[] = [];
const owner = state.open_jobs.filter(j => j.owner_signal);
@@ -364,7 +368,9 @@ export async function planMasterRed(client: GitHubClient, repo: string, run: Run
const title = masterRedTitle(run.name);
const issue = await newestIssue(client, title);
const blank = blankState(run);
- const stored = issue ? validState(readJsonBlock(issue.body, MR_MARKER), blank.workflow_file) : undefined;
+ const found = issue ? validState(readJsonBlock(issue.body, MR_MARKER), blank.workflow_file) : undefined;
+ const stored: MasterRedState | undefined = found && { ...found, rebuilt: undefined };
+ if (stored?.status === 'red' && issue!.state === 'closed') Object.assign(stored, { status: 'green', open_jobs: [], open_files: [], blocked: [], closed_by_hand: issue!.number });
const reason = !issue ? 'no master-red issue for this workflow yet' : 'the JSON block of the newest master-red issue was missing or malformed';
const runs = await pushRuns(client, run);
const { state: base, pending } = pendingRuns(stored, runs, blank, reason, !issue);
diff --git a/test/fixtures/nightly-watch/master-red/annotations-117802819347.json b/test/fixtures/nightly-watch/master-red/annotations-117802819347.json
new file mode 100644
index 0000000000..c6001c4a37
--- /dev/null
+++ b/test/fixtures/nightly-watch/master-red/annotations-117802819347.json
@@ -0,0 +1,26 @@
+[
+ {
+ "annotation_level": "warning",
+ "message": "Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@11d5960a326750d5838078e36cf38b85af677262, actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/",
+ "path": ".github",
+ "title": ""
+ },
+ {
+ "annotation_level": "failure",
+ "message": "Process completed with exit code 1.",
+ "path": ".github",
+ "title": ""
+ },
+ {
+ "annotation_level": "failure",
+ "message": "PostgreSQL arm failed. Reproduce: DATABASE_URL=<pgvector test database> GBRAIN_TEST_ALLOW_DATABASE_URL=1 bun test --timeout=120000 test/large-pages/segmented-prior-view.test.ts",
+ "path": "test/large-pages/segmented-prior-view.test.ts",
+ "title": ""
+ },
+ {
+ "annotation_level": "failure",
+ "message": "Expected: < 5729915\nReceived: 6129723\n\n at <anonymous> (/home/runner/work/gbrain/gbrain/test/large-pages/segmented-prior-view.test.ts:106:20)",
+ "path": "test/large-pages/segmented-prior-view.test.ts",
+ "title": "error: expect(received).toBeLessThan(expected)"
+ }
+]
diff --git a/test/fixtures/nightly-watch/master-red/ci-manifest-39170624583-attempt-2.json b/test/fixtures/nightly-watch/master-red/ci-manifest-39170624583-attempt-2.json
new file mode 100644
index 0000000000..bd2216822c
--- /dev/null
+++ b/test/fixtures/nightly-watch/master-red/ci-manifest-39170624583-attempt-2.json
@@ -0,0 +1,177 @@
+{
+ "schema": "gbrain-ci-manifest/v1",
+ "workflow": "Test",
+ "event": "push",
+ "sha": "4fb9c4c78a596340f8415e1dd419106b4ad6452d",
+ "run_id": 39170624583,
+ "run_attempt": 2,
+ "complete": false,
+ "problems": [
+ "receipts-pg-arms-1-bun-1.4.0/pg-arms-bun-1.4.0--s1-a-36-facts-batch-partial-refusal.test--primary comes from attempt 1 of run 39170624583; the run's latest attempt is 2. Re-run all jobs, not only failed ones, so every lane reports from one attempt.",
+ "receipts-pg-arms-1-bun-1.4.0/pg-arms-bun-1.4.0--s1-a1-links-extract.test--primary comes from attempt 1 of run 39170624583; the run's latest attempt is 2. Re-run all jobs, not only failed ones, so every lane reports from one attempt.",
+ "receipts-pg-arms-1-bun-1.4.0/pg-arms-bun-1.4.0--s1-a24-phantom-redirect-cursor.test--primary comes from attempt 1 of run 39170624583; the run's latest attempt is 2. Re-run all jobs, not only failed ones, so every lane reports from one attempt."
+ ],
+ "files": [
+ {
+ "file": "test/belief-ledger-lifecycle.test.ts",
+ "lane": "pg-arms-bun-1.4.0",
+ "arm": "postgres",
+ "executed": 16,
+ "failed": 0,
+ "skipped": 0
+ },
+ {
+ "file": "test/decide/conflict-proposals-managed.test.ts",
+ "lane": "pg-arms-bun-1.4.0",
+ "arm": "postgres",
+ "executed": 1,
+ "failed": 0,
+ "skipped": 0
+ },
+ {
+ "file": "test/declared-lineage-visibility.test.ts",
+ "lane": "pg-arms-bun-1.4.0",
+ "arm": "postgres",
+ "executed": 3,
+ "failed": 0,
+ "skipped": 0
+ },
+ {
+ "file": "test/doctor-frontmatter-holds.test.ts",
+ "lane": "pg-arms-bun-1.4.0",
+ "arm": "postgres",
+ "executed": 7,
+ "failed": 0,
+ "skipped": 0
+ },
+ {
+ "file": "test/grandfather-managed.test.ts",
+ "lane": "pg-arms-bun-1.4.0",
+ "arm": "postgres",
+ "executed": 21,
+ "failed": 0,
+ "skipped": 0
+ },
+ {
+ "file": "test/lane-apply-pipelining.test.ts",
+ "lane": "pg-arms-bun-1.4.0",
+ "arm": "postgres",
+ "executed": 3,
+ "failed": 0,
+ "skipped": 0
+ },
+ {
+ "file": "test/large-pages/purge-replay-segments.test.ts",
+ "lane": "pg-arms-bun-1.4.0",
+ "arm": "postgres",
+ "executed": 4,
+ "failed": 0,
+ "skipped": 0
+ },
+ {
+ "file": "test/large-pages/restore-publication-statement-bound.test.ts",
+ "lane": "pg-arms-bun-1.4.0",
+ "arm": "postgres",
+ "executed": 2,
+ "failed": 0,
+ "skipped": 0
+ },
+ {
+ "file": "test/large-pages/segmented-prior-view.test.ts",
+ "lane": "pg-arms-bun-1.4.0",
+ "arm": "postgres",
+ "executed": 4,
+ "failed": 0,
+ "skipped": 0
+ },
+ {
+ "file": "test/large-pages/segmented-read-refusals.test.ts",
+ "lane": "pg-arms-bun-1.4.0",
+ "arm": "postgres",
+ "executed": 8,
+ "failed": 0,
+ "skipped": 0
+ },
+ {
+ "file": "test/large-pages/segmented-switch.test.ts",
+ "lane": "pg-arms-bun-1.4.0",
+ "arm": "postgres",
+ "executed": 30,
+ "failed": 0,
+ "skipped": 0
+ },
+ {
+ "file": "test/large-pages/stuck-recovery-large.slow.test.ts",
+ "lane": "pg-arms-bun-1.4.0",
+ "arm": "postgres",
+ "executed": 8,
+ "failed": 0,
+ "skipped": 0
+ },
+ {
+ "file": "test/pathological/a27-credential-reseal.test.ts",
+ "lane": "pg-arms-bun-1.4.0",
+ "arm": "postgres",
+ "executed": 18,
+ "failed": 0,
+ "skipped": 0
+ },
+ {
+ "file": "test/pathological/a50-unmanaged-expired-sources.test.ts",
+ "lane": "pg-arms-bun-1.4.0",
+ "arm": "postgres",
+ "executed": 12,
+ "failed": 0,
+ "skipped": 0
+ },
+ {
+ "file": "test/pathological/d10-derived-atom-file-overwrite.test.ts",
+ "lane": "pg-arms-bun-1.4.0",
+ "arm": "postgres",
+ "executed": 10,
+ "failed": 0,
+ "skipped": 0
+ },
+ {
+ "file": "test/persistence-edit-embedding-reuse.test.ts",
+ "lane": "pg-arms-bun-1.4.0",
+ "arm": "postgres",
+ "executed": 6,
+ "failed": 0,
+ "skipped": 0
+ },
+ {
+ "file": "test/repair-frontmatter-keys-sweep-6454.test.ts",
+ "lane": "pg-arms-bun-1.4.0",
+ "arm": "postgres",
+ "executed": 2,
+ "failed": 0,
+ "skipped": 0
+ },
+ {
+ "file": "test/serve-head-watcher-managed.serial.test.ts",
+ "lane": "pg-arms-bun-1.4.0",
+ "arm": "postgres",
+ "executed": 1,
+ "failed": 0,
+ "skipped": 0
+ },
+ {
+ "file": "test/source-row-diagnostics.test.ts",
+ "lane": "pg-arms-bun-1.4.0",
+ "arm": "postgres",
+ "executed": 2,
+ "failed": 0,
+ "skipped": 0
+ },
+ {
+ "file": "test/sync-inexact-rename-6729.test.ts",
+ "lane": "pg-arms-bun-1.4.0",
+ "arm": "postgres",
+ "executed": 32,
+ "failed": 0,
+ "skipped": 0
+ }
+ ],
+ "failures": []
+}
diff --git a/test/fixtures/nightly-watch/master-red/jobs-39170624583-attempt-2.json b/test/fixtures/nightly-watch/master-red/jobs-39170624583-attempt-2.json
new file mode 100644
index 0000000000..3908a60670
--- /dev/null
+++ b/test/fixtures/nightly-watch/master-red/jobs-39170624583-attempt-2.json
@@ -0,0 +1,779 @@
+{
+ "total_count": 129,
+ "jobs": [
+ {
+ "id": 117809316966,
+ "name": "serial-tests (1)",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809317286,
+ "name": "gitleaks",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809317313,
+ "name": "persistence-validation / Managed-sync convergence / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809317459,
+ "name": "serial-tests (4)",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809317460,
+ "name": "test (1)",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809317466,
+ "name": "test (9)",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809317497,
+ "name": "persistence-validation / Reconciliation crashes / postgres / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809317503,
+ "name": "native-locks / Windows ACL API probe / windows-2022 / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809317504,
+ "name": "persistence-validation / PgBouncer, RLS and pool capacity / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809317526,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 1/19 / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809317537,
+ "name": "persistence-validation / Read latency / pglite / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809317549,
+ "name": "native-locks / Windows ACL API probe / windows-2022 / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809317577,
+ "name": "native-locks / linux-arm64-musl / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809317592,
+ "name": "native-locks / linux-arm64-glibc / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809317614,
+ "name": "serial-tests (2)",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809317637,
+ "name": "native-locks / Windows PowerShell console probe / windows-11-arm / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809317650,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 2/19 / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809317690,
+ "name": "persistence-validation / Reconciliation crashes / postgres / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809317725,
+ "name": "test (6)",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809317730,
+ "name": "persistence-validation / postgres / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809317740,
+ "name": "native-locks / linux-x64-musl / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809317783,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 1/19 / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809317796,
+ "name": "native-locks / Windows ACL API probe / windows-11-arm / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809317812,
+ "name": "persistence-validation / Crash robot / pglite / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809317826,
+ "name": "stress-changed-tests / stress-changed-tests result",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809317828,
+ "name": "persistence-validation / Managed-sync convergence / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809317833,
+ "name": "native-locks / Windows PowerShell console probe / windows-2022 / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809317834,
+ "name": "persistence-validation / Reconciliation crashes / pglite / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809317837,
+ "name": "native-locks / linux-x64-glibc / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809317843,
+ "name": "persistence-validation / Crash robot / postgres / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809317848,
+ "name": "native-locks / Windows PowerShell console probe / windows-11-arm / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809317864,
+ "name": "persistence-validation / Read latency / postgres / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809317896,
+ "name": "test (15)",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809317898,
+ "name": "native-locks / Windows ACL API probe / windows-11-arm / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809317899,
+ "name": "persistence-validation / pglite / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809317940,
+ "name": "test (7)",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809317942,
+ "name": "test (10)",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809317994,
+ "name": "test (12)",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809318000,
+ "name": "stress-changed-tests / ${{ (((inputs.mode == 'gate') && 'Stress shard') || 'Race hunt shard') }} ${{ matrix.shard }}",
+ "conclusion": "skipped",
+ "steps": []
+ },
+ {
+ "id": 117809318012,
+ "name": "persistence-validation / Crash robot / postgres / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809318032,
+ "name": "native-locks / linux-arm64-musl / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809318035,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 3/19 / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809318039,
+ "name": "native-locks / linux-x64-glibc / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809318040,
+ "name": "test (8)",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809318097,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 3/19 / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809318146,
+ "name": "persistence-validation / Read latency / pglite / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809318169,
+ "name": "test (14)",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809318170,
+ "name": "native-locks / linux-x64-musl / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809318183,
+ "name": "native-locks / win32-x64 / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809318194,
+ "name": "native-locks / darwin-arm64 / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809318205,
+ "name": "native-locks / darwin-x64 / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809318216,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 4/19 / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809318227,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 5/19 / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809318243,
+ "name": "persistence-validation / Read latency / postgres / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809318246,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 5/19 / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809318273,
+ "name": "test (13)",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809318285,
+ "name": "persistence-validation / PgBouncer, RLS and pool capacity / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809318286,
+ "name": "native-locks / darwin-arm64 / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809318343,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 8/19 / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809318351,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 4/19 / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809318377,
+ "name": "native-locks / win32-x64 / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809318399,
+ "name": "native-locks / darwin-x64 / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809318425,
+ "name": "native-locks / linux-arm64-glibc / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809318428,
+ "name": "test (17)",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809318434,
+ "name": "native-locks / win32-arm64 / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809318457,
+ "name": "test (11)",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809318477,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 6/19 / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809318526,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 8/19 / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809318538,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 7/19 / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809318562,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 6/19 / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809318646,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 7/19 / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809318665,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 9/19 / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809318672,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 9/19 / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809318679,
+ "name": "test (16)",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809318686,
+ "name": "Native-only result (full CI not run)",
+ "conclusion": "skipped",
+ "steps": []
+ },
+ {
+ "id": 117809318691,
+ "name": "coverage-report",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809318796,
+ "name": "native-locks / win32-arm64 / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809318875,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 11/19 / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809318909,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 10/19 / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809318996,
+ "name": "persistence-validation / postgres / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809319018,
+ "name": "test (18)",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809319211,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 12/19 / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809319289,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 14/19 / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809319293,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 13/19 / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809319356,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 2/19 / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809319471,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 11/19 / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809319491,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 10/19 / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809319520,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 12/19 / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809319535,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 14/19 / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809319663,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 13/19 / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809319713,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 16/19 / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809319781,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 15/19 / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809319830,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 17/19 / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809319968,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 16/19 / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809320017,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 15/19 / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809320107,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 17/19 / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809320110,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 18/19 / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809320353,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 18/19 / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809320375,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 19/19 / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809320645,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 19/19 / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809335601,
+ "name": "admin-browser",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809337038,
+ "name": "test (3)",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809337743,
+ "name": "security-regressions (macos-26, 1.4.3)",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809338800,
+ "name": "native-locks / Windows PowerShell console probe / windows-2022 / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809338964,
+ "name": "slow-brainbench-e2e",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809339432,
+ "name": "security-regressions (windows-latest, 1.4.3)",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809340427,
+ "name": "native-locks / OpenClaw 2026.9.4 native context-engine startup",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809341267,
+ "name": "persistence-validation / Crash robot / pglite / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809341887,
+ "name": "persistence-validation / Reconciliation crashes / pglite / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809342306,
+ "name": "security-regressions (ubuntu-latest, 1.4.3)",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809343685,
+ "name": "test (5)",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809343933,
+ "name": "slow-entity-resolve-perf",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809344309,
+ "name": "test (2)",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809344770,
+ "name": "test (4)",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809347577,
+ "name": "dependency-audit",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809348562,
+ "name": "race-hunt",
+ "conclusion": "skipped",
+ "steps": []
+ },
+ {
+ "id": 117809348633,
+ "name": "verify",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809349092,
+ "name": "persistence-validation / pglite / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809349145,
+ "name": "brainbench",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809349916,
+ "name": "security-regressions (ubuntu-latest, 1.4.0)",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809349976,
+ "name": "stress-changed-tests / Stress plan",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809350390,
+ "name": "changes",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809351201,
+ "name": "shared-skills-compatibility",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809352033,
+ "name": "serial-tests (3)",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809352335,
+ "name": "security-regressions (windows-latest, 1.4.0)",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809352560,
+ "name": "typecheck",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117809353290,
+ "name": "security-regressions (macos-26, 1.4.0)",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117811793788,
+ "name": "test-status",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117811793839,
+ "name": "executed-receipts",
+ "conclusion": "success",
+ "steps": []
+ }
+ ]
+}
diff --git a/test/fixtures/nightly-watch/master-red/jobs-39170624583.json b/test/fixtures/nightly-watch/master-red/jobs-39170624583.json
new file mode 100644
index 0000000000..62baf8730f
--- /dev/null
+++ b/test/fixtures/nightly-watch/master-red/jobs-39170624583.json
@@ -0,0 +1,871 @@
+{
+ "total_count": 129,
+ "jobs": [
+ {
+ "id": 117802715316,
+ "name": "dependency-audit",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802715417,
+ "name": "test (15)",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802715444,
+ "name": "gitleaks",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802715445,
+ "name": "serial-tests (1)",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802715475,
+ "name": "verify",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802715498,
+ "name": "security-regressions (windows-latest, 1.4.0)",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802715503,
+ "name": "slow-brainbench-e2e",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802715505,
+ "name": "serial-tests (2)",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802715509,
+ "name": "security-regressions (macos-26, 1.4.3)",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802715511,
+ "name": "security-regressions (windows-latest, 1.4.3)",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802715516,
+ "name": "changes",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802715521,
+ "name": "admin-browser",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802715542,
+ "name": "typecheck",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802715552,
+ "name": "test (18)",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802715556,
+ "name": "security-regressions (ubuntu-latest, 1.4.0)",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802715561,
+ "name": "shared-skills-compatibility",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802715596,
+ "name": "stress-changed-tests / Stress plan",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802715636,
+ "name": "slow-entity-resolve-perf",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802715641,
+ "name": "test (8)",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802715653,
+ "name": "brainbench",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802715664,
+ "name": "security-regressions (ubuntu-latest, 1.4.3)",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802715666,
+ "name": "test (9)",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802715682,
+ "name": "serial-tests (3)",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802715687,
+ "name": "serial-tests (4)",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802715701,
+ "name": "test (17)",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802715706,
+ "name": "security-regressions (macos-26, 1.4.0)",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802715746,
+ "name": "test (13)",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802715749,
+ "name": "test (14)",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802715759,
+ "name": "test (1)",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802715765,
+ "name": "test (12)",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802715789,
+ "name": "test (3)",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802715799,
+ "name": "test (11)",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802715815,
+ "name": "test (6)",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802715818,
+ "name": "test (5)",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802715839,
+ "name": "test (16)",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802715840,
+ "name": "test (7)",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802715841,
+ "name": "test (2)",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802715858,
+ "name": "test (10)",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802715868,
+ "name": "test (4)",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802716489,
+ "name": "race-hunt",
+ "conclusion": "skipped",
+ "steps": []
+ },
+ {
+ "id": 117802818948,
+ "name": "native-locks / Windows PowerShell console probe / windows-2022 / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802818973,
+ "name": "native-locks / OpenClaw 2026.9.4 native context-engine startup",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802818988,
+ "name": "persistence-validation / Crash robot / pglite / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802818993,
+ "name": "persistence-validation / PgBouncer, RLS and pool capacity / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802818996,
+ "name": "native-locks / Windows ACL API probe / windows-11-arm / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819002,
+ "name": "native-locks / Windows ACL API probe / windows-2022 / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819005,
+ "name": "native-locks / linux-arm64-musl / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819015,
+ "name": "persistence-validation / pglite / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819017,
+ "name": "persistence-validation / pglite / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819020,
+ "name": "persistence-validation / Read latency / pglite / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819024,
+ "name": "native-locks / Windows PowerShell console probe / windows-11-arm / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819026,
+ "name": "persistence-validation / Read latency / pglite / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819027,
+ "name": "persistence-validation / Reconciliation crashes / pglite / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819029,
+ "name": "persistence-validation / Read latency / postgres / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819037,
+ "name": "persistence-validation / postgres / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819039,
+ "name": "persistence-validation / Reconciliation crashes / postgres / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819045,
+ "name": "persistence-validation / Read latency / postgres / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819046,
+ "name": "persistence-validation / PgBouncer, RLS and pool capacity / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819048,
+ "name": "native-locks / linux-x64-musl / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819050,
+ "name": "persistence-validation / Reconciliation crashes / pglite / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819053,
+ "name": "native-locks / Windows PowerShell console probe / windows-11-arm / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819064,
+ "name": "native-locks / win32-x64 / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819065,
+ "name": "native-locks / linux-x64-musl / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819072,
+ "name": "persistence-validation / Managed-sync convergence / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819073,
+ "name": "persistence-validation / postgres / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819080,
+ "name": "native-locks / Windows ACL API probe / windows-11-arm / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819083,
+ "name": "native-locks / Windows PowerShell console probe / windows-2022 / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819084,
+ "name": "persistence-validation / Reconciliation crashes / postgres / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819092,
+ "name": "native-locks / darwin-x64 / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819093,
+ "name": "persistence-validation / Crash robot / postgres / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819096,
+ "name": "native-locks / linux-arm64-glibc / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819097,
+ "name": "native-locks / Windows ACL API probe / windows-2022 / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819098,
+ "name": "persistence-validation / Crash robot / postgres / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819103,
+ "name": "native-locks / linux-x64-glibc / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819110,
+ "name": "native-locks / linux-arm64-glibc / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819115,
+ "name": "persistence-validation / Crash robot / pglite / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819124,
+ "name": "native-locks / darwin-arm64 / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819127,
+ "name": "native-locks / win32-arm64 / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819129,
+ "name": "native-locks / linux-arm64-musl / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819147,
+ "name": "native-locks / linux-x64-glibc / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819155,
+ "name": "native-locks / win32-x64 / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819173,
+ "name": "native-locks / darwin-arm64 / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819198,
+ "name": "persistence-validation / Managed-sync convergence / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819237,
+ "name": "native-locks / darwin-x64 / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819238,
+ "name": "native-locks / win32-arm64 / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819347,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 2/19 / Bun 1.4.0",
+ "conclusion": "failure",
+ "steps": [
+ {
+ "name": "Set up job",
+ "conclusion": "success",
+ "number": 1
+ },
+ {
+ "name": "Set up runner",
+ "conclusion": "success",
+ "number": 2
+ },
+ {
+ "name": "Initialize containers",
+ "conclusion": "success",
+ "number": 3
+ },
+ {
+ "name": "Run actions/checkout@11d5960a326750d5838078e36cf38b85af677262",
+ "conclusion": "success",
+ "number": 4
+ },
+ {
+ "name": "Run oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6",
+ "conclusion": "success",
+ "number": 5
+ },
+ {
+ "name": "Install dependencies (bounded, retried once)",
+ "conclusion": "success",
+ "number": 6
+ },
+ {
+ "name": "Require PostgreSQL arms of unit-lane suites",
+ "conclusion": "failure",
+ "number": 7
+ },
+ {
+ "name": "Upload receipts",
+ "conclusion": "success",
+ "number": 8
+ },
+ {
+ "name": "Post Run oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6",
+ "conclusion": "skipped",
+ "number": 13
+ },
+ {
+ "name": "Post Run actions/checkout@11d5960a326750d5838078e36cf38b85af677262",
+ "conclusion": "success",
+ "number": 14
+ },
+ {
+ "name": "Stop containers",
+ "conclusion": "success",
+ "number": 15
+ },
+ {
+ "name": "Complete runner",
+ "conclusion": "success",
+ "number": 16
+ },
+ {
+ "name": "Complete job",
+ "conclusion": "success",
+ "number": 17
+ }
+ ]
+ },
+ {
+ "id": 117802819348,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 5/19 / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819356,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 10/19 / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819362,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 1/19 / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819376,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 12/19 / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819383,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 4/19 / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819384,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 9/19 / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819395,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 17/19 / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819401,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 19/19 / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819404,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 10/19 / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819405,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 7/19 / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819407,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 5/19 / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819411,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 11/19 / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819414,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 18/19 / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819417,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 18/19 / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819419,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 9/19 / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819423,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 16/19 / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819430,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 2/19 / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819438,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 4/19 / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819444,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 15/19 / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819446,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 17/19 / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819447,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 16/19 / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819449,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 3/19 / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819452,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 11/19 / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819454,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 14/19 / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819458,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 8/19 / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819459,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 3/19 / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819466,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 13/19 / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819471,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 1/19 / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819473,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 8/19 / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819474,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 6/19 / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819475,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 15/19 / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819492,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 6/19 / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819499,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 13/19 / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819504,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 7/19 / Bun 1.4.3",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819507,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 12/19 / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819524,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 14/19 / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802819530,
+ "name": "persistence-validation / Unit-lane PostgreSQL arms 19/19 / Bun 1.4.0",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802909830,
+ "name": "stress-changed-tests / stress-changed-tests result",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117802911070,
+ "name": "stress-changed-tests / ${{ (((inputs.mode == 'gate') && 'Stress shard') || 'Race hunt shard') }} ${{ matrix.shard }}",
+ "conclusion": "skipped",
+ "steps": []
+ },
+ {
+ "id": 117804487628,
+ "name": "Native-only result (full CI not run)",
+ "conclusion": "skipped",
+ "steps": []
+ },
+ {
+ "id": 117805662967,
+ "name": "coverage-report",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117807994584,
+ "name": "executed-receipts",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 117807994589,
+ "name": "test-status",
+ "conclusion": "failure",
+ "steps": [
+ {
+ "name": "Set up job",
+ "conclusion": "success",
+ "number": 1
+ },
+ {
+ "name": "Set up runner",
+ "conclusion": "success",
+ "number": 2
+ },
+ {
+ "name": "Aggregate result",
+ "conclusion": "failure",
+ "number": 3
+ },
+ {
+ "name": "Complete runner",
+ "conclusion": "success",
+ "number": 6
+ },
+ {
+ "name": "Complete job",
+ "conclusion": "success",
+ "number": 7
+ }
+ ]
+ }
+ ]
+}
diff --git a/test/fixtures/nightly-watch/master-red/jobs-39252817766.json b/test/fixtures/nightly-watch/master-red/jobs-39252817766.json
new file mode 100644
index 0000000000..4f0742b0b5
--- /dev/null
+++ b/test/fixtures/nightly-watch/master-red/jobs-39252817766.json
@@ -0,0 +1,191 @@
+{
+ "total_count": 31,
+ "jobs": [
+ {
+ "id": 118060566793,
+ "name": "changes",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 118060566995,
+ "name": "typecheck",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 118060567127,
+ "name": "security-regressions (ubuntu-latest, 1.4.3)",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 118060567181,
+ "name": "dependency-audit",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 118060567193,
+ "name": "gitleaks",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 118060567198,
+ "name": "stress-changed-tests / Stress plan",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 118060567294,
+ "name": "verify",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 118060567492,
+ "name": "security-regressions (windows-latest, 1.4.3)",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 118060567494,
+ "name": "security-regressions (macos-26, 1.4.0)",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 118060567512,
+ "name": "security-regressions (windows-latest, 1.4.0)",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 118060567569,
+ "name": "security-regressions (macos-26, 1.4.3)",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 118060567619,
+ "name": "security-regressions (ubuntu-latest, 1.4.0)",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 118060569023,
+ "name": "race-hunt",
+ "conclusion": "skipped",
+ "steps": []
+ },
+ {
+ "id": 118060834643,
+ "name": "reused-full-suite",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 118060836216,
+ "name": "persistence-validation",
+ "conclusion": "skipped",
+ "steps": []
+ },
+ {
+ "id": 118060836912,
+ "name": "native-locks",
+ "conclusion": "skipped",
+ "steps": []
+ },
+ {
+ "id": 118060837291,
+ "name": "slow-entity-resolve-perf",
+ "conclusion": "skipped",
+ "steps": []
+ },
+ {
+ "id": 118060837455,
+ "name": "shared-skills-compatibility",
+ "conclusion": "skipped",
+ "steps": []
+ },
+ {
+ "id": 118060837640,
+ "name": "brainbench",
+ "conclusion": "skipped",
+ "steps": []
+ },
+ {
+ "id": 118060837797,
+ "name": "test",
+ "conclusion": "skipped",
+ "steps": []
+ },
+ {
+ "id": 118060837836,
+ "name": "admin-browser",
+ "conclusion": "skipped",
+ "steps": []
+ },
+ {
+ "id": 118060837920,
+ "name": "serial-tests",
+ "conclusion": "skipped",
+ "steps": []
+ },
+ {
+ "id": 118060838193,
+ "name": "coverage-report",
+ "conclusion": "skipped",
+ "steps": []
+ },
+ {
+ "id": 118060838277,
+ "name": "slow-brainbench-e2e",
+ "conclusion": "skipped",
+ "steps": []
+ },
+ {
+ "id": 118060839087,
+ "name": "Native-only result (full CI not run)",
+ "conclusion": "skipped",
+ "steps": []
+ },
+ {
+ "id": 118061019548,
+ "name": "stress-changed-tests / stress-changed-tests result",
+ "conclusion": "success",
+ "steps": []
+ },
+ {
+ "id": 118061020669,
+ "name": "stress-changed-tests / ${{ (((inputs.mode == 'gate') && 'Stress shard') || 'Race hunt shard') }} ${{ matrix.shard }}",
+ "conclusion": "skipped",
+ "steps": []
+ },
+ {
+ "id": 118061210537,
+ "name": "executed-receipts",
+ "conclusion": "skipped",
+ "steps": []
+ },
+ {
+ "id": 118061756711,
+ "name": "cheap-tier (full suite not run)",
+ "conclusion": "skipped",
+ "steps": []
+ },
+ {
+ "id": 118061756981,
+ "name": "(github.event_name == 'pull_request' || (github.event_name == 'workflow_dispatch' && (inputs.native_only == true || inputs.race_hunt == true || inputs.stress_files != '' || inputs.stress_base != ''))) && 'full-suite-not-run' || 'test-status'",
+ "conclusion": "skipped",
+ "steps": []
+ },
+ {
+ "id": 118061757266,
+ "name": "(github.event_name == 'pull_request' || (github.event_name == 'workflow_dispatch' && (inputs.native_only == true || inputs.race_hunt == true || inputs.stress_files != '' || inputs.stress_base != ''))) && 'full-suite-not-run' || 'full-suite'",
+ "conclusion": "skipped",
+ "steps": []
+ }
+ ]
+}
diff --git a/test/fixtures/nightly-watch/master-red/runs-test-rerun.json b/test/fixtures/nightly-watch/master-red/runs-test-rerun.json
new file mode 100644
index 0000000000..8c5c1b1bfb
--- /dev/null
+++ b/test/fixtures/nightly-watch/master-red/runs-test-rerun.json
@@ -0,0 +1,88 @@
+{
+ "workflow_runs": [
+ {
+ "conclusion": "success",
+ "created_at": "2026-10-18T21:27:39Z",
+ "event": "push",
+ "head_branch": "master",
+ "head_repository": {
+ "full_name": "garrytan/gbrain"
+ },
+ "head_sha": "ac1ba4c93938fc7ff65b6db62b524ffa29f1edac",
+ "html_url": "https://github.com/garrytan/gbrain/actions/runs/39167931982",
+ "id": 39167931982,
+ "name": "Test",
+ "path": ".github/workflows/test.yml",
+ "repository": {
+ "full_name": "garrytan/gbrain"
+ },
+ "run_attempt": 1,
+ "run_number": 10213,
+ "status": "completed",
+ "workflow_id": 258320022
+ },
+ {
+ "conclusion": "failure",
+ "created_at": "2026-10-18T22:04:29Z",
+ "event": "push",
+ "head_branch": "master",
+ "head_repository": {
+ "full_name": "garrytan/gbrain"
+ },
+ "head_sha": "4fb9c4c78a596340f8415e1dd419106b4ad6452d",
+ "html_url": "https://github.com/garrytan/gbrain/actions/runs/39170624583",
+ "id": 39170624583,
+ "name": "Test",
+ "path": ".github/workflows/test.yml",
+ "repository": {
+ "full_name": "garrytan/gbrain"
+ },
+ "run_attempt": 1,
+ "run_number": 10222,
+ "status": "completed",
+ "workflow_id": 258320022
+ },
+ {
+ "conclusion": "success",
+ "created_at": "2026-10-18T22:04:29Z",
+ "event": "push",
+ "head_branch": "master",
+ "head_repository": {
+ "full_name": "garrytan/gbrain"
+ },
+ "head_sha": "4fb9c4c78a596340f8415e1dd419106b4ad6452d",
+ "html_url": "https://github.com/garrytan/gbrain/actions/runs/39170624583",
+ "id": 39170624583,
+ "name": "Test",
+ "path": ".github/workflows/test.yml",
+ "repository": {
+ "full_name": "garrytan/gbrain"
+ },
+ "run_attempt": 2,
+ "run_number": 10222,
+ "status": "completed",
+ "workflow_id": 258320022
+ },
+ {
+ "conclusion": "success",
+ "created_at": "2026-10-19T12:32:11Z",
+ "event": "push",
+ "head_branch": "master",
+ "head_repository": {
+ "full_name": "garrytan/gbrain"
+ },
+ "head_sha": "99be39273811d8215d8f682bd39bfe20b73437da",
+ "html_url": "https://github.com/garrytan/gbrain/actions/runs/39252817766",
+ "id": 39252817766,
+ "name": "Test",
+ "path": ".github/workflows/test.yml",
+ "repository": {
+ "full_name": "garrytan/gbrain"
+ },
+ "run_attempt": 1,
+ "run_number": 10289,
+ "status": "completed",
+ "workflow_id": 258320022
+ }
+ ]
+}
diff --git a/test/scripts/nightly-issue.test.ts b/test/scripts/nightly-issue.test.ts
index b84befc059..a3df8a0107 100644
--- a/test/scripts/nightly-issue.test.ts
+++ b/test/scripts/nightly-issue.test.ts
@@ -489,6 +489,88 @@ describe('master-red: push-to-master runs', () => {
expect(masterIssue(w)!.state).toBe('closed');
});
+ // Recorded API JSON from Test push runs on 2026-10-18/19 (#7020, #7056): run 10213 green (ac1ba4c9) ->
+ // run 10222 (39170624583, 4fb9c4c7) attempt 1 red in "Unit-lane PostgreSQL arms 2/19 / Bun 1.4.0" ->
+ // attempt 2 green after "re-run failed jobs", whose rebuilt ci-manifest flags every carried-over receipt
+ // as attempt 1 (incomplete, trimmed to 3 of 1242 problems) -> run 10289 (39252817766, 99be3927) green
+ // with the full suite reused (persistence-validation skipped, no ci-manifest). The attempt-1 manifest was
+ // replaced by attempt 2's, so it is rebuilt from the #7020 body.
+ const rerunRuns = mr<{ workflow_runs: RunInfo[] }>('runs-test-rerun.json').workflow_runs;
+ const run = (n: number, attempt = 1) => rerunRuns.find(r => r.run_number === n && r.run_attempt === attempt)!;
+ const RR = { g10213: run(10213), r10222: run(10222), g10222: run(10222, 2), g10289: run(10289) };
+ const PG_JOB = 'persistence-validation / Unit-lane PostgreSQL arms 2/19 / Bun 1.4.0';
+ const SEGMENTED = 'test/large-pages/segmented-prior-view.test.ts';
+ const redManifest = (r: RunInfo) => completeManifest(r, {
+ files: [{ file: SEGMENTED, lane: 'pg-arms-bun-1.4.0', arm: 'postgres', executed: 4, failed: 1, skipped: 0 }],
+ failures: [{ lane: 'pg-arms-bun-1.4.0', file: SEGMENTED, arm: 'postgres', test: 'prior view of a segmented page (postgres) > while the prior view is alive the heap holds no copy of the prior timeline', signature: 'expect(received).toBeLessThan(expected) Expected: < N Received: N' }],
+ });
+ const rerunIncident = async () => {
+ const w = new World();
+ w.addRun(RR.g10213).addRun(RR.r10222, `jobs-${RR.r10222.id}.json`, redManifest(RR.r10222));
+ expect((await go(w, RR.r10222)).masterRed!.action).toBe('create');
+ w.addRun(RR.g10222, `jobs-${RR.g10222.id}-attempt-2.json`, mr('ci-manifest-39170624583-attempt-2.json'));
+ const rerun = await go(w, RR.g10222);
+ expect(rerun.masterRed!.reason).toBe('green but failing jobs not re-run');
+ const incident = masterIssue(w)!;
+ expect(mrState(incident)).toMatchObject({ status: 'red', blocked: [PG_JOB], evidence: { run_id: RR.g10222.id, complete: false } });
+ incident.state = 'closed';
+ incident.comments.push('Master is green; the original red is fixed by a repair PR.');
+ w.addRun(RR.g10289, `jobs-${RR.g10289.id}.json`, null);
+ return { w, incident };
+ };
+
+ test('an incident closed by hand never comes back on a green run: run 39170624583 red on attempt 1, green on attempt 2 (#7020 closed, false #7056)', async () => {
+ const { w, incident } = await rerunIncident();
+ const r = await go(w, RR.g10289);
+ expect(r.masterRed!.evaluated).toEqual([RR.g10289.id]);
+ expect(r.masterRed!.action).not.toBe('create');
+ expect(w.labeled('master-red').map(i => i.number)).toEqual([incident.number]);
+ expect(incident.state).toBe('closed');
+ const state = mrState(incident);
+ expect(state).toMatchObject({ status: 'green', open_jobs: [], open_files: [], blocked: [], evaluated: { run_id: RR.g10289.id, run_attempt: 1 } });
+ expect(incident.body).not.toContain('State rebuilt');
+ expect(incident.body).toContain(`None: #${incident.number} was closed by hand while red`);
+ expect(incident.body).not.toContain('every previously failing job ran and passed');
+ const again = await go(w, RR.g10289);
+ expect(again.masterRed!.action).toBe('none');
+ expect(w.labeled('master-red')).toHaveLength(1);
+ });
+
+ test('after a hand close, a run whose latest attempt is red still opens a new incident from the last green run', async () => {
+ const { w, incident } = await rerunIncident();
+ const red: RunInfo = { ...RR.r10222, id: 39260000001, run_number: 10290, run_attempt: 2, head_sha: 'b'.repeat(40) };
+ w.addRun(red, `jobs-${RR.r10222.id}.json`, redManifest(red));
+ const r = await go(w, red);
+ expect(r.masterRed!.evaluated).toEqual([RR.g10289.id, red.id]);
+ expect(r.masterRed!.action).toBe('create');
+ const opened = masterIssue(w)!;
+ expect(opened.number).not.toBe(incident.number);
+ expect(opened.state).toBe('open');
+ expect(incident.state).toBe('closed');
+ const state = mrState(opened);
+ expect(state).toMatchObject({ status: 'red', first_red: { run_id: red.id, run_attempt: 2 }, latest_red: { run_id: red.id }, suspect: { from_sha: RR.g10289.head_sha, to_sha: red.head_sha } });
+ expect(state.open_jobs.map(j => j.job)).toEqual([PG_JOB]);
+ expect(state.tests.map(t => t.file)).toEqual([SEGMENTED]);
+ expect(opened.body).not.toContain('State rebuilt');
+ });
+
+ test('the rebuild judges each run by its latest attempt: a red attempt 1 cleared by a green re-run opens nothing, with or without a prior issue', async () => {
+ const fresh = () => new World()
+ .addRun(RR.g10213)
+ .addRun(RR.g10222, `jobs-${RR.g10222.id}-attempt-2.json`, mr('ci-manifest-39170624583-attempt-2.json'))
+ .addRun(RR.g10289, `jobs-${RR.g10289.id}.json`, null);
+ const none = fresh();
+ expect((await go(none, RR.g10289)).masterRed!.action).toBe('none');
+ expect(none.issues).toHaveLength(0);
+
+ const blind = fresh();
+ blind.issues.push({ number: 90, title: 'Master red: Test', state: 'closed', labels: [{ name: 'master-red' }], body: 'closed by hand; no state block', created: 0, comments: [] });
+ const r = await go(blind, RR.g10289);
+ expect(r.masterRed!.action).toBe('update');
+ expect(blind.labeled('master-red').map(i => [i.number, i.state])).toEqual([[90, 'closed']]);
+ expect(mrState(blind.issue(90))).toMatchObject({ status: 'green', first_red: null, open_jobs: [], evaluated: { run_id: RR.g10289.id } });
+ });
+
test('a green run where a previously failing job did not run keeps the issue open and names the manual-close step', async () => {
const w = testWorld(T.g8315, T.r8320);
await go(w, T.r8320);