Skip to content

test(think): four chat-recovery tests that pin the recovery engine are mechanics-only - #3425

Merged
mattzcarey merged 1 commit into
mainfrom
slim/harness-mechanics-A-1
Nov 27, 2026
Merged

mattzcarey merged 1 commit into
mainfrom
slim/harness-mechanics-A-1

Conversation

@mattzcarey

@mattzcarey mattzcarey commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

Four of think-session's chat-recovery tests are marked mechanics-only in harness-class-only.json, as arch's Q9 ruling allows: they assert nothing an app can observe. This is the first batch of group A's mechanics-only marking, on #3414's category. Tests only, no changeset.

The working review of all 94 chatRecovery and onChatRecovery tests, one verdict per test from its body, is in work-std-mechanics.md in the slim notes. This PR takes only the rows that are clearly mechanics-only. "marks the incident failed when onChatRecovery throws" is left to #3393, which gives it a successor:

Test What private thing it pins
chatRecovery › "hands off recovery after the durable turn run exists and before turn completion" when the recovery handoff is accepted relative to the durable run
chatRecovery › "keeps pre-handoff failure on the current Task and replaces only post-handoff failure" the transport used for recovery work (Task and schedule counts)
onChatRecovery › "deletes the incident record once recovery completes" the private incident row is deleted
onChatRecovery › "sweeps incidents that have been inactive past the TTL" the incident TTL sweep, named in Q9

Left out on purpose:

  • 5 rows rv-6 has ruled behavioural (B), each with a visible promise behind it, so they get successors:
  • 3 upgrade tests, which stay on both configs: a legacy false config, twice, and a fiber row from an older release.
  • About 80 tests that assert something an app sees. That covers onChatRecovery and onExhausted contexts, the attempt budget, seal reasons, the recovered transcript and branches, submission statuses, and the terminal UX. They read private rows or drive beginIncident on the way. They need successors: harness for group A, and a few small ones from me.

@changeset-bot

changeset-bot Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: e6a0082

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

@cloudflare/ai-chat

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

@cloudflare/codemode

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

hono-agents

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

@cloudflare/shell

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

@cloudflare/think

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

@cloudflare/voice

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

@cloudflare/worker-bundler

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

commit: e6a0082

@agent-think

agent-think Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

✅ agents import sizes: no significant changes (05a0c532 → e6a00826, workflow run)

@mattzcarey mattzcarey changed the title test(think): five chat-recovery tests that pin the recovery engine are mechanics-only test(think): four chat-recovery tests that pin the recovery engine are mechanics-only Nov 27, 2026
@mattzcarey
mattzcarey marked this pull request as ready for review November 27, 2026 08:45
@mattzcarey
mattzcarey force-pushed the slim/harness-mechanics-A-1 branch from 66d7b5c to 9d991bf Compare November 27, 2026 08:52
@mattzcarey
mattzcarey force-pushed the slim/harness-mechanics-A-1 branch from 9d991bf to e6a0082 Compare November 27, 2026 08:53

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Devin Review found 1 potential issue.

Devin Review

Comment thread packages/think/harness-class-only.json Resolved
@mattzcarey
mattzcarey merged commit 80dacb4 into main Nov 27, 2026
20 checks passed
@mattzcarey
mattzcarey deleted the slim/harness-mechanics-A-1 branch November 27, 2026 09:00
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