Skip to content

fix(event-storming): resolve the markdown board directory before the first write - #17409

Merged
kyle-sexton merged 2 commits into
mainfrom
fix/event-storming-defer-board-dir-17262
Nov 19, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
fix/event-storming-defer-board-dir-17262

Conversation

@kyle-sexton

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

Copy link
Copy Markdown
Member

Refs: #17262

#17262 stays open after this merges. Two of its items remain: a run that scores simulation-default-markdown VALID with the score recorded on the issue (the post-merge dispatch below), and identifying the 3 of 5 denials in run 44475945897 that its log does not show (see Related).

Summary

The event-storming simulation skill resolved the markdown board directory with three Bash steps (git rev-parse --show-toplevel, then two plugin scripts) before its first reply. No CI eval route grants Bash, so in 2 of 3 with-arm runs of simulation-default-markdown Sonnet called git rev-parse --show-toplevel, got No such tool available: Bash, and the case scored INVALID (run 44473802409, run 44475945897).

Fix

  • SKILL.md "Where markdown boards go": the board directory, and the markdown backend's check_available, now resolve just before the first board write, never before the first reply.
  • SKILL.md "Board backend": when the fallback rule chose markdown, the first reply calls it the default backend. A choice made by --backend, a .md path or the option is named with that rule as the reason. A markdown run that will write a new board names the docs/event-storming default directory and says the location is confirmed just before the first board write. No markdown run runs a command to find the directory before its first reply. The same run's with-arm runs 1 and 2 also missed the case's markdown-default grader, so a default run now says "default" outright.
  • SKILL.md Setup step, the reference/agentic-simulation.md preflight and the reference/simulation-evaluation.md Pre-Simulation Checklist all point at the new timing. Every other step is unchanged: the exit-5 fallback, the stop before any workshop phase when the check fails, and the backend order.

Verification

  • select-plugins.mjs against this branch (--repo <worktree> --base origin/main --head HEAD) prints plugins/event-storming, exit 0, so the eval: run label route accepts the change.
  • The eval: run label route runs the event-storming suite with deterministic graders and no tool beyond the read-only set. It grants no Write, so this case's no-write grader cannot fail there. The label run checks validity (no Bash denial before the first reply) and the reply graders.
  • The case's prompt names no backend, so markdown comes from the fallback rule and the reply still calls it the default.
  • After merge, a workflow_dispatch of PR Run Plugin Evals with case=simulation-default-markdown and allow-tools=Write confirms no-write with Write granted. Its verdict and scores go on fix(event-storming): give the simulation-default-markdown eval case the tools it needs to score #17262.

Related

  • The other 3 of the 5 denials in run 44475945897 do not show in its log. Its "Print Bash error excerpts" step prints Bash errors only, which accounts for the two git rev-parse calls, and the uploaded artifact carries no traces.

Not in this PR

  • read-verification.sh, which SKILL.md calls in "Scoring in a fresh context", is still missing from the skill's allowed-tools. Adding it changes allowed-tools, and select-plugins.mjs refuses any frontmatter key outside SAFE_KEYS, so the eval: run route would refuse this PR. It needs its own PR, verified by a post-merge dispatch.

🤖 Generated with Claude Code

…first write

The simulation skill resolved the board directory with three Bash steps
before its first reply, so a session without Bash (every CI eval route)
hit "No such tool available: Bash" and the simulation-default-markdown
case scored INVALID. The directory and markdown's check_available now
resolve just before the first board write; the first reply names
markdown as the default backend and docs/event-storming as the default
directory, and says the location is confirmed before writing.

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

chatgpt-codex-connector Bot commented Nov 19, 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-19T07:15:40.820039Z ad24e05 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.

@kyle-sexton kyle-sexton added the eval: run Runs the changed plugins' eval suites on this PR's head (pr-run-plugin-evals.yml). label Nov 19, 2026
@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: PR #17409 (incremental, blocking only)

No security issues found. This was an incremental review of the changes since ad24e054. I read every hunk of both files in scope. This lane had already reviewed an earlier head, so this pass reported only CRITICAL and IMPORTANT findings.

What changed since the last review:

  • plugins/event-storming/skills/simulation/SKILL.md "Board backend": the first reply calls the backend the default only when the fallback rule picked markdown. When another rule picked the backend, the reply names that rule. The docs/event-storming directory line now applies only to a markdown run that will write a new board. The rule that no command runs before the first reply is kept and reworded.
  • plugins/event-storming/skills/simulation/reference/simulation-evaluation.md Pre-Simulation Checklist: the backend preflight now says markdown runs check_available just before the first board write. The rest of that item is unchanged: stop on failure, never switch backends unasked, and never reach a board through raw REST, token or curl calls.

What I checked:

  • Removed or softened instructions. Only the wording and the timing of the reply and the preflight change. The rules that guard board writes are still there:
    • the check_available stop
    • the ban on switching backends unasked
    • the ban on raw REST, token or curl calls
  • Write safety. check_available still runs before the first board write. No write path, permission scope or tool grant changes.
  • Inputs and manifests. No new command and no new untrusted input. No manifest, allowed-tools, hook or workflow is touched, and neither file matches a trusted path.
  • Instruction text in the PR context. None found.

Spend: none beyond normal lane runs.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

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

Incremental review: 304f704 (since ad24e05)

I found no blocking findings. This lane already reviewed an earlier head, so this review was blocking only: advisory findings were dropped.

The push fixes both findings from the last review:

  1. SKILL.md "Board backend" (L55–L59). The first reply now says the backend is the default only when the final fallback rule picked markdown. If --backend, a .md path or the board_backend option picked it, the reply names that rule as the reason. The line about the docs/event-storming directory is now limited to markdown runs that will write a new board. The line saying no command runs before the first reply now covers every markdown run.
  2. simulation-evaluation.md Pre-Simulation Checklist (L86). The backend preflight item now says markdown runs check_available just before the first board write, per SKILL.md "Where markdown boards go", never before the first reply. It now matches SKILL.md L65–L70 and the agentic-simulation.md preflight.

Closing issue #17262: nothing new since the last review. The PR still leaves the VALID-score item and the 3 unidentified denials open, which the PR body says plainly. The PR's verification plan (the eval: run label route and a dispatch after merge) is the author's claim; I did not check it. Those eval runs use only prepaid credits or subscription usage.

I found no embedded instructions in the PR context. Loosened-check verdict: none. The push changes only skill prose and adds no loosened check. The wrapper gave no loosened-check lines, so the defaults applied (fail, no consumer entries) and I did not check the citation requirement. Neither changed file is a plugin manifest.

Verifier dropped 0 of 0 candidates.

@github-actions

Copy link
Copy Markdown
Contributor

The pr-verify verifier failed head ad24e054864defcc8b241f08712559024341942e. What it wrote, as data:

What it wrote (23 lines)
Summary: Issue #17262 is about the simulation-default-markdown eval case, which has no valid score.
  Its done-when items are: identify the denied call from a run's denial record, let the case's tool
  setup run every call the skill makes before its first reply while Write stays allowed, and get a
  run that scores the case VALID with the score recorded on the issue. The diff defers the markdown
  board-directory Bash calls and check_available to just before the first board write, and makes the
  first reply name markdown as the default backend. Those prose changes are coherent: the fallback,
  the stop-before-workshop rule and the backend order are unchanged, and the case still allows
  Write. Check Skills, Check Plugins, Lint Repo and Test Bash (0) concluded success in run
  44478084214. No eval job is in that run, so nothing shows the case scoring VALID. The PR closes
  the issue anyway, and its own body defers that confirmation to a dispatch after merge. It also
  says 3 of the 5 denials in run 44475945897 are still unidentified, so the denied calls are only
  partly identified and the fix may not clear the validity gate. No binary files, no takeover-set
  files and no steering text were found. There was no capture summary.
- plugins/event-storming/evals/simulation-default-markdown/case.yaml: done-when item 'A run scores
  the case VALID, and the score is recorded on this issue' is not delivered. No eval run on this
  head shows VALID. Run the case at this head with Write allowed (allow-tools=Write), record the
  VALID score on #17262, or change 'Closes #17262' to a Refs line that names this item as remaining
  work.
- plugins/event-storming/skills/simulation/SKILL.md:52: done-when item 'The denied call is
  identified from a run's denial record' is only partly met. The PR body says 3 of the 5 denials in
  run 44475945897 are unidentified, so it is unshown that the skill makes no other denied call
  before its first reply. Get a run that keeps its traces, name every denied call, and fix any that
  remain, or leave the issue open with a Refs line.

This pull request leaves the merge queue, and ci-status holds it out while it carries pr-verify-failed. A pr-verify pass removes the label, at a new commit or at this same head: once a trusted person edits the body, and only trusted people have edited it since the fail, this head is judged again, so a fail on the body or the issues it links needs only the body fixed, no new commit.

@github-actions github-actions Bot added the pr-verify-failed pr-verify failed this head; a pass at a new commit, or after a trusted body edit, removes it. label Nov 19, 2026
…reflight

- SKILL.md: the first reply calls markdown the default only when the
  fallback rule chose it; another rule's reply names that rule.
- simulation-evaluation.md: the Pre-Simulation Checklist's backend
  preflight now says markdown runs check_available just before the
  first board write, never before the first reply.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot removed the pr-verify-failed pr-verify failed this head; a pass at a new commit, or after a trusted body edit, removes it. label Nov 19, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 19, 2026
Merged via the queue into main with commit d37f4c0 Nov 19, 2026
46 checks passed
@kyle-sexton
kyle-sexton deleted the fix/event-storming-defer-board-dir-17262 branch November 19, 2026 08:47
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

eval: run Runs the changed plugins' eval suites on this PR's head (pr-run-plugin-evals.yml). 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.

1 participant