Repository navigation
fix: require verified trees to survive export and publication - #78
Merged
Merged
Conversation
Signed-off-by: Lucas Braum <[email protected]>
Signed-off-by: Lucas Braum <[email protected]>
lucasbraum
force-pushed
the
codex/verified-export
branch
from
October 11, 2026 20:31
4642548 to
d8f33a5
Compare
lucasbraum
marked this pull request as ready for review
October 11, 2026 20:52
Merged
lucasbraum
pushed a commit
that referenced
this pull request
Oct 11, 2026
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and publish to npm yourself or [setup this action to publish automatically](https://github.com/changesets/action#with-publishing). If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## [email protected] ### Patch Changes - [#77](#77) [`38ffa16`](38ffa16) Thanks [@lucasbraum](https://github.com/lucasbraum)! - Present peer blockers in fix as a pending upgrade plan, without a failure marker or error prefix. Keep exit code 2, grouped blockers, and the Next command, and omit LLM spend when no call was attempted. - [#70](#70) [`d72e285`](d72e285) Thanks [@lucasbraum](https://github.com/lucasbraum)! - Let assisted fixes edit repository-local expected-type declarations linked by compiler diagnostics. Fix sites sharing a declaration together, while retaining program-wide type verification and strict patch scope. Identify verification diagnostics by source location, code and related locations so changed message details do not reject valid fixes. Resolve automatic type references against the target declarations, so React 19's removed global JSX namespace reaches the agent with the React pack guide. - [#78](#78) [`7662903`](7662903) Thanks [@lucasbraum](https://github.com/lucasbraum)! - Verify the exported migration branch has the exact tree that passed verification. Refuse success and publication when export fails, preserve the complete clone, and require the recorded verified tree before pushing a stored run. Report changed-file counts from the committed diff. Export fresh migrations to numbered branches when an existing branch has different content. Preserve identical packages' libc restrictions when older npm serializers omit them, without relaxing the resolution guard. Co-authored-by: uptide-release[bot] <338861287+uptide-release[bot]@users.noreply.github.com>
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 successful migration could remain in its temporary clone while
fixprinted “verification passed” and offereduptide prfor an older local branch. Export and publication now require the recorded verified tree. A fresh migration whose branch name is already occupied by different content exports to-2,-3, etc., preserving the old branch.Cause and behavior
On
alanagoyal/alanagoyal@22aa5f12047d5ec0188eed11da5cdc00ddb7d99a, the original kept clone contained all 11 migration commits, including compiler-linked declaration edits. The user's existinguptide/react-19.3.0contained only three earlier commits. Git rejected the export as non-fast-forward;deliver()swallowed the failure and left verification marked successful.verifyretains its existing fast-forward behavior.uptide prrequires the recorded tree and commit, rechecks before pushing, and pushes the verified SHA. Reports predating tree hashes need re-verification.npm 10 investigation and correction
Both npm 10.9.3 and npm 11.19.0 write lockfileVersion 3. This was serialization loss, not different dependency resolution: npm 10's
@npmcli/arborist/lib/shrinkwrap.jsallowlist omitslibc; npm 11 includes it. npm 10 dropped the restriction from 23 unchanged Linux binary records. The guard recursively rejected those records, four dependents, and the root importer (28 entries).For npm <11, retain an omitted
libconly at the same placement with the same package name, version and nonempty integrity. The persisted lockfile retains the restriction beforenpm ci; the guard itself is unchanged. A changed version, integrity, dependency resolution, or explicit platform change is still rejected. npm scope errors now include the actual npm version and records. pnpm/Yarn behavior is unchanged. Seedocs/troubleshooting.md.Captured both exact-version/range-reconciliation install phases before rollback. After retaining those 23 fields, the npm 10 and npm 11 lockfiles are identical in all fields ignoring JSON key order. Both pass the existing resolution guard.
28 originally rejected entries and their cause
These 23 records kept their version and integrity; only the listed libc restriction disappeared:
The remaining entries were recursive consequences of those missing restrictions, with no direct content or version change:
Reruns with the old branch present
Both ran at
22aa5f1in independent local copies with no remote configured, seeded with old branch33d494366c0972fab4efb0349493bb33f8bbb1c6. The original repository and its remote were untouched; no PR or push to alanagoyal or a fork.End-to-end: Node 22 5m 10s; Node 24 4m 19s. Their only byte-level difference is JSON key ordering in
package-lock.json; all lockfile data and code files match. The development-build reports retainuptideDirty: trueand are not intended for publication.Both preserve the original branch commit, leave main and the working tree unchanged, and print:
Node 22: exported tree and diff
Recorded tree = clone tree = exported branch tree:
d73f53229488a014e4baee5b83a334272df80151.11 exported commits; 1 auto-fixed and 12 agent-fixed sites. Lint: passed. Fix work: 298.8 s.
git diff --stat main..uptide/react-19.3.0-2:Node 24: exported tree and diff
Recorded tree = clone tree = exported branch tree:
dac5933e6a018a26d06c7fc770980086ffbc30cf.11 exported commits; 1 auto-fixed and 12 agent-fixed sites. Lint: passed. Fix work: 248.5 s.
git diff --stat main..uptide/react-19.3.0-2:Validation
3d9ab4c,d8f33a5. Patch changeset included.Rebase onto current main
Rebased onto
38ffa16(PR #77) without merge commits. Both replayed commits retain their Signed-off-by trailers.Only
packages/cli/src/cli.tsconflicted, in the shared action error handler. Kept main's neutral peer-plan rendering (including grouped JSON, the full Next command and exit 2) and PR #78's verified-tree mismatch exit 1. Main's suppression of LLM spend without an attempted call and neutral progress handling remain intact.cli.test.tsmerged automatically; tests for both behaviors pass. The numbered-branch/npm-libc commit replayed unchanged.Post-rebase local checks passed:
pnpm build,pnpm lint,pnpm typecheck, andTMPDIR=/private/tmp pnpm test --env-mode=loose(1,513 passed; 15 existing skips). Pushed with an explicit--force-with-lease; GitHub now reports MERGEABLE / CLEAN. All eight PR checks started ond8f33a5and passed: