Skip to content

fix(prototype): grade build-script pages in ed-controls-everything-default - #17485

Merged
melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-17350-44582040816-1
Nov 19, 2026
Merged

melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-17350-44582040816-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #17350

Summary

Opened by the work-resolve-issue lane. The run's own summary:

The manifest-element, manifest-groups and runtime-inlined graders gain one regex branch each. It passes a Write of a .mjs, .cjs, .js or .py build script that calls a file write, names an .html file and holds the grader's text: the manifest element, the layout, typography and color groups (JSON, JavaScript object or Python dict keys), or the runtime's path or defining line. A later Bash command must run that script with node, bun or python. I accepted the script-assembled text instead of grading the built file because the regex files target lists created paths only, and { source: file, path } takes one fixed path while the page lands in a random mktemp directory. The older branches are unchanged, so every existing sample keeps its verdict.

Not verified

  • eval-cases sample check (python3 plugins/evals/skills/validate/scripts/validate-cases.py, which grades each sample under node and bun): CI-only here and no interpreter may run in this lane, so the samples were traced by hand and by the review subagent, not by a regex engine; left to the PR's CI
  • the run-check tightening and the three fail samples added after the review were traced by hand only, not re-reviewed by a second subagent
  • a re-run of the eval case on the changed graders is a host step after the PR opens, per the issue; no eval ran here
  • tidy: passes 1-3 had nothing to do (the JSON lines are quoted sample answers), pass 4 tightened the changelog fragment, and pass 5's deterministic ai-slop detector (detect.sh) could not run because the lane runs only its named wrappers; its rubric was applied by reading and found nothing
  • shapes the new branches still miss: a build script written by a Bash heredoc with unquoted-key or Python-dict groups (manifest-groups), a script run through npm run or a package script, a pathlib '/'-joined runtime path, and a manifest kept in a separate manifest.json
  • manifest-groups' first, older branch still passes a never-run Write of any file type whose manifest uses double-quoted JSON keys; left unchanged so the existing samples keep their verdicts
  • the new manifest-groups branch checks the three groups, not the prototype-controls element; manifest-element checks the element, and the case needs both to pass

Fix

  • plugins/prototype/evals/ed-controls-everything-default/graders/manifest-element.md: new alternative for a run build script that holds the prototype-controls JSON script element
  • plugins/prototype/evals/ed-controls-everything-default/graders/manifest-groups.md: new alternative for a run build script whose manifest holds the layout, typography and color groups in JSON, JavaScript-object or Python-dict key form
  • plugins/prototype/evals/ed-controls-everything-default/graders/runtime-inlined.md: new alternative for a run build script that reads notes-bridge/controls.js (a slash or path.join form) or holds the runtime's defining line
  • plugins/prototype/evals/ed-controls-everything-default/samples/manifest-element.json: 2 build-script pass samples (build.mjs, build.py) and 4 fail samples (builds no controls, never run, only printed by cat, a read-only check script)
  • plugins/prototype/evals/ed-controls-everything-default/samples/manifest-groups.json: 2 build-script pass samples (JavaScript object, Python dict) and 3 fail samples (no layout group, builds no controls, never run)
  • plugins/prototype/evals/ed-controls-everything-default/samples/runtime-inlined.json: 2 build-script pass samples (absolute path, path.join parts) and 4 fail samples (builds no controls, manifest without the runtime, never run, only line-counted by wc)
  • .changes/prototype/work-resolve-issue-issue-17350-44582040816-1-b3208b7d.md: patch fragment describing the grader change

Verification

The runner ran each check from the base copy against d816bc5:

  • scripts/check-changelog-fragments.sh --check: passed
  • scripts/check-changed-skills.sh --merge-base: passed

The run reports:

Left out: the items under Not verified.

Related

#17350

Lane-Activity: work-resolve-issue/resolve-issue
@github-actions

Copy link
Copy Markdown
Contributor

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

Security review: PR #17485

No security issues found. I read the whole diff for all 7 changed files.

The PR changes three regex graders in the ed-controls-everything-default eval of the prototype plugin (manifest-element.md, manifest-groups.md, runtime-inlined.md). It also adds pass and fail samples to the matching samples/*.json files and adds one patch changelog fragment under .changes/prototype/. Each grader gains one new regex alternative. That alternative matches a Write of a .mjs, .cjs, .js or .py build script that a later Bash command runs.

What I checked:

  • Trusted paths: none of the changed files match a TRUSTED PATHS: glob. None is a plugin manifest, workflow, action, hold script, token-broker or trusted-actor file.
  • Trust controls: nothing here touches the trusted-trigger check, the lanes token scope, the kill switch, the token broker's grants or any merge hold. No trust control is widened.
  • Instruction surface: no standing instruction is deleted, narrowed or softened. The only text changes are eval grader patterns and sample data, and each pattern only adds an alternative.
  • Untrusted input: the graders run over eval traces from the eval harness, not over text from pull requests, issues or comments. The new sample strings are fixture data and are never run. They show no leak, compromise or charge path.
  • Regex cost: the new branches use [\s\S]*? lookaheads. In the worst case these slow down grading of a large trace. That would be a correctness or performance matter for the code-review lane, not a security finding. Trace content does not reach any credentialed action through these graders.

The PR context file has no embedded directives aimed at this lane.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

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

Code review: PR #17485, the build-script branches in the ed-controls-everything-default graders

No blocking or advisory findings. I read every hunk of all 7 changed files in .claude-lane/pr.diff, plus the full head copies of the three sample files.

What changed. The manifest-element, manifest-groups and runtime-inlined graders each gain one new regex branch. The branch needs three things:

  • a Write of a .mjs/.cjs/.js/.py build script that calls a file write and names an .html file;
  • the grader's text inside that script;
  • a later Bash command that runs the same file name with node, bun or python. The regex checks this by back-referencing the captured file name.

How I checked it. I traced the patterns by hand only. I did not run a regex engine.

  • Group numbering: runtime-inlined's third branch already owns group 1, so the new branch correctly uses \2. The other two graders use \1.
  • Excluded shapes: the (?<!stdout)\.write lookbehind keeps the read-only check.mjs sample failing. The run lookahead only accepts node/bun/python, so the cat and wc -l samples and the never-run samples fail as intended.
  • Existing verdicts: none of the existing fail samples is a Write of a .js/.py file. The new branches cannot match them, and pass samples can only gain matches, so every existing sample keeps its verdict.

Closing issue #17350.

  • Graders pass a build-script run and still fail one that builds no controls or leaves a group out, with a pass and a fail sample per grader: met. Each grader has two build-script pass samples and three or four build-script fail samples, covering no controls, a missing layout group, a missing runtime and a script that never runs. The samples are checked by validate-cases.py in CI. I am relying on the author's claim that CI runs it; I did not confirm it.
  • Existing samples still read as before: met, by the trace above.

The PR body lists shapes the new branches still miss and the older manifest-groups looseness. I am leaving those as the author documented them, out of this issue's scope.

Loosened check. Each new branch makes a grader accept more (kind 9, "a check's own code changed so it accepts more"). The closing issue names this loosening, "by accepting the script-assembled text", and says why: the graders never see a page that a build script assembles. The new branches stay within that build-script shape, so this passes. There was no loosened_check_spec: line, so I took the closing-issue text as the spec and did not check who wrote it.

Loosened-check verdict: fail (default; the prompt had no loosened_check_verdict: or loosened_check_patterns: line); patterns: 0. The prompt had no loosened_check_decision_record: line either, so I did not check the citation requirement.

Rules and other checks.

  • .claude/rules/eval-case-transcripts.md applies to these files and is met: the samples are synthetic and hold no machine-specific paths.
  • REVIEW.md has no criteria for eval graders.
  • No plugin manifest changed.
  • No changed file matches a trusted-path glob.
  • The changelog fragment's bump: patch fits a grader fix.

Spend: none. The change only touches graders and samples.

Verifier dropped 0 of 0 candidates.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head d816bc5b6ab96c00720b021f8ba20afb7fee2a25, the head its arming checks judged.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Merge-Risk: max=MEDIUM demote=false head=d816bc5b6ab96c00720b021f8ba20afb7fee2a25 rubric=10.4.0 rater=claude-opus-5-5 checker=claude-opus-5-5

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 19, 2026
Merged via the queue into main with commit 3fedc73 Nov 19, 2026
49 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-17350-44582040816-1 branch November 19, 2026 18:35
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit 3fedc73df4d2ddf533aba9ddc459fa570e783e72; later checks count it verified from this comment.

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.

Grade the built page in the prototype eval case ed-controls-everything-default

0 participants