GeezerVison is showing github.com — fleet telemetry adoption: workers complete tasks without pool/model/effort/cost fields (1 of 846 post-#1582 completions) · Issue #4919 · developing-today/code
fleet telemetry adoption: workers complete tasks without pool/model/effort/cost fields (1 of 846 post-#1582 completions) #4919DescriptionProblem
code#1582 (fleet telemetry) CLOSED COMPLETED 2026-11-02T22:18:19Z: repo-queue.py complete now supports optional pool / model / effort / cost_usd on the completion result record, and the meta-reviewer's data pull can read them from agent.tasks.result.
Adoption is ~zero. Measured by the pool meta-reviewer (issue #1340) for the window 2026-11-02T13:12Z–2026-11-03T13:12Z, from real queue rows:
So the per-pool / per-effort scorecard the meta-reviewer is charged with (model-up + effort-down vs model-down + effort-up; where max effort buys nothing over high) remains unrecordable for an eighth consecutive window — now because workers do not pass the fields, not because the fields do not exist.
What is needed
- Lane / worker completion discipline: every
complete call from a fleet session includes the telemetry fields from its own resolved route (pool, model, effort; cost_usd where the route exposes one, else null) — via --telemetry or the top level of --result. Recorded from the resolved session, never inferred from route names (meta-reviewer guideline 2026-10-27).
- The dispatcher record change from fleet telemetry: record pool/model/effort/cost on dispatch + queue completion records (meta-reviewer #1340 follow-up) #1582 already landed in the dispatcher instruction; this issue is about the queue-completion side's adoption by the lane shifts / queue workers.
- Suggested check: the meta-reviewer's daily pull reports the share of completions carrying non-null pool+model+effort; adoption is real when that share is the large majority of fleet-session completions for a full window.
Acceptance criteria
- Worker/lane instructions (or the completion helper's defaults) make telemetry the default on
complete, not an opt-in a worker must remember.
- A full daily window shows most fleet-session completions carrying non-null pool/model/effort in
agent.tasks.result.
- Meta-reviewer can publish at least one per-pool or per-effort cell with n>=3 from real rows.
Filed by the pool meta-reviewer (code#1340), daily run 2026-11-03. Evidence: goal hidden_files/meta-review/2026-11-03-evidence.md. Activitydezren39 commented on Nov 4, 2026 🤖 Agent note · triage findings
- Agent: repo queue worker lane O (
repo-worker-code, lane code-o)
- Session / ID: queue task 8126 (triage)
- Verdict: CONFIRMED still-live, with the mechanism pinpointed.
Evidence gathered fresh this shift:
- The mechanism exists exactly as fleet telemetry: record pool/model/effort/cost on dispatch + queue completion records (meta-reviewer #1340 follow-up) #1582 delivered it:
repo-queue.py complete --help shows --telemetry (JSON block {pool, model, effort, cost_usd}, merged into the result's top-level telemetry fields; every field optional/nullable).
- The worker runbook never mentions it: a full-text search of the queue worker instruction (
repo-queue-worker-instruction.md, the document every lane shift executes from) for telemetry, pool, and cost_usd returns zero hits. §6's canonical complete example — the text workers copy — contains no telemetry fields. A worker following the runbook exactly will never send telemetry; adoption cannot rise until the runbook says to send it.
- This shift is itself a demonstration: lane O completed task 7698 and task 8995 earlier today without telemetry, following §6's example verbatim.
- The issue had no prior comments/triage before this note; no PR or task already owns the runbook fix (searched before enqueueing).
Scoped fix (follow-up task, enqueued from this triage):
- Add a telemetry block to the worker instruction §6
complete example plus one §10 discipline line: every complete call includes the completing session's own resolved pool / model / effort (and cost_usd where the route exposes one, else null) — recorded from the resolved session, never inferred from route names, per the meta-reviewer guideline.
- Acceptance criteria 2–3 of this issue (a full daily window with majority adoption; a publishable per-pool/per-effort cell) can only be measured by the meta-reviewer's daily pull after that instruction change lands, so this issue stays open until the follow-up lands and a window is measured.
This triage's own completion is filed with telemetry (model recorded; pool/effort/cost null because this cron session's route does not expose them) as the first runbook-conformant example.
dezren39 commented on Nov 4, 2026 dezren39 commented on Nov 24, 2026 Second-pass verify (lane code-h, task 21812), fresh state 2026-11-24:
Verdict: code landed; remainder is observation + an out-of-repo edit — no packet routed.
- Issue OPEN; repo-side fix MERGED: PR feat(fleet-queue): default completion telemetry in repo-queue complete (#4919) #10704 (2026-11-16) — complete now defaults pool/model/effort/cost_usd (claim-stamp/session derivation, explicit nulls when unsourceable, caller values win), 6 tests green. Verified present on current main (derive/merge/fill fns + schema docs).
- Acceptance remainder, unchanged since the 15186/16712 triages: (a) a full daily window showing adoption — no measurement recorded on the issue since the merge; (b) the goal-workspace worker-instruction edit, which lives outside this repo.
- No follow-on packet: a measurement triage was attempted and the broker refused it — the (repo, issue, triage) identity is held by terminal task 15186, and the fix identity by terminal 16712/16872 lineage. The adoption window is observer work the daily meta-reviewer already produces; manufacturing a new queue identity for it would be kind-incoherent. Recording this as the pass-2 exception: close-or-measure belongs to the meta-reviewer window + the workspace instruction edit, not to a new repo packet.
dezren39 commented on Nov 24, 2026
Agent note — picked up (done-check pass)
- Agent: felix (lane for Felix, main seat)
- Next: mandatory done-check — PR feat(fleet-queue): default completion telemetry in repo-queue complete (#4919) #10704 (2026-11-16) reportedly landed the completion-side telemetry defaults; the 2026-11-24 second-pass verify (task 21812) left the adoption-window measurement unrecorded. This pass verifies the code on current main and takes a fresh adoption measurement from real completion rows, then records the result here.
- Issue state: open.
dezren39 commented on Nov 24, 2026
Agent note — done-check + fresh adoption measurement + one defect fixed
Fresh measurement (this pass)
Source: the fleet-queue-backup D1 database (read-only queries against the 2026-11-23T15:27:30Z export — the newest full copy while the laptop broker is down). Windows anchored on PR #10704's merge (2026-11-16T13:24Z):
| window | done | 4 keys present | pool ≠ null | model ≠ null | effort ≠ null | all 3 ≠ null |
|---|---|---|---|---|---|
| pre-fix week (11-09 → 11-16T13:24Z) | 4315 | 1 | 0 | 1 | 0 | 0 |
| post-fix (11-16T13:24Z → export) | 3334 | 2278 (68%) | 398 | 1858 | 0 | 0 |
| last full 24h (11-22T15:27Z → 11-23T15:27Z) | 191 | 155 (81%) | 73 | 53 | 0 | 0 |
The pre-fix row reproduces the issue's original finding (1 of ~846 then; 1 of 4315 that week). Post-fix, defaulting lands: pool is populated on every route-bound completion (all 398 are workhorse, the declared route — correct per design), and real serving leaves land when a session record is the source (e.g. gpt-6-luna).
Why effort is 0 — the precise split
claim_variant is NULL on 3334 of 3334 post-fix completions. Of 2398 model_stamp events in the window, exactly 1 carries a variant — and it is "default", which the derive filters by design.
- 2359 of 2398 stamps (98%) are the muse-lane marker (
provider/model = muse-lane, variant null, no session): the agent claim path has no channel for the lane's own model/effort, so there is nothing for the completion derive to propagate. Correspondingly, 1848 keyed completions record model = "muse-lane" — the marker, by queue: stamp the claiming session's own model on the task at claim time #8176 design, not a leaf.
- OpenChamber route sessions are dispatched without a variant selection, so their session records carry no variant for the claim stamp or the completion fallback to read. When a session record does carry one, the pipeline propagates it (unit-tested: claim stamp → effort, session leaf → effort).
cost_usd remains unsourceable by design (no cost readout exists); it is written as an explicit null.
So: the completion code is no longer the gap. Effort stays null until a producer supplies a variant — either the dispatch surfaces select/record a variant for route sessions, or the muse-lane claim path gains a way to name the lane's model/effort. That is a dispatch/claim-surface decision, recorded here as the blocker split rather than silently left as "adoption".
Defect found by the measurement, fixed in PR #14356
derive_completion_telemetry trusted claim_model even when claim_provider is opencode-route — 5 completions recorded result.model = "workhorse" (the route alias as the model), contradicting the anti-alias rule session_model_stamp already enforces. PR #14356 skips the route-stamped claim model (session leaf or honest null instead), adds a regression test, and updates the book line. Remote verification: 6/6 completion_telemetry tests by name (run 45397848047; the filter needs --features client), full client suite 383+2+5 passed / 0 failed (run 45401343653). No new dependencies.
Acceptance criteria, restated against this evidence
- Telemetry is the default on
complete (PR feat(fleet-queue): default completion telemetry in repo-queue complete (#4919) #10704; re-verified in the code and in the data above).
- "Most completions carrying non-null pool+model+effort in a full window" — pool+model: yes for the classes that have sources (81% keyed in the last window). Effort: cannot be met until a producer supplies variants (split above).
- A per-pool cell with n≥3 exists from real rows (pool
workhorse, n=398 post-fix; muse-lane as its own class, n=1848 keyed completions). Per-effort cells await the same producer gap.
Issue stays open on the effort-producer item; everything completion-side is now landed or in PR #14356. developing-today-fleet commented on Nov 25, 2026
Agent note — felix taking the effort-producer slice
- Agent: felix (lane for Felix, main seat)
- Slice: the remaining effort-producer item. The completion-side derive is landed (PR feat(fleet-queue): default completion telemetry in repo-queue complete (#4919) #10704, fix(fleet-queue): route-stamped claim_model is the pool, not the completion model (#4919) #14356); effort is null on every post-fix completion because no producer supplies a variant — 98% of stamps are the muse-lane marker with variant null, and the muse-lane claim path (
fleet agent next) has no durable channel to name the lane's model/effort: it forwards --model-* only when the caller passes them on every invocation.
- Plan: record the lane's model stamp (provider/model/variant) in the agent profile at enroll time and have
fleet agent next supply it to the queue claim when no explicit flags are given (explicit flags win). Claims then stamp claim_variant, and completions derive a non-null effort from it.
- Issue state: open; PR to follow, left unmerged for review.
developing-today-fleet commented on Nov 25, 2026
Agent note — effort producer landed as PR #14843 (open, unmerged for Felix's review)
What was missing, precisely
The derive chain was complete except for its first link. fleet agent next (the muse-lane claim path) forwarded --model-provider/--model-id/--model-variant only when the caller passed them on that invocation; nothing durable recorded the lane's stamp, so production claims went out unstamped or with the variant-less muse-lane marker an external caller supplied.
The producer (PR #14843)
fleet agent enroll --model-provider P --model-id M --model-variant V records the lane's stamp in the agent profile (model: {provider, id, variant}). Provider+model together, variant requires both — the queue claim's own rule — enforced as a usage error at enrolment. Re-enrolling without the flags keeps a recorded stamp; the saved stamp is echoed in the enrolment answer.
fleet agent next stamps its queue claim from the profile when no explicit --model-* flags are given; explicit flags win whole (the same precedence caller values have in the completion derive). The broker then writes claim_variant on the row and stamps the model_stamp event with the variant, and derive_completion_telemetry propagates it to the completion result's effort.
- Book page
pkgs/fleet/book/reference/agent.md updated in the same PR.
Before / after
|
before |
after this PR (code) |
| claim_variant on post-fix completions |
NULL on 3334 of 3334 (measured 2026-11-24) |
written on every claim by a stamp-enrolled lane |
| effort non-null on completions |
0 of 3334 |
non-null for those lanes' completions via the existing derive |
| channel for a lane to name its effort |
none durable (per-invocation flags only) |
the agent profile, recorded once at enrolment |
The data-side after needs a live window once this merges and seats re-enroll with stamps (a muse lane records the muse-lane marker plus its variant; a lane that can name its leaf records the leaf). That adoption step is now mechanical — no further code is owed on the claim or completion side.
Verification (remote only, fleet-command on GitHub-hosted runners)
- Run 45533768448 (
cargo test -p fleet-agent -- stamp): 3 passed / 0 failed — the three stamp tests by name, exit=0.
- Run 45539525878 (full fleet-agent suite minus one test, below): 104 passed / 0 failed; all four new tests ok by name (
next_stamps_the_claim_from_the_profile_when_no_model_flags_are_given, nexts_explicit_model_flags_override_the_profile_stamp, enrolling_with_model_flags_records_the_stamp_in_the_profile, enrolling_with_a_variant_but_no_leaf_is_a_usage_error).
- One pre-existing executor defect, filed as fleet-agent shell test hangs on the fleet-command executor (no default rustup toolchain in the image) #14844:
a_background_cargo_build_holds_its_target_lease_until_exit (fleet shell, untouched here) hangs on the fleet-command executor — proven on origin/main (run 45539531376: killed at the 600 s timeout, exit 124) as well as on this branch. It is the one test skipped in the full-suite run above.
- The fleet-queue end is unchanged; its
completion_telemetry tests stand as verified in the fix(fleet-queue): route-stamped claim_model is the pool, not the completion model (#4919) #14356 pass (6/6, run 45397848047).
Issue stays open: acceptance still wants the full-window adoption measurement, which can only run after merge + seats enrolling with stamps. developing-today-fleet commented on Nov 26, 2026
Agent note — triage (lane oc-code-02, task 24882)
State: triaged — reconciliation pass. Code chain now complete; adoption measurement pending.
Fresh evidence (checked 2026-11-26T23:55Z via fleet gh):
- Issue fleet telemetry adoption: workers complete tasks without pool/model/effort/cost fields (1 of 846 post-#1582 completions) #4919 OPEN, labels task/triage, priority/normal, effort/s, epic/fleet-orchestration. No held / user/owned / do-not-merge / do-not-auto-edit labels.
- Producer PR feat(fleet-agent): profile model stamp — the #4919 effort producer #14843 (fleet-agent profile model stamp, felix) MERGED 2026-11-25T03:47Z — the missing first link (durable lane stamp → claim_variant → effort derive) is now in code. Completion-side derive landed earlier (feat(fleet-queue): default completion telemetry in repo-queue complete (#4919) #10704, fix(fleet-queue): route-stamped claim_model is the pool, not the completion model (#4919) #14356).
- Remaining acceptance is the adoption window: seats re-enroll with stamps, then the meta-reviewer daily pull (Meta-reviewer: grade the reviewers, score model/effort choices, and evolve the reviewer guidelines #1340) measures a full window with most fleet-session completions carrying non-null pool/model/effort. That measurement is the meta-reviewers run, not a new fix packet.
- Weak live signal this very run: this lanes completions (tasks 24746/24770/24800/24824) carry pool=workhorse + model + effort in their result records via the derive path.
Triage verdict: no new packet; code owed is done. Next step is the meta-reviewer adoption measurement over a post-merge window, then close or remainder-list from that measurement. Task 24882 completes as triaged. developing-today-fleet commented on Nov 27, 2026
Triage verdict (task 25356, 2026-11-27): code chain complete; adoption measurement pending — no new packet.
Fresh verification: #4919 OPEN, no new comments since task 24882's triage (~40 min prior). Producer PR #14843 still MERGED (2026-11-25); completion-side derive (#10704, #14356) still landed. Meta-reviewer #1340 still OPEN with criterion 1 (adoption-quality outcome tables) the only unmet item; the post-merge full-window adoption measurement belongs to the meta-reviewer's daily run, not to a new fix packet here. No code changed in this triage; issue stays open pending that measurement. developing-today-fleet commented on Nov 27, 2026 Triage verdict (oc-code-06, task 25765): code chain complete; adoption measurement pending — no new packet. Fresh 2026-11-27: producer PR #14843 still MERGED; completion-side derive (#10704, #14356) landed; meta-reviewer #1340 still OPEN. This lane's own completions this run carry pool/model/effort via the derive path. Remaining acceptance (full-window adoption share) belongs to the meta-reviewer's daily pull, not a fix packet here. No code changed; issue stays open pending that measurement. developing-today-fleet commented on Nov 27, 2026
Agent note — lane 1437-G (alpha DRIVE author lane) stand-down: no authorable slice; code chain independently re-verified complete.
Premise + ownership check: read this issue + ALL 17 comments firsthand. No live claim, no held/user labels. Independent second-source verification this run (gh CLI, fresh reads):
Acceptance 1 (telemetry the default on complete) is satisfied by those merges. Acceptance 2–3 (full daily window adoption share; a publishable per-pool/per-effort cell) are the meta-reviewer's (#1340) daily-pull measurement, not a code packet — concurring with the 2026-11-27 triages (tasks 24882, 25356, 25765). No claim posted, no code changed by this lane; issue stays open pending that measurement.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|