feat(ci): disclose AI-generated CLI diagnoses - #545
Merged
Conversation
121watts
marked this pull request as ready for review
July 21, 2026 19:10
121watts
enabled auto-merge
July 21, 2026 19:29
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Summary
Adds a tiny honesty footer to CLI failure diagnoses, once and out of the way.
What was happening
The human-readable CLI output presented generated diagnoses and possible fixes without indicating that the guidance came from AI or could be wrong.
What happens now
Grouped and focused diagnosis output ends with “This diagnosis is AI-generated and can make mistakes.” when any diagnosis or possible fix was rendered. The footer appears once for the whole output, never once per failure, and stays absent when there is no AI guidance.
JSON output is unchanged.
Anything else
This complements the app disclosure PR and the Opus 4.7 API upgrade.
Note
Low Risk
CLI presentation-only change with no API or JSON behavior changes.
Overview
Human-readable
depot ci diagnoseoutput now ends with a single footer when any Diagnosis or Possible fix text was shown: "This diagnosis is AI-generated and can make mistakes."The footer is printed once per command (after bounds/summary notes), including when multiple failure groups or representative attempts have AI guidance. It is omitted when neither field is present. JSON output is unchanged.
Tests cover grouped and focused paths, multi-group/attempt cases, diagnosis-only vs possible-fix-only, and the no-AI case.
Reviewed by Cursor Bugbot for commit fdcfd47. Bugbot is set up for automated code reviews on this repo. Configure here.