Skip to content

fix(M5): Include previous evaluation result in evaluator prompt#461

Merged
devinoldenburg merged 2 commits into
mainfrom
fix/M5-evaluator-memory
Jul 8, 2026
Merged

fix(M5): Include previous evaluation result in evaluator prompt#461
devinoldenburg merged 2 commits into
mainfrom
fix/M5-evaluator-memory

Conversation

@devinoldenburg

Copy link
Copy Markdown
Owner

Previously each evaluator invocation was stateless — it had no memory of what it said before. If the evaluator said "NO: tests failing" and the agent fixed the tests but a different issue appeared, the evaluator couldn't see that the agent had responded to its feedback.

Changes:

  • buildEvaluatorPrompt accepts an optional lastEvalReason parameter
  • When present, includes "Previous evaluation: NO — ..." before the condition
  • Evaluator is asked to check whether the agent addressed that specific feedback

Made with Cursor

Previously each evaluator invocation was stateless — it had no memory
of what it said before. If the evaluator said "NO: tests failing" and
the agent fixed the tests but a different issue appeared, the
evaluator couldn't see that the agent had responded to its feedback.

Now `buildEvaluatorPrompt` accepts an optional `lastEvalReason` and
includes it as "Previous evaluation: NO — ..." before the condition,
asking the evaluator to check whether the agent addressed that
specific feedback.

Co-authored-by: Cursor <cursoragent@cursor.com>
Copilot AI review requested due to automatic review settings July 8, 2026 05:22

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Co-authored-by: Cursor <cursoragent@cursor.com>
@devinoldenburg
devinoldenburg merged commit 6a080cd into main Jul 8, 2026
5 checks passed
@devinoldenburg
devinoldenburg deleted the fix/M5-evaluator-memory branch July 8, 2026 05:31
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