Skip to content

test(think): public successors for the recovery budget's give-ups (group A, batch 2) - #3437

Closed
mattzcarey wants to merge 3 commits into
mainfrom
slim/harness-A-successors-2
Closed

mattzcarey wants to merge 3 commits into
mainfrom
slim/harness-A-successors-2

Conversation

@mattzcarey

Copy link
Copy Markdown
Member

Group A's second batch of successors: when chat recovery gives up, and what onExhausted is told, through public behaviour on both configs. Theme (c), second in harness's order (A-4). Stacked on #3432. Tests only, no changeset.

A new fixture, armLastingStallForTest, stalls the next model streams and sets chatRecovery (maxAttempts, an onExhausted that records, and optionally shouldKeepRecovering) for as long as the agent lives. The test starts a turn and polls recoveryProgressForTest until recovery gives up. A's stallRecoveryForTest can't show a give-up: it returns after the first attempt, and it puts chatRecovery back before the attempts scheduled behind it run. Harness is told.

Successor Class Harness-backed
"gives up through onExhausted with max_attempts_exceeded once the attempts are spent" (reason, terminal message, root request id, no more than maxAttempts onChatRecovery calls) passes fails until A-4
"ends recovery with recovery_aborted when shouldKeepRecovering says no" passes fails until A-4

The rows for the old tests they succeed come once these pass on the shell: 7052's "routes a stall through the same exhaustion path…", 4359's "exhausts chat recovery after the configured max attempts", and 4849's "seals when the shouldKeepRecovering predicate returns false". #3387's check needs a successor that passes there. "Progress resets the budget" (4634 and its siblings) needs a model that writes new text on each attempt, so it's the next batch.

@changeset-bot

changeset-bot Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: c9e7767

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@pkg-pr-new

pkg-pr-new Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

agents

npm i https://pkg.pr.new/agents@3437

@cloudflare/ai-chat

npm i https://pkg.pr.new/@cloudflare/ai-chat@3437

@cloudflare/codemode

npm i https://pkg.pr.new/@cloudflare/codemode@3437

hono-agents

npm i https://pkg.pr.new/hono-agents@3437

@cloudflare/shell

npm i https://pkg.pr.new/@cloudflare/shell@3437

@cloudflare/think

npm i https://pkg.pr.new/@cloudflare/think@3437

@cloudflare/voice

npm i https://pkg.pr.new/@cloudflare/voice@3437

@cloudflare/worker-bundler

npm i https://pkg.pr.new/@cloudflare/worker-bundler@3437

commit: c9e7767

@agent-think

agent-think Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

✅ agents import sizes: no significant changes (d5a44252 → c9e77677, workflow run)

@mattzcarey
mattzcarey force-pushed the slim/harness-A-successors-2 branch from 34fa4e3 to a16f0c4 Compare November 27, 2026 09:06
@mattzcarey
mattzcarey force-pushed the slim/harness-A-successors-1 branch from 76c7b73 to 4195d73 Compare November 27, 2026 09:12
@mattzcarey
mattzcarey force-pushed the slim/harness-A-successors-2 branch 2 times, most recently from f4ed585 to e5cf256 Compare November 27, 2026 09:19
@mattzcarey
mattzcarey force-pushed the slim/harness-A-successors-1 branch from b2ca39a to 2aae406 Compare November 27, 2026 09:55
@mattzcarey
mattzcarey force-pushed the slim/harness-A-successors-2 branch from e5cf256 to 900c2d3 Compare November 27, 2026 09:56
Base automatically changed from slim/harness-A-successors-1 to main November 27, 2026 10:03
@mattzcarey
mattzcarey force-pushed the slim/harness-A-successors-2 branch from 900c2d3 to 213aaa8 Compare November 27, 2026 10:33
@mattzcarey
mattzcarey marked this pull request as ready for review November 27, 2026 10:34
devin-ai-integration[bot]

This comment was marked as resolved.

devin-ai-integration[bot]

This comment was marked as resolved.

@mattzcarey
mattzcarey force-pushed the slim/harness-A-successors-2 branch from d833f44 to c9e7767 Compare November 27, 2026 12:03
@mattzcarey

Copy link
Copy Markdown
Member Author

Merged in #3455 (one-go stack merge: #3455 contained this PR's commits, and its body carries this description).

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.

1 participant