Skip to content

fix(discovery,planning): point setup's fork default at the docs and add two eval cases - #12272

Merged
kyle-sexton merged 6 commits into
mainfrom
host-run/11823-eval-gated-drift-fixes
Nov 2, 2026
Merged

kyle-sexton merged 6 commits into
mainfrom
host-run/11823-eval-gated-drift-fixes

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Nov 2, 2026 •

Copy link
Copy Markdown
Member

Refs: #11823

Summary

Ships one of the five eval-gated #6916 drift fixes after a before/after claude plugin eval measurement, and adds eval cases for the two skills measured. The draft-goal-condition cut showed a loss and is left out.

Fix

  • discovery:setup: the fork-availability row no longer says fork mode is off by default in claude -p and the SDK. It reads the unset default from sub-agents, Turn fork mode off, with an as-of date (2026-11-01) and a recheck trigger. Upstream now says fork mode is on by default from v2.1.302.
  • New case plugins/discovery/evals/su-fork-default-print-mode: asks the check for the unset fork default in -p runs on 2.1.316.
  • New case plugins/planning/evals/dg-workflow-keyword-unattended: a Pro-plan cron claude -p run that wants a workflow fan-out. It grades that the ultracode keyword is dead in -p and that Pro needs the Dynamic workflows row in /config.

Verification

Claude Code 2.1.316, subscription login, --ablation none --runs 3 -j 2, deterministic graders, each run in a capped scope. Plugins were copied outside the git checkout, because the CLI refuses a plugin whose git directory registers too many linked worktrees.

case before (origin/main skill) after (edited skill) run-validity
su-fork-default-print-mode 0, 1, 1 1, 1, 1 VALID both (warnings: skill fired, models)
dg-workflow-keyword-unattended 1, 1, 1 0.67, 0.67, 0.67 VALID both (warning: models)
  • noise-report.py --baseline gives n too small to call for both (one case each).
  • setup: from spot-reading the traces, the failed before run reported the right default ("ON by default") on a line that also quotes the skill's stale "off", so the regex missed it. No loss; the change ships.
  • draft-goal-condition: pro-config-row went 3/3 to 0/3. The eval sandbox denied network to code.claude.com, so after the cut the skill could not read its pointers, and it declined to answer the Pro question. That counts as a loss under skill-criteria.md, so the cut is reverted and only the case ships.
  • scripts/check-affected.sh --tests on the committed head: 14 passed, 2 skipped.

Remaining on #11823

Related

🤖 Generated with Claude Code

kyle-sexton and others added 4 commits November 1, 2026 23:22
…dd two eval cases

discovery:setup no longer states that fork mode is off by default in
claude -p and the SDK. It reads the default from the sub-agents page's
"Turn fork mode off" section, with an as-of date and recheck trigger.

New eval cases: su-fork-default-print-mode (discovery) and
dg-workflow-keyword-unattended (planning). The draft-goal-condition
ultracode cut was measured with the second case, showed a loss, and is
left out.

Refs: #11823

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

chatgpt-codex-connector Bot commented Nov 2, 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-11-02T04:59:48.450308Z bc4384c 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

github-actions Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: PR #12272 (changes since 79d828f)

I found no security issues in the changes since the last review. I read every hunk of both in-scope files in .claude-lane/incremental.diff.

critical-findings: 0

What changed

  • plugins/discovery/evals/su-fork-default-print-mode/case.yaml
    • The fork-on-in-print-mode regex grader's negative lookahead now also rejects a few more negations, so those answers no longer count as "on":
      • not/never followed by on or enabled
      • contracted forms that end in n't on or n't enabled
    • The YAML-escaped '' is a literal apostrophe.
  • plugins/discovery/evals/su-fork-default-print-mode/samples/fork-on-in-print-mode.json
    • Two new fail samples cover those cases: "isn't on by default" and "is not enabled by default".

Why this is out of security scope

  • These are eval fixtures that an operator runs with claude plugin eval. Installed users never run them.
  • The regex only grades model output inside that eval. It is not an injection, privilege or credential surface.
  • The change removes no instruction. It only makes a grader stricter.

Checks

  • Trusted paths: neither in-scope file matches a TRUSTED PATHS glob.
  • Plugin manifests: no plugin.json or marketplace.json changed.
  • Trust controls: no workflow, action, token scope, kill switch or merge hold is touched.
  • PR context: I found no text in it aimed at this lane.
  • Prior findings: the only earlier post is the previous clean summary, so nothing carries over. The round cap (3) was not reached.

Spend (not a finding): the eval case uses subscription or API usage only when someone runs it. This edit changes no turn limits or models.

@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: bc4384cfb2

ℹ️ 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".

@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-review: 3 inline finding(s) on bc4384cfb2a62b009508772b2aefaa265eca98f8; the summary is in this lane's pull request comment.

claude-lane: claude-review

Comment thread plugins/discovery/skills/setup/SKILL.md Resolved
@github-actions

github-actions Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review: PR #12272 (incremental, 79d828f → aaad7ab)

I read every hunk of .claude-lane/incremental.diff in both files in scope. I used the full diff to see all the samples for the grader.

What changed: this increment fixes the one advisory finding from round 2 (discussion_r4439091315). It is now resolved. The owner's reply marks it fixed, and the settled-threads file shows no lines changed since then.

  • fork-on-in-print-mode: the negative lookahead now uses \b(?:not|never)\s+\**(?:on|enabled)\b|n't\s+\**(?:on|enabled)\b instead of \bnot\s+on\b. YAML single quotes write n''t, which reads as n't, so the escape is correct.
  • samples/fork-on-in-print-mode.json: two new fail samples, "isn't on by default" and "is not enabled by default".

Samples traced by hand against the new pattern (flags mi):

  • Pass 1 ("is on by default in claude -p runs on 2.1.316"): nothing rejects it, and on by default accepts it. pass
  • Pass 2 ("non-interactive runs: on by default"): : on accepts it. pass
  • Pass 3 ("is on, not off, by default"): not off doesn't match not\s+(on|enabled)\b, and off, by doesn't match off\s+by\s+default. is on accepts it. pass
  • Pass 4 (quotes the stale "off" and answers "ON by default"): it has no n't, not on or off in. : ON accepts it. pass
  • New fail "isn't on by default": n't on rejects it. fail, as expected
  • New fail "is not enabled by default": not enabled rejects it. fail, as expected
  • The other fail samples were already traced last round. The wider lookahead only rejects more lines, so they still fail.

Findings: none.

No plugin manifest changed in this increment. I found no embedded instructions in the PR context, the settled-threads file or the prior-findings file. This is round 3 of a cap of 3. The file says past the cap: no, so the cap did not apply.

Not verified: the author says that, run offline on the kept setup traces, the eval scores 1,1,1 before and 1,1,1 after. I did not check this. I had no shell, so I ran no graders, and the sample results above come from tracing the pattern by hand.

@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-review: 1 inline finding(s) on 79d828f1bca0b0b55d4a7e6e906656f05dd02f65; the summary is in this lane's pull request comment.

claude-lane: claude-review

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