Repository navigation
tests(sde): Test 5 and Test 8 judge the answer, not its vocabulary - #314
Conversation
Test 5's second assertion enumerated verb/noun pairs (read.*code, review.*diff, ...) and so turned its verdict on vocabulary rather than correctness. It rejected a correct, well-cited answer written in the wording agents/task-reviewer.md itself uses -- "verify every implementation claim against the actual diff", "judge the implementation on its merits" -- and aborted the file at exit 1 before Tests 6-9 ran. Replace it with one engagement-verb-then-artifact-noun pattern, hoisted into a named variable and pinned in the pre-flight fixture table: an answer that only restates the executor's report names no artifact at all, so the rejection case still fails.
The prompt asks about the spec compliance *reviewer's* attitude, so the string "review" is inside every answer -- in "reviewer" itself -- however right or wrong the answer is. Listing it as an engagement verb paired it with a near-certain artifact noun and made the assertion close to always-true: "the reviewer trusts the executor's report of the code changes" and "the reviewer signs off on the implementation report without checking" both passed, though both describe exactly what agents/task-reviewer.md forbids. Remove that one branch; judge and against stay, both load-bearing for the accepted phrasings. Pin the two wrong answers as nomatch rows in the pre-flight table so the permissiveness cannot return.
…quisite assertion Test 8 asserted the bare string "worktree" against the answer to "what is required before using subagent-driven-execution?". A correct answer that quotes the skill's own pointer, "an isolated checkout (isolated-workspace.md)", never says the word and redded the file at exit 1. The prerequisite has two names, the doc's and the mechanism's; the assertion now takes either, as a named pattern pinned in the pre-flight fixture table with the observed failing line, two other accepted phrasings and two answers that name no isolation at all. With the old bare pattern swapped back in, the pre-flight fails on the observed line. Board ticket 70 (its GitHub mirror is #162), with the two cherry-picked Test 5 commits before it. Sminos-Session: doperpowers-fd#9550b072 (doperpowers on macbook)
… artifact pattern Bare "implementation" let "reads the implementation report ... approves based on that report alone" count as engaging with the artifact. It now counts only at a boundary or before a continuation that keeps the thing itself as the object; report-only near-misses are pinned as fixtures. Sminos-Session: doperpowers-fd#9550b072 (doperpowers on macbook)
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 22594cfdbd
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| # Naming the report-like words to reject would turn the verdict on vocabulary | ||
| # again; an unlisted continuation fails closed, which is the safe direction. | ||
| IMPL_ARTIFACT='implementation\($\|[.,;:)!?"]\| \(against\|itself\|directly\|on\|and\|to\|matches\|rather\|not\|for\|with\|in\|is\|as\|before\|files\)\)' | ||
| PAT_REVIEWER_READS_ARTIFACT='\(read\|inspect\|examin\|verify\|check\|judge\|look at\|against\|evaluate\).*\(code\|diff\|'"$IMPL_ARTIFACT"'\)\|actual \(code\|diff\|'"$IMPL_ARTIFACT"'\)\|code itself' |
There was a problem hiding this comment.
Accept “review the diff” as direct engagement
A valid live-model answer such as Do not trust the report; independently review the diff satisfies both requirements, but this pattern rejects it because review was removed from the engagement verbs and none of the remaining alternatives match. The previous assertion explicitly accepted review.*diff, so Test 5 can now fail solely on a natural paraphrase; recognize the verb form without allowing the noun reviewer to satisfy the check.
Useful? React with 👍 / 👎.
| IMPL_ARTIFACT='implementation\($\|[.,;:)!?"]\| \(against\|itself\|directly\|on\|and\|to\|matches\|rather\|not\|for\|with\|in\|is\|as\|before\|files\)\)' | ||
| PAT_REVIEWER_READS_ARTIFACT='\(read\|inspect\|examin\|verify\|check\|judge\|look at\|against\|evaluate\).*\(code\|diff\|'"$IMPL_ARTIFACT"'\)\|actual \(code\|diff\|'"$IMPL_ARTIFACT"'\)\|code itself' |
There was a problem hiding this comment.
Do not infer artifact access from “implementation is”
When the answer remains report-driven, wording such as Be skeptical, but check that the report says the implementation is complete passes both Test 5 assertions: skeptical satisfies the first and check.*implementation is satisfies this artifact pattern. No code or diff was inspected, so the new continuation whitelist can turn the behavior test into a false pass.
Useful? React with 👍 / 👎.
| # The isolation prerequisite has two names: the mechanism is a worktree, and the | ||
| # skill's own pointer to it reads "an isolated checkout (isolated-workspace.md)". | ||
| # A correct answer that quotes the pointer never says "worktree". | ||
| PAT_ISOLATION_PREREQ='worktree\|isolated[ -]\(checkout\|workspace\)' |
There was a problem hiding this comment.
Reject negated isolation prerequisites
If the model incorrectly answers An isolated checkout is not a prerequisite, the newly added isolated checkout alternative matches and Test 8 passes even though the answer explicitly denies the requirement being tested. The assertion needs to distinguish a required prerequisite from a negated mention rather than checking only for the mechanism's name.
Useful? React with 👍 / 👎.
Board ticket 70 (GitHub mirror #162). Test-only:
tests/claude-code/test-subagent-driven-execution.sh.qa-65-test5-phrasing-followup, as the ticket asks): the reviewer-reads-the-artifact assertion is one engagement verb before one artifact noun, so "verify against the actual diff" counts and the reviewer's own "review" never does. The first pick conflicted with 7a216bf's rename of Test 7's patterns (brief/plan → spec); the resolution keeps main's Test 7 rows and adds the Test 5 rows.worktreeorisolated checkout|workspace(SKILL.md's own pointer reads "an isolated checkout (isolated-workspace.md)"), a named pattern pinned in the pre-flight fixture table with the observed failing line. With the old bareworktreeswapped back in, the pre-flight fails on that line.implementationlet "reads the implementation report" pass as reading the artifact. It now counts only before punctuation, the line's end or a closed set of continuations; report-only near-misses are pinned asnomatchrows.Verification
/usr/bin/grep); GNU grep not run here (none installed, Docker down). CI does not run this file, since it spends model calls.CLAUDE_PROMPT_TIMEOUT=300(before the review fix): all 9 tests pass, exit 0.scripts/lint-shell.shon the file: clean.doperpowers:reviewer-lowover 3e59139..9fb31a88 found one P2 (theimplementationfalse positive above), fixed in the last commit.The committed 90 s
CLAUDE_PROMPT_TIMEOUTdefault is left as is (the ticket leaves it as a cost call).Sminos-Session: doperpowers-fd#9550b072 (doperpowers on macbook)