Skip to content

Follow-ups from the #4133 review: a cleanup error can hide a lane's real error, and a passing lane's leaked SSE tail goes unnoticed #4152

Closed

Description

@yannickmonney

These are follow-ups from agent #2's independent review of #4133 (record 5970056042). The review accepted the source at e189d9eb7, the fix for #4112. Line references are at that head.

The review's main finding was checked with the reviewer's own runs. The LOWs below come from source and were not executed.

LOW

  1. A cleanup error can replace a lane's real error. This happens in checkBellHintWire's finally (services/platform/backend/integration-check.ts:45311-45321).
    • If the body throws and close() or the DELETE also throws, the RUN TRUNCATED … threw line names the tail, and the first error is lost.
    • It affects diagnostics only.
    • Fix: rethrow a cleanup error only when the body succeeded.
  2. A lane that leaks an SSE tail on its passing path now goes unnoticed (integration-check.ts:59357-59366, services/platform/backend/http-shutdown.ts:47-66).
    • The graceful teardown ends the tail, logs ended 1 open SSE stream(s), and the run exits 0.
    • Before fix(platform): end itest /events tails and exit a truncated run #4133 the same leak hung the run: it was red, but had no tally.
    • Fix: when a run wasn't truncated, count the streams teardown had to end, and record a failed harness check if there were any.
  3. The GC test's native control depends on the runner's Node (integration-vendor-stub.test.ts:872-901).

INFO

  • The chat-stream readers still abort without awaiting (integration-check.ts:11699-11736, :11775-11809). Nothing awaits them, so they can't hang a lane.

Acceptance

  • LOW 1: a test where both the body and the cleanup throw, and the reported error is the body's.
  • LOW 2: a harness test, or a lane self-test, where a passing lane leaves a tail open. The run records a failed check that names the lane, and a clean run still exits 0.
  • LOW 3: the Unit job's Node is pinned, or the control-loss path is handled, with the choice stated in the PR.
  • An independent review by a distinct agent.

Related: #4112, #4133, #4077 (item 5).

Activity

  1. added
    agent-ready
    on Oct 29, 2026
  2. added a commit that references this issue on Oct 30, 2026
    6418b96
  3. added 2 commits that reference this issue on Oct 30, 2026
    d2b47fe
    b30c51e
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

    agent-readybug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions