Host type checking #1380
All Vouch review confidence checks passed
Residual risk 0.25 = Change Risk (0.47) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.47 · 344 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 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.350
Shallow Review Depth
shallow_review_depth
0.344
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #1380"
general
weight: 0.35
samuelcolvin
<!-- This is an auto-generated description by cubic. -->
Summary by cubic
Adds a
host-type-checkingfeature tomonty-protoso a worker can serve type-checked sessions without linking ty. Instead of checking locally, the worker parks each feed and sends a host-internalWorkerEvent.host_type_checkcarrying everything the check needs; the host runs ty elsewhere and answers withClientRequest.host_type_check_result, after which the worker either runs the snippet or ends the turn with the typed diagnostics.-
monty-wasm-runtimeexposeshost-type-checkingfor size-sensitive hosts that build with--no-default-features.-
monty-type-checkingmoves ty and its dependencies behind an optional, default-oncheckerfeature soscan_importsis available alone.type-checkingwins when both features are enabled.host_type_checkfield is untrusted worker output, so the host must bound the check itself (nesting depth, memory, time); the worker's nesting check and allocator ceiling don't cover it.HostTypeCheckthat a typed export can't answer isn't reused.cargo test -p monty-proto --features host-type-checking --test host_type_checking) plays the answering host, covering stubs, module stubs, dumps, aborts, and protocol violations, and is wired into CI coverage andtestcov.<sup>Written for commit 70dc48b0919fc4ab492719ae057f3e2ec210ccb4. Summary will update on new commits.</sup>
<a href="https://cubic.dev/pr/pydantic/monty/pull/1380?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/1380?returnTo=https%3A%2F%2Fgithub.com%2Fpydantic%2Fmonty%2Fpull%2F1380&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. -->