You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fleet queue: repo-task-v1 schema enums drift from the validator (kind 4 vs 6, repo 8 vs 9) #13177
Found while surveying for the fleet book (#13165). pkgs/fleet/repo-task-v1.schema.json and the queue validator disagree on two enums:
kind: the schema lists 4 kinds; the validator accepts 6 (adds second_pass, feature_slice).
repo: the schema lists 8 repos; the validator accepts 9 (adds legacy dezren39/nix).
Tasks valid under the validator can fail schema validation and vice versa. Fix shape: decide which side is canonical per enum (the validator's second_pass/feature_slice kinds look intentional; the legacy repo looks like a deliberate grandfather) and regenerate/align the other, with a test that keeps schema and validator enums in lockstep.
Lane QX claiming this item (2026-11-23): premise + ownership check passed (issue open, no prior claim — only the Kaneo bot link). Plan: verify the enum drift first-hand on current main in a laptop worktree, decide canonical side per enum from the code's own usage, align the other side, add a lockstep test, PR + merge + close.
Done — Lane QX. PR #13195 merged (head b578ee7cec5, merge 9764182d903d); this issue auto-closed via the PR body.
Premise verified first-hand on main 859ca99b2d9: schema kind enum had 4 values vs validator KINDS 6; schema repo enum had 8 vs FLEET_REPOS 9.
Canonical side = the validator, per the code's own evidence: second_pass/feature_slice carry dedicated payload rules in validate.rs, and dezren39/nix is the documented pre-rename grandfather at FLEET_REPOS (in-flight dedupe keys must keep validating). The schema was aligned to it, in the validator's order.
Lockstep guard: new test validate::tests::schema_enums_match_validator asserts both schema enums equal KINDS/FLEET_REPOS exactly. Verified it fails on the pre-fix schema and passes on the fixed one.
Full crate suite on the laptop: cargo test -p fleet-queue --features client,queue-broker → 550 passed / 0 failed, exit 0. Touched file is cargo fmt --check clean (pre-existing fmt drift in unrelated crate files left alone).
Activity
developing-today commentedon Nov 23, 2026
CODE-4807
dezren39 commentedon Nov 23, 2026
Lane QX claiming this item (2026-11-23): premise + ownership check passed (issue open, no prior claim — only the Kaneo bot link). Plan: verify the enum drift first-hand on current main in a laptop worktree, decide canonical side per enum from the code's own usage, align the other side, add a lockstep test, PR + merge + close.
dezren39 commentedon Nov 23, 2026
Done — Lane QX. PR #13195 merged (head
b578ee7cec5, merge9764182d903d); this issue auto-closed via the PR body.859ca99b2d9: schemakindenum had 4 values vs validatorKINDS6; schemarepoenum had 8 vsFLEET_REPOS9.second_pass/feature_slicecarry dedicated payload rules invalidate.rs, anddezren39/nixis the documented pre-rename grandfather atFLEET_REPOS(in-flight dedupe keys must keep validating). The schema was aligned to it, in the validator's order.validate::tests::schema_enums_match_validatorasserts both schema enums equalKINDS/FLEET_REPOSexactly. Verified it fails on the pre-fix schema and passes on the fixed one.cargo test -p fleet-queue --features client,queue-broker→ 550 passed / 0 failed, exit 0. Touched file iscargo fmt --checkclean (pre-existing fmt drift in unrelated crate files left alone).