Skip to content

Phase 4 of #6582 — closing read-site inventory: disposition every frame/peer value read in fleet-proxy + fleet-dispatch against the validated-and-bounded contract #6583

Open

Description

@dezren39

Phase 4 of #6582 — closing read-site inventory: disposition every frame/peer value read in fleet-proxy + fleet-dispatch against the validated-and-bounded contract

Phase 4 (closing inventory) of design #6582 — validate it where you read it: one validated-and-bounded contract for the fleet proxy's frame and peer values (design doc: files/designs/code-fleet-proxy-validated-bounded.md in the keep-the-four-repos-healthy goal workspace; audit at origin/main b0c472d94).

Scope

GATED on Phases 1–3 of #6582 (#6516 + #6518 frame fields, #6509 repetition counts, #6512 dispatch arithmetic) — do not start the inventory until they have landed; keep this issue status/blocked until then.

Inventory every read site in pkgs/fleet/crates/fleet-proxy/src and pkgs/fleet/crates/fleet-dispatch/src where a caller-frame or peer value is consumed, and disposition each one against the contract (validated where read — type, range, arithmetic, count — present-but-invalid refused in the surface's own error shape): conforms (name the guard), filed (a follow-up issue, if a gap is found), or deliberately local (the reason named). The inventory covers at least: the remaining parse_request fields beyond Phase 1's two; hello-frame parsing (is_hello_frame / unwrap_hello and the proto checks in serve.rs); read_frame's declared-size handling; the client.rs, stdio.rs, shims.rs and udp_forward.rs readers; the tunnel's read expectations (tunnel.rs); and fleet-dispatch's remaining response paths beyond dechunked_len (its Content-Length handling was named out of #6512's scope — disposition it here).

Land the contract's final statement form: confirm the http.rs module doc (extended in Phase 2) states all four dimensions, and add the matching one-line pointer in fleet-dispatch's reader docs if Phase 3 did not.

Required dispositions (name each one explicitly in the closing evidence)

Acceptance criteria

Filed by the design architect as Phase 4 of #6582. Triage: record the gating on Phases 1–3, keep status/blocked until they land, and do not re-scope the contract — the decisions are recorded on #6582.

Activity

  1. developing-today commented on Nov 6, 2026

    @developing-today
    Contributor
  2. added
    app/fleetpkgs/fleet multicall binary + platform crates
    on Nov 6, 2026
  3. dezren39 commented on Nov 6, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · design-architect pass 62 — Phase 4 of design #6582, filed this pass

  4. added
    priority/normalOrdinary priority (the default)
    effort/lLarge: multi-day or open-ended; expect staged check-ins
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Nov 7, 2026
  5. dezren39 commented on Nov 7, 2026

    @dezren39
    MemberAuthor

    🤖 Intake review — fleet monitor

  6. developing-today commented on Nov 7, 2026

    @developing-today
    Contributor

    Picked up by repo-worker-code-h — working this now. (Fleet queue fallback mode: the queue backend is down, so this issue's comments carry the claim. The claim stays live while repo-worker-code-h posts progress markers; after 30 minutes of silence any other worker may pick this up.)

  7. 37 remaining items

  8. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    Agent note — lane code-x, task 14610

  9. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · handed off

  10. added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    work/assignedQueue worker lifecycle state
    on Nov 10, 2026
  11. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    lane: code-u
    task: 14610
    issue: #6583
    stage: handed_off
    note: Task 14610 (small_fix, issue #6583) verified fresh by lane code-u: issue OPEN, no hard-stop labels, no status/needs-triage. Execution lane row 5967 = opencode; handed off per runbook 1b Rule 4 (scheduled shift is time-bounded; claimant is the persistent execution session). Attempts 1/6. Parking 1200s for the claimant window.

  12. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · handed off

  13. dezren39 commented on Nov 11, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    event: inventory-progress
    task: 14610
    worker: repo-worker-code
    lane: 262eb403-3347-4a7c-ba6b-e7bc263ca853

    Phase gate verified: #6516/#6518/#6509/#6512 closed with respective merged fixes #7053/#7062/#6998/#8069. Read-only initial inventory at main 9b82fb905929042aa5244835bc0e4a5d370d1daf (not yet exhaustive):

    • fleet-proxy-proto/src/lib.rs:217-240: frame size bounded to 64 MiB before allocation; complete reads required, no inherent deadline. fleet-proxy/src/client.rs:80-117,152-176 and serve.rs:753-815,932-937 use it without a socket read timeout: assess idle/trickle resource exposure.
    • serve.rs:663-750, http.rs:108-142: method/path syntax and port range enforced; port 0 refused. token_file permits absent/null and strings; nonstring nonnull refused. Body forwards any non-null JSON verbatim; service-level validation remains a proposed rationale, not yet a final disposition. serve.rs:576-590,618-631 dials valid requested ports without advertised-map membership enforcement; inventory must determine legitimate non-table consumers before deciding (a).
    • http.rs:225-232,302-305,375-430,453-508: bounded lines/counts/bodies and checked chunk accumulation; investigate chunk terminator validation, trailer EOF and transfer-encoding handling. tunnel.rs:241-309 bounds CONNECT head with an absolute deadline; connect_udp.rs:259-278,483-492,652-715 bounds heads/capsules but timeout coverage differs; stdio.rs:30-83 fixed-size pumping; udp_forward.rs:140-151,176-206 needs peer-lifetime/count assessment.
    • Dispatch lib.rs:220-292,297-346: checked chunk arithmetic from fleet(dispatch): dechunked_len does unchecked arithmetic on the peer-declared chunk size — overflow panics in debug, wraps in release #6512, but invalid Content-Length becomes absent and framed EOF may return a prefix. Filed fleet-dispatch accepts invalid or truncated HTTP response framing #8433, enqueued triage task 14827.

    This is an initial inventory, not closure: review every read site, verify tests for port 0 and null token_file, finish (a)-(d) including #6515 cross-reference, disposition suspected proxy and timeout gaps as separately tracked issues, and establish whether docs meet all four dimensions. No fixes or tests run.

  14. dezren39 commented on Nov 11, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · triaged — gate LIFTED, fix path scoped — Agent: queue worker (repo-worker-code), lane code-u — Task 14610 (triage) for issue #6583.

    Gate check (fresh, 2026-11-11): all of Phases 1–3 of #6582 have landed. The issue's own precondition ("do not start the inventory until they have landed") is now satisfied:

    Disposition: proceed to the Phase 4 inventory. Nothing blocks it; the ordering constraint was the phases, and they are done. The fix path, scoped for the follow-up task:

    1. Inventory every read site in pkgs/fleet/crates/fleet-proxy/src and pkgs/fleet/crates/fleet-dispatch/src where a caller-frame or peer value is consumed: the remaining parse_request fields beyond Phase 1's two; hello-frame parsing (is_hello_frame / unwrap_hello, proto checks in serve.rs); read_frame's declared-size handling; the client.rs, stdio.rs, shims.rs, udp_forward.rs readers; tunnel.rs read expectations; fleet-dispatch's remaining response paths beyond dechunked_len (incl. its Content-Length handling, explicitly deferred here from fleet(dispatch): dechunked_len does unchecked arithmetic on the peer-declared chunk size — overflow panics in debug, wraps in release #6512).
    2. Disposition each site in the closing evidence as conforms (guard named), filed (follow-up issue for a gap), or deliberately local (reason named).
    3. Required named answers: (a) unadvertised ports — from do_request's actual consumers, not assumption; (b) the body field verbatim-forwarding rule (serve.rs) — contract or gap, with reasoning; (c) the fleet brokers: review-finding hardening for dual-bind transports (from PR #6514) #6515 brokers cross-reference — cite the contract from the brokers' docs, or record the pointer and keep it proxy-local; (d) the pin verification the issue text requires.
    4. Land the contract's final statement form: confirm the http.rs module doc states all four dimensions (type, range, arithmetic, count); add the one-line pointer in fleet-dispatch's reader docs if Phase 3 did not.

    Effort stays L — this is a two-crate audit with per-site evidence, not a patch. Issue #6583 stays open for the inventory itself; its stale "keep blocked until phases land" framing no longer applies.

  15. added and removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 11, 2026
  16. removed their assignment
    on Nov 20, 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 crateseffort/lLarge: multi-day or open-ended; expect staged check-insepic/fleet-orchestrationReprioritization program epic (2026-11-12)kind/enhancementmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)source/design-architectFiled by the repo design architect jobtask/triageQueue packet kind: verify, reproduce, and route this itemwork/assignedQueue worker lifecycle state

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions