Skip to content

fleet-queue: align repo-task-v1 schema kind/repo enums with the validator - #13195

Merged
dezren39 merged 1 commit into
mainfrom
lane-qx-13177
Nov 23, 2026
Merged

dezren39 merged 1 commit into
mainfrom
lane-qx-13177

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Fixes #13177.

What

pkgs/fleet/repo-task-v1.schema.json disagreed with the queue validator on two enums:

  • kind: schema listed 4; the validator accepts 6 (adds second_pass, feature_slice).
  • repo: schema listed 8; the validator accepts 9 (adds legacy dezren39/nix).

Canonical side: the validator

  • second_pass and feature_slice are intentional — validate.rs carries dedicated payload rules for both (the review object requirement for second_pass, the slice object requirement for feature_slice, plus their dedupe families).
  • dezren39/nix is a deliberate grandfather, documented at FLEET_REPOS: the repo was renamed to dezren39/darwin-nix, and in-flight tasks carry dedupe keys with the old name that must keep validating.

So the schema is aligned to the validator, not the other way round.

Change

  • Schema: kind enum gains second_pass, feature_slice; repo enum gains dezren39/nix (both in the validator's order).
  • New lockstep test validate::tests::schema_enums_match_validator reads the schema file and asserts both enums equal KINDS / FLEET_REPOS exactly, so the two cannot drift apart again silently.

Verification (laptop, local cargo route)

  • New test passes on the fixed schema and fails on the pre-fix schema (checked by temporarily restoring the old schema file).
  • Full crate suite: cargo test -p fleet-queue --features client,queue-broker → 550 passed / 0 failed (lib) plus integration binaries green, exit 0.
  • cargo fmt --check on the touched file is clean (the crate has pre-existing fmt drift in unrelated files; untouched).
{
  "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-23T10:34:42Z",
    "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)"
  }
}

Proof this PR
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…ator

The published packet schema listed 4 kinds and 8 repos while the
validator (canonical) accepts 6 kinds and 9 repos: second_pass and
feature_slice carry dedicated payload rules in validate.rs, and
dezren39/nix is a deliberate grandfather for pre-rename dedupe keys.
Add the missing values to repo-task-v1.schema.json and a lockstep
test (schema_enums_match_validator) that fails if they drift again.
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 41 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 757fc525-8d91-4782-a24a-f033c4825112
Commits

Reviewing files that changed from the base of the PR and between 17cc36e and b578ee7.

Files selected for processing: 2

  • pkgs/fleet/crates/fleet-queue/src/validate.rs
  • pkgs/fleet/repo-task-v1.schema.json
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T10:36:23.634416Z b578ee7 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@dezren39
dezren39 merged commit 9764182 into main Nov 23, 2026
2 checks passed
@dezren39
dezren39 deleted the lane-qx-13177 branch November 23, 2026 10:34
@developing-today-fleet developing-today-fleet Bot added the audit:complete PR fully implemented spawning issue label Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

audit:complete PR fully implemented spawning issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant