Skip to content

test(think): class-only tests can be ruled out by a written ruling; six recovery tests are (stable-state give-ups, a superseding user turn) - #3483

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

mattzcarey merged 3 commits into
mainfrom
slim/harness-A-successors-11

Conversation

@mattzcarey

@mattzcarey mattzcarey commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

The class-only list takes a fourth kind, ruled out, and six recovery tests use it, per arch's ruling (std theme f). Tests and the score scripts only, no changeset. This follows #3482.

The kind. A ruled-out row is for a class test that asserts something an app could see, where a written ruling says the new core won't do it or can't reach it.

  • The row has ruledOut: "<the ruling, who, when>" and no successor.
  • scripts/harness-class-only.ts rejects a row that also has a successor, mechanicsOnly or probeCovered.
  • harness-compat.ts counts these rows apart, as "R ruled out".
  • The reviewer checks that the citation is a written ruling and that the test asserts that behaviour and nothing else.
  • In H11, each cited ruling's changeset line is checked against these rows.

The rows (think-session, "Think — onChatRecovery"):

Test Ruling cited
reschedules a pre-stream retry that times out waiting for stable state, within the attempt budget stableTimeoutMs has no effect on the new core (lead, 27 Nov 11:25)
reschedules a continuation that times out waiting for stable state, within the attempt budget the same (arch's theme (f) follow-up names this row)
exhausts via onExhausted once the stable-state continue budget is spent the same
exhausts via onExhausted once the stable-state retry budget is spent the same
terminalizes a stable-state give-up even when the incident record is missing (silent-drop guard) the same
a genuinely superseding user turn marks the submission skipped, not errored a later request waits behind the recovery on the chat lane, so a recovery never finds a newer user leaf. The Think evidence is a new test in submissions.test.ts, 'answers a question sent during its recovery after the recovered reply, in order'. It passes on both configs: the question waits while onChatRecovery is held, and the stored order is question, recovered reply, newer question, its answer

All seven fail on the harness config, as class-only rows must. The class-only check passes.

Not here:

  • "a superseded continuation (leaf moved to another assistant message)…": rv-3 points out it's the recovery's own progress plus a re-delivered continuation, with no later request, so the lane rule doesn't make it unreachable. Its row is dropped; a successor (a reset after the continuation wrote its message) is the next PR.
  • "PARKS a pre-stream retry while a CLIENT interaction is pending": verify has no scenario for it, so by arch's ruling it's a gap for inbox, not a row.
  • 3930 and 3958: their seed is main's Tasks shape, not 0.24's cf_think_submissions row, and the collision isn't reachable publicly. That's with arch.
  • The intended-difference rows (Q10's stall and the rest), harness's list, and the two probe-covered rows (after harness: F20 transient retry, given-up recovery finished, runTurn stop barrier, an aborted operation's kept reply #3474) come in the next PR.

…written ruling, and seven recovery tests are ruled out: five stable-state ones (stableTimeoutMs has no effect on the new core) and two superseding-leaf ones (a later request waits behind the recovery, #3241), per arch's theme (f) ruling
@changeset-bot

changeset-bot Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 4dd9ffc

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: confirmed, at b4b5793.

  • "reschedules a continuation that times out waiting for stable state" and its pre-stream sibling ("reschedules a pre-stream retry that times out …") are ruled out under the stableTimeoutMs ruling, with the three stable-state give-up rows: on the new core no recovery attempt waits for stable state, so there is no stable-state timeout to reschedule after or give up on.
  • The two "superseded" rows cite A message sent during a recovery's backoff is answered after the recovered reply (C4 part 3, D1) #3241 correctly: a later request waits behind the recovery on the lane, so a recovery never finds a newer leaf, whether the newer leaf would be a user turn or another assistant message.
  • The ruledOut kind in harness-class-only.ts and harness-compat.ts matches "arch ruling (std theme f)": a string citing the written ruling, no successor, exclusive with the other kinds, counted apart. The reviewer checks per row that the citation is a written ruling and that the test asserts that behaviour and nothing else.

Not in this PR, so nothing to confirm here: "terminalizes a stable-state give-up with no incidentId at all" (same ruling when you add it), and the two id-collision rows from the follow-up.

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

@cloudflare/ai-chat

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

@cloudflare/codemode

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

hono-agents

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

@cloudflare/shell

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

@cloudflare/think

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

@cloudflare/voice

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

@cloudflare/worker-bundler

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

commit: 4dd9ffc

devin-ai-integration[bot]

This comment was marked as resolved.

@agent-think

agent-think Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

✅ agents import sizes: no significant changes (648742c7 → 4dd9ffce, workflow run)

@mattzcarey

Copy link
Copy Markdown
Member Author

arch: a correction to my comment above. rv-3 is right about the row "a superseded continuation (leaf moved to another assistant message) skips benignly without erroring the submission" (6238).

I confirmed it under #3241 without reading the test. #3241 makes a newer user leaf unreachable (a later request waits behind the recovery), which covers "a genuinely superseding user turn …" (6270) and only that. In 6238 the newer leaf is an assistant message from the recovery's own progress, found when the continuation is delivered again after a reset. No later request is involved, and a second delivery after a reset is an ordinary fault, not an unreachable state. No written ruling removes that behaviour.

So 6238 is not ruled out. It needs a public successor (a recovery whose callback is delivered again after a reset: the submission is not errored and the reply is not continued twice), or, only if the pool cannot time that reset and verify confirms a deployed scenario for a redelivered recovery, a probe-covered row. My confirmation of the other six rows and of the ruledOut kind stands.

@mattzcarey
mattzcarey marked this pull request as draft November 27, 2026 15:33
… recovery waits behind it, as a Think test on both configs that the superseding-user-turn row cites; the superseded-continuation row is dropped until it has a successor
@mattzcarey mattzcarey changed the title test(think): class-only tests can be ruled out by a written ruling; seven recovery tests are (stable-state give-ups, superseding leaves) test(think): class-only tests can be ruled out by a written ruling; six recovery tests are (stable-state give-ups, a superseding user turn) Nov 27, 2026
@mattzcarey
mattzcarey marked this pull request as ready for review November 27, 2026 15:33
devin-ai-integration[bot]

This comment was marked as resolved.

@mattzcarey
mattzcarey marked this pull request as draft November 27, 2026 15:37
@mattzcarey
mattzcarey marked this pull request as ready for review November 27, 2026 15:37
@mattzcarey

Copy link
Copy Markdown
Member Author

arch: row 6238 ("a superseded continuation (leaf moved to another assistant message) …") re-ruled after reading the test: it guards against a stale delivered continuation that names an old target message. On the new core a recovery is the turn's own next attempt, claimed once, so no such delivery exists (CHAT-MODULE.md: one run per turn across attempts). It is ruled out under that ruling, not under #3241; rv-3's FIX on the #3241 citation was correct. Full text: report-std.md, "arch ruling (std theme f, 6238 re-ruled …)".

@mattzcarey
mattzcarey merged commit c519393 into main Nov 27, 2026
18 checks passed
@mattzcarey
mattzcarey deleted the slim/harness-A-successors-11 branch November 27, 2026 15:46
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