Connect DSH to Rakazo history and read-only tool execution #3
All Vouch review confidence checks passed
Residual risk 0.20 = Change Risk (0.37) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 229 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.325
Real PR Conversation Timeline
1 comments
"Review active on #3"
general
weight: 0.35
hsliuustc0106
Rakazo can now opt one bot into the pinned DSH runtime while Pi remains the default for other bots. DSH receives role-preserving text history in a fresh session, and only new read_file/list_files requests reach Rakazo’s existing executor. Historical tool-like text cannot execute. Usage uses the awaited accounting callback; executor errors remain failures and approval pauses stop the loop.
The API and worker use the same factory. Missing or incompatible DSH installations fail at startup. The pilot rejects images, resume, fallback models and unsupported connection modes. Cancellation durability and rollback protection remain for the next stacked PR; this draft is not ready for deployment.
Validation: 93 focused tests passed, including two-turn history against the actual pinned DSH agent with a local fake model, paired Pi/DSH boundary tests, tool filtering, denial, approval pauses and usage. Runtime, adapters, API and worker type checks passed. Biome and whitespace checks passed. These tests establish boundary behavior, not model quality or cost. Follow-up validation on the full stack in #5 passed a PostgreSQL product journey covering saved connection resolution, two-turn history, real sandbox routing and disabled tools.
Error copy appears only on the relevant failure: “DSH run is already active”; “Rakazo tool executor is unavailable”; “DSH completed without a response”; “The DSH pilot does not support this reasoning effort”; “The DSH pilot requires a DeepSeek API-key connection”; “DSH checkpoint resume is unavailable”; “DSH mid-run fallback is unavailable”; “The DSH pilot accepts text input only”. Each identifies why execution stopped; removing it would leave an unexplained failure. There is no persistent explanatory UI.
Stacked on #2. CI and automated-review completion are pending the repository watcher.