Skip to content

The row counts candidates dropped while building for a member - #22

Merged
jeremy merged 25 commits into
mainfrom
row-dropped
Nov 26, 2026
Merged

jeremy merged 25 commits into
mainfrom
row-dropped

Conversation

@jeremy

@jeremy jeremy commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

With cancels on, a candidate the queue drops because a member's head moved, or a member left, stops before it has a verdict. The row's "passing candidates thrown away" counts only candidates that had passed, so it reads none, and the row shows nothing of what the drop cost.

Change

  • .live gains building_candidates_dropped, with dropped_head_moved, dropped_member_left, dropped_members_still_queued (their members still queued at the head that was building, each once; a lower candidate may still land one without a new build) and dropped_longest_built_minutes. Nothing else in the row's JSON changes.
  • The row's table gains "Candidates dropped while building", after the thrown-away line, for the day and for the four hours before. It is shown and trips nothing.
  • A candidate dropped with every member still queued at its head (one stacked on a failed candidate) is not counted here: the failed candidate's line already holds it.

What the records say

Window hey-native-apps hey2
25 Nov, 01:17Z to 21:17Z (cancels on in hey-native-apps from 20:46Z) none 1, a member's head moved, 21 min in, no other member
26 Nov, 01:17Z to 08:17Z 3, all with one member's head moved; 11 of their pull requests stayed queued at the same head, the longest 21 min in none

26 Nov's three are one push to a queued pull request at 05:57Z; six of those pull requests then waited over 30 minutes for the queue.

Verification

  • go test ./eval/ -run 'TestDailyRow|TestLive|TestReplay' passes. The measure's test was written first and failed to compile; the row test fails against the base's daily-row.jq.
  • Not run: daily-row end to end against GitHub.

After an outside read

Fixed, each with a test written first:

  • The dropped count had marked the map the thrown-away count uses, so a candidate planned for deletion while building and seen passing at the next tick was no longer counted as thrown away. It has its own map.
  • A member that left because the queue took it out, or that landed in another candidate, no longer makes a drop: only a member's own push or leaving does.
  • A candidate with no recorded push time is counted and has no age.
  • The row line reads N; details not measured when a detail field is missing, where floor on null would have ended the script and lost the night's row.
  • The last figure is named for what it counts (dropped_members_still_queued).
  • The tripwire test compares the whole line with and without the drops, and a clean day with four drops still ends "No tripwire breached."
  • A candidate's age comes from its first recorded push when the deleting record's entry has none.
  • A SHA recorded twice in one world with different verdicts counts as it did before this branch.
  • The four hours before the window, with records and no landing, now print the thrown-away and dropped rows when either count is above zero; with neither, the block is unchanged.

Checked on real records: every existing field of the row is the same as the build before these changes on five day and queue pairs, and the same as main at edf7b8c on 25 Nov in hey-native-apps (60 of 60 fields).

Not changed, on purpose:

  • The measure reads each record's plan, as every figure in the row does. A delete the remote refused is counted when planned, once per SHA.

Stacked on #20.

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.
The limits of 0.60 and 1.3 were replaced on 23 Nov by the count of passing
candidates thrown away and by live builds per landing against the replay of the
same day, which the comparison states. The table line stays.
A landing between 21:17Z and 01:17Z fell outside every row. The row now
reads the live score (with -clone, without -like) and the take-outs of
the day before's 21:17Z to the day's 01:17Z, keeps them under before and
as <day>.before.*.json, and renders them after the day's tripwires. They
judge no tripwire and add no column to rows.tsv. Four hours with no tick
record say so; a failed read of them fails the row.
The score of the four hours before the window reads 72 hours of records before
they open, as the day's does before its own. The fetch started 72 hours before
the day's window, so a first run for a queue left those four hours with 68.
…og stood

The charter's landings an hour while a backlog stands had no live measure:
landings_per_hour is landings over every hour anything was queued. The live
score now gives busiest_hour_landings, the most landings in 60 minutes from
one of them, and backlog_longest_minutes, the longest run of records after
whose own actions a ready pull request is in no pending candidate or push and
every slot is held. The row judges the busiest hour against 12 for hey2 and 16
for hey-native-apps only on a day that backlog stood 60 minutes, and trips
under it; the four hours before show it unjudged.
It reads as ready and can never be built until its author changes it, so a
full queue beside it is not a queue falling behind. The backlog now asks the
rule the ready-wait measure already uses.
…klog

On both recorded days a backlog stood an hour, the busiest sixty minutes began
as it cleared. The line and the tripwire no longer say the two coincide.
With cancels on, a candidate dropped because a member's head moved or a member
left stops before it has a verdict, so the count of passing candidates thrown
away never sees it. The row now says how many were dropped mid-build, why, how
many other members started again and the longest any had built. Shown only.
* train/main:
  The replay draws no build time from a verdict first read after an outage (#10)
* commit 'ad20b79':
  The replay draws no build time from a verdict first read after an outage (#10)
* train/main:
  The daily row counts passing candidates thrown away unlanded (#13)
* 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)
* train/main:
  The daily row holds no limit on builds per landing (draft) (#17)
A record that deletes the only pending candidate, or lands or ejects the
only waiter, leaves no backlog, and the record's own note on a pull request
stands for its last one. A queue with no slots recorded never stands as a
backlog, and a queue with no busiest-hour target is not called judged.
Three tests now fail when what they name is broken: the window's upper
edge, a busiest hour after the first landing, and a day landing exactly
its target.
* busiest-hour:
  A backlog is judged after everything its record does
The dropped count keeps its own map, so a candidate deleted while building
and seen passing at the next delete still counts as thrown away. A member
no longer queued counts toward a drop only when it neither landed at that
head nor was ejected by the queue since it was last queued. The last figure
is renamed dropped_members_still_queued and says only that those pull
requests stayed queued at the same head. A candidate with no push time has
no age, and the row line gives none when no dropped candidate has one. With
a detail missing, the row line says the details were not measured rather
than failing the row or printing null.
@jeremy
jeremy marked this pull request as ready for review November 26, 2026 09:54
Copilot AI balanced review requested due to automatic review settings November 26, 2026 09:54

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.

🟡 Changes recommended

Active issues hide dropped-candidate metrics in zero-landing windows and miscount pending drops by attributing some landed members as departures and excluding drops when a landing is planned later.

3 open issues
What changed in this PR

Adds visibility into merge-queue candidates dropped before their builds finish, complementing the existing count of passing candidates thrown away.

Changes:

  • Tracks dropped candidates, departure reasons, members still queued, and elapsed build time.
  • Adds informational drop rows to daily and preceding-window reports without changing tripwires.
  • Adds regression coverage and documents the new metrics.

[!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 drop attribution, deduplication, age, and passing-candidate interactions.
eval/​live_metrics.go Adds dropped-candidate metrics and departure classification.
eval/​daily-row.jq Renders drop counts and handles missing details.
eval/​daily_row_test.go Tests report text and unchanged tripwire behavior.
.agents/​skills/​operate/​SKILL.md Documents the new informational metrics.

Review effort: Balanced

Comment thread eval/daily-row.jq Resolved
Comment thread eval/live_metrics.go Resolved
Comment thread eval/live_metrics.go Resolved
* busiest-hour:
  Only candidates hold a slot in the backlog
The engine counts pending candidates and its own candidate pushes against
the slots, and runs a round's probes and checks beside them. The backlog
now counts the same, so a pending probe no longer stands as a full queue.
A test now holds that a deleted candidate's members are not started.
…shows drops

A deleted commit with two entries is counted from the first entry that
counts, as before. A candidate whose deleting world has no push time takes
the one an earlier record read or the tick that planned its push. The four
hours before the window, with records and no landing, show the thrown-away
and dropped rows when either is above zero. The skill says only candidates
hold a slot.
@jeremy

jeremy commented Nov 26, 2026 •

Copy link
Copy Markdown
Member Author

🤖 Where the reviews stand. Two outside reads and the bot's review covered this branch up to 4c34ee1. Everything they found is fixed with a test written first, except what is listed below.

The last commit (c8e7d35: the push-time fallback, a SHA recorded twice, and the two rows for the hours before the window) answers the second read and was merged without a further outside read. It rests on its tests, each seen failing first, and on a field-by-field comparison of the row on real records before and after it. One more outside read of that commit followed the merge. It found nothing that can lose the row, no malformed table in the hours before the window, and no figure moved from what main had before this branch: the one input it names (a SHA recorded as failed and then as passed) counts as it did before the branch, which is what the last commit restored.

Declined:

  • A candidate that was planned for deletion while building and later landed is not counted (The row counts candidates dropped while building for a member #22 (comment)): its build was not lost.
  • A member merged outside the queue reads as gone from the queue (The row counts candidates dropped while building for a member #22 (comment)): it is.
  • A delete the remote refused is counted when planned, once per SHA: the row reads plans everywhere.
  • An ejection or landing more than 72 hours before the window is not seen: no candidate stays pending that long.
  • An age of exactly 0 minutes is left out, and a string where the eval writes a number would still end the script: neither arises from the eval's own output.
  • A row made by this branch's first commit, with the old field name, reads "details not measured": no such row was ever stored.

* 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)
* commit 'a4cbfce':
  The daily row also gives the four hours before its window (draft) (#18)
* train/main:
  The charter's cap on wrong ejections holds to about a fifth (#14)
Base automatically changed from busiest-hour to main November 26, 2026 10:31
* 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)
* commit '4cf525b47791d1c30c62640936dfcbc0e6efb728':
  The daily row gives its busiest hour, judged on a day a backlog stood (#20)
@jeremy
jeremy merged commit 0bb4ab5 into main Nov 26, 2026
4 checks passed
@jeremy
jeremy deleted the row-dropped branch November 26, 2026 10:37
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