Repository navigation
test(fleet-queue): re-pin reprioritize sync test to the ratified BAND_LABELS shape - #16980
Conversation
…_LABELS shape (#16977) sync_touches_only_priority_labels still asserted the #14100-era starts_with("priority/") prefix filter in sync_reprioritized. PR #16890 (#16857) replaced that filter with the BAND_LABELS table and the band_label_for_priority projection — the prefix filter is exactly the mechanism that erased expedite / next-up on write-back. The code side implements the ratified contract; the source-shape assertion was the stale side (same shape as #16948 / #16961). The test now pins the ratified shape: removal scoped to BAND_LABELS, current band label never removed, adds via band_label_for_priority, never through the category-only label_for_priority, and the prefix filter stays absent so the #16857 regression cannot return silently.
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
|
🤖 Felix lane 0640-DE: gate run 46311796316 (developing-today/fleet fleet-command, against this branch) — command: explicit nix OpenSSL dev env ( |
|
🤖 Felix lane 0640-DE — gate verdict on run 46311796316: GREEN, read firsthand.
PR #16980 is verified and ready for Felix to merge. |
Closes #16977
Adjudication: the test was the stale side
Run 46310129068 (the #16857 confirmation of record) executed the feature-gated fleet-queue lib suite on main: 977 passed / 4 failed, with
sync_touches_only_priority_labelspanicking at queue_broker.rs:3615 on its first assertion — the source ofsync_reprioritizedmust containstarts_with("priority/").That assertion pins the #14100-era implementation shape. PR #16890 (#16857, merged 2026-11-29T17:05:21Z) deliberately replaced the prefix filter with the ratified contract:
crate::validate::BAND_LABELS— the fourpriority/*categories plusexpedite/next-up(validate.rs: "The reprioritize sync owns exactly this set");band_label_for_priority, so a stored 15 projectsexpediteand 25 projectsnext-upinstead of being rewritten to apriority/*category — the exact write-back defect bug(fleet-queue): reprioritize cannot set ratified bands 15/25, and its label write-back erases expedite/next-up #16857 was filed for ("its label write-back erases expedite / next-up", doc/agents/priority-model.md).The old prefix filter could never match
expedite/next-upfor removal at all. The implementation on main is faithful to the doctrine; the test was not updated when the mechanism changed. Same adjudication shape as #16948 / #16961.Change (test-only, one file)
sync_touches_only_priority_labelsnow pins the ratified shape:BAND_LABELS.contains(and the current band's label never removed (!= label);band_label_for_priority, never the category-onlyvalidate::label_for_priority;The test's other two #14100 assertions (no
expedite/next-upliterals in the fn) still passed — the implementation names the table and the mapping function rather than literals — but their stated intent is superseded: expedite/next-up ARE in the write set now, via BAND_LABELS, deliberately.Verified locally by an exact replica of the module's source-shape assertions (old test vs old source reproduces the run's panic on the first assertion only; new test passes all assertions of all three module tests). Remote gate run dispatched against this branch with the corrected OpenSSL dev-env recipe; its executed counts are the verification of record.
— Felix lane 0640-DE
{ "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-29T21:22:13Z", "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.