Skip to content

fix(event-storming): keep simulation's shell calls single and absolute - #13809

Merged
kyle-sexton merged 2 commits into
mainfrom
feat/7296-event-storming-simulation-paths
Nov 6, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
feat/7296-event-storming-simulation-paths

Conversation

@kyle-sexton

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

Copy link
Copy Markdown
Member

Refs: #7296

Summary

The event-storming simulation-light-skips-scorer eval was INVALID twice in the #7296 cutoff runs. With the skill loaded, the runs chained several steps into one Bash command: cd into the skill directory, bash .../lib/read-verification.sh, sed of reference files, and an ls of the run's plugin-data directory. The eval sandbox denied each of these. Calls that touched only the plugin-data directory were allowed.

Fix

skills/simulation/SKILL.md:

  • "Scoring in a fresh context": read-verification.sh runs alone, as its own Bash call, with no cd and nothing chained to it.
  • "Cross-run state": the run-state store and the skill's reference files are read with the Read tool by absolute path. A missing history.jsonl means no prior run. They are never read with cd, ls, cat or sed in a shell.

Verification

Local claude plugin eval pair on identical cases, case simulation-light-skips-scorer, 3 runs per arm:

Run Head Verdict With skill Without skill
After 3d6ab26483 (this PR) VALID 1 / 1 / 1 0.5 / 0.5 / 0.5
Before origin/main INVALID 1 / 0 / 1 0.5 / 0.5 / 0.5
  • Before: INVALID on 2 denied chained Bash calls (cd / ls / cat / sed compounds into the reference files and the run-state store), the defect this PR removes.
  • After: the only denials were Reads of the run's own plugin-data history.jsonl, which the judge does not count.

validate-cases.py plugins/event-storming: 0 FAIL. check-affected.sh --tests: green.

Remaining on #7296

The other plugins' rows in the #7296 cutoff table.

Related

🤖 Generated with Claude Code

kyle-sexton and others added 2 commits November 6, 2026 13:46
With the skill loaded, runs chained cd into the skill directory,
read-verification.sh, sed of reference files and an ls of the plugin
data directory into one Bash command, which the eval sandbox denied.
The skill now says to run read-verification.sh alone and to read the
run-state store and reference files with the Read tool.

Refs: #7296

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 6, 2026 20:17
@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-06T20:18:02.477234Z
We couldn’t complete this review. Comment @codex review to try again.
c0f8290 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 6, 2026

Copy link
Copy Markdown
Contributor

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

Security review: no security issues found

I read every hunk of both changed files. Neither file is on a trusted path.

  • plugins/event-storming/skills/simulation/SKILL.md: the change makes the skill's instructions stricter. read-verification.sh must now run alone as its own Bash call, with no cd and nothing chained to it. The run-state store and the skill's reference files must be read with the Read tool by absolute path, not with cd, ls, cat or sed. No standing instruction is deleted, narrowed or softened. The rule against writing generated state into ${CLAUDE_PLUGIN_ROOT} or the consumer's project tree is still there, unchanged. The script path and its fixed arguments are the same as before, so no new command, path or input reaches a shell.
  • .changes/event-storming/feat-7296-event-storming-simulation-paths-9d3f2b61.md: a new changelog fragment (patch bump, prose only).

Other checks:

  • No plugin manifest, userConfig key, hook, workflow or trust control is touched.
  • The PR description contains no text directed at this lane.
  • No added spend.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

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

Code review: PR #13809

No findings. I read every hunk of both changed files:

  • plugins/event-storming/skills/simulation/SKILL.md
  • .changes/event-storming/feat-7296-event-storming-simulation-paths-9d3f2b61.md

What changed. Two doc-only edits to the simulation skill:

  • In "Scoring in a fresh context", read-verification.sh must now run alone as its own Bash call, with no cd and nothing chained to it.
  • In "Cross-run state", the run-state store and the skill's reference files must be read with the Read tool by absolute path, never through cd/ls/cat/sed. A missing history.jsonl means there is no prior run.

These two edits match the PR description.

Checks

  • Consistency with the reference doc. Step 3 of simulation-evaluation.md names the script by a relative path, but it sends the reader to SKILL.md for the full command (simulation-evaluation.md#L355-L356). The new "run alone" wording in SKILL.md therefore governs that step, and the two files don't conflict.
  • The only other shell chain in the skill's references is the optional cd … && unzip step for extracting the source book (simulation-evaluation.md#L85). It touches neither the run-state store nor a reference file, so the new rule doesn't cover it.
  • Changelog fragment. bump: patch fits a behavior fix in the skill's instructions.
  • Plugin manifests. No plugin.json or marketplace.json changed, so there are no manifest lines.
  • Closing issue. The PR only refers to Run the eval suites deferred by the upstream-pointer sweep PRs #7296 (Refs:) and closes no issue, so there are no acceptance criteria to check.
  • Verification. The local eval results in the PR body (simulation-light-skips-scorer going from INVALID to VALID, validate-cases.py reporting 0 FAIL) are the author's claims. I could not run the eval here, so they are unverified.
  • Embedded instructions. The PR context contains no embedded instructions.

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