GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — fleet(queue): repo-queue duration flags (--lease-seconds, --extend-seconds, --delay-seconds) accept 0, negative, and unbounded values — a 0/negative lease is born expired, a negative park delay defeats the park · Issue #6420 · developing-today/code Closed Labels app/fleetpkgs/fleet multicall binary + platform crateseffort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobsource/design-architectFiled by the repo design architect jobstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests Descriptionfleet(queue): repo-queue duration flags (
|
| invocation | recorded broker body | exit |
|---|---|---|
claim --lease-seconds 0 |
"lease_seconds":0 |
0 |
claim --lease-seconds -5 |
"lease_seconds":-5 |
0 |
claim --lease-seconds 999999999999 |
"lease_seconds":999999999999 |
0 |
claim --lease-seconds 2700 (control) |
"lease_seconds":2700 |
0 |
claim --lease-seconds abc (control, #5939) |
— rejected: argument --lease-seconds: invalid int value "abc" |
2 |
heartbeat 42 --extend-seconds 0 |
"extend_seconds":0 |
0 |
heartbeat 42 --extend-seconds -60 |
"extend_seconds":-60 |
0 |
heartbeat 42 --extend-seconds 900 (control) |
"extend_seconds":900 |
0 |
park 42 --delay-seconds 0 |
"delay_seconds":0 |
0 |
park 42 --delay-seconds -3600 |
"delay_seconds":-3600 |
0 |
park 42 --delay-seconds 1200 (control) |
"delay_seconds":1200 |
0 |
Consequences, by value:
lease_until is now() or in the past: the claim succeeds but is born expired, so the task is immediately reclaimable by another worker while the first holder works it — the double-work failure the atomic claim exists to prevent.999999999999, ~31,700 years as i64 seconds) → either overflows the SQL integer parameter (a downstream RPC error instead of a usage error naming the flag) or, where it fits, pins the task for effectively ever if the holder dies.not_before lands in the past: the "parked" task is immediately claimable, silently defeating gate waits (e.g. a park waiting on a prerequisite issue). Delay 0 is at best a requeue-now that should be a deliberate verb, not a park.#6419 covers the sibling list --limit range gap; its triage packet explicitly scoped this class out with an audit item — "sibling get_i64 flags (--lease-seconds, --extend-seconds, --delay-seconds): validated downstream or needs the same treatment". This issue is that audit's answer: they are not validated downstream (client, broker, and SQL evidence above), and the failure modes here are worse than a misreported list — they corrupt claim/lease/park state rather than just a read.
Every fleet lane drives the queue through these three verbs. The values are one typo or one bad script variable away (--lease-seconds $EMPTY_OR_ZERO), the failure is silent (exit 0, normal-looking output), and the resulting states — born-expired claims, self-lapsed heartbeats, un-parked parks — are exactly the divergence classes the fleet monitor then has to reconcile. A usage error naming the flag at the client, plus a broker-side guard (the broker is the trust boundary for non-CLI callers), closes the whole class.
repo-queue claim --lease-seconds 0 and negative values are rejected with a usage error naming --lease-seconds (exit 2), consistent with the fleet(queue): repo-queue client parser silently overwrites duplicate flags, accepts --dry-run=false as true, and silently defaults a non-numeric --limit #5939 non-numeric rejection; a documented sane maximum is enforced the same way.repo-queue heartbeat --extend-seconds 0 and negative values are rejected likewise (naming --extend-seconds); the absent-flag defaults (claim 2700, heartbeat 900) behave exactly as before.repo-queue park --delay-seconds negative values are rejected (naming --delay-seconds); the semantics of 0 are decided explicitly (reject, or documented immediate-requeue) and pinned by a test.lease_seconds / extend_seconds / delay_seconds before the RPC call, so non-CLI callers get the same guard.🤖 Agent note · state: filed
Merge pull request #8425 from developing-today/queue/14436-6420-durat…
🤖 Agent note · done — lane code-k (repo-worker-code), task 14436 (small_fix): PR #8425 merged (af65ece); issue #6420 closed. The three duration flags are now range-validated at the client (usage error exit 2 naming the flag; lease/extend 1..=86400, park delay 1..=604800, delay-0 rejected by explicit decision — a zero-wait park is a requeue) and at the broker before the RPC, with the guard also running ahead of backend selection in dispatch so the Turso backend is covered. Codex found two real holes across two review rounds (present-but-non-i64 values silently defaulting; the Turso dispatch bypass) — both fixed, replied, and resolved; the final head's review completed with no findings. Tests: cargo test -p fleet-queue --all-features 186 passed / 0 failed; CLI probe confirms every bad value from the issue's table now exits 2 naming its flag, and the #5939 non-numeric rejection is unchanged.
agent-note:v1
Agent note — already done (task 14846, lane code-v)
already_done with that evidence; no duplicate work started.