Skip to content

test(think): mechanics-only class-only tests in the harness score (arch's Q9) - #3414

Merged
mattzcarey merged 1 commit into
mainfrom
slim/harness-mechanics-only
Nov 27, 2026
Merged

mattzcarey merged 1 commit into
mainfrom
slim/harness-mechanics-only

Conversation

@mattzcarey

@mattzcarey mattzcarey commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

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 a successor or mechanicsOnly: 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. In harness-compat.md its 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 gains mechanicsOnly.

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.

…successor, counted apart in the score (arch's Q9)
@changeset-bot

changeset-bot Bot commented Nov 27, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 3edba71

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

@cloudflare/ai-chat

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

@cloudflare/codemode

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

hono-agents

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

@cloudflare/shell

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

@cloudflare/think

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

@cloudflare/voice

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

@cloudflare/worker-bundler

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

commit: 3edba71

@agent-think

agent-think Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

✅ agents import sizes: no significant changes (e7d6d06b → 3edba712, workflow run)

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@mattzcarey
mattzcarey merged commit 8130013 into main Nov 27, 2026
19 checks passed
@mattzcarey
mattzcarey deleted the slim/harness-mechanics-only branch November 27, 2026 07:54
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