fix: decoded-string secret gate, explicit goal-cut bound and checkpoint prune margin (1/4) #226
All Vouch review confidence checks passed
Residual risk 0.47 = Change Risk (0.68) × (1 − Review Confidence (0.30)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.68 · 415 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 52% · 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.361
Shallow Review Depth
shallow_review_depth
0.344
Sensitive Paths
sensitive_paths
0.068
Real PR Conversation Timeline
1 comments
"Review active on #226"
general
weight: 0.35
chatgpt-codex-connector[bot]
Later work left by the reviews of #222–#225: the switch goal cut, the VP-S29 secret gate, and checkpoint prune under a brief clock step.
Chain context
What changes
scrubbed_goal).- The cut now walks down from the prompt cap to an empty goal, whose scrub always fits. Termination no longer rests on a loop invariant.
- The comment says that only the authorization rule can grow a cut, by at most 10 bytes. It also explains why a cut inside an authorization value can end the goal at its label.
- Outputs are unchanged.
- The gate ran
findSecretson the JSON text, where escapes change what the patterns see:- a tab after
authorization:failed the gate;- a newline before a digest read as a long run;
-
Bearerfollowed by a tab was missed.- It now parses the observation and the summary and scans every decoded string, keys included.
-
findSecrets(text)still covers the brief and the redacted transcript.- A clock stepped back for a moment at prune time made the newest checkpoints look future-dated, so prune deleted a recent one before the oldest.
- An id now counts as future-dated only when it is more than 300 seconds after the current time.
- A longer rewind still prunes future-dated ids first.
Checks
-
cargo test --workspace --all-targets --all-features: 2,204 passed.- clippy: clean, also for x86_64-pc-windows-gnu and aarch64-apple-darwin.
-
node --teston the procedures: 427 passed.- Gate: the two false positives failed with
expected: 0, actual: 1, and the missed bearer token withexpected: 1, actual: 0.- Prune: the test expected
oldto be deleted, while the old rule deleted a recent checkpoint instead.- 300,000 near-cap goals are byte-identical to f700fd1, and so are the independent verifier's 228,298.
- A mutation that stops re-scrubbing each cut fails the new test.
Risk
- It is now stricter for patterns inside one string.
- It no longer sees a pattern split across two JSON strings. Every key of the observation is defined in code.
Out of scope (later work)