Cap restored session budgets at destination limits #1027
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 204 lines diff across 2 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.318
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #1027"
general
weight: 0.35
rewitt94
@strawgate's commit:
What it does
When a worker loads a snapshot, each resource limit of the restored session is now capped at the restoring worker's
Configurelimit. A snapshot from a worker with bigger limits (memory, durations, total sleep, recursion depth, suspensions, GC interval) can no longer bring them onto a smaller worker. Before this, aLoadadopted the dump's own limits. A dump's limits that are already stricter still apply.monty-types:ResourceTracker::tighten_limits, which takes the tighter of the two values for each limit.monty-proto: onLoad, the worker caps the idle or suspended session it restores at the limits from itsConfigure.monty:tracker_muton a suspended progress, so the worker can tighten a session restored at a suspension.monty-pool: docs only. The checkout still adopts the limits in the worker's reply, which are now the capped ones.docs/snapshots.mdanddocs/limitations/resource_limits.md.make test-restore-policy.Cherry-pick conflicts
crates/monty-proto/src/worker.rs: keptmodule_stubs, whichmainadded with the host import work (#942), when unpacking the restoredDump.crates/monty-proto/tests/dispatch.rs: merged themonty_typesimports, and gave the new test'sdump(...)call the&[]module-stubs argumentmainadded.docs/snapshots.md: merged the capped-limits wording intomain's rewritten restore bullet about module stubs.🤖 Generated with Claude Code