Use astral-yaml for diagnostics and autofixes #2576
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 · 221 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.323
Real PR Conversation Timeline
1 comments
"Review active on #2576"
general
weight: 0.35
woodruffw
<details>
<summary>Automated notes</summary>
Use the same Astral parse stream to deserialize each audit input, locate findings, and read ignore comments. Finding snippets use the parser's source spans. The patch crate applies each list of YAML edits in one Astral editor transaction and returns its rendered output. Applying a fix can change indentation, quoting, and line endings. Autofixes insert named fields through Astral’s mapping editor, which chooses when to quote their keys. Adding a field to a compact workflow step keeps its first key on the dash line. New mappings inherit their enclosing mapping’s style, so fixes that add
with,env, orcooldownto a block mapping indent the new entries.Script fixes edit the decoded scalar. For example, the template-injection fix rewrites the shell expression and sets its environment variable together. The obfuscation audit scans the original file for expressions, so it keeps a whole-source edit and validates the resulting YAML. Removing the last member leaves a valid empty collection. Edits through an alias apply to that use. An edit that would change a shared anchor definition fails atomically.
Remove
yaml_serde,tree-sitter-yaml, and thetree-sitter-iterworkspace member. Inline patch snapshots show the rendered YAML for edits to mappings, comments, and aliases. On 38 workflow fixtures the baseline and this branch produced the same 487 auditor-persona findings, including severity, ignore state, and symbolic locations. The same comparison matched all 14 findings on zizmor's own workflows. The pinning and version-comment tests use inline snapshots for both LF and CRLF inputs.This is the final PR in the YAML migration stack.
</details>