Repository navigation
test(dispatch): action-shaped priority strings follow the fleet.queue v1 exact contract (#16948) - #16949
Merged
developing-today-fleet[bot] merged 1 commit intoNov 29, 2026
Conversation
… v1 exact contract (#16948) The request-level table still asserted the pre-profile snapping contract ("45" -> 40). The validator, its unit tests, and every other producer boundary reject off-profile values under the shared fleet.queue v1 profile (stored values exact, never snapped), so the test was the stale side: drop the "45" row, add the ratified band strings "15"/"25" resolving exactly, and assert "45" is rejected by both parseTaskRequest and parseSessionRequest.
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
developing-today-fleet
Bot
deleted the
archer/16948-dispatch-priority-contract
branch
November 29, 2026 19:31
This was referenced Nov 29, 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.
Fixes #16948.
Diagnosis (first step from the issue, done against current main)
Re-derived the resolution table from
src/validate.tson main:resolvePriorityimplements the shared fleet.queue v1 profile contract — scale values and the ratified bands (15, 25) pass through exactly; any other off-profile integer in 10–90 is rejected with a 400 ("off-profile values are rejected, never snapped"). TheresolvePriorityunit tests in the same file already pin exactly that, including 45 in the rejection list for both numeric and string forms.The one stale side was this request-level test: its table still asserted the pre-profile snapping contract,
["45", 40]. Every other entry already agreed with the validator ("10"→10, "50"→50, "90"→90, "high"→20, undefined→40). That single entry is the 317/318 failure from run 46286736248.Governing contract for this surface
In
doc/agents/priority-model.md's terms: the queue stores intrinsic urgency under the versioned fleet.queue v1 profile, and stored values are exact — the profile is one contract at every producer boundary (the Rust profile rejects withPriorityError::OffProfile; the packet validator rejects off-scale). Action-shaped strings fromjq --argare an input spelling, not a separate contract: the dispatch adapter resolves them under the same profile, so "45" is rejected here too rather than snapped to 40.Change (test only)
["45", 40]; add the ratified band strings["15", 15]and["25", 25]resolving exactly."45"is rejected by bothparseTaskRequestandparseSessionRequestwith the profile-scale error.No production code changes; no validator behavior is altered.
Lane 1307-E (archer, charlie ADVANCE). Verification: full diff read against the validator source and the issue's evidence run; the suite verdict on main after merge is the post-merge record.
{ "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-29T19:30:36Z", "session_id": null, "lane": null, "host": "htch-runtime", "worktree": null, "model": null, "lane_start_issues": [], "workspace_ref": null, "auth_subject": "archer", "stamped_by": "fleet 0.1.0 (native)" } }Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.