Skip to content

provider-dispatch.md: invalid Grok terminal data is child-failed after a nonzero exit #132

Closed

Description

@andrewfree

The dropout paragraph in provider-dispatch.md says "other valid Grok terminal failures return child-failed/70, while invalid or incomplete terminal data remains malformed-output/65."

That holds only when grok exits 0. After a nonzero exit, a parse error that is not a ProviderResultError leaves providerFailure null, and the exitCode !== 0 branch classifies the run with unavailableStatus(), so the receipt is child-failed/70 with child exited with status N. run.test.ts pins this: "keeps malformed terminal data distinct after child exit 1" expects exitCode === 0 ? "malformed-output" : "child-failed".

Suggested wording: "invalid or incomplete terminal data is malformed-output/65 after a zero exit and an ordinary child-failed/70 after a nonzero exit."

Activity

  1. ericlitman commented on Oct 11, 2026

    @ericlitman
    Owner

    Design pass, 2026-10-11 (bundled with #141, #142, #131; see the plan on #141)

    New wording for provider-dispatch.md:106: after a zero exit, invalid or incomplete Grok terminal data is malformed-output/65. After a nonzero exit, it takes the ordinary failure classification: normally child-failed/70, or unavailable-model/69 when the model-error text matches. Cancellation and timeout keep precedence. The test matrix at run.test.ts:651 stays as it is and gains a malformed case that carries auth text.

  2. added a commit that references this issue on Oct 11, 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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions