Skip to content

fix(goose): update backend and report provider and worker failures - #446

Merged
johnmatthewtennant merged 19 commits into
mainfrom
jtennant/goose/capacity-error-propagation
Oct 30, 2026
Merged

johnmatthewtennant merged 19 commits into
mainfrom
jtennant/goose/capacity-error-propagation

Conversation

@johnmatthewtennant

@johnmatthewtennant johnmatthewtennant commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Fixes provider failures that silently end chats and subagent failures hidden by an earlier saved result. Pins the combined Goose backend on upstream 361003ea3263587f4241a0f906affdcc0d5c9c1f, in a public maintained fork. Manual-compaction failures report errors without replacing context.

Responses and Anthropic stream errors reject the turn instead of appearing successful. Partial text remains visible and the same chat can recover. Failed responses cannot release executable buffered tool calls. Foreground subagents check failure before accepting saved structured output. Managed checkouts on Unix and Windows follow the repository URL recorded in the lockfile.

Subagents use foreground delegation.

Related issue

Upstream fixes: provider streams and worker failure precedence.

Testing

Focused regressions on the pinned composed source verify permission, billing, and oversized-request stream classifications; failed-output resume; current-attempt worker output; and saved context errors reaching the worker state machine. Provider, worker outcome, and compaction checks pass.

The real-Goose browser suite exercises this Berd head with the pinned Goose commit above: normal completion, HTTP 503, three streaming overload payload shapes, early EOF, and EOF after partial text. Each case observes native ACP WebSocket traffic, requires the actual prompt outcome, then verifies a new visible reply to a second prompt in the same session. Errors and partial output remain visible after recovery. Goose and its WebSocket transport are real; the HTTP provider is a deterministic local fixture, and Tauri/OS IPC is mocked.

Before each launch, the fixture checks the source commit and independently recorded executable SHA-256 378ed1ecc2c43f07c8b63088cd885644caa4aeae770f484bbb28f06deed7ee28. The backend uses the pinned lockfile and default Cargo features.

Screenshots

Interrupted response retains partial text and an error, followed by a successful reply in the same chat, using the pinned backend.

Partial response, visible error, and same-session recovery

@johnmatthewtennant
johnmatthewtennant marked this pull request as ready for review October 29, 2026 15:18

@morgmart morgmart left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 Automated code review

Request changes. The new default Goose pin ships the provider-failure implementation from a contributor fork rather than the supported upstream backend, creating an unsupported release and upgrade path. The supplied checks for the exact head SHA passed. The opt-in real-Goose Playwright project also activates from an incomplete environment guard.

Deterministic publication result: 1 blocking and 1 non-blocking inline finding(s) publishable; 0 duplicate(s) suppressed; 0 blocking screenshot-evidence requirement(s) in this review body.

Comment thread goose-backend.lock.json Resolved
Comment thread playwright.config.ts Resolved

@morgmart morgmart left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 Automated code review

Comment. The complete PR comparison fixes the previously reported integration-environment guard, but its new regression test is not connected to any repository test command or supplied CI check, so the guard can regress without detection. The supplied check evidence is structurally valid; eight checks passed and two checks were still in progress at capture time.

Deterministic publication result: 0 blocking and 1 non-blocking inline finding(s) publishable; 1 duplicate(s) suppressed; 0 blocking screenshot-evidence requirement(s) in this review body.

Comment thread scripts/playwright-config.test.mjs Resolved

@morgmart morgmart left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 Automated code review

Comment. The previously reported project-selection and test-gate defects are fixed, and all supplied checks for the exact head SHA passed. One test-honesty gap remains: the real-Goose fixture verifies the source checkout's commit but never verifies that the executable under test was built from that checkout.

Deterministic publication result: 0 blocking and 1 non-blocking inline finding(s) publishable; 1 duplicate(s) suppressed; 0 blocking screenshot-evidence requirement(s) in this review body.

Comment thread tests/e2e/fixtures/real-goose.ts Resolved
@johnmatthewtennant
johnmatthewtennant marked this pull request as draft October 29, 2026 17:19
@johnmatthewtennant
johnmatthewtennant changed the base branch from jtennant/worker-action-limit-reporting to main October 29, 2026 17:19
@johnmatthewtennant johnmatthewtennant changed the title fix(goose): surface provider failures instead of silent completion fix(goose): update backend and report provider and worker failures Oct 29, 2026
@johnmatthewtennant
johnmatthewtennant marked this pull request as ready for review October 29, 2026 18:35
@johnmatthewtennant
johnmatthewtennant requested review from a team and morgmart October 29, 2026 18:36
@johnmatthewtennant
johnmatthewtennant merged commit 8096de5 into main Oct 30, 2026
10 checks passed
@johnmatthewtennant
johnmatthewtennant deleted the jtennant/goose/capacity-error-propagation branch October 30, 2026 01:31
johnmatthewtennant added a commit that referenced this pull request Oct 30, 2026
## Summary

Public Berd builds goose from upstream [aaif-goose
`361003ea`](aaif-goose/goose@361003e)
again, instead of the personal fork pinned in
[#446](#446). `361003ea` is that
fork's base, so public Berd keeps everything else in the update.

The fork's provider stream and worker failure fixes move to internal
Berd as goose source patches. Goose is mainly used internally; public
users mostly run Codex and Claude. Internal drops each patch when
[aaif-goose/goose#13226](aaif-goose/goose#13226)
and [#13227](aaif-goose/goose#13227) land.

The real-goose capacity-error suite from #446 stays opt-in: it runs only
when `GOOSE_BIN`, `GOOSE_SOURCE_DIR`, `GOOSE_EXPECTED_COMMIT` and
`GOOSE_EXPECTED_SHA256` are set, and it expects the patched backend.

### Testing

CI builds goose from the new pin.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Signed-off-by: John Matthew Tennant <[email protected]>
Co-authored-by: Henry <a0d9f90f86da5f023099d22b8e3599af162d9423a422d8f385a12815de879cf2@buzz.block.builderlab.xyz>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants