← Back to Pull requests

Connect DSH to Rakazo history and read-only tool execution #3

Open
unknown opened this pull request with 229 lines diff across 2 files
View on GitHub
unknown unknown commented on Oct 12, 2026 16:21 UTC
Author

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.

Diff: 229 lines (+171 / -58) across 2 files Reviewer: hsliuustc0106 Review duration: 1876m
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
0.37
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
0.02
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
46%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
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
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 46.7% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 37.0% (MEDIUM) · Higher = larger blast radius
37.0%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 46.7% · Lower = rushed or shallow review
46.7%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 19.7% · Safe to merge
19.7%