Send the first request behind `Configure` without waiting for its reply #1250
All Vouch review confidence checks passed
Residual risk 0.31 = Change Risk (0.78) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.78 · 568 lines diff across 7 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.380
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.078
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #1250"
general
weight: 0.35
samuelcolvin
The pool no longer configures a session in a turn of its own:
Checkout::createkeeps theConfigureand the first request writes it out ahead of itself, reading theConfigurereply (bounded byrequest_timeout) before its own. The child answers in order, so a session opens and runs its firstFeedorLoadin one round trip. A refusedConfigureis that request's error and ends the session; an oversize first request still opens it; a checkout finished without a request never configures its worker. Redial andturn_rawtake the same path, and the wasm transport pipelines the same way.session_idisNoneuntil the first turn; aLoadreply replaces it and a refusedLoadkeeps it. The telemetry recorders track the unansweredConfigureapart from the turn pipelined behind it.Claude-Session: https://claude.ai/code/session_018zfZ5xdFiagSnfMeWL7Nb6
<!-- This is an auto-generated description by cubic. -->
---
Summary by cubic
The session's
Configurenow carries its firstFeedorLoad(Configure.first), so a session opens and runs its first request in one round trip: the pool sends theConfigureand the request as one frame, and a refusedConfigureis the reply, aSessionRefusedevent, so that request never runs and ends the session.Protocol and pool
Configureand first request together (OpeningRequest) without cloning either, and the child arms the session's memory ceiling before running the request — except the subprocess shell, which sets its allocator baseline on the pristine worker before any request, so a first request decoded before its ceiling is armed still counts towardmax_memory. Each session is charged its own storedConfigure, shifting the exact usage figures in the subprocess tests.Configurereports the child's own reason.Configure; version 7 parents still sendConfigurealone, which this child serves, soMIN_SUPPORTED_PROTOCOL_VERSIONstays at 7.Session ID and errors
session_idis unset until the first request is answered, so it is read through the new awaitableget_session_id()/getSessionId(), which sends a loneConfigurewhen no request has gone out yet; thesession_idproperty is deprecated. ALoadreply replaces the ID, and a refusedLoadkeeps it along with the clock and limits of theConfigurereply reported. A refusedConfigureraisesMontyConfigurationErrorfrom Python and JS, including the wasm worker.Configureapart from the request behind it. Only the first turn-ending reply acknowledges aConfigurecarrying a request — a later abort reply no longer re-adopts the server's clock, which would switch a remote CPU session to wall-clock supervision.FatalErrorandShutdownreplies report no clock and are classified as themselves, and a refusedConfigurerecords no run. A remote session's first request relies on a finiterequest_timeoutin place of the wall-time backstop, since the server's clock arrives with its reply.<sup>Written for commit 269f10ce1b8c8735c88de92ff5907b34fe12c084. Summary will update on new commits.</sup>
<a href="https://cubic.dev/pr/pydantic/monty/pull/1250?utm_source=github" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img alt="View guided diff" src="https://www.cubic.dev/buttons/review-in-cubic-light.svg"></picture></a> <a href="https://www.cubic.dev/action/auto-fix/pr/pydantic/monty/1250?returnTo=https%3A%2F%2Fgithub.com%2Fpydantic%2Fmonty%2Fpull%2F1250&source=description" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"><img alt="Turn on auto-fix" src="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"></picture></a>
<!-- End of auto-generated description by cubic. -->