Credentials rail: secret reads run masked, secrets never leave #2437
All Vouch review confidence checks passed
Residual risk 0.43 = Change Risk (0.62) × (1 − Review Confidence (0.32)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.62 · 262 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 19% · 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.333
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.062
Real PR Conversation Timeline
1 comments
"Review active on #2437"
general
weight: 0.35
cursor[bot]
Rails card (Order 0.11735), slice 3 of 6: the Credentials rail.
Before: a secret store read (
secret-tool lookup,security find-generic-password, a keyring file) or a tool named for secrets parked for a person's yes in every mode, and if run, its output reached the model in the clear.After: those steps run with no card, and their output reaches the model with keys, tokens and passwords masked (
redact_for_share). The rail refuses, with a reason the model can act on:curl,ssh,gh,git, mail tools, a://word) in the same command as the secret read;passwd,chpasswd,sudo -S/--stdin,--password…);Typing into a password field and adding a connection that needs a token are the person's own input, so they keep their card (decided with the click sends in slice 6).
How:
rails::checkgains aCredentialsarm (credentialsandsecret_command);rails::scrubmasks a credentials step's output, called once inrun.rsright after dispatch.name_classandis_typing_toolare nowpub(crate).Tests updated with literal values: the perm parking list moves the two secret reads to Always runs them; the auto_review "dangerous" sample is now a boot change that still parks; two repair cases that feed sudo a password go from Hard(Credentials) to HardFloor (refused, never typed), which is stricter.
Base SHA: a6feae98 (beta).
Run path:
decide(Step)→rails::check(Credentials, subject); tool output →run.rsafterhold_send/dispatch_tool_call→harness::scrub.Verified locally (GitHub CI is off):
cargo test --libin grokhub-agent, 3490 passed, 10 failed, the same 10 that fail on plain beta; rails tests 15/15; src-tauricargo check --libclean;scripts/ci-guards.shadds no new entries over beta.Skipped / not verified: a real secret read on Beast (waiting on a Beast session); GitHub CI (off).
---
_Generated by Claude Code_