Skip to content

harness score A-2: three onChatRecovery engine tests are class-only, with public successors - #3393

Merged
mattzcarey merged 3 commits into
mainfrom
slim/harness-score-recovery-2
Nov 27, 2026
Merged

mattzcarey merged 3 commits into
mainfrom
slim/harness-score-recovery-2

Conversation

@mattzcarey

@mattzcarey mattzcarey commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

One test in think-session.test.ts reaches the class's recovery engine directly, so it's now class-only: "marks the incident failed when onChatRecovery throws", which seeds a fiber row and reads incident records. Its successor in chat-recovery-public.test.ts asserts the same behaviour through the public API and passes on both configs: a stalled turn whose onChatRecovery throws ends with an error, and the model isn't called again.

Four more rows are left unmarked until their successors can assert the same outcome on both configs: the attempt limit and the two decline tests (after Q10's in-run retry is the class's behaviour, in H11), and "fires onChatRecovery for an interrupted fiber" (until the reset successor lands). The public successor file also covers stall recovery, a declined recovery, the attempt budget and the per-turn stall timeout.

Validated:

  • pnpm test:harness on this head (fb441af) passes the class-only check: every successor exists, constructs Think and passes on the harness config, and no listed test passes there. The row count changed after that run, so the score is re-measured on the next run.
  • chat-recovery-public.test.ts passes 5 of 5 on the class config and on the harness config.

@changeset-bot

changeset-bot Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 7ebab9c

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@3393

@cloudflare/ai-chat

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

@cloudflare/codemode

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

hono-agents

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

@cloudflare/shell

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

@cloudflare/think

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

@cloudflare/voice

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

@cloudflare/worker-bundler

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

commit: 7ebab9c

@agent-think

agent-think Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

✅ agents import sizes: no significant changes (506500e4 → 7ebab9c8, workflow run)

@mattzcarey
mattzcarey force-pushed the slim/harness-score-recovery-2 branch from 057ddbb to 099bcb5 Compare November 27, 2026 05:41
@mattzcarey
mattzcarey force-pushed the slim/harness-score-recovery branch from 64bf859 to 21bec88 Compare November 27, 2026 06:11
@mattzcarey
mattzcarey force-pushed the slim/harness-score-recovery-2 branch 2 times, most recently from 4beea55 to 2242dda Compare November 27, 2026 06:33
Base automatically changed from slim/harness-score-recovery to main November 27, 2026 06:41
@mattzcarey
mattzcarey marked this pull request as ready for review November 27, 2026 06:50
@mattzcarey
mattzcarey force-pushed the slim/harness-score-recovery-2 branch from 2242dda to fb441af Compare November 27, 2026 06:52
devin-ai-integration[bot]

This comment was marked as resolved.

@mattzcarey
mattzcarey force-pushed the slim/harness-score-recovery-2 branch from fb441af to 9822cde Compare November 27, 2026 07:45
…successors also check that a declined or failed recovery calls the model no more
…ed until their successors can assert the same outcome (Q10, the reset successor)
@mattzcarey
mattzcarey force-pushed the slim/harness-score-recovery-2 branch from 82f0dfd to 7ebab9c Compare November 27, 2026 08:20
@mattzcarey
mattzcarey merged commit 6c01ac0 into main Nov 27, 2026
18 checks passed
@mattzcarey
mattzcarey deleted the slim/harness-score-recovery-2 branch November 27, 2026 08:29
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