fix: include certificate operation details in readiness errors #7683
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 323 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.346
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #7683"
general
weight: 0.35
JameelB
What
Include certificate-operation metadata and service error details when TLS certificate readiness reports a failed, cancelled, or unknown operation status. Serialize SDK field values and exclude CSR bytes from diagnostics.
Why
Status alone does not explain why certificate issuance stopped. Status details, issuer metadata, request/resource identifiers, and nested service errors provide context for investigation without changing readiness decisions.
Testing
Added table-driven regression cases for failed, cancelled, and unknown statuses, covering diagnostic values, error wrapping, CSR exclusion, and non-mutation. Existing readiness cases cover success, pending, missing resources, nil status, and client errors.
Local validation passed:
azureresourcespackage tests: 83.0% statement coverage.Full repository tests and remote CI have not been run as part of local validation. Optional deployment-environment generation emitted local setup warnings; backend compilation succeeded. Deployment-environment generation is not validated, and this PR contains no deployment or infrastructure changes.
Special notes for your reviewer
SDK
ErrorInforetains message and nested-error payloads behindError(); SDK JSON includes only its exportedCode. The formatter includes both SDK JSON and quoted service error details. CSR is removed from a copy so the response is not mutated. Success, pending, nil-status, and error-return semantics remain unchanged.No tracking issue was supplied for this narrowly scoped diagnostics improvement.
PR Checklist
If E2E tests are included: not applicable.
---
AI-generated. Review for accuracy.
@machi1990 requested from Slack