Skip to content

fleet secrets list: broken-pipe panic when stdout closes early (e.g. piped to head) #5569

Closed

Description

@developing-today

Repro

On the sandbox, with the merged fleet build (sha f16d1af7…, post PR #5565):

fleet secrets list | head

panics with a broken-pipe error when head closes the pipe after the first lines.

Expected

Quiet exit — SIGPIPE-default semantics or a handled EPIPE — like a well-behaved Unix filter. No panic, no error noise.

Scope

Check the other list-shaped verbs (the queue/search surfaces, if they share the print path) and fix at the shared print helper if one exists.

Rust note: println! panics on EPIPE; use a write that maps EPIPE to a clean exit.

Found by

The secrets-rollout verification pass, 2026-11-04.

Severity

Cosmetic; no data impact.

Acceptance criteria

  • fleet secrets list | head exits quietly — no panic, no error noise — when the downstream pipe closes early
  • Other list-shaped verbs sharing the print path handle EPIPE the same way, or are verified not to share the defect
  • A regression test or scripted repro covers the early-close pipe case

Activity

  1. added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    priority/lowNice to have; do when convenient
    effort/sSmall: expected under 2 hours of work
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Nov 4, 2026
  2. dezren39 commented on Nov 4, 2026

    @dezren39
    Member

    Intake review

    • Related issues/PRs: merged PRs with this issue number in the title: none found in a merged-PR title search — no merged PR explicitly resolves this issue, so it stays open.
    • Notes: Enriched by the fleet monitor (Duty 2, protocol §5): acceptance criteria appended to the body, labels normalized.
    • Risks / suggested approach: Fix at the shared print helper if the list verbs share one: Rust println! panics on EPIPE, so map EPIPE specifically to a clean exit. Risk: masking genuine write errors — only EPIPE gets the quiet path.
  3. added
    work/assignedQueue worker lifecycle state
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    and removed on Nov 5, 2026
  4. dezren39 commented on Nov 5, 2026

    @dezren39
    Member

    🤖 Agent note · handed off

  5. dezren39 commented on Nov 5, 2026

    @dezren39
    Member

    🤖 Agent note · parked

  6. added
    task/triageQueue packet kind: verify, reproduce, and route this item
    on Nov 5, 2026
  7. 9 remaining items

  8. added
    queue/claimedQueue worker lifecycle state
    and removed on Nov 5, 2026
  9. dezren39 commented on Nov 5, 2026

    @dezren39
    Member

    🤖 Agent note · picked up

  10. dezren39 commented on Nov 5, 2026

    @dezren39
    Member

    🤖 Agent note · parked

  11. added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    and removed
    queue/claimedQueue worker lifecycle state
    on Nov 5, 2026
  12. added a commit that references this issue on Nov 5, 2026
  13. removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 5, 2026
  14. developing-today commented on Nov 5, 2026

    @developing-today
    ContributorAuthor

    Agent note — task 10517 complete (lane code-x)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

effort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)meta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/lowNice to have; do when convenienttask/triageQueue packet kind: verify, reproduce, and route this item

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions