Add a value parameter so that the codec can decode to any constant #1
All Vouch review confidence checks passed
Residual risk 0.03 = Change Risk (0.31) × (1 − Review Confidence (0.89)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.31 · 64 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.89 · 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
Diff Size
diff_size
0.250
Real PR Conversation Timeline
2 items
Mention again that this is zero by default
juntyr
SF-N
Summary
ZeroCodecgains a keywordvalue: int | float = 0and decodes tonp.full(shape, value, dtype). The default behaviour (all zeros) and the stream format are unchanged;get_configand__repr__are added so that the value round-trips through the configuration.Motivation
Some safety requirements in the compression recommendations are so loose that a constant reconstruction (e.g. the field's median) satisfies them; combined with
MaskMetaCodecfor missing values this gives the smallest possible representation without a dedicated "constant" codec.