Skip to content
Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
5dd2dad
Count the passing candidates thrown away unlanded in the daily row
jeremy Nov 25, 2026
7e5c70c
The thrown-away tripwire reads hey-native-apps' row only
jeremy Nov 25, 2026
17bf417
The daily row holds no limit on builds per landing
jeremy Nov 25, 2026
1b6357a
The daily row also gives the four hours before its window
jeremy Nov 25, 2026
9b033d4
The row fetches the records its four hours before read back over
jeremy Nov 25, 2026
9c3198c
The daily row gives its busiest hour, and judges it only when a backl…
jeremy Nov 26, 2026
44bc8e3
A pull request that conflicts with the trunk is no backlog
jeremy Nov 26, 2026
13ea083
The row says the busiest hour is of a backlog day, not within the bac…
jeremy Nov 26, 2026
24c12af
The row counts candidates dropped while building for a member
jeremy Nov 26, 2026
ad20b79
Merge remote-tracking branch 'train/main' into HEAD
jeremy Nov 26, 2026
9ef54b1
Merge commit 'ad20b79' into HEAD
jeremy Nov 26, 2026
06b39cf
Merge remote-tracking branch 'train/main' into HEAD
jeremy Nov 26, 2026
d813c2c
Merge commit '06b39cfac859d1c9d1cf07a960ce8dd0b4791157' into HEAD
jeremy Nov 26, 2026
9220d55
Merge remote-tracking branch 'train/main' into HEAD
jeremy Nov 26, 2026
279d009
A backlog is judged after everything its record does
jeremy Nov 26, 2026
d03ff43
Merge branch 'busiest-hour' into row-dropped
jeremy Nov 26, 2026
4c34ee1
A dropped candidate is one a member's own push or leaving dropped
jeremy Nov 26, 2026
c7dee54
Merge branch 'busiest-hour' into row-dropped
jeremy Nov 26, 2026
5c6dcd5
Only candidates hold a slot in the backlog
jeremy Nov 26, 2026
c8e7d35
A dropped candidate's age comes from its first push, and the evening …
jeremy Nov 26, 2026
d430053
Merge commit '9220d55efc137720fb61620180179bfdd90ea654' into HEAD
jeremy Nov 26, 2026
6d9697c
Merge commit 'a4cbfce' into HEAD
jeremy Nov 26, 2026
a8862e5
Merge remote-tracking branch 'train/main' into HEAD
jeremy Nov 26, 2026
449c7d6
Merge commit 'a8862e5f58004e2cb44f6c609ae30ce9ea74fe23' into HEAD
jeremy Nov 26, 2026
8650232
Merge commit '4cf525b47791d1c30c62640936dfcbc0e6efb728' into HEAD
jeremy Nov 26, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .agents/skills/hillclimb/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Read `CHARTER.md` first. It holds the invariants and the targets. Do not change

## What the numbers mean

A pull request's ready clock starts when it is labelled and its own checks have passed, whichever is later. `wait` is from then to landed and `eject` from then to ejected as the cause, both in whole-build times. `label50`, `label90` and `slow20th` are from the first time the pull request was labelled for the queue to its landing, across new heads and re-labelling: median, p90 and the mean of the slowest twentieth, in whole-build times. `builds/pr` counts a probe as its share of a whole build. `per hour` is landings an hour while a backlog stands: 540 queued with nothing arriving, counted from the second hour, when the chain is full, to the eighth, or to the landing that leaves a quarter of them if that comes sooner. A row whose queue fell behind what arrived and did not recover says in how many worlds; those worlds are stopped there. `wrong/1k` is innocent pull requests ejected per thousand landed; in `-live` without `-clone`, landings at a newer head after an ejection are printed as unchecked.
A pull request's ready clock starts when it is labelled and its own checks have passed, whichever is later. `wait` is from then to landed and `eject` from then to ejected as the cause, both in whole-build times. `label50`, `label90` and `slow20th` are from the first time the pull request was labelled for the queue to its landing, across new heads and re-labelling: median, p90 and the mean of the slowest twentieth, in whole-build times. `builds/pr` counts a probe as its share of a whole build. `per hour` is landings an hour while a backlog stands: 540 queued with nothing arriving, counted from the second hour, when the chain is full, to the eighth, or to the landing that leaves a quarter of them if that comes sooner. In `-live` it is landings over every hour anything was queued; the live row's measure beside the target is `busiest_hour_landings`, judged on a day whose `backlog_longest_minutes` reaches 60. A row whose queue fell behind what arrived and did not recover says in how many worlds; those worlds are stopped there. `wrong/1k` is innocent pull requests ejected per thousand landed; in `-live` without `-clone`, landings at a newer head after an ejection are printed as unchecked.

A `-history` row is in minutes, not build times. `left` is the window's pull requests still open at its end, and `in hand` those of them labelled, passed by their own checks and clear of a conflict then. `spared` is conflicts the record holds that came to a pull request this queue had already landed. `blame` is from the first label of a pull request that broke the build to its ejection.

Expand Down
2 changes: 1 addition & 1 deletion .agents/skills/operate/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Each tick records what it read and what it planned, where the workflow passes `-

- **Plan one again:** `go run ./eval -replay <recording>` in Banyan's repository prints the actions that world calls for. It is the same function the tick ran, so a surprise replays exactly on the release that recorded it.
- **Score a stretch of them:** `go run ./eval -live <dir>` in Banyan's repository, with every recording in one folder. The row has the simulator's columns, so it sits beside `eval/scoreboard.tsv`.
- **A day's row:** `eval/daily-row <owner/repo> <YYYY-MM-DD> [<shape>]` fetches the day's recordings (`eval/fetch-ticks`), scores 01:17Z to 21:17Z (`go run ./eval -live <dir> -from <time> -to <time> -row`, one JSON object, with the simulated row beside it where a shape is named) and reads the day's take-outs from the comments that carry the eject marker (`go run ./eval -takeouts <owner/repo> -from <time> -to <time>`): who made each, whether the same head landed since, and whether a check that had failed passed later on the same commit. It keeps the row as JSON and Markdown with a line in `rows.tsv`, and hands the Markdown to `$BANYAN_ROW_POST` once a day. Reads go through `$BANYAN_GH`. With `$BANYAN_CLONE` naming a clone that holds the blamed heads, the row checks a landing after an ejection as the cause; without it, the row says how many it could not check.
- **A day's row:** `eval/daily-row <owner/repo> <YYYY-MM-DD> [<shape>]` fetches the day's recordings (`eval/fetch-ticks`), scores 01:17Z to 21:17Z (`go run ./eval -live <dir> -from <time> -to <time> -row`, one JSON object, with the simulated row beside it where a shape is named) and reads the day's take-outs from the comments that carry the eject marker (`go run ./eval -takeouts <owner/repo> -from <time> -to <time>`): who made each, whether the same head landed since, and whether a check that had failed passed later on the same commit. It reads the same two for the four hours before the window, 21:17Z the day before to 01:17Z, with no simulated row, so no landing falls outside every row: they go under `before` in the JSON and in a block after the day's tripwires, and judge no tripwire and add no column to `rows.tsv`. The row's `busiest_hour_landings` is the most pull requests landed in the window within 60 minutes of one of its landings. Its `backlog_longest_minutes` is the longest run of records, none more than 10 minutes after the last, after whose own actions a pull request that could be built (ready, and not in conflict with the trunk) is in no pending candidate or push and every slot holds a pending build or a push. The busiest hour is judged against the charter's landings an hour only on a day that backlog stood 60 minutes, wherever in the day the hour falls (on 19 and 25 Nov 2026 it was the hour after the backlog cleared); `landings_per_hour` is landings over every hour anything was queued, which is not the charter's measure. Its `building_candidates_dropped` counts the candidates a tick deleted while they were still building because a member's head had moved or a member had left the queue without landing or being ejected, with `dropped_members_still_queued`, how many of their pull requests stayed queued at the same head (a lower candidate may still land one without a new build), and the longest any had built; it is shown and trips nothing. It keeps the row as JSON and Markdown with a line in `rows.tsv`, and hands the Markdown to `$BANYAN_ROW_POST` once a day. Reads go through `$BANYAN_GH`. With `$BANYAN_CLONE` naming a clone that holds the blamed heads, the row checks a landing after an ejection as the cause; without it, the row says how many it could not check.

A surprise from a real queue becomes a case in `eval/cases/` before its fix. The hillclimb skill says how.

Expand Down
39 changes: 28 additions & 11 deletions eval/daily-row
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,52 @@
# daily-row <owner/repo> <YYYY-MM-DD> [<shape>]: a queue's row for one day, 01:17Z to 21:17Z, from the
# eval's live score over its tick records and its take-outs from GitHub, kept under
# $BANYAN_ROWS/<repo>/rows as <day>.json and <day>.md with a line in rows.tsv. <shape> adds the
# simulated row beside it. The day's first whole row is the row: a later run changes nothing, and
# only posts it where that is still owed. With $BANYAN_ROW_POST set, the Markdown goes to that
# command's stdin once and its answer is kept in <day>.posted. Any failure exits non-zero with
# nothing of the day replaced. $BANYAN_EVAL is the eval's binary, $BANYAN_GH the gh reads go through,
# and $BANYAN_CLONE a clone of the repository the wrong-ejection check reads; without one, a landing
# after an ejection as the cause is counted as unchecked.
# simulated row beside it. The row also gives the live score and take-outs of the four hours before
# its window, from 21:17Z the day before, under the key before and kept as <day>.before.*.json, so
# no landing falls outside every row; they trip no tripwire and add nothing to rows.tsv. The day's
# first whole row is the row: a later run changes nothing, and only posts it where that is still
# owed. With $BANYAN_ROW_POST set, the Markdown goes to that command's stdin once and its answer
# is kept in <day>.posted. Any failure, of a read for the day or for the four hours, exits non-zero
# with nothing of the day replaced. $BANYAN_EVAL is the eval's binary, $BANYAN_GH the gh reads go
# through, and $BANYAN_CLONE a clone of the repository the wrong-ejection check reads; without one,
# a landing after an ejection as the cause is counted as unchecked.
set -euo pipefail
repo=$1 day=$2 shape=${3:-}
here=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
eval_bin=${BANYAN_EVAL:?the eval binary}
dir=${BANYAN_ROWS:-$HOME/.local/state/banyan-rows}/${repo##*/}
rows=$dir/rows
from=${day}T01:17:00Z to=${day}T21:17:00Z
from=${day}T01:17:00Z to=${day}T21:17:00Z before=$(date -u -d "$day - 1 day" +%F)T21:17:00Z
mkdir -p "$rows"
committed() {
jq -e '.live.commit | test("^[0-9a-f]{40}$")' "$1" > /dev/null && return 0
echo "daily-row: the eval is not built from a commit ($(jq -r .live.commit "$1")), so its row is not posted" >&2; exit 1
}
recorded() {
[ -d "$dir/ticks" ] && find "$dir/ticks" -maxdepth 1 -name '*.json' -printf '%f\n' |
awk -v from="$(date -u -d "$1" +%Y%m%dT%H%M%SZ)" -v to="$(date -u -d "$2" +%Y%m%dT%H%M%SZ)" '$0 >= from && $0 < to { n++ } END { exit n == 0 }'
}

if [ ! -s "$rows/$day.json" ]; then
[ "$(date -u +%s)" -ge "$(date -u -d "$to" +%s)" ] || { echo "daily-row: $day's window is still open" >&2; exit 2; }
"$here/fetch-ticks" "$repo" "$dir" "$(date -u -d "$from - 72 hours" +%FT%TZ)" "$(date -u -d "$to + 5 minutes" +%FT%TZ)" >&2
"$here/fetch-ticks" "$repo" "$dir" "$(date -u -d "$before - 72 hours" +%FT%TZ)" "$(date -u -d "$to + 5 minutes" +%FT%TZ)" >&2
tmp=$(mktemp -d "$rows/.$day.XXXXXX"); trap 'rm -rf "$tmp"' EXIT
like=(); [ -n "$shape" ] && like=(-like "$shape")
[ -z "${BANYAN_CLONE:-}" ] || like+=(-clone "$BANYAN_CLONE")
"$eval_bin" -live "$dir/ticks" -from "$from" -to "$to" "${like[@]}" -row > "$tmp/live.json"
clone=(); [ -z "${BANYAN_CLONE:-}" ] || clone=(-clone "$BANYAN_CLONE")
"$eval_bin" -live "$dir/ticks" -from "$from" -to "$to" "${like[@]}" "${clone[@]}" -row > "$tmp/live.json"
"$eval_bin" -takeouts "$repo" -from "$from" -to "$to" > "$tmp/takeouts.json"
if recorded "$before" "$from"; then
"$eval_bin" -live "$dir/ticks" -from "$before" -to "$from" "${clone[@]}" -row > "$tmp/before.live.json"
else
echo null > "$tmp/before.live.json"
fi
"$eval_bin" -takeouts "$repo" -from "$before" -to "$from" > "$tmp/before.takeouts.json"
jq -n --arg repo "$repo" --arg day "$day" --arg made "$(date -u +%FT%TZ)" --slurpfile live "$tmp/live.json" --slurpfile out "$tmp/takeouts.json" \
'{repo: $repo, day: $day, made: $made, live: $live[0], takeouts: $out[0]}' > "$tmp/row.json"
--arg before "$before" --arg from "$from" --slurpfile before_live "$tmp/before.live.json" --slurpfile before_out "$tmp/before.takeouts.json" \
'{repo: $repo, day: $day, made: $made, live: $live[0], takeouts: $out[0],
before: {from: $before, to: $from, live: $before_live[0], takeouts: $before_out[0]}}' > "$tmp/row.json"
jq -e '.live.landed != null and .live.ticks > 0 and (.takeouts.takeouts | type) == "array"' "$tmp/row.json" > /dev/null
jq -e '(.before.live == null or (.before.live.ticks | type) == "number") and (.before.takeouts.takeouts | type) == "array"' "$tmp/row.json" > /dev/null
[ -z "${BANYAN_ROW_POST:-}" ] || committed "$tmp/row.json"
jq -r -f "$here/daily-row.jq" "$tmp/row.json" > "$tmp/row.md"
[ -s "$tmp/row.md" ]
Expand All @@ -50,6 +66,7 @@ if [ ! -s "$rows/$day.json" ]; then
| map(if . == null then "" elif type == "number" then (. * 100 | round / 100) else . end) | @tsv' "$tmp/row.json"
} > "$tmp/rows.tsv"
mv "$tmp/row.md" "$rows/$day.md"; mv "$tmp/live.json" "$rows/$day.live.json"; mv "$tmp/takeouts.json" "$rows/$day.takeouts.json"
mv "$tmp/before.live.json" "$rows/$day.before.live.json"; mv "$tmp/before.takeouts.json" "$rows/$day.before.takeouts.json"
mv "$tmp/rows.tsv" "$dir/rows.tsv"; mv "$tmp/row.json" "$rows/$day.json"
fi

Expand Down
Loading
Loading