Skip to content

Fix the E5 review findings - #853

Merged
SaladDay merged 2 commits into
mainfrom
fix-the-e5-review-findings
Oct 24, 2026
Merged

SaladDay merged 2 commits into
mainfrom
fix-the-e5-review-findings

Conversation

@SaladDay

@SaladDay SaladDay commented Oct 24, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes the findings of the batched review over #850–#852.

  • Events per request stay at 64. Raising the bound to the official 16384 broke at the database (environment_input_reservations_batch_check allows 64), at the request deadlines (one 16384-event transaction measured 160 s against the 30 s write timeout and 5 s reservation context) and in the Claude Code adapter (64 messages per Turn). The bound returns to 64 events and 512 KiB, and the compatibility doc records the gap.
  • Records Claude Code's 64-message Turn limit and MiniMax Code's 32 KiB instructions limit (OpenAI compatibility, Harness capabilities).
  • Names Codex as the source of apply_patch function calls, says why request_metadata is rejected, and notes the Subagent function_call exception in the stream rules.
  • A non-array packages.system returns the typed packages.system error again.
  • The Subagent function call test answers with the root Turn ID again; the child Turn ID answer keeps its own test.

Checks: go vet ./... (services/core), go test ./internal/api -run 'TestSystemPackages|Input|Event', ./internal/sessions -run Input, the Subagent function call integration tests, zh hashes refreshed.

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

Keep the events bound at 64 per request and 512 KiB of stored input and
record the gap: the input reservation check, request deadlines and the
Claude Code per-Turn message list do not hold larger batches.

Record the Claude Code 64-message Turn limit and the MiniMax Code
instructions limit, name Codex for apply_patch, state why request_metadata
is rejected, note the Subagent function_call exception on the stream,
restore the typed packages.system error for a non-array value and test
both Turn IDs answering a Subagent call.
@SaladDay
SaladDay merged commit 423b5f3 into main Oct 24, 2026
19 checks passed
@SaladDay
SaladDay deleted the fix-the-e5-review-findings branch October 24, 2026 14:02
MaxInputBatch is the one definition of the 64-event bound, and a test
reserves a full batch on an Environment Session so the validator and the
reservation check cannot drift apart. The events bound moves beside its
peer differences, the Claude Code limit links its owning rule, the
request_metadata message matches the documented reason, packages.system
docs name every rejected value, and the stream rules drop a child snapshot
sentence that no event produces.
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