Skip to content

fix(fleet): align repo-task-v1 schema max_attempts cap with the enforced 1000 ceiling (#12901) - #12996

Merged
dezren39 merged 1 commit into
mainfrom
lane-ic/12901-schema-cap
Nov 23, 2026
Merged

dezren39 merged 1 commit into
mainfrom
lane-ic/12901-schema-cap

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Part of #12901 (attempt-cap reconciliation). The repo-task/v1 payload schema still capped max_attempts at 10 — the pre-#8973 bound the audit flagged — while the fleet queue validator enforces 1..=1000 (MAX_ATTEMPTS_CEILING, #9609) at packet, client, and broker, and 1000 is the creation default (TASK_DEFAULT_MAX_ATTEMPTS, #8973). This raises the schema maximum to 1000 so the published schema agrees with enforcement, and replaces the stale repo-queue.py validator reference in the description with the fleet-queue validator.

Verification: JSON parses; the new maximum equals the MAX_ATTEMPTS_CEILING constant read from pkgs/fleet/crates/fleet-queue/src/validate.rs on current main; no other attempt bound remains in the schema.


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

…ced 1000 ceiling (#12901)

The published repo-task/v1 payload schema still capped max_attempts at
10 — the pre-#8973 bound the #12901 audit flagged — while the fleet
queue validator enforces 1..=1000 (MAX_ATTEMPTS_CEILING, #9609) at the
packet, client, and broker points, and 1000 is the creation default
(TASK_DEFAULT_MAX_ATTEMPTS, #8973). Raise the schema maximum to 1000 so
schema and enforcement agree, and replace the stale repo-queue.py
validator reference in the schema description with the fleet-queue
validator that owns the contract now.
@dezren39
dezren39 merged commit c1dc972 into main Nov 23, 2026
1 check passed
@dezren39
dezren39 deleted the lane-ic/12901-schema-cap branch November 23, 2026 06:41
@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 4 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: 6be68760-f478-4da2-b5e9-c84c7be14efc
Commits

Reviewing files that changed from the base of the PR and between ffc1816 and 387e10e.

Files selected for processing: 1

  • 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-23T06:42:32.614237Z 387e10e 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant