Repository navigation
feat(fix): suggest the first major that accepts the target for a peer blocker (UPT-10) - #207
Merged
Merged
Conversation
… blocker (UPT-10) When no release in a blocker's current major accepts the target, the preflight now names the first one that does and says whether a pack covers it: - Pack covers it: the blocker moves as a companion (`migration: 'pack'`), and that pack's rules run in the same fix, between the companion's own versions (`withCompanionPacks`). - No pack: the companion is marked `migration: 'own'`. The PR body gets a "Needs its own migration" section, the summary gets a Risk line, and migration risk is High. - `--allow-peer` is suggested first only when no release accepts the target. Otherwise it is named as the fallback after the major. #188's agent-led continuation and #194's `via` walk are unchanged. The continuation takes the same `also` plan, so it carries the companion pack. Also fixes a false companion conflict that stopped the preflight before any blocker was reported. A group member that declares nothing on the lead (`@casl/ability`) was never checked against the lead's own range on it (`@casl/react 5` peers `@casl/ability ^6`), so it got no move. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Lucas Braum <[email protected]>
…set (UPT-10) - `withCompanionPacks` now runs each companion pack's `runtimeFindings` over its own package. It uses the companion's own versions, usages and inventory (`packInventory` with the pack's globs), so detect-based companion rules fire. Before this they were silently dropped, the same gap UPT-89 found in zod. - `check` passes the group's other members (name, versions, dirs, usages) to `runtimeFindings` as `companions`. `fix` hands check the composite as the lead's pack when a companion pack is present. - The #202 runtime-findings test runs every registered pack's fixtures twice: alone, and as a companion under a stub lead. The companion run asserts each finding carries the companion's package and versions. - New end-to-end fixture: next 15 → 16 leads, react 18 → 19 is a pack-covered companion. react's `use-ref-argument` rewrite lands in the same fix as a mechanical site, reported under react 18.3.1 → 19.3.0, and verification passes. The test fails when transform goes through the lead's pack only. - Changeset (minor). Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Lucas Braum <[email protected]>
lucasbraum
force-pushed
the
lucasbraum/upt-10-peer-companion-major
branch
from
October 17, 2026 19:11
3160f4f to
2d458cb
Compare
Merged
lucasbraum
pushed a commit
that referenced
this pull request
Oct 17, 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] ### Minor Changes - [#203](#203) [`19dd649`](19dd649) Thanks [@lucasbraum](https://github.com/lucasbraum)! - `fix` estimates what the agent's sites will cost and prints the estimate before its first call. When the estimate is above the limit (`--max-cost`, default $1), it stops before spending anything and exits 2: `estimated $3.00 for 50 sites; limit $1.00. Run again with --max-cost 3.00`. Action and App runs never stop on the estimate: they work within `maxCost`, and the summary and the pull request name the sites left and the `maxCost` in `uptide.yml` that finishes them. When the agent stops at the limit, the summary and the pull request name the estimate and the limit that continues. The summary (`Phases`), the pull request's run details and `report.json` (`phases`) give wall time and agent spend per phase. - [#207](#207) [`4a90e9f`](4a90e9f) Thanks [@lucasbraum](https://github.com/lucasbraum)! - `fix` names the first major of a peer blocker that accepts the target (`no 1.x accepts react 19; 2.2.0 does`) and suggests adding it to the command instead of `--allow-peer`. When a verified pack covers that major, the blocker moves as a companion and its pack runs in the same fix: its rules, its detect-based findings and its inventory, each at the companion's own versions. When no pack covers it, the PR says the major needs its own migration and the risk is High. `--allow-peer` stays the suggestion only when no release accepts the target. A group member that the target's own range already accepts (`@casl/ability` under `@casl/react` 5) is no longer reported as a conflict. ### Patch Changes - [#208](#208) [`5fdb60e`](5fdb60e) Thanks [@lucasbraum](https://github.com/lucasbraum)! - The express pack reports the `const { id } = req.params` line as a site when the compiler reports a `string | string[]` error on one of its names, because that line is where the guide types the values once. - [#211](#211) [`213e1a5`](213e1a5) Thanks [@lucasbraum](https://github.com/lucasbraum)! - fix runs prisma generate / graphql-codegen in its verification clone before the baseline and after the upgrade; check names the missing generator step - [#204](#204) [`65b7edb`](65b7edb) Thanks [@lucasbraum](https://github.com/lucasbraum)! - `check` and `fix` now measure how many of the files that use the upgraded package the repository actually type-checks (TypeScript, plus JavaScript under `checkJs` or `// @ts-check`). When that is under half, the summaries say `types cover N of M affected files` and no longer present a clean compile as proof: `fix` passes only when a test run or a build passed, and says the verdict rests on them. - [#205](#205) [`c0332eb`](c0332eb) Thanks [@lucasbraum](https://github.com/lucasbraum)! - `fix` no longer fails on npm repositories whose lockfile carries optional platform packages such as sharp's `@emnapi/*`. npm 11.6 drops them on the first lock-only install and writes a lockfile its own `npm ci` rejects; `fix` now runs the lock-only install twice, at the upgrade and at the parent commit alike, so the lockfile it validates is one `npm ci` accepts. - [#201](#201) [`4550da5`](4550da5) Thanks [@lucasbraum](https://github.com/lucasbraum)! - The react pack now reports `RefObject<HTMLElement>` annotations that need `| null` at the declaration, including in files that type a prop with the global `React.RefObject` and never import react. The compiler reports these where a ref is passed in, so the declaration to edit was missed. - [#216](#216) [`95a3bf5`](95a3bf5) Thanks [@lucasbraum](https://github.com/lucasbraum)! - setup PRs pin Action v0.14.3 - [#209](#209) [`48df030`](48df030) Thanks [@lucasbraum](https://github.com/lucasbraum)! - The zod pack reports `.refine(check, { message })`, the type names zod 4 marks deprecated (`ZodTypeAny`, `ZodIssue`, `ZodSchema`, `ZodErrorMap` and the others, including `import('zod').ZodTypeAny`) and `errorMap` options with `ctx.defaultError`, as deprecated findings. - [#200](#200) [`4e4cc3e`](4e4cc3e) Thanks [@lucasbraum](https://github.com/lucasbraum)! - The zod pack reports names zod 3 exported from its root and zod 4 exports only from `zod/v3` (`SafeParseReturnType`, `ZodTypeDef`, `ZodEffects`, the `Zod*Def` interfaces), which the surface diff counted as unchanged, and `fix` now rewrites `z.string().uuid()` to `z.guid()` instead of `z.uuid()`, so ids that zod 3 accepted still validate. 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.
Fixes UPT-10.
What main did
On the Infisical frontend (react 18 → 19,
@headlessui/react1.x), main never reported the headlessui blocker. The preflight's look-ahead added@casl/react4 → 5 (another react peer blocker). That move pulled@casl/abilityinto its group as a false conflict, and the preflight threw a plain error saying to keep@casl/reactat 4. Exit 2, with no advice about headlessui.The cause is in
agreeing()(check/companions.ts). It only read the member's own range on the lead.@casl/abilitydeclares nothing on@casl/react, so the lead's range on the member was never checked (@casl/react 5peers@casl/ability ^6, and 6.8.0 is installed). The member got no move, which counted as a conflict. That case is now handled.What changes
The preflight row for a blocker whose major rejects the target now reads
no 1.x accepts react 19, react-dom 19; 2.2.0 does (major, …):the <pkg> pack runs in the same fix. The suggested command and the fix: preflight refusals become agent-led drafts instead of exit 2 (UPT-78) #188 agent-led continuation add it as a companion withmigration: 'pack'.fixchecks it alongside the lead and routes its sites to its own pack throughwithCompanionPacks. Rules, guide,ruleOfandvalidateAssistedall see the companion's own from/to.no migration pack: it needs its own migration…or keep 1.x with --allow-peer <pkg>. The companion ismigration: 'own'. The PR body gets a "Needs its own migration" section, the summary gets aRiskline, and migration risk is High.--allow-peeris the suggestion.Nothing else in the planner changes. #194's
viawalk is untouched.Verification
npm ci --ignore-scripts,npm_config_ignore_scripts), and the clone was deleted afterwards. Withfix react --no-llm, the run now stops in preflight with exit 2. The next command adds@headlessui/react(and@casl/react) as majors, with no--allow-peer. The continuation plan with both added resolves with no conflicts. No repo output is included here.express4 → 5)plugin1 → 2)--allow-peerstays)--no-llmthroughisolatedFix:PeerPreflightErrorbefore install, next command ends with the major and--no-llm@caslmember shape (fails on main)pnpm test, typecheck and biome pass. The one biome warning (next/platform.test.ts) is on main too.Known limits
runtimeFindings(detect rules) and inventory run over its own package and versions:checkpasses the group's members to the composite. Its scanContext and review sections are not built; it sees the lead's. This is marked with aponytail:comment inwithCompanionPacks.fix/companion-pack.test.ts: next 15 → 16 leads, react 18 → 19 is the pack-covered companion, and react'suse-ref-argumentrewrite lands in the same fix under react's versions. fix(sentry): read scripts that only require another Sentry package (UPT-89) #202's runtime-findings test also runs every pack's fixtures as a companion.🤖 Generated with Claude Code