Repository navigation
The row counts candidates dropped while building for a member - #22
Conversation
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)
* 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.
There was a problem hiding this comment.
🟡 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 rungh pr ready --undo.
Click "Ready for review" or rungh pr readyto 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
* 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.
|
🤖 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:
|
* 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)

With
cancelson, 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
.livegainsbuilding_candidates_dropped, withdropped_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) anddropped_longest_built_minutes. Nothing else in the row's JSON changes.What the records say
cancelson in hey-native-apps from 20:46Z)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'sdaily-row.jq.daily-rowend to end against GitHub.After an outside read
Fixed, each with a test written first:
N; details not measuredwhen a detail field is missing, whereflooron null would have ended the script and lost the night's row.dropped_members_still_queued).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:
Stacked on #20.