Skip to content

test(harness-config): add the codify hand-off eval cases - #17459

Merged
kyle-sexton merged 11 commits into
mainfrom
test/17200-harness-config-codify-handoff-cases
Nov 19, 2026
Merged

kyle-sexton merged 11 commits into
mainfrom
test/17200-harness-config-codify-handoff-cases

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Refs: #17200

Summary

Adds the three harness-config eval cases that #17200 asks for under #17158: one per skill that PR 17326 changed. Each case loads a corrections stand-in plugin, in the shape of session-flow's re-mechanical-finding-check-proposal case, and grades that the skill hands the mechanism choice to /corrections:codify and picks none itself.

  • ai-must-always-rule-hands-to-codify: audit-instructions, catalog row I5 (a must-always rule nothing checks).
  • pp-missing-gate-hands-to-codify: audit-prompting-postures, a MISSING P7 (a destructive skill with no gate).
  • dr-never-action-hands-to-codify: draft-auto-mode-rules, Phase 2 item 1 (an action that must never happen).

The skill text is unchanged; this PR adds eval cases, their stand-in plugin and a bump: none changelog fragment.

Fix

Each case has a deterministic verdict grader (i5-convert, p7-missing or section-hard-deny), hands-to-codify (the reply's PROPOSAL line names corrections:codify), no-codify-run (the reply does not run codify), no-unavailable-claim (the PROPOSAL line does not call codify unavailable) and an llm grader, picks-no-mechanism. no-unavailable-claim matches only the PROPOSAL line: the changed skill text has the reply say when codify was not available, which a whole-reply pattern would fail. That narrowing was made before the first run.

Verification

  • Static validation, validate-cases.py over plugins/harness-config/evals: no FAIL, and no WARN for the three new cases. Their deterministic graders were checked offline against each case's samples/.
  • scripts/check-affected.sh: 18 passed, 2 skipped (no changed shell or Python).
  • Host eval, run against the head of PR 17326: eval record. On sonnet, 3 runs a side, hands-to-codify read 0/3 before and 3/3 after in each of the three skills; overall verdict PASS.
  • The llm grader picks-no-mechanism read 4 of 9 after (audit-instructions 0/3, draft-auto-mode-rules 1/3, audit-prompting-postures 3/3; 0/9 before). It was not calibrated, so the five failing replies were read one by one: none picks a mechanism itself. The audit-instructions replies name the class of fix and the candidates codify chooses from. Reading note.

Left out: the cases were not re-run on this PR's head. The runs above loaded copies of these cases under p17326b- names against PR 17326's head; the run's note records that no grader, bar or case changed after the first run. Also not tested: that the real /corrections:codify accepts the hand-off, since a stand-in was loaded.

Related

Remaining

#17200 stays open. Its host steps still owed, as its body lists them:

🤖 Generated with Claude Code

melodic-automation-lanes Bot and others added 11 commits November 19, 2026 00:25
Lane-Activity: work-resolve-issue/resolve-issue
Lane-Activity: pr-unblock/address-feedback
Lane-Thread: PRRT_kwDOTCGFQM65S145
Lane-Activity: pr-unblock/address-feedback
Lane-Thread: PRRT_kwDOTCGFQM65TAt2
One case per skill issue 17158 changed (audit-instructions I5,
audit-prompting-postures P7, draft-auto-mode-rules Phase 2 item 1),
each loading a corrections stand-in plugin, per issue 17200's host
step. Each grades that the reply's PROPOSAL line names the
/corrections:codify call, that the skill picks no mechanism itself,
that it does not take the codify-unavailable fallback, and that it
does not run codify.

Refs: #17200

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The changed skills' fallback text says "/corrections:codify was not
available", so a reply that explains the rule's two branches matched the
whole-message pattern on the new text only. Match the claim on the
PROPOSAL line instead, add "unavailable", and add samples for a prose
explanation of the fallback (pass) and a fallback PROPOSAL line (fail).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 19, 2026 15:57
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-19T15:59:07.281474Z 753768f Draft marked ready
ℹ️ 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.

@github-actions

Copy link
Copy Markdown
Contributor

claude-review reviewed 753768fab6550a3d3a8d32a13ec80603d227f270: read 25 of 25 changed file(s); 0 finding(s), 0 as inline comments.

Code review: PR #17459, harness-config codify hand-off eval cases

No blocking or advisory findings.

The PR adds three eval cases (ai-must-always-rule-hands-to-codify, pp-missing-gate-hands-to-codify, dr-never-action-hands-to-codify), each with a corrections stand-in plugin and grader samples, plus a bump: none changelog fragment. No skill text changes. I read the whole diff and checked it against the repository.

Format. The cases follow the existing harness-config layout: a prompt.md with frontmatter and graders in case.yaml, the same as pp-destructive-missing-gate. The plugins: ["../..", "<stub>"] pattern is already used by other evals, for example knowledge/evals/cd-rule-candidate-hands-to-codify.

Skill text. What each case grades matches the current text:

  • I5 hands off to codify at plugins/harness-config/skills/audit-instructions/reference/criteria.md#L425-L432.
  • P7's codify hand-off is at audit-prompting-postures/reference/postures.md#L187-L192.
  • Phase 2 item 1 is at draft-auto-mode-rules/SKILL.md#L111-L120.

Each says "was not available" in its fallback sentence, which is why no-unavailable-claim checks only the PROPOSAL line. That narrowing is right.

Graders.

  • no-codify-run uses input_match: '"skill":"/?(?:corrections:)?codify"'. That relies on compact JSON, and the validator serializes tool input with separators=(",", ":") (plugins/evals/skills/validate/scripts/validate-cases.py#L1666), so it matches.
  • I traced the PROPOSAL-line regexes by hand against each pass and fail sample. In the YAML single-quoted strings, '' becomes a literal ', so isn't and wasn't match.
  • I did not run the validator or the host eval. The PR's verification results are the author's claims and I have not checked them.

Stand-in plugin. The dr-never-action copy of corrections-stub/.claude-plugin/plugin.json differs from the other two only in its description ("a harness-config skill" in place of "a harness-config audit"). That fits a drafting skill, and none of the three paths changes what the content does.

Closing issue. The PR body says Refs: #17200, not that it closes it, so there are no acceptance criteria to check.

Spend (not a finding). Each case runs 3 times, with up to 12 turns and a 600 s timeout per run. That spends subscription or API eval usage only when someone runs the evals.

Loosened-check verdict: fail (default; the prompt had no loosened_check_verdict: or loosened_check_patterns: line); patterns: 0. Every file in the PR is new, so nothing loosens a check. The prompt had no loosened_check_decision_record: line, so I did not check the citation requirement.

Advisory and manifest lines (3)
  • manifest corrections-stub plugin.json (ai-must-always-rule-hands-to-codify, pp-missing-gate-hands-to-codify): pass. These are new eval-only stub manifests with no userConfig and version 0.0.0; they are not marketplace entries.
  • manifest corrections-stub plugin.json (dr-never-action-hands-to-codify): pass. Same as the other two; only the description wording differs.
  • manifest harness-config version: pass. The changelog fragment's bump: none fits a change that adds evals only.

Verifier dropped 0 of 0 candidates.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

claude-security-review: 2 inline finding(s) on 753768fab6550a3d3a8d32a13ec80603d227f270; the summary is in this lane's pull request comment.

claude-lane: claude-security-review

@github-actions

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 753768fab6550a3d3a8d32a13ec80603d227f270: read 25 of 25 changed file(s); 2 finding(s), 2 as inline comments.

Security review: PR #17459, three harness-config codify hand-off eval cases

No security vulnerabilities found. The PR adds three eval cases under plugins/harness-config/evals/, each with a stand-in corrections plugin, plus a bump: none changelog fragment. No skill, hook, workflow, script, settings file or trust control changes.

What I checked:

  • Tools the eval sessions get. Each prompt.md sets allowed_tools: [Skill, Read, Glob, Grep]. That is read-only: no Bash, Write or web tools. The prompts ask the model not to run anything, and the no-codify-run grader fails any Skill call to codify.
  • Stand-in plugins. Each manifest has only name, version and description. There is no hooks, mcpServers, lspServers, monitors, dependencies or userConfig. The stand-in SKILL.md is prose only and ships no scripts. These plugins sit under evals/ and the case files load them as plugins: ["../..", "corrections-stub"]. The PR changes no marketplace.json entry, so installed users get nothing new on update.
  • Grader regexes. The no-unavailable-claim pattern is held to one line ([^\n]) and its gap is capped at {0,80}. It runs only over the eval's last message, so it is not a backtracking risk.
  • Instruction surface. The PR deletes, narrows or softens no standing instruction.
  • Embedded text. The PR context file has no directive aimed at this lane.

The two findings below come only from the manifest default-deny rule. name and version are not in the inert set when they are added, so I list them as manifest flags. There is no exploit path: nothing in these manifests runs code or reaches users on update.

Spend: when run, each new case uses 3 runs per arm at up to 12 turns, paid from prepaid model credit. This is not a hold.

critical-findings: 0

Manifest lines (2)
  • manifest name: flag, added "name": "corrections" in three eval-only stand-in manifests (ai-must-always-rule-hands-to-codify, dr-never-action-hands-to-codify, pp-missing-gate-hands-to-codify corrections-stub/.claude-plugin/plugin.json). It takes the real corrections plugin's namespace, but only in eval sessions that load the stub. No marketplace entry lists it, so installed users get nothing.
  • manifest version: flag, added "version": "0.0.0" in the same three eval-only stand-in manifests. It runs nothing and is not published.

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

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant