Repository navigation
fleet-queue: claim-link rollup — repo-queue models over the #9046 link (#10357) - #10560
Merged
Merged
Conversation
#10357) The task-session-model link itself landed with #9046 (model_stamp / session_bound events + repo-queue timeline per task). What was missing is the inversion: nothing answered "which tasks did model Y touch" fleet-wide, so per-model accounting still needed hand-rolled SQL. - /events-list (broker): task_id becomes optional; without it the verb lists across tasks inside a since window (kind-filtered), rows always carry their task_id, cross-task limit clamps to 50000. - repo-queue models [--days N] [--json] (client): aggregates the window into a stamped section (per provider/model/variant: distinct tasks, sessions, stamps, completions) and a served section (dominant route_attempt leaf per binding window: tasks, windows, calls), reusing timeline_event / collapse_timeline / binding_windows / dominant_model_for_session. Against an older broker it says the rollup activates with the broker build and exits 3. No new store: #10357 names the claimant/queue as the capture point and absorbs the link there; the events store is that place. No per-model PR count: pull_request events are a GitHub webhook mirror (task_id always NULL) and merge_intents link PRs to issues/sessions, not tasks, so no task-linked PR signal exists to count yet.
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Caution Review failedThe pull request is closed.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
This was referenced Nov 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this is
The claim-stamp task↔session link Drew asked for (twice, 2026-11-12). Research first: the recording machinery already landed with #9046 (2026-11-12) —
model_stamp/session_bound/session_unboundevents in the queue store, the tasks-row latest stamp, andrepo-queue timeline <task>rendering the per-task chain joined toroute_attempt. What was missing is the inversion: nothing answered "which tasks did model Y touch" across the fleet, so per-model quality accounting still needed hand-rolled SQL. This PR builds exactly that inversion, and nothing else.Store choice, per #10357: that design names the claimant/queue as a capture point and says the task↔session link "should be absorbed" into its general form. No new store, no new schema — the rollup reads the events #9046 already writes.
Changes (fleet-queue, 2 files)
/events-list:task_idis now optional. Without it, the verb lists across tasks inside asincewindow (kind-filtered), rows always carry theirtask_id, and the limit clamps wider (50,000 cross-task vs 1,000 per-task — a 7-day window of link/outcome kinds is ~10k rows). With atask_idthe behavior is unchanged.repo-queue models [--days N] [--json]: aggregates the window into two sections, reusingtimeline_event/collapse_timeline/binding_windows/dominant_model_for_session:Proof
cargo test -p fleet-queue --all-features: 334 lib tests + integration suites, all green, including 5 new tests (cross-task/events-listsource oracle, row task_id parsing, per-model task dedup, served aggregation, ISO window formatting).cargo fmtclean.The
completed=1193for muse-lane matches the independently measured claim-stamp completion count for the same window.--jsonemits the same sections with fulltask_idsarrays — the literal answer to "which tasks did model Y touch".repo-queue timeline 17126shows task 17126 → sessionses_e5e24f390ddffe8qOcDiZCywYe→ stampopencode-route/workhorse(transfer, 2026-11-14T17:13:09Z) → served byopencode-go.drewrypope/beam-free(the same chain the rollup counts above).Honest limits (in the PR, not buried)
session_boundevents exist all-time. That is a data problem, not a recording problem: both launch paths bind (claimant main flow, launch_one, dispatch_batch all verified), but claimant launches collapsed with the fleet stall + quota walls. The rollup gets more useful as launches recover; it does not manufacture coverage.muse-lane, session NULL) — visible above assessions=0.pull_requestevents are a GitHub webhook mirror whosetask_idis always NULL (verified: 2,480 events in-window, 0 with a task_id),tasks.resultis empty, andmerge_intentslinks PRs to issues/sessions, not tasks. There is no task-linked PR signal to count yet; shipping a permanently-zero column would invite false conclusions. The follow-on is a merge_intents↔task-payload (issue number) join — separate build.session_unboundevents carry the literal string"None"as session_id (lane park/release appends). Not fixed here; the rollup's window logic ignores unbound rows without a matching bound session.Refs #10357, #9046, #9408.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.