Skip to content

test(think): group A chat-recovery successors, batch 3 (regeneration and opened-stream resets, a messenger reply, a submission, four mechanics-only rows) - #3473

Merged
mattzcarey merged 9 commits into
mainfrom
slim/harness-A-successors-9
Nov 27, 2026
Merged

mattzcarey merged 9 commits into
mainfrom
slim/harness-A-successors-9

Conversation

@mattzcarey

@mattzcarey mattzcarey commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

Group A's next chat-recovery successors, one commit per change, through public behaviour. Tests only, no changeset. This follows #3437 and #3455.

  1. A pre-stream regeneration a reset cut off (5443) is retried as a new branch, and the earlier answer is kept. The reset comes while the regeneration's model call waits on the provider (hangModelAtConnectForTest). It passes on both configs. Class-only row: "retries a pre-stream interrupted regeneration as a new branch (Think regeneration includes the previous response in the model prompt #2028)".

  2. A turn a reset cut off after its stream opened, before any text (5632) is answered again, with its user message once (resetDuringTurn(…, { openedStream })). It passes on both configs. Row: "retries an interrupted opened stream with no assistant content".

  3. The script-upgraded supersede row points at test(think): group A chat-recovery successors through public behaviour (resets, budgets, regeneration, platform cuts) #3455's platform-cut successor ("re-runs a recovery a reset cut while onChatRecovery ran…"): the fourth such row arch allowed.

  4. A messenger reply whose recovery a reset also cut (7128) is answered once, with nothing failed posted. In messengers.test.ts, a reset-… agent resets mid-reply, the recovery's onChatRecovery is held, and a second reset cuts it. It passes on both configs. Row: "keeps a messenger reply pending while the platform re-runs recovery". The new fixtures on the messenger agent are onChatRecovery (it holds once), holdRecoveryOnceForTest, recoveryHeldForTest and resetIsolateForTest. The whole messengers file passes on the class, 120/120.

  5. No progress row is mechanics-only (rv-3, rv-6, the deputy). New successors, with a short noProgressTimeoutMs (300 ms) in place of the 5-minute default, both passing on the class:

    • "keeps recovering a turn that makes progress past the no-progress window, then answers": 4765's promise, that elapsed time doesn't seal a progressing turn;
    • "seals a turn whose resets bring no progress once the no-progress window passes": real resets while the model never answers end with no_progress_timeout, 4704's outcome without a child.

    Both fail on the shell for now, so no rows yet (Harness score: class-only tests are left out of the headline and must each have a passing successor #3387 needs a passing successor). 4671, 4704 and 4734 (the sub-agent and compaction forms) are unmarked; verify is asked for fault-suite scenarios (arch's third category).

  6. A submission whose recovery a reset also cut (7255, theme f) stays running, then completes once. It's in submissions.test.ts, on B-3's eviction pattern, with a held onChatRecovery on ThinkProgrammaticTestAgent. It passes on both configs. Row: "leaves the recovered submission running on a deferral so the re-run picks it up (Mid-execution DO code-update resets consume the scheduled-callback retry budget — _chatRecoveryContinue abandoned ms before storage recovers, turn frozen for minutes #1730)". turn-task agreed that std writes theme (f).

Not here:

  • 7272 (an application error inside the recovery job): onChatRecovery throwing leaves the submission running on Think (a deferred re-run), so the hook isn't that path, and there's no public trigger.
  • 7185 and 7238: verify's F20; the promise fails on the shell.
  • 3975 (the stale window): waits for turn-task's shell change (Q11).
  • The other (f) tests: the next batch.

The class runs chat-recovery-public 27/27, messengers 120/120 and submissions 134/134.


Devin Review

FIX commits (rv-3, rv-6): the regeneration shows the new answer, keeps the earlier one unchanged and makes one model call, without the old answer. The opened-stream retry keeps the question's id and makes one model call. The messenger and submission successors re-read after their barrier and check one reply.

@changeset-bot

changeset-bot Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 27c79c7

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

devin-ai-integration[bot]

This comment was marked as resolved.

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

@cloudflare/ai-chat

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

@cloudflare/codemode

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

hono-agents

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

@cloudflare/shell

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

@cloudflare/think

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

@cloudflare/voice

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

@cloudflare/worker-bundler

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

commit: 27c79c7

@agent-think

agent-think Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

✅ agents import sizes: no significant changes (46b2f87f → 27c79c7a, workflow run)

@mattzcarey
mattzcarey marked this pull request as draft November 27, 2026 12:24
…-cut successor (the fourth such row arch allowed)
…a reset also cut: answered once, nothing failed posted
…ecovery debounce or the old ceiling are mechanics-only (the deputy's fallback; for the reviewer to confirm)
…et also cut: running, then completed once (group A, theme f)
…swer, keeps the earlier one unchanged and asks once without it; the opened-stream retry keeps the question's id and asks once; the messenger and submission successors re-read after their barrier and check one reply; no progress row is mechanics-only
…rt noProgressTimeoutMs: progress keeps a turn recovering past it, and resets that bring nothing seal with no_progress_timeout
@mattzcarey
mattzcarey force-pushed the slim/harness-A-successors-9 branch from 98f8893 to 27c79c7 Compare November 27, 2026 12:39
@mattzcarey
mattzcarey marked this pull request as ready for review November 27, 2026 12:49

@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 2 new potential issues.

Devin Review

@mattzcarey
mattzcarey merged commit 56c29f8 into main Nov 27, 2026
21 checks passed
@mattzcarey
mattzcarey deleted the slim/harness-A-successors-9 branch November 27, 2026 13:03
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