fix(charts): seed the mesh policy only when the control plane has none #763
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 208 lines diff across 2 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.320
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #763"
general
weight: 0.35
aojea
Why
The chart's bootstrap Job runs on every
helm upgradeand POSTed the whole mesh policy each time. So each upgrade silently erased edits made in the console or withPOST /policies. The Kubernetes guide says that the database is the source of truth once it has a policy.What changed
GET /admin/policyand seeds the policy only when it holds no roles. Otherwise it logs that it skipped the seed. This matchesagentmesh-one --policy-file.mesh:role:agentmesh-boxrole and binding. Their binary was removed in f6abfb82.bootstrapvalues comment and the Kubernetes guide say that a later change tobootstrap.does not change the policy.Scope
Blast Radius
An operator who changed the
bootstrap.values and ranhelm upgradeto apply them now has to make the change in the console or withPOST /policies. This makes sense since this job is only used to bootstrap the mesh.If the Job cannot read the policy, it fails and retries instead of overwriting it.
Verification
make helm-testpasses with two new tests, and both fail on the old template.make helm-lintpasses.