docs(client): name the methods that check RecipeResult ownership #3396
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 383 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 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.356
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #3396"
general
weight: 0.35
yuanchen8911
Summary
Corrects the
RecipeResultownership docs from #3364: the bundle, validate, preflight, and evidence methods reject an unowned result, andClient.MirrorInventoryaccepts one by design. Comment and doc text only.Motivation / Context
#3364 wrote that "every
Clientmethod that consumes a result" rejects an unowned result.MirrorInventorynever callsassertOwns, andaicr mirrordepends on that by passingWrapResolved(rec)to it. Read as an invariant, the old wording invites addingassertOwnstoMirrorInventoryfor consistency, which would break everyaicr mirrorrun. Raised in a review round on #3364 after it merged.Fixes: #3395
Related: #3364
Type of Change
Component(s) Affected
cmd/aicr,pkg/cli)cmd/aicrd,pkg/server)pkg/recipe)pkg/bundler,pkg/component)pkg/collector,pkg/snapshotter)pkg/validator)pkg/errors,pkg/k8s)docs/,examples/)pkg/client/v1)Implementation Notes
Four places, same wording:
docs/integrator/go-library.md(theWrapResolvedparagraph), theownerfield doc inpkg/client/v1/types.go, and theassertOwnsandResolveRecipestamp comments inpkg/client/v1/aicr.go. No code path changes;MirrorInventoryalready accepts an unowned result and keeps doing so.Testing
All pass: gofmt clean, build ok, lint 0 issues, six docs checks OK. Full
make qualifywas skipped: the diff is Go comments and Markdown only, so tests, e2e, and Go lint cannot regress. The lychee link check runs in CI ondocs/changes.Risk Assessment
Rollout notes:** N/A, documentation and comments only.
Checklist
make testwith-race)make lint)git commit -s -S) — GPG signing info