Repository navigation
feat(skill-quality): accept vendor/ changes paired with a verified upstream-sha - #8594
Conversation
…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
…stream-sha-pairing
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
…attestation Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WyWcv2NwzrPQ4dChfwFjM7
|
claude-security-review reviewed No security issues found in the incremental change since c79ba1b. It touches only |
|
claude-review reviewed Incremental review of The change adds a |
There was a problem hiding this comment.
💡 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
Refs: #8559
Summary
skill-quality check 8 rejects a change under a skill's
vendor/unlessmetadata.upstream-versionalso 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 avendor/change whenmetadata.upstream-shachanged and equals a hash it recomputes offline fromvendor/: the SHA-256 of the one non-dotfile undervendor/with CR removed (several files: SHA-256 of the sorted<sha> <path>lines; dotfiles such as.markdownlint-cli2.jsoncare left out). A bumpedupstream-shathat doesn't match fails, naming both hashes. Avendor/change with no metadata change still fails, and theupstream-versionpairing works as before.metadata-registry.txtupdated; minor changelog fragment.vendor/matches its recorded value, not that it came from upstream: anyone editingvendor/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).upstream-shais an npmdist.shasumthat can't be recomputed fromvendor/; its syncs always bumpupstream-version, which is checked first, so it is unaffected.Verification
check-skill.test.shtest 20c: a matchingupstream-shapasses (failed before the change); a mismatched one fails (passed before and after, guarding the condition); existing test 20 (no metadata change fails) still passes.check-skillpasses on playwright, skill-authoring and every skill-quality skill.scripts/check-affected.sh --tests: 12 passed, 2 skipped.Related
upstream-shawith this definition) follows after this merges.🤖 Generated with Claude Code
https://claude.ai/code/session_01WyWcv2NwzrPQ4dChfwFjM7