[CONTP-2136] Implement componenthealth snapshot emitter #3536
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.52) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 650 lines diff across 8 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.388
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #3536"
general
weight: 0.35
adel121
What does this PR do?
This PR evolves the component health implementation with a snapshot emitter that allows sending ACTIVE issues to the agent health intake on a fixed cadence, along with resolution signals when an issue resolves.
Things to know:
- log emitter: only logs snapshots of issues into operator logs; used by default when submitting to intake is disabled in operator feature flags (which is the default)
- snapshot emitter: submits issues and resolution signals to the intake (if the feature flag is activated)
Describe your test plan
Added unit tests.
Manual testing:
Deployed a faulty agent stack.
E.g.
Now update the DDA CR to a version that would run fine, then verify the operator resolves the issues:
We should see the issue being resolved in the logs:
Finally, once resolution is reported, and everything is healthy, the next snapshot should show 0 reported issues, 0 resolutions:
Checklist
bug,enhancement,refactoring,documentation,tooling, and/ordependenciesqa/skip-qalabel[1]: https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits