GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fleet-queue(validate): dedupe keys accept leading-zero spellings (issue:05424) and number 0 in the fix/triage/pr/set families · Issue #5510 · developing-today/code

fleet-queue(validate): dedupe keys accept leading-zero spellings (issue:05424) and number 0 in the fix/triage/pr/set families #5510

New issue
Copy link
New issue
Copy link
Closed
#5514
Closed
fleet-queue(validate): dedupe keys accept leading-zero spellings (issue:05424) and number 0 in the fix/triage/pr/set families#5510
#5514
Copy link
Labels
app/fleetpkgs/fleet multicall binary + platform crateskind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Description

@dezren39
dezren39
opened on Nov 4, 2026
Issue body actions

Bug

fleet-queue packet validation (pkgs/fleet/crates/fleet-queue/src/validate.rs, match_dedupe, lines 147–215 at main 864ed8a4a) accepts non-canonical numeric spellings in dedupe_keys for the plain-number families: the number check is all_digits(s) followed by s.parse(), with no requirement that the spelling be the canonical decimal rendering of the parsed value, and no minimum of 1.

So all of these validate (valid: true) against a payload naming issue/PR/origin 5424:

  • repo-health:v1:fix:developing-today/code:issue:05424
  • repo-health:v1:fix:developing-today/code:issue:0005424
  • repo-health:v1:pr:developing-today/code:pr:05424 (pr_shepherd packet, prs: [{number: 5424}])
  • repo-health:v1:set:05424:owed:developing-today/code (pr_shepherd packet, set.origin_issue: 5424)
  • repo-health:v1:fix:developing-today/code:issue:0 against a payload with issue.number: 0 — issue/PR numbers start at 1, so 0 names nothing.

This is the same canonicality class #5482 fixed for the pr-set and maintenance families (single/repeated pr-set numbers, impossible ISO weeks), left open for the plain-number families (fix, triage, pr, set origin — and pr-set parts spelled with leading zeros, e.g. 0100-5424, pass the same parse() path).

Why it matters

The dedupe_key is the queue's deduplication identity: the database treats the key string as the identity of a unit of work. …issue:5424 and …issue:05424 are different strings, so a packet spelled with leading zeros gets a fresh dedupe identity for the same issue — exactly the duplicate-work evasion the canonical-spelling rules in DEDUPE_PATTERNS_DOC (same file) exist to prevent. The validator is the gate that is supposed to keep non-canonical keys out; for these families it approves them and even confirms the parsed number matches the payload, so nothing downstream flags the second spelling.

Evidence (verified this run)

Shipped validator (laptop fleet multicall binary at main 864ed8a4a, invoked as repo-queue validate) on packets derived from the known-good packet-5424-fix.json (probe dir on laptop: ~/git/fleet/probe-dedupe-zero):

  • control packet (issue:5424): valid: true
  • issue:05424, issue:0005424: valid: true
  • pr-family pr:05424 and set-family set:05424:owed:…: valid: true
  • issue:0 with payload issue.number: 0: valid: true
  • control for the overflow path: a 26-digit issue number is correctly rejected (parse failure surfaces as a number mismatch), so the gap is specifically canonical spelling / zero, not numeric parsing in general.

Dedup: #5482 (closed) covered only pr-set shapes and maintenance weeks; searches for leading-zero/canonical dedupe coverage returned no open or closed issue for the plain-number families.

Acceptance criteria

  • match_dedupe rejects any numeric component whose spelling is not the canonical decimal rendering of its value (no leading zeros) in the fix, triage, pr, pr-set, and set families.
  • Numeric components must be ≥ 1 (issue/PR/origin numbers start at 1); issue:0 / pr:0 / set:0:owed:… do not validate.
  • Canonical keys (e.g. issue:5424, pr-set:100-5424, set:5424:owed:…) validate exactly as before.
  • Unit tests in validate.rs pin the rejected spellings (leading zeros per family, zero) and the accepted canonical controls.
  • cargo test -p fleet-queue --all-features green (laptop or CI; no builds on the sandbox).

Activity

  1. dezren39
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    status/in-progressQueue worker lifecycle state
    source/creatorFiled by the new-issue-creator job
    on Nov 4, 2026
  2. developing-today commented on Nov 4, 2026

    @developing-today
    developing-todayBot
    on Nov 4, 2026 – with developing.today
    Contributor
    More actions

    CODE-1346

  3. dezren39
    added
    priority/normalOrdinary priority (the default)
    work/self-assignedAn agent grabbed this item directly, outside the queue
    app/fleetpkgs/fleet multicall binary + platform crates
    on Nov 4, 2026
  4. dezren39 commented on Nov 4, 2026

    @dezren39
    dezren39
    on Nov 4, 2026
    MemberAuthor
    More actions

    🤖 Agent note · state: filed

    • Agent: new-issue-creator-code-a
    • Session / ID: cron job new-issue-creator-code-a, run 2026-11-04T14:35:00Z
    • Found via: filed this run
    • Task: Filed this issue — fleet-queue match_dedupe accepts leading-zero dedupe spellings (issue:05424, pr:05424, set:05424:owed:…) and number 0 in the plain-number families, giving the same issue a second dedupe identity; verified with the shipped repo-queue validate on packets derived from packet-5424-fix.json (probe on laptop: ~/git/fleet/probe-dedupe-zero, main 864ed8a4a). Follow-on to fleet-queue(validate): pr-set dedupe keys accept non-canonical spellings (single/repeated number) and maintenance keys accept impossible ISO weeks (W99) #5482, which canonicalized only pr-set/maintenance.
    • Expectation: guarded self-solve this run (task/small-fix): canonical-number check in match_dedupe, pinning unit tests, cargo test -p fleet-queue on the laptop, PR + merge when green.
  5. dezren39
    added a commit that references this issue on Nov 4, 2026

    fix(fleet-queue): dedupe keys require canonical plain numbers (#5510) (…

    2b520e5
  6. dezren39
    closed this as completedin #5514on Nov 4, 2026
  7. dezren39 commented on Nov 4, 2026

    @dezren39
    dezren39
    on Nov 4, 2026
    MemberAuthor
    More actions

    🤖 Agent note · state: done

    • Agent: new-issue-creator-code-a
    • Session / ID: cron job new-issue-creator-code-a, run 2026-11-04T14:35:00Z
    • Found via: filed this run; guarded self-solve
    • Task: Fixed in PR fix(fleet-queue): dedupe keys require canonical plain numbers (#5510) #5514, squash-merged as 2b520e5fd — match_dedupe now routes every plain-number dedupe component through canonical_number (canonical decimal spelling, ≥ 1) across the fix/triage/pr/set families and pr-set parts. One clarification to the issue body: repo-queue validate is broker-mediated (client.rs validate_via_broker → queue-broker /validate → validate_packet), so the pre-fix probe exercised the live broker's deployed validator, whose source is the validate.rs at the cited main commit; the fix takes effect for live traffic at the next queue-broker redeploy from main (same property as fleet-queue(validate): pr-set dedupe keys accept non-canonical spellings (single/repeated number) and maintenance keys accept impossible ISO weeks (W99) #5482's fix).
    • Verification: cargo test -p fleet-queue --all-features green on the laptop (new plain_number_keys_are_canonical test + both fleet-queue(validate): pr-set dedupe keys accept non-canonical spellings (single/repeated number) and maintenance keys accept impossible ISO weeks (W99) #5482 tests), cargo fmt -p fleet-queue --check clean; end-to-end probe with the worktree queue-broker on a scratch loopback bind: control issue:5424 validates, issue:05424 / issue:0005424 / pr:05424 / set:05424:owed:… / issue:0 all rejected.
  8. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    work/self-assignedAn agent grabbed this item directly, outside the queue
    on Nov 4, 2026
  9. developing-today
    added
    status:done
    on Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/fleetpkgs/fleet multicall binary + platform crateskind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.