Skip to content

eval: add deterministic state and review action checks #1890

Closed

Description

@AshwinUgale

Part of fullsend-ai/fullsend#7372. Per this comment, add the deterministic checks alongside the LLM judges. Dropping any LLM judge is a separate follow-up.

Problem

  • State: all 32 cases set state in annotations.yaml, but no check reads it. In nightly run 41785637878, 31 matched. Triage 004-duplicate-issue says open but the issue was closed, as docs/triage.md says it should be, and triage_quality still scored it 5.
  • Review action: no case records an expected action in a form a check can read. reviews and review_decision can't supply it: because of the self-review 422 (Reintroduce review eval tests — self-review token blocker #245), approve and request-changes runs both left reviews empty in that run.

Proposed change

  1. expected_state check in all five eval.yaml files. Compare annotations.state with the captured state, ignoring case, and fail if the state wasn't captured. Change the annotation on triage 004 to closed.
  2. expected_review_action check in eval/review/eval.yaml. Add an optional review_action list of allowed actions. Read action from the fullsend:review-findings-v2 marker in the current section of the sticky comment. Cases without review_action pass. In that run all 18 review cases had one sticky with a readable marker, including runs where the formal review failed.
  3. Set review_action where the case already states it: 003 and 004, both approve, comment. Other cases can be added once someone decides their expected action.
  4. Report-only, like the other behaviour checks (Run live-model behaviour checks and quality judges nightly, report-only #1601). Add both to the threshold filter in eval/run-functional.sh and to BEHAVIOUR_CHECKS in eval/scripts/aggregate-nightly.sh.

Limitations

  • The marker isn't always the posted action: a direct protected-path or risk-gate downgrade changes only the posted review, so an agent's approve stays approve in the marker. post-review-test.sh covers the protected-path case, and the outcome label checks cover what was posted.
  • The numbers above come from one nightly run, and actions can vary between runs (007 got ready-for-merge on two earlier nights). The nightly 2-of-3 verdict is what absorbs this.

Out of scope

Acceptance criteria

  • expected_state runs for every agent and reports a mismatch.
  • expected_review_action reads the marker from the current sticky section and ignores earlier history.
  • Triage 004 expects closed; review 003 and 004 set review_action.
  • Both checks are report-only per run and included in the nightly 2-of-3 verdict.
  • Script tests cover both checks, including missing state and a missing or malformed marker. eval/scripts/finding-expectations-test.sh is the pattern to follow.

Activity

  1. fullsend-ai-triage commented on Nov 4, 2026

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 10:38 AM UTC · Completed 10:40 AM UTC

    Commit: eafa69f · View workflow run →

    Runtime: claude · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.22

  2. fullsend-ai-triage commented on Nov 4, 2026

    @fullsend-ai-triage

    Re-triage confirms the earlier finding: this is ready for implementation and nothing new blocks it.

    Verified in the repo:

    • All fix targets exist: the five eval/*/eval.yaml files, the threshold-drop regex in eval/run-functional.sh, BEHAVIOUR_CHECKS in eval/scripts/aggregate-nightly.sh, eval/scripts/finding-expectations-test.sh, and the triage 004 annotation (currently state: open).
    • No open or merged PR references this issue, and no duplicate issue exists.
    • No CI workflow files need to change.

    Notes for the implementer:

    • Use finding_expectations and its script test as the pattern.
    • Keep both checks report-only by updating the regex (and its comment) in run-functional.sh and BEHAVIOUR_CHECKS in aggregate-nightly.sh. Confirm run-functional-test.sh and aggregate-nightly-test.sh still pass.
    • Which other review cases get review_action is deliberately deferred by the issue.

    Proposed test case:

    expected_state: equal-ignoring-case passes; mismatch fails; uncaptured state fails.
    expected_review_action: action in review_action list passes; not in list fails;
    no review_action passes; missing or malformed marker fails; only the current
    sticky section is read (older-section action is ignored).
    

    This is a new check rather than a bug, so it is outside the auto-promote categories. A maintainer can start implementation with /fs-code.


    Next steps:

    • /fs-code — agent creates a PR to implement this issue
    • /fs-code <your instruction> — agent implements with your specific guidance
    Previous run

    Triage found this ready for implementation. The referenced fix targets exist in this repo (the five eval/*/eval.yaml files, eval/run-functional.sh, eval/scripts/aggregate-nightly.sh, and the triage 004 and review 003/004/006 case annotations). No open PR or duplicate issue was found, and the #245 limitation is documented as a known constraint rather than a blocker.

    Notes for the implementer:

    • Use the existing finding_expectations check and eval/scripts/finding-expectations-test.sh as the implementation and test pattern.
    • Keep both checks report-only by updating both the threshold-drop regex in run-functional.sh (and its comment) and BEHAVIOUR_CHECKS in aggregate-nightly.sh; check the corresponding script tests (run-functional-test.sh, aggregate-nightly-test.sh) still pass.
    • Run make script-test and the repo lint before finishing.

    Proposed test case:

    expected_state: equal-ignoring-case passes; mismatch fails; uncaptured state fails.
    expected_review_action: action in review_action list passes; not in list fails;
    no review_action passes; missing or malformed marker fails; only the current
    sticky section is read (older-section action is ignored).
    

    Because this is a new check rather than a bug, it is not auto-promoted to ready-to-code; a maintainer can promote it when ready.


    Next steps:

    • /fs-code — agent creates a PR to implement this issue
    • /fs-code <your instruction> — agent implements with your specific guidance
  3. added a commit that references this issue on Nov 4, 2026
  4. fullsend-ai-triage commented on Nov 4, 2026

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 2:55 PM UTC · Completed 2:57 PM UTC

    Commit: d243454 · View workflow run →

    Runtime: claude · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.22

  5. added a commit that references this issue on Nov 5, 2026
  6. added 2 commits that reference this issue on Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions