Repository navigation
Pin self-updates and verify staging release serving - #203
Merged
Merged
Conversation
- Prevent remote metadata from selecting a foreign installation package - Reject unsafe versions before forced updates or package-manager execution
- Exercise actual Worker responses against isolated publication fixtures - Preserve fixture ownership and cleanup without production writes
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.
Summary
Pin manual self-update installation targets to the local
@diffexai/diffexidentity and add opt-in publication-to-HTTP verification against the deployed staging Worker.Foreign or missing identities and unsafe versions are rejected before any package-manager operation, including with
--force.Paired with diffexai/diffex-cloud#145.
Reasoning
The source CLI reproduced an untrusted response causing removal of Diffex followed by a foreign-package installation attempt.
Independent target validation protects the installer, while real staging publication and HTTP checks verify that the serving layer implements the shared contract.
The fixture writer remains in the CLI repository with its own bucket-scoped credentials, separate from Worker deployment.
Changes
--staging --public-apiand the manual workflow's optionalcheck_public_apiinput for real HTTP checks against fixed staging storage and Worker targets.The shared checker still targets Pi until the authority migration.
Strict consumer parsing, redirects, no-release messaging, and installed-client canaries remain separate work.
Testing
npm run checkand isolated./test.sh: passed.node scripts/verify-release-publication.mjs --staging --public-api: passed using controlled npm responses for all 11 packages, actual R2, and the deployed Worker.No installed software or npm release was changed.
The manual verification workflow becomes dispatchable when it reaches
main; the recorded live verification ran locally.