feat(agent): オートモードで隔離サンドボックスの shell を自動承認する #1295
All Vouch review confidence checks passed
Residual risk 0.23 = Change Risk (0.40) × (1 − Review Confidence (0.43)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 163 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.305
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #1295"
general
weight: 0.35
coderabbitai[bot]
Closes #1294
背景
オートモードでも
shellは承認カードで止まる。誰も押さなければ却下扱いで run が止まり、「続けて」なしで完遂できない(検証ループの S4 が 1,800 秒停止、モンテカルロのスレッドで shell が却下)。human 決定(2026-11-15)で、オートの自動承認にshellを加える。変更
crates/chat/src/autonomous.rs: オートの事前許可にISOLATED_EXEC = [Shell]を足す。理由をコメントに残す(gVisor の使い捨てサンドボックス内で走り、届くのは run の/workspaceと egress 許可先だけ。code_interpreter と同じ境界)- 承認必須モード・システム領域の合成では従来どおり止まる(既存テストを維持)
- fs_delete / office.live_edit / drive.move はオートでも承認維持
auto_allows_versioned_writes_but_keeps_irreversible_gatedを更新approval-mode-select.tsx)とchat-api.tsのコメントdocs/design.mdの 3 モードの記述(human 承認済みの方針変更に合わせる)検証
cargo fmt --all --check✅cargo clippy -p shiki-chat --all-targets --all-features -- -D warnings✅cargo nextest run -p shiki-chat -E 'test(/autonomous|gate/)'23 passed ✅cargo nextest run -p shiki-gui --test first_party_skills4 passed ✅🤖 Generated with Claude Code
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->
Summary by CodeRabbit
新機能
オートモードで、隔離サンドボックス内のシェル実行が自動承認されるようになりました。
* ファイル削除や移動など、不可逆または影響の大きい操作には引き続き承認が必要です。
<!-- end of auto-generated comment: release notes by coderabbit.ai -->