Repository navigation
test(think): mechanics-only class-only tests in the harness score (arch's Q9) - #3414
Merged
Merged
Conversation
…successor, counted apart in the score (arch's Q9)
|
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 07:47
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.
Arch's Q9 ruling adds a category to the harness score's class-only list: mechanics-only. A mechanics-only test asserts nothing an app can observe, such as an id format, a skipped write, or how a pass keeps its own books. So it's class-only with no successor, and its row says what private thing it pins. The score counts it apart.
scripts/harness-class-only.ts: an entry has either asuccessorormechanicsOnly: true, never both. A row with neither, or with both, is a shape problem. A mechanics-only entry is still checked to exist and to fail on the harness-backed Think; it has no successor checks and doesn't count toward any successor's limit. Inharness-compat.mdits successor column reads "none: mechanics only".scripts/harness-compat.ts: the headline reads "N of M (K class-only, J of them mechanics-only, the rest each with a successor)" when J > 0, and is unchanged otherwise. The scoreboard JSON gainsmechanicsOnly.The list on main has no mechanics-only rows yet, so the score is unchanged. The first rows follow in a stacked PR: ThinkConfigStore's "skips a write whose value matches the last value it saw", and media eviction's "a second pass is a cheap no-op" and "keeps a request that lands while a pass is running". The reviewer confirms in the verdict that each asserts nothing an app can observe.
Checked by hand: the shape errors, a mechanics-only row that passes on the harness flagged, a successor row unchanged, and the table row. End to end, on #3416 (this plus 3 mechanics rows): "518 of 1327 (18 class-only, 3 of them mechanics-only, the rest each with a successor)", the table rows read "none: mechanics only", and the check holds.