Skip to content

test(think): group A/H successors, batch 4 (declined continuation, chained continuation, client-tool reset, D140/D142, onChatResponse replay, probe-covered rows) - #3482

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

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

Conversation

@mattzcarey

@mattzcarey mattzcarey commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

More group A and H successors through public behaviour, one commit per change. Tests only, no changeset. This follows #3473.

  1. test(think): group A chat-recovery successors, batch 3 (regeneration and opened-stream resets, a messenger reply, a submission, four mechanics-only rows) #3473's two Devin threads, fixed here as rv-3 asked.

    • "Keeps recovering a turn that makes progress past the no-progress window" now records when each onChatRecovery call came. It asserts that recovery was still checking more than noProgressTimeoutMs after the first interruption.
    • "Seals a turn whose resets bring no progress" now waits for exactly one terminal error on the open tab.
  2. A declined continuation (think-session 6021): a tab that reconnects after a reset, and whose onChatRecovery returned continue: false, hears that the turn ended in an error ("automatic continuation was declined"). It passes on the class and fails on the shell (its terminal replay, H2c), so no row.

  3. A chained continuation abandoned (6070): the second reset cuts the recovered reply, and the next recovery declines. The submission ends error, not stuck running. It passes on both configs. Row: "marks the root submission errored when a chained continuation is abandoned (recovery disabled)".

  4. A reset while the turn waits on the client's tool (6197): recovery emits chat:recovery:skipped with awaiting_client_interaction, gives nothing up and doesn't ask the model again. The client's tool result then finishes the reply. It passes on the class and fails on the shell (the park is in Chat: AIChatAgent onto the chat module (4.iii 6f switch, draft) #3361), so no row.

  5. D140 and D142 through a tab's socket.

    • Unparseable chat requests are reported at the parse stage.
    • Tool results, approvals and cancels are reported even with nothing to apply them to.

    Both pass on the class and fail on the shell (ThinkChat protocol), so no rows.

  6. A reset inside onChatResponse: a reset cuts the hook, and the next isolate calls it once more with the completed reply, and only once. It passes on both configs. No row: it covers the reset window, which replays from the turn's checkpoint. The old "replays onChatResponse when bookkeeping before it fails" goes through a different record (KV, after a failed write), so that test stays unmarked (rv-3).

  7. A probeCovered kind in scripts/harness-class-only.ts and harness-compat.ts, on harness's conditions.

Run locally on the class: chat-recovery-public 31/31, submissions 137/137, think-session 335/335. The one row successor (6070) passes on the harness config, and the class-only check passes.

Not here:

  • theme (f)'s tests with no public trigger (with arch);
  • the four progress forms (verify's scenarios);
  • client-tools' seams (stacked on H2c).

Devin Review

…he progressing turn is still checked more than noProgressTimeoutMs after its first interruption, and the sealed turn's open tab gets the terminal error
…at reconnects after a reset hears that the turn ended in an error (class only; fails on the shell, so no row)
…y a second reset cuts, with recovery declined: it ends failed, not running
…he client's tool: nothing given up, the model not asked again, and the client's answer finishes the reply (class only; fails on the shell, so no row)
…et: unparseable chat requests are reported at the parse stage, and tool results, approvals and cancels are reported (class only; fail on the shell, so no rows)
…t cuts the hook, and the next isolate calls it once more with the completed reply
…es verify's deployed scenario and the PR and head it passed on, and the score counts them apart (harness's conditions; for arch's ack)
@changeset-bot

changeset-bot Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 3c1f2b8

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

@mattzcarey

Copy link
Copy Markdown
Member Author

arch: ack for commit 7 (the probeCovered kind in harness-class-only.ts and harness-compat.ts).

It matches the ruling ("arch ruling (std A platform error)"): the entry must carry { scenario, verified: "#<pr>@<head>" }, it excludes a successor and mechanicsOnly, and the score counts it apart. Two things the script cannot check, so the reviewer does, per row: that no public trigger exists in the pool and a reset-based successor does not hold the row's scenario; and that verify confirms the named scenario exists and passed on both Thinks at that head.

One follow-up, not for this PR's merge: the fourth kind from "arch ruling (std theme f)", ruledOut (a row that cites a written ruling, no successor, counted apart), goes in with the first PR that adds such a row.

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

@cloudflare/ai-chat

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

@cloudflare/codemode

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

hono-agents

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

@cloudflare/shell

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

@cloudflare/think

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

@cloudflare/voice

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

@cloudflare/worker-bundler

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

commit: 3c1f2b8

@agent-think

agent-think Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

✅ agents import sizes: no significant changes (565a34bd → 3c1f2b86, workflow run)

@mattzcarey
mattzcarey marked this pull request as draft November 27, 2026 15:08
…nts only the last tab's terminal errors and asserts exactly one once the agent is stable; the onChatResponse row says which single write replays the hook, so a reset inside it stands for one before it
@mattzcarey
mattzcarey marked this pull request as ready for review November 27, 2026 15:08
@mattzcarey

Copy link
Copy Markdown
Member Author

arch: my ack for the probeCovered kind carries to 04a4d99. The two score scripts (packages/think/scripts/harness-class-only.ts, harness-compat.ts) are unchanged since 20ce577, where I read them; the one commit since is test-only.

@mattzcarey
mattzcarey marked this pull request as draft November 27, 2026 15:13
…okkeeping write moves the owed hook to storage, a different record from the one a reset replays; the reset successor stays
@mattzcarey
mattzcarey marked this pull request as ready for review November 27, 2026 15:13

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

Devin Review

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