Skip to content

fix(animation): run learn-style scripts as single calls and read style.json with Read - #13894

Merged
kyle-sexton merged 2 commits into
mainfrom
fix/13768-animation-learn-style-single-calls
Nov 7, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
fix/13768-animation-learn-style-single-calls

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Refs: #13768

Summary

Makes animation:learn-style run its scripts as single calls and read style.json with the Read tool, so an eval run no longer trips the sandbox on chained commands, host-package probes or plugin-data listings.

plugins/animation/skills/learn-style/SKILL.md lines 20-21 and 41 now say:

  • run each pydeps.py run -- <script> alone, as its own Bash call;
  • never probe host Python, numpy or cv2, and never run pydeps.py install or touch plugin data yourself;
  • read style.json with the Read tool.

This follows #13809 and #13784.

Fix

  • plugins/animation/skills/learn-style/SKILL.md: the three rules above.
  • A bump: patch changelog fragment for animation.

Verification

Both sides, since the skill changed. Laptop lanes, run from rsync copies outside git; Claude Code 2.1.319, model claude-opus-5-5, judge opus, --runs 3, auto memory off.

Left out: a before score for ls-fresh-runs-controls-first, since main's runs were INVALID.

Remaining on #13768

None for the learn-style cases. The issue stays open for its other cases.

Related

🤖 Generated with Claude Code

kyle-sexton and others added 2 commits November 6, 2026 19:47
Each pydeps.py run call runs alone with no cd, --help or chained command;
the skill never probes the host Python, numpy or cv2, never runs
pydeps.py install, and never lists the plugin data directory, and it reads
a pack's style.json with the Read tool instead of python3 -c. Lines the
eval cases cite keep their numbers.

Refs: #13768

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

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

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

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-07T02:00:09.684092Z
We couldn’t complete this review. Comment @codex review to try again.
246b91b 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

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

Security review: PR #13894, no security issues found

I read every hunk of both changed files:

  • plugins/animation/skills/learn-style/SKILL.md: this is a change to skill instructions. It only adds limits on what the session does.
    • Each pydeps.py run call must run alone, with no chained cd, --help or other commands.
    • The skill must not probe host Python, numpy or cv2.
    • It must not run pydeps.py install.
    • It must not list, create or read anything under ${CLAUDE_PLUGIN_DATA}.
    • It reads style.json with the Read tool instead of python3 -c, cat, jq or ls.
  • .changes/animation/fix-13768-learn-style-single-calls-4b8e2c71.md: a new changelog fragment (bump: patch) with prose only.

Instruction-surface lens: I checked the old wording against the new.

  • The only removed text is the old two-line invocation sentence. It comes back unchanged as one longer line, with new limits added after it.
  • No rule is deleted or softened, so no guardrail is lost.
  • The change also lowers the chance of shell injection, because the new rules forbid shelling out to read a file.
  • I did not need to look up any rule in the exception register.

Trust controls and manifests:

  • Neither changed file matches a trusted-path glob.
  • No plugin.json or marketplace.json changed.
  • No token, kill switch, merge hold or trusted-actor check is touched.

Embedded text: none found in the PR context.

Spend: none. This is a doc-only skill change.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

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

Code review: no findings

I read every hunk of both changed files:

  • plugins/animation/skills/learn-style/SKILL.md
  • .changes/animation/fix-13768-learn-style-single-calls-4b8e2c71.md

What changed. The learn-style skill body now says:

  • Run each pydeps.py run -- <script> alone, as its own Bash call: no cd, no --help first, nothing chained to it.
  • Never probe host Python, numpy or cv2, never run pydeps.py install, and never list, create or read anything under ${CLAUDE_PLUGIN_DATA}.
  • Read style.json with the Read tool, not python3 -c, cat, jq or ls.

Checks against the code

  • The new text says that when pydeps.py run exits 2 it prints a repair line, which the skill reports. That matches the script: run() returns 2 and writes the repair line to stderr when the packages are missing (pydeps.py#L242-L250), and the exit-code list in its docstring says the same (pydeps.py#L16-L17). "Report the repair line" and "never run pydeps.py install" don't contradict each other: the skill reports the line and leaves running it to the user.
  • The page does give each script's arguments, so dropping the --help probe takes nothing away. The Loop section lists controls.py measure/check/selftest, learn.py, render.py and inkstats.py with their arguments.
  • The plugin-data ban doesn't block the skill's own work. Packs live in styles/<name>/ in the plugin, not under ${CLAUDE_PLUGIN_DATA}, and the venv there is made by pydeps.py itself.
  • The .claude/rules files that apply are skill-bodies-state-current-rules.md and cost-claims.md. The change breaks neither: it restates no upstream behavior (the exit-2 statement is about this repo's own script), makes no cost claims, and ## Next is still before ## Gotchas.
  • The changelog fragment's bump: patch fits a wording-only fix.
  • The PR only refs test(evals): re-author protected-path cases and run unmeasured cases left after #7296 #13768 (Refs: #13768), so it closes no issue and there were no acceptance criteria to check against.

Verification. The eval results in the PR body (head VALID with 1.00 / 0.50; main INVALID on the probe and listing shapes) are the author's claims. I did not run them.

There are no prior findings from this lane, no settled threads, no paved-path standards row, and no plugin manifest changes.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 7, 2026
Merged via the queue into main with commit f9ed80b Nov 7, 2026
56 checks passed
@kyle-sexton
kyle-sexton deleted the fix/13768-animation-learn-style-single-calls branch November 7, 2026 02:16
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