fix(roles): --roles refuses a role the dot-file does not have, before opening anything #414
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.37) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 129 lines diff across 1 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.291
Shallow Review Depth
shallow_review_depth
0.289
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #414"
general
weight: 0.35
pearu
asb --roles supervisor-not-existing planner-1opened the session withplanner-1's pane, and only the unknown role's own pane refused, asasb --role NAMEdoes. Now--roleschecks every listed name against the role sections of the approved.agent-sandboxbefore it opens anything, as a single launch checks its role, and refuses up front:A file with no role section accepts any name, as a single launch does.
Tests
tests/unit/roles-tmux.bats, a new test: an unknown role listed first or after a known one is refused and tmux is never called; with every name known the panes open; with no role section any name opens. Three existing tests listed a role their dot-file did not name; each now gives it a section.---
_🤖 Drafted by Claude Code (an AI agent) and reviewed & approved by pearu._