fix(frontend): declare the named-contexts capability #231
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 · 186 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.313
Real PR Conversation Timeline
1 comments
"Review active on #231"
general
weight: 0.35
robmry
BuildKit refuses a build that passes
--build-contextbefore the frontend runs, because the frontend image does not declare the capability:The frontend already forwards named contexts and frontend inputs to the content recipe's
dockerfile.v0solve (dockerfileFrontendOptsand theFrontendInputscopy incmd/frontend/build.go). The gateway only checks the image'smoby.buildkit.frontend.capslabel, so this adds the label to the frontend image. It declaresinputsandcontextsand leaves outsubrequests, which the frontend does not answer.With the label, a client can redirect the images a kit's recipe builds on without editing the recipe. For example, it can send a Docker Hub
FROMto a registry mirror with--build-context alpine:3.22=docker-image://mirror.example/library/alpine:3.22.Verification
TestNamedContextsReachCompanion(new,KIT_E2E=1) builds a kit whose companionFROMs a name no registry serves and supplies it through--build-context. It fails without the label with the error above and passes with it.KIT_E2E=1 go test ./cmd/frontend/...passes in full, andtask validateis clean.Release note
``
release-notedocker buildx build --build-contextThe kit frontend accepts
, so a build can redirect the images a kit's recipe builds on, such as to a registry mirror.
``🤖 Generated with Claude Code