Repository navigation
harness score A-2: three onChatRecovery engine tests are class-only, with public successors - #3393
Merged
Merged
Conversation
|
agents
@cloudflare/ai-chat
@cloudflare/codemode
hono-agents
@cloudflare/shell
@cloudflare/think
@cloudflare/voice
@cloudflare/worker-bundler
commit: |
Contributor
|
✅ agents import sizes: no significant changes ( |
mattzcarey
force-pushed
the
slim/harness-score-recovery-2
branch
from
November 27, 2026 05:41
057ddbb to
099bcb5
Compare
mattzcarey
force-pushed
the
slim/harness-score-recovery
branch
from
November 27, 2026 06:11
64bf859 to
21bec88
Compare
mattzcarey
force-pushed
the
slim/harness-score-recovery-2
branch
2 times, most recently
from
November 27, 2026 06:33
4beea55 to
2242dda
Compare
mattzcarey
marked this pull request as ready for review
November 27, 2026 06:50
mattzcarey
force-pushed
the
slim/harness-score-recovery-2
branch
from
November 27, 2026 06:52
2242dda to
fb441af
Compare
mattzcarey
force-pushed
the
slim/harness-score-recovery-2
branch
from
November 27, 2026 07:45
fb441af to
9822cde
Compare
…ded by chat-recovery-public.test.ts
…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
force-pushed
the
slim/harness-score-recovery-2
branch
from
November 27, 2026 08:20
82f0dfd to
7ebab9c
Compare
mattzcarey
added a commit
that referenced
this pull request
Nov 27, 2026
This was referenced Nov 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.tsasserts the same behaviour through the public API and passes on both configs: a stalled turn whoseonChatRecoverythrows 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:harnesson 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.