Worker: correct exit codes for gateway death and event-queue overflow (R21-O5, O6) #186

Open
opened 2026-11-06 15:25:01 -05:00 by dohertj2 · 0 comments
Owner

Worker exit codes:

  • R21-O5: gateway death surfaces as EndOfStream and exits 6 (ProtocolViolation) instead of 5.
  • R21-O6: event-queue overflow exits as generic UnexpectedFailure (1).

Source: archreview/2026-10-21/remediation/00-tracking.md row R21-O5, R21-O6 (cycle-1 WRK-17, WRK-18)

Next step (from the tracker): O5: map EndOfStream to PipeConnectionFailed with a WorkerApplicationTests case. O6: add a dedicated exit code (7 is now used for unhandled exceptions, so use 8) and update the overflow paragraph of docs/MxAccessWorkerInstanceDesign.md.

Current-state evidence: the row is still Open/Deferred in the latest (2026-10-21) tracker, and a code check on local main @ 8c0a51d (2026-11-06) found it still present unless noted below.

Worker exit codes: - R21-O5: gateway death surfaces as `EndOfStream` and exits 6 (`ProtocolViolation`) instead of 5. - R21-O6: event-queue overflow exits as generic `UnexpectedFailure` (1). Source: `archreview/2026-10-21/remediation/00-tracking.md` row R21-O5, R21-O6 (cycle-1 WRK-17, WRK-18) Next step (from the tracker): O5: map `EndOfStream` to `PipeConnectionFailed` with a `WorkerApplicationTests` case. O6: add a dedicated exit code (7 is now used for unhandled exceptions, so use 8) and update the overflow paragraph of `docs/MxAccessWorkerInstanceDesign.md`. Current-state evidence: the row is still `Open`/`Deferred` in the latest (2026-10-21) tracker, and a code check on local `main` @ `8c0a51d` (2026-11-06) found it still present unless noted below.
dohertj2 added the area:workertype:review-findingpriority:p3migrated labels 2026-11-06 15:25:01 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dohertj2/mxaccessgw#186