feat(roles): asb --roles with no role named opens the project's roles, or its setup when the environment is not built yet #415
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 · 200 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.317
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #415"
general
weight: 0.35
pearu
asb --roleswith no role named now opens the project's own roles: the approved.agent-sandbox's supervisor, planner-N, implementer-N, reviewer-N and gate roles, in that order and by number, and no other role. Soasb --roles --resumeis the one line that opens a round.A project that needs its setup step runs it first. It needs setup when it has a
setuprole whose[conda:setup]names an environment (asb --init roles --env NAME;--shared-envwrites no setup role, and with no environment[conda:setup]is commented out). Setup has not run while that environment has noconda-meta, which conda creates when it creates the environment and which--initalready uses to tell a built environment. Thenasb --rolesrunsasb --role setupwith the line's words, in the terminal:With none of those roles in the file,
asb --rolesis refused, namingasb --roles ROLE....tmux is now looked for after the dot-file review and the role list, so the setup launch needs none.
Tests
tests/unit/roles-tmux.bats, a new test: an empty environment runs--role setupand tmux is never called; withconda-metathere, the five groups open in order (planner-2beforeplanner-10), withoutsetup, an extra role or the globs; a setup role with[conda:setup]commented out opens the five groups. The test for--roleswith no role now expects the new refusal.---
_🤖 Drafted by Claude Code (an AI agent) and reviewed & approved by pearu._