Skip to content

test(think): more media-eviction successors (oversized payload, backlog, large text, eviction off) - #3390

Merged
mattzcarey merged 5 commits into
mainfrom
slim/harness-score-J-2
Nov 27, 2026
Merged

mattzcarey merged 5 commits into
mainfrom
slim/harness-score-J-2

Conversation

@mattzcarey

@mattzcarey mattzcarey commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

Harness score, group J, step 2, stacked on #3386 (J-1), tests only. Four more successors in "mediaEviction — a pass that runs on its own", for tests that drive a pass through the class's _evictAgedMediaBestEffort seam. Each lets the pass run on its own and reads what it left, on both configs.

Old test (class-only: drives a pass through _evictAgedMediaBestEffort) Successor
evicts a payload larger than one row, leaving the bytes in one place evicts a payload larger than one row and leaves the bytes in one place
bounds each pass and drains the reported backlog drains a backlog on its own when each pass is bounded
reaches older media past large text rows that fill a pass reaches older media past large text rows that fill a pass (the same name, in the successor describe)
mediaEviction:false keeps the image visible to the model keeps the image with mediaEviction false: no pass is scheduled

The cursor test ("starts a pass where the last one got to…") has its successor in #3386 ("a backlog pass reads only what is new since the cursor…").

Score (media-eviction.test.ts, harness config): 14 of 27 (with #3386) → 18 of 31. Class: 31 of 31. The rows are in #3412, stacked on this PR.

The backlog successor shows two different things on the two configs:

What is left (6 tests): "a second pass is a cheap no-op", the late update on a hidden row, a request during a pass, the fruitless re-arm with appends during a pass, and the windowed hydration read. They pin the pass's own bookkeeping (a pass's return value, a request held while running) or the hydration window (H10's), so they are next, or class-only with a behaviour successor.

@changeset-bot

changeset-bot Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: bd7406d

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

@cloudflare/ai-chat

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

@cloudflare/codemode

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

hono-agents

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

@cloudflare/shell

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

@cloudflare/think

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

@cloudflare/voice

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

@cloudflare/worker-bundler

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

commit: bd7406d

@agent-think

agent-think Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

✅ agents import sizes: no significant changes (a89cacf3 → bd7406d3, workflow run)

@mattzcarey
mattzcarey force-pushed the slim/harness-score-J-2 branch from 95baf36 to 2a350e8 Compare November 27, 2026 05:25
@mattzcarey
mattzcarey force-pushed the slim/harness-score-J-1 branch from 08ffaf9 to 236015f Compare November 27, 2026 05:40
@mattzcarey
mattzcarey force-pushed the slim/harness-score-J-2 branch 2 times, most recently from 5699801 to 7adeb90 Compare November 27, 2026 05:52
@mattzcarey
mattzcarey marked this pull request as ready for review November 27, 2026 06:00
devin-ai-integration[bot]

This comment was marked as resolved.

devin-ai-integration[bot]

This comment was marked as resolved.

@mattzcarey
mattzcarey force-pushed the slim/harness-score-J-1 branch from 08d0d0b to 093fe20 Compare November 27, 2026 06:21
@mattzcarey
mattzcarey force-pushed the slim/harness-score-J-2 branch from 2601672 to 5f25c32 Compare November 27, 2026 06:21
@mattzcarey
mattzcarey force-pushed the slim/harness-score-J-1 branch from 093fe20 to d3222ba Compare November 27, 2026 06:38
@mattzcarey
mattzcarey force-pushed the slim/harness-score-J-2 branch from eba484d to 16d9b27 Compare November 27, 2026 06:38
Base automatically changed from slim/harness-score-J-1 to main November 27, 2026 07:11
…payload, a bounded backlog, large text rows and eviction off
…eded ahead of the media, one message per bounded pass, no pass queued with eviction off, a split seen before the pass
…or one pass, so the chain is what drains the rest
@mattzcarey
mattzcarey force-pushed the slim/harness-score-J-2 branch from eaea78f to bd7406d Compare November 27, 2026 07:12
@mattzcarey
mattzcarey merged commit e7d6d06 into main Nov 27, 2026
18 checks passed
@mattzcarey
mattzcarey deleted the slim/harness-score-J-2 branch November 27, 2026 07:26
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