Repository navigation
feat(fleet-queue): claim falls back to the enrolled profile model stamp (#16904) - #16925
Conversation
…mp (#16904) A direct queue claim (the lane surfaces' form) resolved its #8176 claim stamp from explicit --model-* flags or the named OpenCode session's record only. Seats whose enrolment recorded the serving leaf (#14843) stamped claims made through fleet agent next (#1334) but not direct claims, so the live broker's claim rows and claimed events carried null provider/model for exactly the workers #4919 measures (live sample: 9/9 done tasks unstamped). cmd_claim now falls back, after flags and session derivation, to the agent profile's recorded model stamp: profile_model_stamp parses the enrolment record (provider + id together, variant optional, mirroring fleet-agent's parse) and derive_profile_claim_model_stamp loads it fail-soft from $FLEET_AGENT_PROFILE / $XDG_CONFIG_HOME/fleet/agent.json / ~/.config/fleet/agent.json. Derivation failure never fails a claim. Tests: profile_model_stamp_reads_the_enrolled_record pins the parse oracle (full stamp, variant-less stamp, either half alone, blank provider, no model, empty profile).
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
|
1252-E (bravo SUSTAIN queue-draw + author lane, 2026-11-29): claiming for merge under standing authority. Verified by full-diff read against the PR purpose (Refs #16904): additive fail-soft profile model-stamp fallback in cmd_claim (only when no stamp present), pure parse in support.rs requiring provider+id together with variant optional, and a test pinning exactly that oracle incl. blank/half records. Scope matches body: 3 files, +121/-0. Verification run 46293429344 is still queued in the executor backlog (#16824); per Drew's standing rule (2026-11-29) a queued run is not a merge gate — verification here is the full-diff judgment. Note the branch predates the #16936 compile fix, which is now on main; this PR's own code adds no bare-Map use and its crate::home::from_env reference matches existing crate usage. |
|
Verification verdict — Felix lane 0640-CA, 2026-11-29: run 46293429344 is VOID as verification (checkout artifact, #16766 pattern — the command never ran); corrected run re-dispatched against main. Read firsthand (Linux job 141460180840, 2026-11-29T19:41–19:44Z):
Corrective action: re-dispatched the identical command against main as run 46304822584. When it executes, the verdict to record is the fleet-queue lib suite's executed counts plus the Priority validation 2026-11-29 (Felix): priority/high confirmed correct, no change. |
|
Verification verdict — lane 0640-CB (worker felix), 2026-11-29: run 46293429344 is a #16766 checkout artifact; PR #16925 has MERGED. I read the job log firsthand (job 141460180840). The command was correctly formed ( Corrective action: re-dispatching the identical command against main, where the merged change now lives (main also carries the #16936 compile fix, PR #16945). The new run ID follows in a separate note; its log — FELIX-TEST-EXIT, the test-result counts, and the |
|
Post-merge verification run dispatched — lane 0640-CB, 2026-11-29: run 46305725314 (developing-today/fleet fleet-command), target repo developing-today/code, ref main, command identical to run 46293429344's ( |
|
Post-merge verification verdict — Felix lane 0640-CP, 2026-11-29: PROVEN on main. This PR merged before its branch verification run could execute (that run, 46293429344, was verdicted VOID — checkout artifact). The corrected on-main verification has now executed twice, and I read both full job logs firsthand:
Both runs show Actions conclusion "failure" only because the dispatch wrapper's trailing evidence grep ( |
|
Post-merge verification scope note (lane 0640-CO): the two on-main lib runs (46304822584, 46305725314) are green 230/230 but ran without |
|
Verification pointer — Felix lane 0640-CX, 2026-11-29: the client-feature proof run for this PR (46308731954, dispatched by lane 0640-CO) is VOID — zero tests executed and no command output captured (full read on #16904). This PR's new test |
|
Verification status — Felix lane 0640-DC, 2026-11-29. This PR's lib-suite gate on main is PROVEN (lane 0640-CP, runs 46304822584 + 46305725314, 230/230). The one outstanding piece is the feature-gated test |
What
fleet queue claimnow falls back to the enrolled agent profile's recorded model stamp (#14843) when neither--model-*flags nor a named OpenCode session supply one (#16904).Why
#16904's live measurement (lane 0640-AV): every sampled task on the served broker — 9/9 done, four different workers — carried null
claim_provider/claim_model/claim_variant, and no completion result record. Survey of current main (lane 0640-BC):verb_claimparses the stamp (parse_claim_model),stamp_claim_modelwrites the row, and theclaimedevent's detail carriesmodel_provider/model_id/model_variantexplicitly;verb_completestores the result and thecompletedevent's marks mirror the row (fix(queue): single-session by default — launch-on-handoff, lane works, inline triage (reverses #8097 Rule 3) #8187/queue: per-task session binding history + model timeline — session_id join to raw opencode data (extends #8176) #9046 tests pin this)./events-listwith optionaltask_id(item 3) is already routed on main (Design: automatic context propagation — every fleet action carries its origin #10357) — the served broker predates it; that remainder is a broker deployment, not code.fleet agent nextforwards the profile stamp (epic(fleet): pool & routing intelligence — lanes everywhere, live dispatch + babysitting, quota stewardship, reviewer oversight, AA + measured-speed model #1334), but a directqueue claim— the lane surfaces' form — never consulted the profile.Change
client/support.rs:profile_model_stamp(pure parse of the enrolment record: provider +idtogether, variant optional — mirroring fleet-agent's parse) andderive_profile_claim_model_stamp(fail-soft load from$FLEET_AGENT_PROFILE, else$XDG_CONFIG_HOME/fleet/agent.json, else~/.config/fleet/agent.json).client/commands_lifecycle.rs:cmd_claimapplies the profile fallback after flags and session derivation. Derivation failure never fails a claim.profile_model_stamp_reads_the_enrolled_recordpins the parse oracle.Verification
fleet-command run 46293429344 (
cargo test -p fleet-queue --libon this branch) — queued in the executor backlog at filing; verdict to be read from its job log (executed counts + the new test by name) before merge.Refs #16904 (items 1-2 client link; item 3 is deployment of a current broker build; item 4's note on #4919 is owed at landing, when the measurement window actually starts).
{ "direct_parent": null, "links": [], "lineage": { "design": null, "roadmap_item": null, "priority": null }, "pm_meta": 1, "provenance": { "queue_id": null, "scheduled_start": null, "picked_up_at": null, "work_started_at": null, "created_at": "2026-11-29T18:08:17Z", "session_id": null, "lane": null, "host": "htch-runtime", "worktree": "/home/hatch", "model": null, "lane_start_issues": [], "workspace_ref": { "kind": "worktree", "id": "/home/hatch", "repo": "developing-today/code", "branch": "main", "sha": "010b47d1c4cecdcd1b7d6ea260b7c9b0a61fb89e" }, "auth_subject": "felix", "stamped_by": "fleet 0.1.0 (native)" } }Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.