fix(profile-claude): the briefing settings allow reading /run/agent-sandbox and writing the summary line, so a role is not asked #393
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 235 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.327
Shallow Review Depth
shallow_review_depth
0.289
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #393"
general
weight: 0.35
pearu
A role without a start text, a gh-review role for one, asked at every new session: "Read outside the working directories —
Read(/run/agent-sandbox/briefing.md)… Allow this read?" The briefing lives at/run/agent-sandbox/, outside the project, and the claude profile added that directory with--add-dironly for a role with a start text (its/startcommand). A session also could not keep its summary line,/run/agent-sandbox/summary/line, current without being asked.The settings the claude profile hands Claude Code at every briefed launch and join now allow both, as permission rules:
(
//is Claude Code's form for an absolute path, andEditcovers every built-in tool that edits a file: https://code.claude.com/docs/en/permissions.) The paths come from the briefing directory and summary line the engine hands the profile. They are narrower than--add-dir, which would also allow edits anywhere there; the--add-dirfor a start text stays. A user's own--settingsrules are merged first, and theirdenyandaskrules still win; a userpermissionsvalue that is not an object is left as it is, the engine adds no rules to it and says so, and the briefing's hooks are installed all the same. The trust review and--checkdo not list the two: no dot-file line asks for them, and they allow nothing the sandbox does not already give (the directory is read-only inside, the line is the session's own).Tests:
tests/unit/briefing.bats(both rules for a role with and without a start text, at a launch, a-plaunch and a join; a user's allow, deny and ask surviving),serve.bats.scripts/check.shpasses locally. Not yet tried against a live session.---
_🤖 Drafted by Claude Code (an AI agent) and reviewed & approved by pearu._