fix: emit builder form for StorageParameters descriptor (opaque API) #150
All Vouch review confidence checks passed
Residual risk 0.28 = Change Risk (0.49) × (1 − Review Confidence (0.44)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.49 · 70 lines diff across 7 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 10%
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.255
No Reviewer Assigned
no_reviewer_assigned
0.120
Real PR Conversation Timeline
1 comments
"Review active on #150"
general
weight: 0.35
arreyder
Problem
descriptor.tmplemits an open-struct composite literal forGetStorageParameters():but
pgdb/v1is generated withdefault_api_level=API_OPAQUE(buf.gen.yaml), soMessageOptions_StorageParametershas no exported fields — any downstream proto that sets(pgdb.v1.msg).storage_parametersproduces generated code that fails to compile:Found while adding per-table autovacuum tuning in ductone/c1 — first real use of the option; the example tree never exercised it, which is how this shipped unnoticed.
Fix
Emit the builder form — builder fields take exactly the
proto.Int32/Float32/Boolpointers the template already produces, so only the wrapper changes:Also annotates the
Petexample message withstorage_parameters(scale factor + threshold + fillfactor) and adds a test pinning the generated descriptor output, so the example tree permanently compiles and exercises this emission.Testing
go build ./... ./example/...— fails before the template fix (with the example annotation present), passes after.TestPetStorageParameterspasses.schema_sql.go/schema.goruntime behavior is untouched.🤖 Generated with Claude Code