Skip to content

feat(review): name the folders whose media files the lanes review by header - #17694

Merged
kyle-sexton merged 2 commits into
mainfrom
claude/review-media-paths
Nov 20, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
claude/review-media-paths

Conversation

@kyle-sexton

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

Copy link
Copy Markdown
Member

No related issue: the caller half of melodic-software/ci-workflows#1160, which the owner approved (metadata review of media files, limited to base-declared folders).

Summary

A pull request that adds or changes a recording or image under plugins/*/sounds/** or plugins/*/examples/** gets a complete review instead of a partial one, once ci-workflows#1160 and standards#1079 have landed.

Fix

  • scripts/review-media-paths.txt declares those two folders. Eval and test fixtures stay out, so an opaque file there is still reviewed as text.
  • Both review callers pass media-paths: scripts/review-media-paths.txt. The lanes read the list at the merge base, so the list takes effect from the first pull request after this one.
  • The CI Status remedy for a partial review (fix(ci-status): name a partial review's files and the remedy #17682) now names both lists: media under a declared folder, other data in scripts/review-generated-data.txt.

Verification

  • bash scripts/ci-review-lanes.test.sh: PASS=295 FAIL=0, with the remedy expectation updated.

Related

🤖 Generated with Claude Code

…header

scripts/review-media-paths.txt declares plugins/*/sounds/** and
plugins/*/examples/**, and both review callers pass it as media-paths
(ci-workflows#1160): an audio, image, video or font file there whose
extension matches its content is shown by its header and printable text, so
a recording no longer makes the review partial. The CI Status remedy for a
partial review now names both lists.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton kyle-sexton added the do-not-merge Hard merge gate: do not merge while applied. label Nov 20, 2026
@kyle-sexton kyle-sexton removed the do-not-merge Hard merge gate: do not merge while applied. label Nov 20, 2026
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 20, 2026 22:11
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 20, 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-20T22:13:38.389086Z 2bb6744 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 2bb6744b52023cd072c04659682a613a9a4bc939: read 6 of 6 changed file(s); 0 finding(s), 0 as inline comments.

Security review: no security issues found.

I read every hunk of all 6 changed files. Two of them are on trusted paths (.github/workflows/pr-require-checks.yml and .github/workflows/pr-review-security-hosted.yml), and I read their whole change.

  • pr-review-hosted.yml / pr-review-security-hosted.yml: each adds one with: input, media-paths: scripts/review-media-paths.txt, to the reusable review call. Nothing else changes: no trigger, no permissions: block, no token request, no if: condition and no pin. The lanes read the list at the merge base, so a pull request cannot add a folder to the list for its own review. This change does not widen who is trusted or what a token may do. It also lets no new untrusted text reach a credentialed lane; the lanes see less of these files, not more.
  • Effect on the partial-review gate: a media file under plugins/*/sounds/** or plugins/*/examples/** is now reviewed by its diff header and printable text instead of failing the review as partial. That only applies when the file's extension is audio, image, video or font and its magic bytes match it (scripts/review-media-paths.txt:76-81). I found no path from such a file to a leak, a compromise or a charge. Plugin code that loaded or ran one would be text, and the lanes still read text in full. Eval and test fixtures stay off the list. How ci-workflows checks the extension against the magic bytes is upstream (ci-workflows#1160) and outside this diff.
  • pr-require-checks.yml: only the static wording of an ::error:: message changes. It adds no new expression or variable, so nothing new can be injected.
  • scripts/affected-tests-no-suite.txt, scripts/ci-review-lanes.test.sh: a comment, a path entry and a test expectation updated to match the new message. None of them is security-relevant.
  • No plugin manifest changed and no standing instruction was deleted or softened.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

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

Code review: no findings

I read all six changed files in full. The PR does four things:

  • Folder list. It adds scripts/review-media-paths.txt, which names the folders plugins/*/sounds/** and plugins/*/examples/**.
  • Both review callers. pr-review-hosted.yml and pr-review-security-hosted.yml now pass that list as media-paths.
  • Error text. The CI Status message for a partial review now names both lists.
  • Test and exemption. The test expectation is updated to match, and the new list is added to scripts/affected-tests-no-suite.txt.

Checks:

  • Test match. expect in scripts/ci-review-lanes.test.sh matches by substring ("$out" != *"$3"*). The new expected text is a prefix of the new message in pr-require-checks.yml, so the updated case still tests the changed line. I did not run the suite: the 295/0 result in the PR description is the author's claim and unverified.
  • Folder coverage. The two globs cover the media files on disk today: plugins/themes/sounds/bedroom/*.wav and plugins/pixel-art/examples/campfire/campfire.wav. They do not reach eval or test fixtures, which matches the PR description.
  • Overlap with the other list. scripts/review-generated-data.txt holds only sany.out, so no file is now on both lists.

Merge-ordering note (not a finding). Both callers use melodic-software/ci-workflows/.github/workflows/pr-review-cli.yml@main. GitHub rejects a call that passes an input the reusable workflow does not declare, so merging before ci-workflows#1160 lands the media-paths input would break both review lanes. standards#1079 (which lets callers pass the input) has to land first for the same reason. I have no access to those repositories and could not confirm either has landed.

No closing issue: the PR names none, so I checked no acceptance criteria. No plugin manifest changed. I found no embedded instructions in the PR context. No loosened-check verdict or pattern lines were supplied, so I applied the default fail verdict with no consumer entries. No decision-record line was supplied, so I did not check the citation requirement. No change here loosens a check: the diff only adds a folder list and edits a message.

Verifier dropped 0 of 0 candidates.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 20, 2026
Merged via the queue into main with commit a63fe1f Nov 20, 2026
157 of 159 checks passed
@kyle-sexton
kyle-sexton deleted the claude/review-media-paths branch November 20, 2026 22:33
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 20, 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.

1 participant