You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
backends: the Claude MCP sampler's 48-byte name limit has no test that can fail #4424
agent-readyContext and acceptance criteria are complete enough for an agent to take this unattended.area: backendsAgentBackend implementations and the seam they share.priority: p3Someday. Needs a driving use case before it starts.type: testCoverage, harness or proof work with no behaviour change.
Part of #4278. Found in the sixth review of PR #4327, which introduced it.
Context
The Claude MCP sampler's 48-byte per-name limit is at packages/ui-backend-claude/src/turn-stream.ts:103, and is documented in docs/integration-contract/wire.md.
The only oversized fixture name is 320 bytes (packages/ui-backend-claude/tests/backend.test.ts:71). The 192-byte budget at turn-stream.ts:105 rejects it without the per-name check, so removing the limit passes every assertion.
Scope
Test only: add names between 49 and about 150 bytes, ASCII and multi-byte. No product change.
Acceptance criteria
A 49-byte name is omitted and counted while a 48-byte name is sampled, with the total budget not the deciding factor.
The test fails when either length check at turn-stream.ts:103 is removed; the PR records the receipt.
agent-readyContext and acceptance criteria are complete enough for an agent to take this unattended.area: backendsAgentBackend implementations and the seam they share.priority: p3Someday. Needs a driving use case before it starts.type: testCoverage, harness or proof work with no behaviour change.
Activity