Skip to content

tests(sde): Test 5 and Test 8 judge the answer, not its vocabulary - #314

Merged
SSFSKIM merged 4 commits into
mainfrom
sde-test-phrasing
Oct 21, 2026
Merged

SSFSKIM merged 4 commits into
mainfrom
sde-test-phrasing

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Oct 21, 2026

Copy link
Copy Markdown
Owner

Board ticket 70 (GitHub mirror #162). Test-only: tests/claude-code/test-subagent-driven-execution.sh.

  • Test 5 (cherry-picked from 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.
  • Test 8: the prerequisite is accepted as worktree or isolated 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 bare worktree swapped back in, the pre-flight fails on that line.
  • Review fix: bare implementation let "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 as nomatch rows.

Verification

  • Pre-flight fixtures pass (BSD /usr/bin/grep); GNU grep not run here (none installed, Docker down). CI does not run this file, since it spends model calls.
  • Live run of the whole file at CLAUDE_PROMPT_TIMEOUT=300 (before the review fix): all 9 tests pass, exit 0.
  • Live Test 5 three more times against the final pattern: all pass (each answer matched through "code" or "diff").
  • scripts/lint-shell.sh on the file: clean.
  • Review: doperpowers:reviewer-low over 3e59139..9fb31a88 found one P2 (the implementation false positive above), fixed in the last commit.

The committed 90 s CLAUDE_PROMPT_TIMEOUT default is left as is (the ticket leaves it as a cost call).

Sminos-Session: doperpowers-fd#9550b072 (doperpowers on macbook)

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)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-21T06:02:35.336090Z 22594cf PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@SSFSKIM
SSFSKIM merged commit e1bb21f into main Oct 21, 2026
5 checks passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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'

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Comment on lines +55 to +56
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'

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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\)'

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant