healthplatform: add ai_prompt to Remediation #532
All Vouch review confidence checks passed
Residual risk 0.13 = Change Risk (0.32) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.32 · 135 lines diff across 1 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.294
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #532"
general
weight: 0.35
louis-cqrl
What does this PR do?
Adds an optional
ai_promptfield (4) tohealthplatform.Remediation, and regenerates the Go code (inv codegen.all). It is a prompt the user can hand to an AI assistant to help fix the issue.Motivation
The Datadog backend now attaches an AI prompt from its remediation catalog to agent health issues (DataDog/dd-source#125873). It is stored with the issue's remediation, and
agent-health-apireads it back by decoding that remediation ashealthplatform.Remediation(DataDog/dd-source#127287). Without the field, the API has to readaiPromptwith a separate JSON pass; with it, the proto is the single contract.Additional Notes
github.com/DataDog/agent-payload/v5and drop the extra JSON pass inagent-health-api.healthplatform.pb.godiff is the new field, its getter and the regenerated descriptor.