Interpreting the diff
On each PR the Action runs your suite on the PR head and the base branch, then plune diffs them.
The result shows up in three places: the sticky comment, the check status, and the action outputs.
The transition table
Section titled “The transition table”Every eval is classified by how it moved between the base branch and the PR. Only a genuine
passed → failed transition is a regression:
| Transition | Meaning | Gates? |
|---|---|---|
passed → failed | regression | yes (when fail-on-regression: true) |
failed → passed | improvement | no |
failed → failed | pre-existing failure | no |
| absent → failed | new failure (new eval) | no |
any → errored | not measured: the PR’s run errored (for example the provider did not answer) | yes, as its own error (when fail-on-regression: true) |
errored → failed | not measured: nothing on the base branch to compare against | yes, as its own error (when fail-on-regression: true) |
| any → no row judged | not measured: every row was blocked or skipped, or the dataset is empty (@plune-ai/cli 0.34.4) | yes, as its own error (when fail-on-regression: true) |
errored → passed | improvement | no |
The key idea: an eval that was already failing on the base branch does not turn the check red. Only quality you had and lost gates the merge.
An eval that could not be measured is not a regression either, but with fail-on-regression: true
it fails the check with its own message, because “no regressions” would be a guess. Re-run the job
when the provider did not answer; an eval that errors every time needs fixing.
The sticky comment
Section titled “The sticky comment”The Action posts one comment per PR and updates it in place on every push — it never spawns
duplicates. The body summarizes regressions and improvements; the headline is the same one-line
summary exposed as an output: N regression(s), M improvement(s), with , K not measured when some
evals could not be measured.
The body is the Markdown of plune diff. With plune-version 0.39.12 or newer, it ends with the
line Unsteady in this run: … when a row of the PR’s run passed some of its repeats but not all:
Unsteady rows in the Markdown diff.
The line gates nothing and changes no output.
Consuming the outputs
Section titled “Consuming the outputs”The Action exposes five outputs you can use in later steps:
| Output | Description |
|---|---|
has-regression | 'true' when at least one passed → failed regression was detected |
regressions | number of regressions |
unmeasured | number of evals that could not be measured (their run errored); 0 when everything was measured |
summary | one-line diff summary |
gate-exit-code | exit code of plune diff with fail-on-regression or a gate input set: 0 passed, 1 a measured failure, 2 an input error, 3 not measured; empty when none is set, or when the base ref has no baseline yet |
- uses: plune-ai/eval-action@v1 id: plune with: config: plune.yaml- name: Annotate if: ${{ steps.plune.outputs.has-regression == 'true' }} run: echo "::warning::${{ steps.plune.outputs.summary }}"