feature/Hook-bundle-provenance-check · L-260912-f6d1d9 — release refuses a stale hook bundle - #72
Merged
Merged
Conversation
`make check` now reads the vendored check.mjs's provenance line and refuses a bundle built from an unreleased tools-wasm (PIPELEX_TOOLS_WASM_PATH) or outside a git checkout of pipelex-sdk-js. `make check-hook-fresh`, which the release skill runs first among its gates, fails when the vendored engine is not npm's latest or when a rebuild in the sibling checkout differs below the three-line banner, and refuses to answer unless that checkout is on dev, clean and level with origin/dev. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BvNKvZPgARPAQwuyafhQ2W
A git that times out or is missing now refuses with exit 2 instead of ending in a traceback that reads as stale. The rebuild runs without PIPELEX_TOOLS_WASM_PATH, so it always bundles the npm engine. The provenance guard accepts commits as short as git's four-character abbreviation and as long as a SHA-256 name. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BvNKvZPgARPAQwuyafhQ2W
Member
Author
|
Fixed in 4697f3e:
Deferred, unverified: when an engine is newer than npm's Verdict for the next round: round 2, bar |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A vendored hook bundle that is behind its sources shipped green once already, because nothing compared it with what `pipelex-sdk-js` would build. `make check` now refuses, offline and in CI, a bundle whose provenance names an unreleased engine or no SDK commit, and the new `make check-hook-fresh`, which the release skill runs first, fails when the vendored engine is not npm's latest or when a rebuild in the sibling checkout would change the bundle below its banner. Measured: it passes on the current bundle, fails on both questions against the pre-0.8.0 bundle, and two builds of one SDK commit were byte-identical.
Closes L-260912-f6d1d9
🤖 Generated with Claude Code
https://claude.ai/code/session_01BvNKvZPgARPAQwuyafhQ2W
Summary by cubic
Stops a release from shipping a vendored hook bundle that is behind its sources, which already happened once when nothing compared the bundle with what
pipelex-sdk-jswould build.make checknow refuses, offline and in CI, a bundle whose provenance names an unreleasedtools-wasmengine or no SDK commit. The guard accepts abbreviated hashes, from git's four-character minimum up to a full SHA-256 name.make check-hook-freshrelease gate, run first by the release skill, fails when the vendored engine is not npm's latest or when a rebuild in the sibling checkout changes the bundle below its banner; it refuses to answer unless that checkout is ondev, clean, and level withorigin/dev. A git that is missing or times out now refuses with exit 2 instead of ending in a traceback.make vendor-hook, and bump the engine pin inpipelex-sdk-jsfirst if that repo still pins an older version. The rebuild strips any localPIPELEX_TOOLS_WASM_PATHoverride so it always bundles the npm enginenpm ciinstalled.Written for commit 4697f3e. Summary will update on new commits.