Skip to content

fix(implementation): carry the language idioms line through implement-dispatch - #16953

Merged
kyle-sexton merged 2 commits into
mainfrom
fix/implement-dispatch-idioms-line
Nov 17, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
fix/implement-dispatch-idioms-line

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Closes #16703

Summary

An unattended /implementation:implement run hands its work to implement-dispatch, which never mentioned the language idioms: line, so the line #16708 made required was still missing from the final report in 2 of 6 opus runs. This carries the line through the dispatched path and commits the eval case in a form that runs.

Fix

  • implement-dispatch: each worker brief carries a Language idioms: item pointing at /implementation:implement Step 2's rule, the worker returns each language idioms: line verbatim, and the "All phases complete" hand-off passes them to Step 5.
  • implement Step 5: the completion reply repeats each line Step 2 printed or a dispatched worker returned.
  • The case is committed as a runnable claude plugin eval case directory: a setup script that stages the max-batch-repo fixture as a git repository on fix/max-batch (and writes .work/ into its .git/info/exclude, which the sandbox otherwise denies the run), Write, Edit and Bash, 60 turns.
  • Its regex grader differs from fix(implementation): require the language idioms none-declared line in implement's output #16708's literal: it ignores letter case and allows up to four non-word characters after the colon, because runs print the line as "Language idioms: …" at a sentence start and as "Language idioms: …" with a bold label.

Verification

Opus, with-plugin arm only, case implement-type-decision-no-idioms-declared-proceeds-on-neutral-rules, through claude plugin eval --scaffold:

  • Before this change (main's skills): the line reached the final message in 4 of 6 runs. Every run invoked implement-dispatch; in the two misses the word "idiom" appears in no assistant text.
  • With this change, 9 runs in two batches (6, then 3): the line is in the final message in 9 of 9. The literal case-sensitive pattern from fix(implementation): require the language idioms none-declared line in implement's output #16708 matches 8 of 9; the committed grader matches 9 of 9 (the batches ran with the case-insensitive literal, which matched 8 of 9; the ninth is the bold-label form).
  • Validity gate: the 3-run batch is VALID. The 6-run batch is INVALID on two runs that were denied a search of the plugin's own directory while looking for the fixture; counting denial-free runs only, the literal pattern matches 6 of 7.
  • check-changed-skills.sh --merge-base, check-changelog-fragments.sh --check, validate-cases.py plugins/implementation/evals (0 FAIL) and check-affected pass.

Left out: sonnet, the without-plugin arm, and judge calibration (the four llm graders are uncalibrated and decide nothing here).

Related

🤖 Generated with Claude Code

kyle-sexton and others added 2 commits November 17, 2026 13:43
…-dispatch workers

Unattended runs of implement route through implement-dispatch, whose
briefs never asked for the `language idioms:` line, so a worker's line
did not reach the final report. Brief item 21 has the worker resolve
the idioms by implement's type-decision rule and return each line; the
final report repeats every returned line.

Commit case 46 as a runnable plugin eval case whose regex grader
matches the line case-insensitively, with a capitalized pass sample.

Refs: #16703

Co-authored-by: Claude Opus 5.5 <[email protected]>
A run that printed "**Language idioms:** none declared for Python" was
graded as missing the line; the pattern now allows up to four non-word
characters after the colon.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 17, 2026 21:41
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 17, 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-17T21:43:18.081822Z 632f8f3 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-security-review reviewed 632f8f30939a94bffcabe969331478dd81644aa5: read 11 of 11 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #16953

I found no security issues in this change.

I read the whole change for all 8 files in scope. The four copies of expectation-2.json (expectation-3.json through expectation-5.json) have the same content at the same kind of path, a grader sample, so they behave the same as the first file.

What changed and what I checked

  • implement-dispatch/SKILL.md and implement/SKILL.md. These are additions only:

    • Item 21 adds a Language idioms: brief line, which points at the plugin's own ${CLAUDE_PLUGIN_ROOT}/reference/ecosystem-resolution.md.
    • The attempts paragraph now names item 21.
    • The "All phases complete" hand-off and the Step 5 completion reply now repeat the idioms lines that workers return.

    No standing instruction is deleted, narrowed or softened. No commit, push or authority rule changes. The new text is report wording that reads a file inside the plugin, so the instruction-surface lens finds nothing to flag.

  • scaffold.sh. This is a new eval setup script. It copies three fixture files from a fixed path relative to the script, creates a local git repository with a placeholder identity ([email protected]), and appends .work/ to that repository's .git/info/exclude. It uses no outside input, network, secrets or tokens. All variables are quoted.

  • case.yaml, prompt.md and the grader samples. These are eval definitions only. The case grants Write, Edit and Bash inside the eval sandbox. They reach no CI lane, token or trusted path.

  • .changes/ fragment. This is a changelog file only.

No changed file matches a trusted-path glob. No .claude-plugin/plugin.json or marketplace.json changed, so no manifest lines are needed. No trust control, merge hold, token scope or kill switch is touched. The PR context file contains no embedded instructions aimed at the lane.

Spend: the new eval case allows up to 60 turns and 900 seconds per run when evals run. That draws on prepaid API credit only and is not a hold.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

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

Code review: no findings

The PR carries the language idioms: line through /implementation:implement-dispatch:

  • New brief item. Item 21 adds a Language idioms: line to each worker brief. It points the worker at Step 2's "Language idioms (type decisions)" rule in /implementation:implement and at reference/ecosystem-resolution.md.
  • Attempt briefs. Competing-attempt briefs now carry item 21 as well.
  • Hand-off. The "All phases complete" hand-off passes every line a worker returned to Step 5. Step 5 item 7's completion reply now repeats those lines next to the ones Step 2 printed.
  • New eval case. The PR adds a claude plugin eval case directory for the no-declaration branch.

What I checked

  • Cross-references. Every reference resolves. The Step 2 rule exists at implement/SKILL.md#L110 and requires the line both at the first type decision and in the final report. No other file in the plugin lists the brief items, so nothing else needed item 21.
  • scaffold.sh path. The relative path (../../skills/implement/evals/fixtures/max-batch-repo) points at the fixture. The fixture holds exactly the three files it copies, and those match the files of evals.json entry 46.
  • New case vs. entry 46. The prompt and the five expectations match evals.json entry 46.
  • Regex grader. language idioms:\W{0,4}none declared for with flag i matches the plain form, the capitalized form and the bold-label form (**Language idioms:** none… leaves three non-word characters after the colon). It does not match a worker's Language idioms: none (<reason>) brief line.

Closing issue #16703

  • Required line in the skill text: met. fix(implementation): require the language idioms none-declared line in implement's output #16708 made the line required in implement, and this PR extends it to the dispatched path.
  • Deterministic grader, and a prompt that doesn't say no idioms file exists: met. The prompt never says that.
  • Grader passes in at least 5 of 6 opus runs: not verified here. The author reports 9 of 9; that figure comes from the PR description and I did not run it.
  • Test coverage: the end-to-end case covers the dispatched path, since the author reports every run invoked implement-dispatch. Item 21 has no brief-level case of its own, unlike item 20's id-brief-observability-line.

Loosened checks: the eval grader is a new check, not a loosened one, and evals.json is unchanged. No loosening found. The prompt had no verdict or patterns line, so I used the defaults.
Loosened-check verdict: fail (default; no wrapper line); patterns: 0

Plugin manifests: no plugin.json or marketplace.json changed. The changelog fragment's bump: patch fits a behavioral fix.

Spend (not a hold): each run of the new eval case uses up to 60 turns and 900 s of prepaid model usage.

Verifier dropped 0 of 0 candidates.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 17, 2026
Merged via the queue into main with commit c2e1f51 Nov 17, 2026
83 of 98 checks passed
@kyle-sexton
kyle-sexton deleted the fix/implement-dispatch-idioms-line branch November 17, 2026 21:58
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 17, 2026
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.

Make implementation:implement always report when no language idioms file is declared

1 participant