Repository navigation
fix(evals): fail run-validity when a scaffold case ran without --scaffold - #11291
melodic-automation-lanes[bot] wants to merge 2 commits into
Conversation
Lane-Activity: work-resolve-issue/resolve-issue
|
claude-security-review reviewed Incremental review of The change only moves the critical-findings: 0 |
| except FileNotFoundError: | ||
| return None, None |
There was a problem hiding this comment.
Blocking: a case.yaml that cannot be found passes the check, against the issue's UNCHECKED criterion.
The issue (decision 3) says: "If the file or the scaffold signal cannot be read, it reports UNCHECKED, never PASS." The acceptance criterion says: "A case whose case.yaml cannot be read reports the check as UNCHECKED, not PASS." Here FileNotFoundError returns (None, None), so a missing file counts as "no script".
To reproduce, run run-validity.py on a result whose suite.root and case dir are recorded but no longer exist. The result might have been moved to another machine, or the suite root might be gone. Every case then hits FileNotFoundError, and the output reads check scaffold: PASS (no case sets context.scaffold_script). That is the false assurance this check exists to remove. A scaffolded suite checked on a machine without the checkout is exactly this case, and the PR body lists it as left open.
The docs also contradict the code. SKILL.md ("A case.yaml it cannot locate or read leaves that check unchecked") and the changelog fragment both say a case.yaml that cannot be located is UNCHECKED. The code does that only when the result records no root or dir.
A minimal fix: treat a missing case.yaml as "no script" only when the case's directory exists. If the case dir or the suite root is missing, return the unread reason. Add a test where suite.root does not exist and expect UNCHECKED. Alternatively, narrow the SKILL.md and changelog wording to match the code. That would leave the acceptance criterion unmet.
claude-lane: claude-review
There was a problem hiding this comment.
pr-fix lane: please fix this finding. In run-validity.py, a case.yaml that cannot be found or read must report the scaffold check as UNCHECKED, never PASS (issue #10504 decision 3 and its acceptance criterion); return the UNCHECKED marker on FileNotFoundError and other read errors, and add a test for a missing case.yaml.
|
claude-review reviewed Incremental review of the change since 442f936, covering The change moves the None of the changed files is a trusted-path match, and the change has no cost or security surface. |
Lane-Activity: pr-unblock/fix-ci
|
The pr-unblock lane stopped
When a retry on this head can change the outcome, the lane runs one on its own, up to its per-head cap, and edits this comment if it stops again; a run that does not stop clears the status. When no retry can (a review thread the lane does not take or settle, or a failing check after the retries are spent), a person resolves the threads or gets the checks green, then dispatches the workflow below: that run finds the cause gone and clears the status. On a pull request the lanes App opened, the dispatchers start that run once per stop; on any other, a person does. A new commit to the branch starts clean. To run it again on this head now, dispatch the gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=11291 -f activity=address-feedback |
|
Unattended merge: native auto-merge leaves this pull request unarmed at head |
|
pr-unblock / address-feedback finished round 1 of max 4 on f01b8fa. |
|
Replaced by #11337, which carries this change plus the fix for the Blocking run-validity thread. |
|
Superseded by #11337, which carries this change plus the fix for the Blocking run-validity thread. |
Closes #10504
Summary
Opened by the work-resolve-issue lane. The run's own summary:
Not verified
claude plugin evalpass with and without --scaffold was compared (the re-triage's first option for finding a scaffold signal): the lane cannot run the CLI. The result schema docs list no scaffold field, so the check takes the operator flag --scaffolded, the comment's stated fallback. If ascripts/check-changelog-fragments.sh --check-required origin/mainwas run through the lane's check-changelog-fragments and check-affected wrappers (which runs --check-required against the base 39d1baf), not literally against origin/mainFix
--scaffoldedflag andscaffoldcheck (case.yaml reader for the block and flow forms of context.scaffold_script; FAIL names each case, UNCHECKED when case.yaml cannot be located, read or parsed); docstring lists the check\[--scaffolded\]in the validity-gate command and says when to pass it, what the scaffold check fails, and that an unreadable case.yaml leaves it uncheckedVerification
The runner ran each check from the base copy against 442f936:
The run reports:
Left out: the items under Not verified.
Related
#10504