← Back to Pull requests

Add a controlled Pi/DSH pilot and offline comparison gate #5

Open
unknown opened this pull request with 399 lines diff across 4 files
View on GitHub
unknown unknown commented on Oct 12, 2026 16:41 UTC
Author

The harness decision needs repeatable evidence. This opt-in runner applies the same model ID, prompts, initial files, tools and budgets to Pi and DSH across a repository answer, read-only review with line evidence, and a configuration change with tests. It alternates run order and reports answers, fixture correctness, policy violations, interventions, latency, token usage and optional price-based cost estimates. Unknown cache components and costs stay null. An authenticated loopback transport enforces model-call limits before forwarding and verifies equivalent explicit non-thinking controls on both serialized protocols.

Each run uses a fresh disposable workspace. Only settings JSON is writable; executable files and the fixed test command are immutable. Production DSH remains read-only: the standalone runner must explicitly select disposable-pilot tool access. No native DSH shell, arbitrary generated-code execution or production configuration changes are introduced.

Validation: all six paired fixtures passed through actual Pi and pinned DSH against a local scripted model. The full focused suite passed 181 tests, covering workspace policy, executable-file protection, budget handling and the earlier runtime safety gates. Runtime, testkit, API and worker type checks, Biome and whitespace checks passed. Additionally, two PostgreSQL product tests passed: the new DSH journey and the existing Pi journey. All migrations applied successfully to a temporary PostgreSQL database. The DSH journey verified two turns, saved credential/model resolution, actual computer routing, disabled tools, durable metadata and rollback refusal. The offline report is explicitly synthetic; this does not establish comparative model quality, hosted latency or billing cost.

Review validation: 102 focused tests and the extended PostgreSQL product journey passed. The new cases cover terminal responses at exact call/token limits, rejection before an extra paid attempt, nullable cache pricing, both serialized thinking controls, and consumption of a mid-run steering message by exactly one continuation. All four affected packages type-check.

Still pending: an authorized live connection/model and spending limit, and hosted CI execution. All four review findings across the stack have been fixed and answered. Two post-push watcher observations finished green, with no registered CI checks or new unanswered feedback. Review threads remain open; no merge is implied. This draft does not claim the live pilot is complete. Pi remains the default.

Runner/tool failure copy is shown only when relevant: “A supported pilot protocol and explicit connection are required”, “Model budget exceeded”, “Pilot request rejected”, “Invalid pilot budget”, “Invalid pricing”, “Action is outside the pilot workspace policy”, “Tool budget exceeded”, “Settings must be JSON”, “Supply --dsh-cli, --output, and either --offline or --connection”, “A model id and API-key connection are required”, and “Both model protocols must use the same secure origin”. These identify a rejected action or invalid invocation; removing them would make the failure opaque. No persistent product UI copy is added.

Stacked on #4.

Diff: 399 lines (+299 / -100) across 4 files Reviewer: hsliuustc0106 Review duration: 1855m
All Vouch review confidence checks passed
Residual risk 0.23 = Change Risk (0.43) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 399 lines diff across 4 files
0.43
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
Diff Size diff_size
0.358
Shallow Review Depth shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #5"
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: 43.2% (MEDIUM) · Higher = larger blast radius
43.2%
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: 23% · Safe to merge
23%