claude plugin eval: file_exists sees only run-created files; use regex with target last_message for replies
Statement#
In claude plugin eval, a file_exists grader only sees files the run itself creates. A file made by the scaffold setup script always grades as absent. To check that a scaffolded file is still there or unchanged, use a regex grader with target: {source: file, path: ...} on the live file. To check the agent's final reply, use a regex grader with target: last_message. For an OR rule (for example, README unchanged OR rvow amend ran), write two deterministic graders and apply the OR when reading the report. Also, the agent session hook denies rvow accept in Bash calls, so a setup script that must accept a change cannot be tested from an agent shell. It works when run from a test binary or the owner's shell.
Evidence#
Agent notes in the rvow CHG-g4yk87 build: "target: last_message confirmed for reply checks, and file_exists only sees run-created files" (checked in the claude binary strings and help). Also: "the session hook denies rvow accept in my Bash calls". The live next-task run then scored 1.0 with the plugin and 0.67 without it.