Skip to content

healthplatform: add ai_prompt to Remediation - #532

Merged
pducolin merged 1 commit into
masterfrom
paola.ducolin/healthplatform-remediation-ai-prompt
Oct 15, 2026
Merged

pducolin merged 1 commit into
masterfrom
paola.ducolin/healthplatform-remediation-ai-prompt

Conversation

@pducolin

Copy link
Copy Markdown
Contributor

What does this PR do?

Adds an optional ai_prompt field (4) to healthplatform.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-api reads it back by decoding that remediation as healthplatform.Remediation (DataDog/dd-source#127287). Without the field, the API has to read aiPrompt with a separate JSON pass; with it, the proto is the single contract.

Additional Notes

  • Backend-only for now: agents leave the field empty, and older agents are unaffected (new optional proto3 field).
  • After merge, a new release is needed so dd-source can bump github.com/DataDog/agent-payload/v5 and drop the extra JSON pass in agent-health-api.
  • Generated with the repo's pinned toolchain; the healthplatform.pb.go diff is the new field, its getter and the regenerated descriptor.

An optional prompt the user can hand to an AI assistant to help fix the
issue. It is set by the Datadog backend from its remediation catalog and
stored with the issue's remediation; agents leave it empty.
@pducolin pducolin changed the title [WIP] healthplatform: add ai_prompt to Remediation healthplatform: add ai_prompt to Remediation Oct 15, 2026
@pducolin
pducolin marked this pull request as ready for review October 15, 2026 08:35
@pducolin
pducolin requested a review from a team as a code owner October 15, 2026 08:35
@pducolin
pducolin requested a review from san-jos October 15, 2026 08:35
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-15T08:37:13.293404Z 2408ba1 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@pducolin
pducolin merged commit 8e564b7 into master Oct 15, 2026
12 checks passed
@pducolin
pducolin deleted the paola.ducolin/healthplatform-remediation-ai-prompt branch October 15, 2026 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants