Skip to content

test: refresh shipped suggestions description cost - #4034

Merged
schlessera merged 2 commits into
mainfrom
test/3889-suggestions-cost
Nov 15, 2026
Merged

schlessera merged 2 commits into
mainfrom
test/3889-suggestions-cost

Conversation

@schlessera

@schlessera schlessera commented Nov 15, 2026 •

Copy link
Copy Markdown
Owner

Closes #3889

What changed

The suggestions experiment now pins the shipped SHOW_BLOCK_DESCRIPTION at 426 JSON characters, with a comment explaining which description the pin tracks. The decision record adds a dated measurement after #3525 while preserving the earlier 336-character observations.

Why this shape

The experiment's rule arm uses the shipped description. #3525 lengthened that rule by 90 characters; the schema and historical flat-schema experiment did not change. This follows the resolved scope on #3889.

Proof

  • Before the fix, bun run test ./experiments/measure-suggestions.test.ts failed in “lists identical schemas and executes the real handlers with only one description line changed”: expected 336, received 426 (9 pass, 1 fail).
  • After the fix, the same file passed all 10 tests / 85 assertions, including real backend handler inspection and the socket instrumentation test.
  • Mutation: temporarily pinning 425 and running the named schema test failed on expected 425, received 426. Restored 426 and ran CI=true bun run test ./experiments/measure-suggestions.test.ts: 10 pass, 0 fail, 85 assertions. The focused file lives in the experiment tier; the complete release experiment suite was not run for this scoped change.
  • bun scripts/measure-show-block.ts --suggestions --schema-cost: description 426, flat 648, shared 648. The separate historical case retains 866 / 709 and passes.
  • bun run check:pr --base origin/main: receipt below.
{"version":1,"kind":"brain-check-pr-receipt","head":"a2d2fd815d78cb9fcc0e914fb36701ccef5cad5a","base":"origin/main","mode":"focused","startedAt":"2026-11-15T19:30:44.491Z","finishedAt":"2026-11-15T19:32:15.366Z","checks":[{"name":"all lint and leakage gates","categories":["changeset"],"outcome":"passed","elapsedMs":14264.791732},{"name":"environment documentation","categories":["changeset"],"outcome":"passed","elapsedMs":113.25225900000078},{"name":"pending changeset package names","categories":["changeset"],"outcome":"passed","elapsedMs":99.76927200000137},{"name":"contribution changeset","categories":["changeset"],"outcome":"passed","elapsedMs":15.000260000000708},{"name":"affected fast invariants","categories":["verify","unit"],"outcome":"passed","elapsedMs":76361.184745}]}

Checklist

  • Complete selected hosted proof: orchestrator requests candidate confirmation after hand-back. Focused local preflight and mutation proof are recorded above.
  • Acceptance criteria are met.
  • PR and issue use release milestone 0.45.0.
  • No changeset: only experiment assertion and measurement documentation change; no consumer-visible behavior changes.
  • No personal data in the diff.
  • No integration contract change.
  • Decision record reflects the measurement.
  • No guard changed.
  • Nothing on the provider turn path changed.

Anything left open

No implementation gaps or follow-up issues. Candidate confirmation and landing belong to the orchestrator.

Collision review

bun scripts/collisions.ts --json --pr 4034 at head a2d2fd815d78cb9fcc0e914fb36701ccef5cad5a: 17 closure collisions with #3054, #3056, #3059, #3069, #3116, #3437, #3581, #3622, #3806, #4002, #4008, #4018, #4022, #4024, #4028, #4030, #4032. No path or unknown collision was reported. These overlap shared proof categories; this PR edits only the experiment pin and its measurement note.

@schlessera schlessera added this to the 0.45.0 milestone Nov 15, 2026
@schlessera schlessera added type: test Coverage, harness or proof work with no behaviour change. area: ui-sdk Wire protocol, runtime schemas, the server and client SDK surfaces. area: ci CI workflows, the gates they run, release scripts, packaging. area: docs The docs/ tree and the README / AGENTS / CONTRIBUTING surfaces. labels Nov 15, 2026
This was referenced Nov 15, 2026
@schlessera
schlessera marked this pull request as ready for review November 15, 2026 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: ci CI workflows, the gates they run, release scripts, packaging. area: docs The docs/ tree and the README / AGENTS / CONTRIBUTING surfaces. area: ui-sdk Wire protocol, runtime schemas, the server and client SDK surfaces. type: test Coverage, harness or proof work with no behaviour change.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

experiments: measure-suggestions still pins the suggestions rule at 336 characters after #3525 lengthened it

1 participant