Skip to content

The daily row counts passing candidates thrown away unlanded - #13

Merged
jeremy merged 3 commits into
mainfrom
row-thrown-away
Nov 26, 2026
Merged

jeremy merged 3 commits into
mainfrom
row-thrown-away

Conversation

@jeremy

@jeremy jeremy commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Context

A candidate that passes and is then deleted without landing is a whole build that landed nothing. It happens when a member's head moves while the candidate builds, or a member leaves the queue. The limit is three a day in hey-native-apps, and until now the count came from a scratch script read by hand each night.

Change

The live row counts them: passing_candidates_thrown_away, with thrown_away_head_moved and thrown_away_member_left beside it. A candidate counts once, when a tick in the window deletes it while it has passed with members on it and no recorded plan lands its commit. A candidate can have both reasons, or neither (the trunk moved under it).

The daily row gets one table line in every queue's row, and a tripwire sentence in hey-native-apps' row when the count is over three.

Nothing in the replay changes. The replay check over hey-native-apps' recorded windows (24 lines) prints the same as main's, and with -like the simulated block and over_live are byte-identical to main's on 24 Nov.

The recorded days

hey-native-apps, 01:17Z to 21:17Z (16 Nov from 08:17Z): thrown away / head moved / member left.

Day Count
16 Nov 1 / 1 / 0
17 Nov 1 / 1 / 0
18 Nov 2 / 0 / 1
19 Nov 0
20 Nov 9 / 9 / 0
21 Nov 9 / 9 / 0
22 Nov 0
23 Nov 6 / 4 / 2
24 Nov 2 / 0 / 2

These match the scratch script on all nine days. hey2 reads 0 on 22, 23 and 24 Nov.

None of the 30 counted commits is in main's history: all 30 are in the repository and none is an ancestor of main as of 00:02Z on 25 Nov. For 6 of the 30, a land action names some of the candidate's member merges, each time landing a different commit that was itself a passing candidate in that tick. The counted build still landed nothing.

The real row path, run from this branch for 24 Nov with nothing posted, exits 0 for both queues: hey-native-apps reads "2: 0 with a member's head moved, 2 with a member gone from the queue" and its tripwire line is unchanged; hey2 reads "none".

Every other field of the row is unchanged from main on three rows compared whole (hey-native-apps 18 and 24 Nov, hey2 24 Nov).

Tests

  • TestLiveCountsPassingCandidatesThrownAwayUnlanded: twelve cases, each shown to fail with its guard removed: head moved, member left, both, deleted twice, landed then deleted, landed after the window, failed, pending, empty chain, a check rather than a candidate, deleted before the window, deleted at the window's end.
  • TestDailyRowTripsOverThreePassingCandidatesThrownAwayInHeyNativeApps: no tripwire at 3, one at 4, none at 4 in another repository.

Not done

  • No column in rows.tsv: comparable counts have none, and a changed header sets the old file aside.
  • No third reason for a candidate thrown away because the trunk moved under it (one in nine days, 18 Nov).
  • A landing more than an hour after the window's end is outside the records the eval loads, so a candidate deleted in the window and landed that late would be counted. None was.
  • The row still prints the builds-per-landing tripwire (0.60 and 1.3) that the thrown-away limit and the comparison with the replay replaced on 23 Nov. Removing it is its own change, after this one.
  • A tick with no record hides its deletes, so the count can read low on a day with missing ticks. The row's "Trunk moves no recorded tick planned" line is the sign of such a day.

A candidate that passed and is deleted before any plan lands it is a whole
build that proved a tree and landed nothing. The live row counts them once
each, with how many had a member whose head moved and how many a member that
left the queue, and the daily row trips at more than 3.
The limit of three a day was set for hey-native-apps. The table line stays in
every queue's row.
@jeremy
jeremy marked this pull request as ready for review November 25, 2026 01:54
Copilot AI balanced review requested due to automatic review settings November 25, 2026 01:55

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approved

No active review issues remain for the live discarded-candidate reporting change.

No open issues 🎉

What changed in this PR

Adds live reporting for passing merge-queue candidates deleted without landing, replacing the manual count in the daily row while leaving replay behavior unchanged.

Changes:

  • Counts each discarded passing candidate once, with separate head-moved and member-left counts.
  • Displays the metric for every queue and adds a tripwire above three for hey-native-apps.
  • Adds tests for counting rules, window boundaries, and repository-specific tripwire behavior.

[!TIP]
If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.

File Description
eval/​live_window_test.go Tests discarded-candidate counting and exclusions.
eval/​live_metrics.go Computes discarded-candidate totals and reason counts.
eval/​daily-row.jq Renders the counts and repository-specific tripwire.
eval/​daily_row_test.go Tests daily-row output and tripwire thresholds.

Review effort: Balanced

* train/main:
  The replay draws no build time from a verdict first read after an outage (#10)
@jeremy
jeremy merged commit 1524f5c into main Nov 26, 2026
4 checks passed
@jeremy
jeremy deleted the row-thrown-away branch November 26, 2026 09:27
jeremy added a commit that referenced this pull request Nov 26, 2026
* train/main:
  The daily row counts passing candidates thrown away unlanded (#13)
jeremy added a commit that referenced this pull request Nov 26, 2026
* commit '06b39cfac859d1c9d1cf07a960ce8dd0b4791157':
  The daily row counts passing candidates thrown away unlanded (#13)
  The replay draws no build time from a verdict first read after an outage (#10)
jeremy added a commit that referenced this pull request Nov 26, 2026
* train/main:
  The daily row also gives the four hours before its window (draft) (#18)
  The daily row holds no limit on builds per landing (draft) (#17)
  The daily row counts passing candidates thrown away unlanded (#13)
  The replay draws no build time from a verdict first read after an outage (#10)
jeremy added a commit that referenced this pull request Nov 26, 2026
* commit '9220d55efc137720fb61620180179bfdd90ea654':
  The daily row holds no limit on builds per landing (draft) (#17)
  The daily row counts passing candidates thrown away unlanded (#13)
  The replay draws no build time from a verdict first read after an outage (#10)
jeremy added a commit that referenced this pull request Nov 26, 2026
* commit 'a8862e5f58004e2cb44f6c609ae30ce9ea74fe23':
  The charter's cap on wrong ejections holds to about a fifth (#14)
  The daily row also gives the four hours before its window (draft) (#18)
  The daily row holds no limit on builds per landing (draft) (#17)
  The daily row counts passing candidates thrown away unlanded (#13)
  The replay draws no build time from a verdict first read after an outage (#10)
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.

2 participants