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 #5549Descriptionfleet-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
Activitydeveloping-today commented on Nov 4, 2026 dezren39 commented on Nov 4, 2026 🤖 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
dezren39 commented on Nov 4, 2026 dezren39 commented on Nov 23, 2026
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. dezren39 commented on Nov 23, 2026
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):
- 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).
- 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.
- 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}.
- 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. dezren39 commented on Nov 24, 2026 🤖 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.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|