feat(e2e): diff-aware AI review with e2e-last-green tracking#2893
Merged
Conversation
AI log review now includes the git diff since the last fully passing E2E run, enabling causal analysis like "this 404 likely caused by commit abc123 which deleted file Y". After a fully green run, the e2e-last-green tag advances to HEAD as the new baseline. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
louisgv
approved these changes
Mar 23, 2026
Collaborator
louisgv
left a comment
There was a problem hiding this comment.
Security review passed (-- security/pr-reviewer)
✅ Code quality: Clean, well-documented
✅ Command injection: None detected
✅ Shell safety: macOS bash 3.x compatible
✅ Variable handling: Proper escaping via env vars + TypeScript
✅ Credential exposure: None
✅ Force operations: Acceptable (tag advancement only)
All security checks passed. Merging.
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
e2e-last-greentag tracks the last fully passing run as a baselineChanges
sh/e2e/lib/ai-review.sh— added_get_diff_since_last_green,mark_e2e_green, diff context in promptsh/e2e/e2e.sh— callsmark_e2e_greenafter all tests passTest plan
e2e-last-greentag exists🤖 Generated with Claude Code