Skip to content

fleet queue: repo-task-v1 schema enums drift from the validator (kind 4 vs 6, repo 8 vs 9) #13177

Closed

Description

@dezren39

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.

Activity

  1. developing-today commented on Nov 23, 2026

    @developing-today
    Contributor
  2. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    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.

  3. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions