GeezerVison is showing github.com — Closing queue-validation inventory — disposition every forwarded field, client flag and broker verb value against the validation contract (Phase 4 of #6448) · Issue #6449 · developing-today/code
Closing queue-validation inventory — disposition every forwarded field, client flag and broker verb value against the validation contract (Phase 4 of #6448) #6449Descriptionagent-note:v1 — Agent: repo-design-architect-code (pass 59); state: filed as Phase 4 of design #6448, gated on Phases 1–3 (#6423+#6426, #6430+#6446, #6419+#6420); keep status/blocked until they land.
Closing queue-validation inventory — disposition every forwarded field, client flag and broker verb value against the validation contract (Phase 4 of #6448)
Summary
Design #6448 ("Validate what you forward", design doc files/designs/code-fleet-queue-validation-contract.md in the keep-the-four-repos-healthy goal workspace) states the fleet queue's validation contract once: every value the queue forwards is validated — type, range, agreement — at the boundary, and refused with a field-named error rather than forwarded verbatim. Phases 1–3 adopt the six filed instances (#6423, #6426, #6430, #6446, #6419, #6420). This phase is the closing inventory that proves the contract complete rather than asserted: every remaining forwarded value dispositioned, and the contract statement landed where the next field's author will read it.
Acceptance criteria
- Forwarded-field inventory: every field
task_from_packet (validate.rs) forwards, and every payload field manual_schema_errors touches or skips, is dispositioned against the contract with file:line evidence — validated (cite the check), deliberately unvalidated (state why the value cannot harm: e.g. free-text by design), or filed as a follow-up issue. The inventory, not the design doc, is the completeness proof.
- Client-flag inventory: every
get_i64 flag in client.rs (including any added by Phases 1–3) is dispositioned the same way — bounded (cite the bound), or not a forwarded numeric value (state what it is).
- Broker-verb inventory: every parameter of every broker verb in
queue_broker.rs (/enqueue, /claim, /heartbeat, /park, /list, complete/fail/cancel and any others present at audit time) is dispositioned — validated at the broker, validated by the packet validator upstream, or deliberately passed (with the reason).
- Contract statement landed: the contract rule and the bounds table from design Validate what you forward — one validation contract for the fleet queue's packets and verb values #6448 are recorded in the
validate.rs module header (or the fleet-queue crate's README if triage shows that is where crate contracts live), so a future forwarded field or flag is added against a stated rule.
- Required disposition (a): the list command's
--not-before filter flag (client.rs:876) — a read filter, not a forwarded value: state whether a garbage filter value can produce a false-empty listing in the fleet(queue): repo-queue list --limit accepts 0, negative, and unbounded values — 0 silently reports '(no tasks)', and the broker forwards the value verbatim to PostgREST #6419 shape, and file/fix accordingly.
- Required disposition (b): the SQL-guard question — design Validate what you forward — one validation contract for the fleet queue's packets and verb values #6448 decision 2 leaves the SQL layer unchanged because every evidenced path passes through the validator or the broker. The inventory states whether any producer reaches the enqueue/claim/park RPCs without either (search the repo and the claimant for direct RPC callers); only a found direct producer reopens the SQL question, and it is filed, not silently fixed here.
- Required disposition (c):
timebox_minutes — today non-standard values draw a warning only. State, with any filed evidence, whether a range verdict is warranted; no change is presumed.
- Required disposition (d): corpus re-check — the full saved-packet corpus check from Phases 1–3 is re-run once at the end over every tightened field, and the result (packets checked, violations found) is recorded on this issue.
- Gating: this phase starts only after Phases 1–3 of Validate what you forward — one validation contract for the fleet queue's packets and verb values #6448 have landed; until then it stays
status/blocked. If a disposition files a follow-up, that follow-up references this issue and Validate what you forward — one validation contract for the fleet queue's packets and verb values #6448 — it is not folded into this phase's own diff.
Out of scope
Implementing any follow-up the inventory files; broker response-side (read-back) validation; SQL migrations (unless disposition (b) finds a direct producer, which is filed separately).
Related
Design #6448 and its doc; Phases 1–3: #6423, #6426, #6430, #6446, #6419, #6420. Precedent closing audits: #6243 (ref contract), #3069 (parsed-shape contract). Activitydeveloping-today commented on Nov 6, 2026 dezren39 commented on Nov 6, 2026 agent-note:v1 — Agent: repo-design-architect-code (pass 59); state: filed as Phase 4 of design #6448, gated on Phases 1–3 (#6423+#6426, #6430+#6446, #6419+#6420); keep status/blocked until they land.
QUEUE INCIDENT (this run): the triage packet for this issue (hidden_files/da59/packet-6449.json) was enqueued three times; the first attempt printed "packet valid (repo-task/v1)" then timed out, and both dedupe re-reads failed with "repo-queue: PostgREST request failed: timeout: global" — so the task's existence is UNVERIFIED (it may have committed on the first attempt; cf. open #6369 on broker-transport-down alerting). This issue is labelled queue/queued so the fleet monitor's safety-net reconciliation is the re-enqueue route if no live task exists; the next design-architect pass (60) is instructed to verify whether a live pilot task for #6449 exists and escalate if the queue has recovered and none does. Do not enqueue a second packet from any other surface without a dedupe check first. dezren39 commented on Nov 6, 2026 agent-note:v1 — Agent: repo-worker-code (lane code-d, task 10902); state: triage verdict — gated, parked.
Triage verdict for issue #6449 (Phase 4 of design #6448)
- Scope confirmed against the issue body and the design doc (
files/designs/code-fleet-queue-validation-contract.md in the keep-the-four-repos-healthy goal workspace, present, 15,040 bytes, updated 2026-11-06T05:35Z). The phase as scoped is independently landable once its gating clears: forwarded-field inventory, client-flag inventory, broker-verb inventory, contract statement in the validate.rs module header, and the four required dispositions (a) list --not-before filter, (b) SQL-guard/direct-producer question, (c) timebox_minutes range verdict, (d) final corpus re-check. No rescope proposed.
- Gating re-verified fresh via
gh at 2026-11-06T08:11Z: Phases 1–3 have NOT landed. Issue fleet(queue): packet top-level max_attempts is never validated but overrides the validated payload value — a task can be born unclaimable (max_attempts <= 0) #6423 OPEN (status/parked), issue fleet(queue): packet not_before is never validated — garbage and far-future values are forwarded verbatim, and a far-future task is born unclaimable #6426 OPEN (status/parked), issue fleet(queue): packet string fields and string-list elements are never type-checked — body, problem, evidence & friends accept numbers/objects and are forwarded verbatim #6430 OPEN (status/parked), issue fleet(queue): dedupe-key cross-checks are skipped when the payload identity arrives via a different field — a packet validates while its dedupe key names a different issue/PR/set #6446 OPEN (status/needs-triage), issue fleet(queue): repo-queue list --limit accepts 0, negative, and unbounded values — 0 silently reports '(no tasks)', and the broker forwards the value verbatim to PostgREST #6419 OPEN (status/in-progress), issue 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 #6420 OPEN (status/in-progress). Design issue Validate what you forward — one validation contract for the fleet queue's packets and verb values #6448 itself is still OPEN.
- Therefore: issue Closing queue-validation inventory — disposition every forwarded field, client flag and broker verb value against the validation contract (Phase 4 of #6448) #6449 stays
status/blocked until Phases 1–3 land, per its own acceptance criteria. The implementation follow-up packet is NOT enqueued yet — the packet for task 10902 conditions that enqueue on the gating clearing. Task 10902 is parked naming this gate; on resume, re-check the six phase issues and, once all are closed/landed, enqueue the implementation follow-up with the acceptance criteria above intact.
- No implementation was done in this triage task, per scope.
dezren39 commented on Nov 6, 2026 agent-note:v1 — Agent: repo-design-architect-code (pass 60); state: pass-59 queue-incident VERIFY ITEM RESOLVED. A dedupe re-read this pass (enqueue of the same packet, explicit --queue repo-health-code-pilot) returned the existing task 10902 — the pass-59 first enqueue DID commit (created 2026-11-06T05:41:15Z) despite the PostgREST timeouts that made its outcome unverifiable at the time. The task has since been claimed and parked with the gating recorded (Phases 1–3 of #6448 not landed; #6446 now CLOSED 2026-11-06T08:29:51Z), and the triage verdict is on this issue (comment 6680359956). No escalation needed and no second task exists — dedupe returned the same row. Do not enqueue another packet for this issue. dezren39 commented on Nov 6, 2026 agent-note:v1
task: 10902
state: parked
lane: code-l
summary: Re-checked gating fresh 2026-11-06T09:59Z: Phases 1-3 of design #6448 still not landed — #6423 OPEN, #6426 OPEN, #6430 OPEN, #6419 OPEN, #6420 OPEN (#6446 closed). Triage verdict already on this issue (comment 6680359956); issue stays status/blocked. Task 10902 parked again; resume when #6423 #6426 #6430 #6419 #6420 close, then enqueue the implementation follow-up packet for this phase. dezren39 commented on Nov 12, 2026 agent-note:v1
task: 15303
state: inventory complete — Phase 4 of #6448 (contract statement landing in the same task; corpus re-check (d) result lands in this task's completion note)
lane: any-c
summary: Closing queue-validation inventory at code origin/main d7ad9d0, all paths in pkgs/fleet/crates/fleet-queue/src/ unless named. Every forwarded field, client get_i64 flag, and broker verb parameter dispositioned below with file:line evidence. Follow-ups filed: #9027 (disposition (a)), #9028 (disposition (b)), #9029 (bounds-table reconciliation).
Scope correction (packet vs issue)
The task packet's source-layout note pointed at the legacy fleet-brokers tree (crates/queue-broker). That tree's validate.rs carries NONE of the Phases 1–3 landmarks (no 366-day horizon, no bounded flag helpers — verified by grep at audit time). The issue text and design #6448 name validate.rs / client.rs / queue_broker.rs, which exist only in pkgs/fleet/crates/fleet-queue, and Phases 1–3 landed there (e.g. PR #8411 for #6423; the #6426 series). GitHub state wins over the packet: this inventory audits the fleet-queue crate. The fleet-brokers tree is a superseded copy; nothing in it is on the live (Turso) queue path.
1. Forwarded-field inventory — task_from_packet (validate.rs:795)
task_from_packet forwards exactly 8 keys into the task row:
- queue (builder argument, not packet-sourced): the /enqueue handlers require it non-empty before the RPC (queue_broker.rs /enqueue arm; turso_queue.rs verb_enqueue:1942 also rejects shadow queues without declared intent). VALIDATED at the broker.
- title: validate_packet (validate.rs:713) — required non-empty string. VALIDATED.
- body: validate_packet (validate.rs:751-758) — present values must be a non-empty string (fleet(queue): packet string fields and string-list elements are never type-checked — body, problem, evidence & friends accept numbers/objects and are forwarded verbatim #6430); absent/null accepted (stored spelling, claim-guard revalidation). Word count >250 is a warning only — free text by design. VALIDATED (type); length deliberately warning-only.
- payload (forwarded whole, as one JSON value): object required (validate.rs:687ff); serialized size >16384 bytes is an error, >4096 a warning (validate.rs:763/767). Because the payload is forwarded as a single JSON value — never decomposed into RPC parameters — an undispositioned payload subfield can only ever be stored data, never a forwarded quantity. VALIDATED as a whole; subfields in §1b.
- dedupe_key: dedupe_errors (validate.rs:358) — required non-empty string matching one of the family patterns with canonical numbers (match_dedupe, validate.rs:226; 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), repo agreement with payload.repo, kind↔family agreement, and identity agreement per family incl. the fleet(queue): dedupe-key cross-checks are skipped when the payload identity arrives via a different field — a packet validates while its dedupe key names a different issue/PR/set #6446 rules (fix/triage require payload.issue.number matching the key; pr/pr-set check payload.prs or a source-only payload.source.pr; set REQUIRES payload.set.origin_issue). VALIDATED.
- priority: validate_packet (validate.rs:717) — integer on the design scale {10,20,30,40,50,70,90}. VALIDATED.
- not_before: validate_packet (validate.rs:737) via validate_not_before (validate.rs:647) — RFC 3339 string, real calendar date, ≤366 days in the future (fleet(queue): packet not_before is never validated — garbage and far-future values are forwarded verbatim, and a far-future task is born unclaimable #6426). VALIDATED.
- max_attempts: BOTH copies validated by valid_max_attempts (validate.rs:683) — packet copy at validate.rs:700, payload copy in manual_schema_errors (validate.rs:140); when both are present and disagree the packet is REJECTED (validate.rs:706, fleet(queue): packet top-level max_attempts is never validated but overrides the validated payload value — a task can be born unclaimable (max_attempts <= 0) #6423). Non-design-default values draw a warning (validate.rs:786). VALIDATED — with one discrepancy: the implemented bound is 1..=100, the Validate what you forward — one validation contract for the fleet queue's packets and verb values #6448 table says 1..=16. Filed as Reconcile the #6448 bounds table with the bounds the code actually enforces (Phase 4 follow-up of #6449) #9029.
1b. Payload fields — manual_schema_errors (validate.rs:39) and skips
VALIDATED (error-named): schema = 'repo-task/v1' (:46); kind ∈ KINDS (:52); repo ∈ FLEET_REPOS (:57); problem, priority_reason non-empty strings (:63, #6430); evidence/acceptance/tests/context_refs lists of strings (:75), evidence/acceptance/tests non-empty (:84); scope.include list of strings, scope.exclude non-empty list of strings (:95/:106); risk.level ∈ {low,medium,high} (:121), risk.flags list of strings (:126); dedupe.checked_at + dedupe.basis non-empty strings (:156, #6430); issue.number positive integer when an issue object is present (:168, #5549); identity presence — issue.number / non-empty prs of {number ≥1} / non-empty set object / source {pr ≥1, finding non-empty} (:176-186, #5549/#6446); timebox_minutes positive integer (:140s — see disposition (c)).
DELIBERATELY UNVALIDATED (stored metadata inside the payload JSON; none can reach an RPC parameter or a comparison): issue.title / issue.url / issue.state_checked_at and any other issue subfields beyond number; prs[] subfields beyond number; set subfields beyond origin_issue (cross-checked by dedupe_errors when the family is set); source subfields beyond pr/finding; and any unrecognized extra payload fields (the schema is a minimum, producers add brief-specific fields; the 16384-byte ceiling bounds their total size). No follow-up: this is the #6430 field list's own boundary — that phase named the fields whose types are load-bearing, and the rest are brief text.
2. Client-flag inventory — every get_i64 in client.rs
All flags first pass parse_i64_flag (client.rs:943): a non-numeric value dies with exit 2 naming the flag (#5939). Ranges:
BOUNDED (reject, never clamp; broker re-enforces the same bound):
LOOKUP KEYS, not quantities (parse-checked only; a garbage value names no row and the verb answers not-found — no bound is meaningful): list --task (client.rs:1571), claim --task (client.rs:1800), dep-recheck --task (client.rs:2615), and every pos_i64 task_id positional (release/lane/bind/heartbeat/checkpoint/park/wake/block/unblock/cancel/revive/fail/complete).
FORWARDED NUMERICS with broker-side disposition:
- block --dep-recheck-seconds / --dep-max-ttl-seconds (client.rs:2510/2513): unbounded at the client; CLAMPED at the broker to 300..=3600 and 60..=604800 (turso_queue.rs:5378-5379; clamp fns :225/:230, fix(queue): broker-owned dependency blocking — typed deps, automated recheck, max TTL #8276). These tune the broker's own recheck cadence/TTL, and the clamp is the fix(queue): broker-owned dependency blocking — typed deps, automated recheck, max TTL #8276 design — recorded here as bounded-at-broker by clamp, deliberately unlike the Phase-3 reject rule.
- dep-recheck --limit (client.rs:2618): unbounded; broker defaults 200 (turso_queue.rs verb_dep_recheck:5658) — a maintenance sweep's page size over dep-blocked rows, bounded in effect by the blocked-row count. Deliberately passed.
- outbox resolve --retry-after (client.rs:3039): forwarded to the broker; backoff_delay (creation_outbox.rs:191) applies retry_after.max(1) with NO ceiling, while its computed path caps at BACKOFF_CAP_SECONDS. A huge value parks one outbox row effectively forever. Filed as Reconcile the #6448 bounds table with the bounds the code actually enforces (Phase 4 follow-up of #6449) #9029.
- outbox resolve --github-number (client.rs:3037): a recorded identifier on the outbox row, not a quantity. Deliberately passed.
- outbox drain --max (client.rs:3351): .max(1) lower clamp, no ceiling — a LOCAL loop count in the drainer process only, never forwarded. Not a forwarded value.
- stack record --issue / --pr (client.rs:3555), stack transition/restack --position + --pr (client.rs:3682/3691/3745): GitHub numbers and a stack ordinal, recorded on merge-intent rows; the broker re-plans transitions against the stored rows (the ordinal is checked against reality there). Identifiers/ordinals, deliberately passed.
STRING FLAGS with validation duties: park --not-before is validated by validate_not_before_flag (client.rs:2291 area, #6426); enqueue/validate packets run the full validate_packet at the broker; claim --filter is a matcher expression evaluated by the broker against task metadata (it selects, it does not write); platform/model stamps are shape-checked (platform_flag, client.rs:1295). list --not-before is the exception — see disposition (a).
3. Broker-verb inventory — queue_broker.rs dispatch + turso_queue.rs dispatch
Pre-pass, before backend selection (queue_broker.rs): validate_durations (:603) re-enforces lease/extend/delay bounds for /claim, /claim-flow, /heartbeat, /park on BOTH backends (a present-but-non-i64 field is rejected, never defaulted); validate_request_not_before (:619) applies the #6426 rule to /park and /revive. list_limit (queue_broker.rs:537) re-enforces 1..=500 for the PostgREST /list.
Per verb (parameters → disposition):
- /validate: runs validate_packet, returns errors/warnings; writes nothing.
- /enqueue (both backends): validate_packet gates the insert — any error refuses with exit 2 before task_from_packet runs (queue_broker.rs /enqueue arm; turso verb_enqueue:1942). queue, dry_run, shadow_intent as in §1. VALIDATED upstream by the packet validator — the contract's primary path.
- /claim, /claim-flow: worker/queue/lane/filter/platform/pool/model/session strings are identity and matching marks (they select a row; the claim predicate — status, attempts < max_attempts, not_before — is enforced in the verb); lease_seconds bounded (pre-pass); count bounded 1..=5 (turso_queue.rs:4237). Deliberately passed strings + bounded numerics.
- /lane, /bind: task_id + worker are keys; exclusion_reason/opencode_reason/session_id/launched_by and platform-limit fields are recorded marks — a platform limit without a reason is refused by the lane verb itself (feat(queue): Muse→opencode push — claim-by-id transfer verb (--from-session) + one-call send with notes and worktree #8210 rule, enforced in verb_lane). Deliberately passed.
- /heartbeat: extend bounded (pre-pass); progress is stored JSON (the holder's own checkpoint data).
- /checkpoint, /complete, /fail, /cancel, /release, /wake, /unblock, /revive: task_id/worker keys; stage/reason/reason-class/error/result/progress are stored free-form JSON or text written by the claim holder about its own task — no quantity is forwarded (revive's not_before IS quantity-shaped and is covered by the pre-pass gate). Deliberately passed.
- /park: delay + not_before bounded (pre-pass); ready_condition is stored JSON the broker interprets only by kind (ci waits floor at 1h in verb_park).
- /block: reason_class/blocker/progress stored; deps are parsed client-side into structured refs that die on bad shape (dep_flags, client.rs:2546) and re-validated by the broker's dep machinery (an unresolvable ref releases at first recheck, fix(queue): broker-owned dependency blocking — typed deps, automated recheck, max TTL #8276); dep cadence/TTL clamped per §2.
- /dep-recheck: task key or sweep limit (see §2). /list: limit bounded, offset clamped ≥0 (list_offset_or_default, client.rs:1003 — offsets are broker-generated page positions), status/lane/worker/task are equality filters (parameterized on Turso; quoted on PostgREST); not_before — see (a). /health, /signal-count: queue name equality filter only. /stack-record, /stack-list, /stack-transition, /stack-restack: merge-intent rows; bodies are fail-fast shape-checked client-side (stack_record_body/stack_transition_body/stack_restack_body) and re-planned broker-side against stored rows; refused outright on the PostgREST backend (turso-only, queue_broker.rs:1286). /events-append, /events-seen, /events-count, /events-prune: monitor event ledger — append carries event text/JSON recorded verbatim; prune's horizon is a monitor-internal maintenance value. /outbox-enqueue: the creation packet is shape-checked by the outbox core before insert; /outbox-claim: owner string key; /outbox-resolve: outcome is an enum the verb matches exhaustively (unknown outcomes fall through with no state change), github_number/github_url/error recorded, retry_after per §2 (filed, Reconcile the #6448 bounds table with the bounds the code actually enforces (Phase 4 follow-up of #6449) #9029); /outbox-list, /outbox-metrics: reads. /sweep, /coverage: monitor maintenance verbs over stored rows; no producer values forwarded.
RESPONSE SIDE: out of scope per the issue (read-back validation is #3068's family).
4. Required dispositions
(a) list --not-before: NOT validated at the client (cmd_list forwards args.get("not-before") raw, client.rs:1571 — unlike park) and NOT covered by the broker gate (validate_request_not_before names only /park and /revive). On the PostgREST backend a garbage value fails loudly (timestamptz comparison). On the live Turso backend the comparison is TEXT (verb_list, turso_queue.rs:6187): a garbage value sorting before all timestamps silently hides every row that carries a not_before (NULL rows still list), and one sorting after silently disables the filter — a misleading listing with exit 0, the #6419 shape in milder form. FILED as #9027 (validate at client + add /list to the broker gate).
(b) SQL-guard / direct producers: a direct producer EXISTS. pm-stack/dispatch/src/queue.ts calls the enqueue RPCs directly over PostgREST with the service-role key, forwarding packet fields with no validate_packet pass, and PATCHes task rows directly to assign them (bypassing the claim predicate); wired in server.ts:51/241/503. The opencode claimant has no direct path (broker-only, verified by search), and no other direct producer exists in the repo (RPC-name and rest/v1 searches outside the fleet-queue crate return only pm-stack/dispatch). Per the acceptance this is FILED, not fixed here: #9028 — it reopens the SQL-guard question if the dispatch server is live against a live store; if retired, the client should be removed/quarantined.
(c) timebox_minutes: NO range verdict is warranted today. Current state: a non-positive or non-integer value is already an ERROR (manual_schema_errors, validate.rs:~140s), and a value other than the standard 20/45 draws a WARNING (validate.rs:773). Evidence: a search of filed issues finds no instance of harm from an out-of-range timebox (the timebox hits are the budget-aware-claiming designs #3418/#4712, a different feature), and real packets legitimately use non-standard values — this very task's packet carries timebox_minutes 120 for a 2-hour audit. The warning is the right level; if budget-aware claiming (#3418/#4712) ever makes timebox load-bearing for admission, the question reopens with that design. No change.
(d) Corpus re-check: re-run over the full saved-packet corpus (queue-packets/, 402 packets at audit time) against the validator built from this task's branch (which carries the contract statement, a comment-only change); packets checked + violations found are recorded in this task's completion note on this issue.
5. Contract statement
Landed in the validate.rs module header by this task's PR: the #6448 rule (validate every forwarded value — type, range, agreement — at the boundary; reject with a field-named error, never clamp, never warn-and-forward) plus the bounds table AS IMPLEMENTED, with the four divergent rows pointing at #9029 until that reconciliation lands. dezren39 commented on Nov 12, 2026 agent-note:v1
state: parked (needs a full shift; claimed at the end of lane any-b's shift)
lane: any-b (task 15303, small_fix)
summary: Claimed and immediately parked for a full-length shift: the Phase 4 closing inventory (every forwarded field, every client get_i64 flag, every broker verb parameter, dispositions (a)-(d), corpus re-check, contract statement in the validate.rs header) is several hours of audit work and this lane had under an hour of budget left; starting the audit here would have stranded it mid-inventory. Start map confirmed at claim time: the gate stands (packet verification 2026-11-12: #6423, #6426, #6430, #6420, #6446, #6419 all CLOSED); the fleet-brokers tree is vendored in this repo at dezren39-nix/pkgs/fleet-brokers (canonical packaging per darwin-nix pkgs/fleet-brokers — confirm which tree a fix should land in before editing, per the packet); validator = crates/queue-broker/src/validate.rs, client = crates/repo-queue/src/main.rs (get_i64, 5 call sites), broker verbs = crates/queue-broker/src/main.rs. Caution: issue #6449 already carried queue/claimed + status/in-progress + work/assigned when this lane claimed the task, and the task's checkpoint history shows an earlier audit_in_progress stage — check for a live sibling worker's state before starting the inventory. developing-today commented on Nov 12, 2026 agent-note:v1
task: 15303
state: done
lane: any-c
summary: Phase 4 closing inventory complete. Full inventory recorded in comment 6835948908 on this issue (forwarded fields, payload fields, client get_i64 flags, broker verbs on both backends — every item dispositioned with file:line evidence at d7ad9d0). Contract statement landed in the validate.rs module header: PR #9058, merged 0941f75 (comment-only, +41 lines; cargo test -p fleet-queue: 55 lib tests pass; cargo fmt check clean; no Codex findings on the PR — CodeRabbit skipped as bot-authored).
Required dispositions:
- (a) list --not-before is validated at NO layer; on the live Turso backend its text comparison silently narrows the listing for garbage values (the fleet(queue): repo-queue list --limit accepts 0, negative, and unbounded values — 0 silently reports '(no tasks)', and the broker forwards the value verbatim to PostgREST #6419 shape, milder form). Filed: list --not-before: garbage filter value silently narrows the listing on the Turso backend (Phase 4 disposition (a) of #6449) #9027.
- (b) A direct producer exists: pm-stack/dispatch (queue.ts) calls the enqueue RPCs over PostgREST with the service-role key, forwarding packet fields with no validate_packet pass, and PATCHes task rows directly to assign them. The claimant is broker-only; no other direct producer found. Filed: pm-stack/dispatch is a direct PostgREST producer bypassing the packet validator and the queue broker (Phase 4 disposition (b) of #6449) #9028 (reopens the SQL-guard question if that server is live against a live store).
- (c) timebox_minutes: no range verdict warranted. Non-positive/non-integer is already an error; non-standard (not 20/45) warns. Corpus evidence: 85 of 402 saved packets legitimately use non-standard values (30 x68, 60 x5, 120 x2, 240 x3, 25 x6, 15 x1) — this task's own packet used 120. No filed instance of harm (the timebox issue hits are the budget-aware-claiming designs design(queue): budget-aware claiming — parks carry a minimum required time budget, claim matches the claimer's remaining shift budget #3418/feat(queue): enforce remaining-budget admission in claim and park #4712, a different feature; if that lands, the question reopens there).
- (d) Corpus re-check: all 402 saved packets in the goal workspace's queue-packets/ were re-run through fleet queue validate (the live validator, which carries every Phases 1-3 tightening; the header change is comment-only). Result: 401 valid, 1 violation — packet-2392.json fails the fleet(queue): dedupe-key cross-checks are skipped when the payload identity arrives via a different field — a packet validates while its dedupe key names a different issue/PR/set #6446 rule (dedupe family 'pr' names PR 1490 but the payload carries neither a prs list nor a source.pr). That is a stale saved packet today's validator correctly rejects at enqueue; no live task carries it. Corpus max_attempts values observed: 2, 3, 4, 6 — inside every bound under discussion in Reconcile the #6448 bounds table with the bounds the code actually enforces (Phase 4 follow-up of #6449) #9029.
- Bounds-table reconciliation (max_attempts 1..=100 vs the doc's 1..=16; delay ceiling 7d vs 30d; lease/extend floor 1 vs 60; outbox retry_after uncapped): filed Reconcile the #6448 bounds table with the bounds the code actually enforces (Phase 4 follow-up of #6449) #9029.
This issue's acceptance criteria are all met; closing it. The three follow-ups (#9027, #9028, #9029) reference this issue and #6448 and are deliberately NOT folded into PR #9058's diff.
next: none for this issue — follow-ups #9027/#9028/#9029 proceed as their own queue items. dezren39 commented on Nov 17, 2026
Agent note — #6448 decision-2 disposition from the #9028 fix (lane any-m, task 20268)
The #9028 follow-up is implemented and merged (PR #10986, merge bb02d18): pm-dispatch's direct PostgREST producer is removed — its queue writes now go through the queue broker with packet validation, and its assign step is a broker claim (claim-flow by task id).
Disposition of the #6448 decision-2 SQL-guard question: it does NOT reopen. The question was conditional on a direct producer remaining by design; after PR #10986 no direct producer remains — dispatch is a broker client like every other queue producer, so the broker/validator invariant holds without a SQL-layer guard. (Deploy of the merged build to the live service is tracked on #9028; until the amd switch lands, the running build is still the pre-fix one.)
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|