Repository navigation
feat(fleet-queue): default completion telemetry in repo-queue complete (#4919) - #10704
Conversation
Completion telemetry (pool/model/effort/cost_usd) was optional and adoption stayed near zero because passing it was pure worker discipline. complete now derives each absent field from records the queue already holds — the claim stamp (serving-leaf model and variant), the completing session's record (declared opencode-route model as pool, serving leaf as fallback), and always writes all four keys, null when unsourceable. Explicit --result/--telemetry values keep winning; cost_usd is never invented. Refs #4919
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. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 26 minutes. View limit details
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. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Summary
repo-queue completenow fills completion telemetry itself instead of relying on the worker to pass--telemetry.nullwhen nothing could source them (distinguishable from "nobody filled it in" in the meta-reviewer pull).opencode-route/<route>model, not an inference.completebehaves exactly as before except for the added fields.fetch_session_recordis factored out ofderive_claim_model_stampso the claim-stamp path and the completion path share one read.pkgs/fleet/repo-task-v1.schema.jsondocuments the defaulting oncompletion_telemetry/completion_result.Out of scope, per the task packet: editing the goal-workspace worker instruction (outside the repo) and backfilling historical completions.
Evidence
Before: adoption of
pool/model/effort/cost_usdwas 1 of 846 completions in the measured window — the fields existed only if a worker passed--telemetry.After:
The six new tests cover: claim-stamp derivation, session-leaf + route (pool) derivation, caller override with
"default"treated as absence, all-four-keys-present with explicit nulls, non-overwriting merge, and session-id resolution order.Merge Danger
Door: Two-way — the change only adds fields to completion results and is fail-soft at every derivation step; reverting restores the prior behavior exactly.
Blast Radius: Contained to
repo-queue completeresults (one extra/listand one session read per completion) plus schema documentation. No broker, claim, or validation behavior changes.Refs #4919
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.