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): payload identity accepts placeholders — prs:[null], string/absent PR numbers, and set:{} validate with no usable identity · Issue #5549 · developing-today/code

fleet-queue(validate): payload identity accepts placeholders — prs:[null], string/absent PR numbers, and set:{} validate with no usable identity #5549

New issue
Copy link
New issue
Copy link
Done
#5552
Done
fleet-queue(validate): payload identity accepts placeholders — prs:[null], string/absent PR numbers, and set:{} validate with no usable identity#5549
#5552
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

fleet-queue(validate): payload identity accepts placeholders — prs:[null], prs with string/absent numbers, and set:{} all validate with no usable identity

Evidence (verified this run, laptop primary @ 4fb0927)

pkgs/fleet/crates/fleet-queue/src/validate.rs, manual_schema_errors (identity block, ~lines 114–125):

  • has_issue only requires issue.number to be an integer (is_i64) — sign unchecked.
  • has_prs only requires the prs array to be non-empty — its elements are never inspected there. The dedupe cross-check (dedupe_errors) extracts PR numbers with filter_map(... as_i64), so elements without an integer number silently vanish from the cross-check instead of failing it.
  • has_set accepts any object, including {}.
  • has_source (the one strict alternative) does require an integer pr + non-empty finding — but its pr sign is also unchecked.

Probe with the shipped validator (laptop ~/fleet-brokers/bin/repo-queue validate, probe dir ~/git/fleet/probe-validate-identity), starting from the real packet for #5424 (hidden_files/packet-5424-fix.json, dedupe repo-health:v1:fix:developing-today/code:issue:5424):

variant mutation result
control unmodified real packet valid: true
A issue removed, prs: [null] valid: true — a fix packet bound to no issue and no PR
B issue removed, prs: [{"number": "5424"}, {}] valid: true — no element carries an integer PR number
C issue removed, set: {} valid: true — an empty object is an "identity"
D (control) issue.number: -5 rejected — but only via the dedupe-key mismatch, not the identity check; a maintenance-family key (no issue cross-check) would not catch it

Compatibility check: across every packet in the fleet's own hidden_files/packet-*.json corpus, all 87 non-empty prs elements are objects with an integer number, and real set objects carry content (e.g. {"prs": [605, 620]}) — so requiring real identity shapes breaks no legitimate packet shape in use.

Why it matters

The payload identity is the machine-readable binding a queue worker acts on: which issue to fix, which PRs to shepherd, which set a remainder belongs to. A packet that validates with a placeholder identity enqueues cleanly and only fails later — at claim/work time, against a worker that cannot tell which GitHub object it owns. #5482/#5510 closed the same class of hole in dedupe keys; this is the same hole in the payload the key points at.

Acceptance criteria

  • prs satisfies identity only when it is non-empty and every element is an object with a positive-integer number.
  • set satisfies identity only when it is a non-empty object.
  • issue.number, when an issue object is present, must be a positive integer to satisfy identity (and a non-positive one is an error, not silently ignored).
  • source.pr must be a positive integer.
  • Unit tests pin variants A–C above as invalid and the control packet shape as valid; cargo test -p fleet-queue green.
  • No change to dedupe-key matching (fleet-queue(validate): pr-set dedupe keys accept non-canonical spellings (single/repeated number) and maintenance keys accept impossible ISO weeks (W99) #5482/fleet-queue(validate): dedupe keys accept leading-zero spellings (issue:05424) and number 0 in the fix/triage/pr/set families #5510 behavior unchanged).

Activity

Next
  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
    priority/normalOrdinary priority (the default)
    work/self-assignedAn agent grabbed this item directly, outside the queue
    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-1374

  3. dezren39
    added
    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 · filed

    • Agent: new-issue-creator job (lane A, slug new-issue-creator-code-a)
    • Session / ID: cron new-issue-creator-code-a run 2026-11-04T15:17Z
    • Found via: filed this run
    • Task: Tighten fleet-queue validate's payload-identity check so placeholder identities (prs:[null], prs elements without an integer number, set:{}) no longer validate; identity numbers must be positive. Guarded self-solve this run.
    • Expectation: effort/s — done = fix merged, cargo test -p fleet-queue green on laptop, probe variants A–C rejected and control still valid.
    • Links: probe ~/git/fleet/probe-validate-identity (laptop); body file hidden_files/issue-fleet-queue-validate-placeholder-identity.md
  5. developing-today
    added
    status:in-review
    on Nov 4, 2026
  6. dezren39
    added a commit that references this issue on Nov 4, 2026

    fix(fleet-queue): payload identity must be a real identity (#5549) (#…

    abe4eca
  7. dezren39
    closed this as completedin #5552on Nov 4, 2026
  8. developing-today
    added
    status:done
    and removed
    status:in-review
    on Nov 4, 2026
  9. dezren39 commented on Nov 4, 2026

    @dezren39
    dezren39
    on Nov 4, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done

    • Agent: new-issue-creator job (lane A, slug new-issue-creator-code-a)
    • Session / ID: cron new-issue-creator-code-a run 2026-11-04T15:17Z
    • Found via: filed this run
    • Task: Self-solved (guarded): PR fix(fleet-queue): payload identity must be a real identity (#5549) #5552 squash-merged (abe4eca) — payload identity now requires a real identity (prs elements all objects with positive-integer number; set non-empty; issue.number positive with a dedicated error; source.pr positive). New pinning test placeholder_identities_do_not_validate; cargo test -p fleet-queue --all-features green on laptop, fmt applied. Note: the shipped broker binary picks the fix up at its next redeploy, as with fleet-queue(validate): dedupe keys accept leading-zero spellings (issue:05424) and number 0 in the fix/triage/pr/set families #5510.
    • Expectation: done — issue closed by the merge.
    • Links: PR fix(fleet-queue): payload identity must be a real identity (#5549) #5552; probe ~/git/fleet/probe-validate-identity (laptop)
  10. 2 remaining items

  11. developing-today
    added
    status:in-review
    and removed
    status:done
    on Nov 23, 2026
  12. developing-today
    reopened this on Nov 23, 2026
  13. dezren39 commented on Nov 23, 2026

    @dezren39
    dezren39
    on Nov 23, 2026
    MemberAuthor
    More actions

    Lane AU32 (sandbox fix lane, coordinated by Archer) claiming #5549 for a verification close.

    Premise + ownership check (fresh, 2026-11-23): issue OPEN; comments count-confirmed at 3 (all from 2026-11-04: the filer's self-solve record — PR #5552 squash-merged as abe4eca, with the note that the shipped broker binary picks the fix up at its next redeploy). No live claim since, no user/* label, no design/ratification gate, no flag hold.

    Plan: verify on current main that (1) PR #5552's merge is an ancestor of main, (2) the identity rules in pkgs/fleet/crates/fleet-queue/src/validate.rs reject the placeholder variants (prs:[null], prs elements without a positive-integer number, set:{}) and require positive issue/source numbers, (3) the pinning test placeholder_identities_do_not_validate plus the fleet-queue suite pass on the laptop, and (4) the redeploy remainder has landed — the laptop queue broker was flipped to generation 6 (fleet-static-bcc8043, built from current code main) on 2026-11-23. If all four hold, close with the evidence; if any fails, release and report.

  14. dezren39 commented on Nov 23, 2026

    @dezren39
    dezren39
    on Nov 23, 2026
    MemberAuthor
    More actions

    Lane AU32 — verification close. #5549 is done on current main and in the deployed broker; closing.

    The fix itself landed 2026-11-04 (PR #5552, squash-merged abe4eca). The issue stayed open on the filer's note that the shipped broker binary picks the fix up at its next redeploy. All four legs verified first-hand today (2026-11-23):

    1. On main: GitHub compare abe4ecace...main = ahead 8321 / behind 0 — the PR fix(fleet-queue): payload identity must be a real identity (#5549) #5552 merge is an ancestor of current main. The identity rules and the pinning test placeholder_identities_do_not_validate are present in pkgs/fleet/crates/fleet-queue/src/validate.rs (test at line 1938, covering variants A/B/C, non-positive issue numbers, and the real shapes).
    2. Test suite: cargo test -p fleet-queue --all-features in a fresh laptop worktree at main 0817546161a (RUSTC_WRAPPER= / SCCACHE_DISABLE=1, private target dir): 609 passed, 0 failed — including validate::tests::placeholder_identities_do_not_validate ... ok.
    3. Redeploy remainder landed: the laptop queue-broker deploy profile was flipped on 2026-11-23 (generation 6, fleet-static-bcc8043 build from current code main). Probing that shipped binary's fleet queue validate with the issue's own packet shapes: the control packet (issue identity) returns {"valid": true}; variant A (prs: [null]), variant B (prs: [{"number": "5424"}, {}]), and variant C (set: {}) are each rejected with payload identity: need issue.number, a non-empty prs list, a set object, or a pre-filing source {pr, finding}.
    4. Ownership re-check before closing: comments count-confirmed at 4 — the only comment since 2026-11-04 is this lane's claim; no competing claim, no gate.

    Closing as completed. The sibling #5504 carries the same redeploy-era pattern for the secrets broker, whose deliberate flip is tracked separately.

  15. dezren39
    closed this as completedon Nov 23, 2026
  16. developing-today
    added
    status:done
    status:in-review
    and removed
    status:in-review
    status:done
    on Nov 23, 2026
  17. developing-today
    reopened this on Nov 24, 2026
  18. dezren39 commented on Nov 24, 2026

    @dezren39
    dezren39
    on Nov 24, 2026
    MemberAuthor
    More actions

    🤖 Agent note · triage done — closing with evidence (queue task 21825, pass 2)

    Verified fresh against current main 2026-11-24: #5549 is already resolved in substance — no follow-on packet needed.

    • Fix landed as PR fix(fleet-queue): payload identity must be a real identity (#5549) #5552, squash-merged 2026-11-04 (abe4ecace), an ancestor of current main.
    • pkgs/fleet/crates/fleet-queue/src/validate.rs on main carries all four acceptance rules in the identity block (~lines 340–359): issue.number must be a positive integer (non-positive is its own error); prs satisfies identity only when non-empty and every element is an object with a positive-integer number; set must be a non-empty object; source.pr must be a positive integer.
    • Pinning test placeholder_identities_do_not_validate is present on main, covering variants A (prs: [null]), B (string/absent numbers), C (set: {}), non-positive issue numbers, and the real control shapes.
    • Archer lane AU32 verified the same on 2026-11-23 (test suite green on main, fix present in the deployed broker) and recorded the verification close; the issue itself remained open, so this pass completes the close.

    Closing #5549 as resolved.

  19. dezren39
    closed this as completedon Nov 24, 2026
  20. developing-today
    added
    status:done
    and removed
    status:in-review
    on Nov 24, 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.