Add build.policy attribute #1012
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.36) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 103 lines diff across 1 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.278
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #1012"
general
weight: 0.35
ndeloof
Implements the
build.policyattribute introduced by compose-spec/compose-spec#670: a list of policies the image builder evaluates on the build inputs, each entry being a policy file path or a mapping withfilename,reset,disabled,strictandlog_level.strictdefaults totrue. It is set while canonicalizing, so a loaded model never reads an unsetstrictasfalse, and it is always marshaled so an explicitfalsesurvives a reload. A string which is not a boolean is rejected, never read asfalse.Entries are merged by plain append and, unlike other sequences, duplicates are kept: their position relative to
resetentries decides which policies apply.filenameis relative to the build context, so it is not resolved by the loader.🤖 Generated with Claude Code