ENH: support per-device stage and unstage groups #2063
All Vouch review confidence checks passed
Residual risk 0.24 = Change Risk (0.43) × (1 − Review Confidence (0.45)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 181 lines diff across 2 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
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.311
Real PR Conversation Timeline
1 comments
"Review active on #2063"
general
weight: 0.35
niketh-keshavan
<!--- Provide a general summary of your changes in the Title above -->
Description
Add per-device staging and unstaging groups to
stage_weapperandstage_decorator.Wrappers now accept collection of three-tuples:
Each group can be any hashable vale or
None. Devices are staged in input order and unstaged in reverse order. Callers manage the waits explicitly and plain-device API keeps auto. groups and waits.Root normalization and first-entry handling are unchanges. Both forms are documented in
stage_wrapperdocstring.Motivation and Context
Plans may need to begin work while some devices are still staging, waiting for each device only when it is first needed. Similarly, an enclosing plan may need to control when asynchronous unstaging completes.
closes: https://github.com/bluesky/bluesky/issues/1979
How Has This Been Tested?
Added focused tests covering:
Nonegroupsstage_wrapperandstage_decorator<!--
Screenshots (if appropriate):
-->