Repository navigation
test(think): group A/H class-only rows, batch 5 (three probe-covered, seven ruled out, successors for recovery and hydration) - #3498
Closed
mattzcarey wants to merge 12 commits into
Closed
mattzcarey wants to merge 12 commits into
mattzcarey wants to merge 12 commits into
Conversation
…ss's detached recovery shape that Q10 replaces with a retry inside the run, and 6238's stale continuation can't exist when a recovery is the turn's own next attempt (arch's re-ruling)
…ab that reconnects after a turn failed hears the error, and none once a later turn completes (class only; the shell's terminal replay is H2c's, so no row)
…ist: false after a reset (the question answered again from the start), both passing on both configs, with their rows
…atRecovery gets what the turn stashed, on both configs, with its row
…reset-cut reply continues with the request's body and client tools (class only; the shell's recovered turn has no body, so no row)
…d: it is neither continued nor stored again, on both configs, with rows for the two completed-stream recovery tests
… twice: kept once, whole, with continue: false, on both configs, with its row
…ab closed before the recovery decided: the reply is still continued (class only; the shell's resume of a cut-off stream never ends, so no row)
…on' is ruled out with the superseding-user-turn row: a later question waits behind the recovery, so it never finds a newer user leaf
…et successor (a tool's result survives a reset right after it, and the tool does not run again)
|
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 ( |
Member
Author
|
Replaced by #3503, which carries these tests within its harness-score units (integrated and tested together). |
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.
More class-only rows, by kind, one commit per change. Tests only, no changeset. This follows #3483.
Three probe-covered rows (the first uses of
probeCovered, test(think): group A/H successors, batch 4 (declined continuation, chained continuation, client-tool reset, D140/D142, onChatResponse replay, probe-covered rows) #3482). These are the Mid-execution DO code-update resets consume the scheduled-callback retry budget —_chatRecoveryContinueabandoned ms before storage recovers, turn frozen for minutes #1730 platform-error re-throw tests in think-session "Think — onChatRecovery": "re-throws "Network connection lost." (storage transient in a deploy-reset window) and does NOT terminalize", "re-throws the SqlError shape (wrapped transient, retryable flag lost) and does NOT terminalize" and "re-throws a retryable-flagged platform error and does NOT terminalize".vTransientPlain(its class suite'svTransientRunsAgain),vTransientSqlWrappedandvTransientRetryableFlag, which passed on both Thinks, root and facet, at#3474@52dc26ac4(VERIFY in report-verify.md). harness: F20 transient retry, given-up recovery finished, runTurn stop barrier, an aborted operation's kept reply #3474 went into main through harness-backed Think: group A recovery parity (F20, persist: false, stash) #3472._chatRecoveryEngine.Seven ruled-out rows.
interrupted(firstInterruptedCalls/interruptedCalls);scheduledContinues/scheduledRetries);{ aborted, interrupted }.A successor for the terminal-error hydration (think-session "replays a terminal error to a reconnecting client (hydration)"), in onconnect-broadcast.test.ts. A turn really fails, and a tab that reconnects and resumes as useChat does hears the error. After a later turn completes, a reconnecting tab hears none. It passes on the class and fails on the shell (the terminal replay is H2c's), so no row.
Three successors with rows, each passing on both configs:
stashInNextTurnForTest. It succeeds "stashed data round-trips through fiber recovery".A successor for the recovered request context ("continues a partial stream with request context from the recovered snapshot"): after a real reset, the recovery's continuation runs with the request's body field and client tools. It passes on the class. On the shell the recovered turn has no body, so no row (sent to inbox).
A successor for a reset after the reply was stored (think-session "neither continues nor stores again a reply a reset cut after it was stored"): the reset comes while onChatResponse is held, so the turn's run is unfinished and its stream complete. After the restart: the same one reply, no turn and no model call. It passes on both configs. Rows: "does not continue a recovered chat fiber whose stream already completed" and "does not duplicate an already-persisted completed stream on recovery".
A successor for recovering the same cut-off reply twice (chat-recovery-public "keeps a reply recovered twice once, with its partial once, when onChatRecovery says continue: false"): a second reset cuts the first recovery, the recovery runs again, and the stored reply is exactly the partial, once. It passes on both configs. Row: "re-reconstructing the same interrupted stream is idempotent (no duplicate, no loss)".
A successor for a stream a reconnecting tab closed before the recovery decided (chat-recovery-public "continues a reset-cut reply whose stream a reconnecting tab closed before the recovery decided"). The reset comes mid-reply with onChatRecovery held. A tab resumes and acks, which closes the cut-off stream, and then the recovery is released and continues the reply: the partial, then more. It passes on the class. On the shell the tab's resume of the cut-off stream never ends, so no row (H2c's resume path).
A row for "flushes a settled tool result to durable storage immediately", naming B-3's submissions successor "keeps a tool's result and does not run the tool again" (a reset right after the tool; it passes on both configs). The old test also counts stream-log rows, which is the class's own buffering.
Left out on purpose (harness's list):
_turns.continuation), not on the Q10 shape.The class-only check passes.