Repository navigation
test(think): prompt-cache media successors with passes that run on their own (harness score J, 3) - #3434
Merged
Conversation
|
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 ( |
mattzcarey
marked this pull request as ready for review
November 27, 2026 08:57
mattzcarey
force-pushed
the
slim/harness-score-J-3
branch
from
November 27, 2026 09:00
fef743c to
4fb4ab3
Compare
mattzcarey
force-pushed
the
slim/harness-mechanics-only-rows
branch
from
November 27, 2026 09:11
18f682e to
9ab60bf
Compare
mattzcarey
force-pushed
the
slim/harness-score-J-3
branch
from
November 27, 2026 09:11
4fb4ab3 to
a4ea3ba
Compare
mattzcarey
force-pushed
the
slim/harness-mechanics-only-rows
branch
from
November 27, 2026 09:21
9ab60bf to
61e95b6
Compare
mattzcarey
force-pushed
the
slim/harness-score-J-3
branch
from
November 27, 2026 09:21
a4ea3ba to
d538e94
Compare
mattzcarey
force-pushed
the
slim/harness-mechanics-only-rows
branch
from
November 27, 2026 10:53
61e95b6 to
ec46b52
Compare
mattzcarey
force-pushed
the
slim/harness-score-J-3
branch
from
November 27, 2026 10:53
d538e94 to
01fb30a
Compare
…g write and a no-op pass
…eir own; the two old tests class-only
mattzcarey
force-pushed
the
slim/harness-mechanics-only-rows
branch
from
November 27, 2026 11:14
ec46b52 to
254fd3c
Compare
…o eviction and no backlog
mattzcarey
force-pushed
the
slim/harness-score-J-3
branch
from
November 27, 2026 11:14
ad60d87 to
11084d1
Compare
mattzcarey
changed the base branch from
slim/harness-mechanics-only-rows
to
main
November 27, 2026 11:22
…-eviction, so a rename can't make them return early
mattzcarey
marked this pull request as draft
November 27, 2026 11:37
mattzcarey
marked this pull request as ready for review
November 27, 2026 11:37
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.
Harness score, group J, step 3. prompt-cache's two media tests run each eviction pass by hand through Think's private
_evictAgedMediaBestEffortseam, so they become class-only. Each gets a successor through public behaviour on both configs.Fixture:
measurePromptCacheForTesttakesevictOnItsOwn. With it, a pass runs on its own, as an app's does, and after each turn the fixture waits until nothink-media-eviction:passjob is queued (bounded at 5 s; a pass that leaves a backlog queues the next one first). It doesn't call the seam.Successors:
Both assert what their old tests assert, and both fail if no pass runs, because the request keeps the image.
Score: prompt-cache on
vitest.harness.config.tsgoes from 4 of 10 to 6 of 12 passing, and the 2 old tests leave the denominator as class-only. The class suite is 12 of 12. Stacked on #3416 so the class-only list is edited in one order.The other 4 prompt-cache failures are older-message truncation on the harness-backed Think. That's an open question with harness about where it goes (
report-harness.md).Included: #3416 test(think): two more mechanics-only rows (harness score K, J)
Two more mechanics-only rows (#3414's category, merged). Stacked on #3412, so the list is edited in one order. Each test asserts nothing an app can observe, so each is class-only with no successor. The reviewer confirms that in the verdict.
_cfConfig. Its module-level test is on a minimal Durable Object (test(think): ThinkConfigStore's tests on a minimal Durable Object, as successors #3392)._evictAgedMediaBestEffortseam.Score: 38 class-only rows on this branch, 8 of them mechanics-only: 36 on main and these 2. Both rows fail on the harness, so only the class-only count moves, and
readClassOnlyreads the list with no problems."Keeps a request that lands while a pass is running" is not in this list (rv-6). It asserts that a message aged during a running pass still gets evicted, which an app can see. A successor would need a pass held open, which is the private seam, so the test stays counted as failing.