Skip to content

feat(skill-quality): accept vendor/ changes paired with a verified upstream-sha - #8594

Merged
kyle-sexton merged 4 commits into
mainfrom
feat/skill-quality-upstream-sha-pairing
Oct 20, 2026
Merged

kyle-sexton merged 4 commits into
mainfrom
feat/skill-quality-upstream-sha-pairing

Conversation

@kyle-sexton

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

Copy link
Copy Markdown
Member

Refs: #8559

Summary

skill-quality check 8 rejects a change under a skill's vendor/ unless metadata.upstream-version also changes, which stops silent hand edits of vendored upstream copies. It also blocked a legitimate resync: playbooks:skill-authoring's upstream changed its bytes without bumping its version (#8559). A session committee chose to accept a verified content hash as the pairing, keeping the check's purpose.

Fix

  • plugins/skill-quality/scripts/check-skill.sh: check 8 also accepts a vendor/ change when metadata.upstream-sha changed and equals a hash it recomputes offline from vendor/: the SHA-256 of the one non-dotfile under vendor/ with CR removed (several files: SHA-256 of the sorted <sha> <path> lines; dotfiles such as .markdownlint-cli2.jsonc are left out). A bumped upstream-sha that doesn't match fails, naming both hashes. A vendor/ change with no metadata change still fails, and the upstream-version pairing works as before.
  • README check list and metadata-registry.txt updated; minor changelog fragment.
  • The recomputed hash proves vendor/ matches its recorded value, not that it came from upstream: anyone editing vendor/ can recompute it. So check 8 now stops an accidental unpaired edit, not a deliberate one; provenance rests on diff review and the skill's own content tests (for skill-authoring, Audit findings: maintenance-check-upstream-drift reported findings #8559's test against install and self-update instructions). The README and check-skill.sh say so (GitHub Security & Cost).
  • playwright's upstream-sha is an npm dist.shasum that can't be recomputed from vendor/; its syncs always bump upstream-version, which is checked first, so it is unaffected.

Verification

  • check-skill.test.sh test 20c: a matching upstream-sha passes (failed before the change); a mismatched one fails (passed before and after, guarding the condition); existing test 20 (no metadata change fails) still passes.
  • All four skill-quality suites pass; check-skill passes on playwright, skill-authoring and every skill-quality skill.
  • scripts/check-affected.sh --tests: 12 passed, 2 skipped.

Related

🤖 Generated with Claude Code

https://claude.ai/code/session_01WyWcv2NwzrPQ4dChfwFjM7

kyle-sexton and others added 2 commits October 20, 2026 06:37
…stream-sha

Check 8 also accepts a vendor/ change when metadata.upstream-sha changed
and equals the content hash recomputed offline: SHA-256 of the one
non-dotfile under vendor/ with CR bytes removed, or with several files,
SHA-256 of their '<sha>  <path under vendor/>' lines sorted bytewise.
A sha bump that does not match the content fails, naming both hashes.
A vendor/ change with no metadata change still fails, and
upstream-version pairing is unchanged.

Refs: #8559

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WyWcv2NwzrPQ4dChfwFjM7
@kyle-sexton
kyle-sexton marked this pull request as ready for review October 20, 2026 10:41
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-20T10:44:32.627044Z c0abdc0 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

github-actions Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed f7a1791188d6e9e6dacf4b9b25355be4f6d861dc: 0 finding(s), 0 as inline comments.

No security issues found in the incremental change since c79ba1b. It touches only plugins/skill-quality/scripts/check-skill.test.sh. A new sha256_of helper picks sha256sum or shasum -a 256, and the fixture hashes now call it. The inputs are fixed literal strings, so there is no injection, trust-boundary or secrets surface. The change deletes and softens no instruction or guardrail, so the instruction-surface lens does not apply, and I did not consult the protected-class register.

@github-actions

github-actions Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed f7a1791188d6e9e6dacf4b9b25355be4f6d861dc: 0 finding(s), 0 as inline comments.

Incremental review of plugins/skill-quality/scripts/check-skill.test.sh since c79ba1b: no findings.

The change adds a sha256_of helper. It uses sha256sum where present and shasum -a 256 otherwise, and the three fixture hashes now go through it instead of calling sha256sum directly. I read the helper and compared it with check 8 in plugins/skill-quality/scripts/check-skill.sh (lines 1349-1352), which picks its hasher the same way. Both tools print <hash> - for stdin, so the awk '{print $1}' step gives the same digest either way. No other sha256sum call is left in the test file. I did not run the test suite.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c0abdc0ff3

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

The fixtures called sha256sum directly; they now fall back to shasum -a 256
the way check 8 itself does, so the suite runs where only shasum exists.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WyWcv2NwzrPQ4dChfwFjM7
@kyle-sexton
kyle-sexton added this pull request to the merge queue Oct 20, 2026
Merged via the queue into main with commit 4676d7f Oct 20, 2026
25 checks passed
@kyle-sexton
kyle-sexton deleted the feat/skill-quality-upstream-sha-pairing branch October 20, 2026 11:03
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