Skip to content

Report delegated runner outages as infrastructure failures #1179

In progress

Description

@eowca

A delegated runner's own process failure becomes a failed product check. For example, if an operator-supplied runner is wrapped in heavy-slot and admission expires before the runner starts, the wrapper can exit 75 with no stage frame. The coordinator stores 75 as the stage verdict, replaces the check receipt, and refreshes PR Validation with that failed result. The same path applies to wrapper exit 124 and a runner killed before returning its frame. The coordinator's own runner timeout also becomes a failed stage record. Process and frame handling · Receipt and PR refresh · Runner protocol

At 077205f6 I ran the real dispatcher with an offline runner and captured the real CLI's save call in memory. The children were sh -c 'exit 75', timeout 0.05s sleep 2, sleep 2 under the Python deadline, and a shell that sent itself SIGTERM.

admission: cli=1 saved_stage_exit=[75]
GNU timeout: cli=1 saved_stage_exit=[124]
supervisor timeout: cli=1 saved_stage_exit=[124]
SIGTERM: cli=1 saved_stage_exit=[-15]
shell SIGTERM: cli=1 saved_stage_exit=[143]

Route runner process failures and supervisor timeouts through the existing infrastructure error path in cmd_check, separate from a validated stage frame. Keep the wrapper status or signal and elapsed time in the diagnostic. An infrastructure error cannot furnish a new proof.

Acceptance criteria

  • A runner process exiting 75 or 124 or terminating by signal, and a runner exceeding the supervisor deadline, return the existing infrastructure exit 2 and a retryable diagnostic. An existing receipt stays intact and no failed stage is published.
  • A validated frame reporting a nonzero stage status still produces a normal failed check. The validated not_started frame remains the only route to local fallback.
  • Cover process exits and a real short timeout in tests/test_stage_runner.py and the receipt behavior in tests/test_cli.py. Update docs/ARCHITECTURE.md to describe the distinction.

Activity

  1. eowca commented on Nov 26, 2026

    @eowca
    ContributorAuthor

    Closed PR #1422 in the stale PR sweep. It conflicts with current main and has used both review rounds. This issue remains open for a fresh PR.

  2. eowca commented on Nov 26, 2026

    @eowca
    ContributorAuthor

    Exit-code audit at 1778ec854: heavy-slot distinguishes outer admission exit 75 from a launched command exit 1 with a fresh failed receipt. Its red-head guard accepted synthetic fresh same-head receipts containing runner process results 75, 124 and -15, just as it accepted a failed stage. Returning 2 and preserving the old receipt as proposed in #1422 changes what callers classify and retry.

    Hold for the decisions owner until the intended CLI and wrapper classification is agreed and covered together, including valid failing stage frames, runner process failure, and the fresh-receipt retry guard.

  3. eowca commented on Nov 26, 2026

    @eowca
    ContributorAuthor

    Partial handoff for #1179. #1960 is the replacement for #1752 and remains draft. Repaired head d074f8521c3fc17580650a18be79c3ae26bcd57b preserves completed keyed stages on coordinator interruption, keeps the prior receipt unchanged when the runner fails, and still records a reported stage failure. Tests include readiness rejecting an older green receipt on a new head. The existing heavy-slot guard skips unchanged receipts.

    The full slotted check on miki passed on this exact head. Receipt content ID fe8f43cb86bf8412f005eccd89e56e6e451ab0a9, settings SHA-256 37e376267f2822d65393198ae11476ef7d6fcdcba845d99d2862e3b2eb955ac1. Host log /tmp/lz-r59-pr1960-d074f85-check.log; receipt /tmp/lz-r54-room.3ZCwLO/r59-1179/.loopzero/checks.json. GitHub showed six checks passed.

    OD ruling 26 Nov (Lean178 r59): YES to 1-3 + amendments A-C. Primary and delta approvals apply to earlier heads. The repair still needs an eligible review under the delivery contract before readiness and merge. Lean178 r61 declined an extra delta, and #1960 already used the replacement for #1752. #1179 stays open on hold and #1752 remains open.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions