Skip to content

Support pack file inventories and transactional multi-file edits - #117

Merged
lucasbraum merged 2 commits into
mainfrom
feat/pack-file-inventory
Oct 14, 2026
Merged

lucasbraum merged 2 commits into
mainfrom
feat/pack-file-inventory

Conversation

@lucasbraum

Copy link
Copy Markdown
Collaborator

Packs can declare a scoped file inventory independent of imported usages, so runtime rules can inspect configuration, scripts and file conventions even when the dependency has no imported call sites. Rules can return writes, creates, deletes and renames together. The engine prevalidates all paths, applies the edits as one verified transaction, and restores all affected files when compilation or related tests reject it. Renames retain the old path as the finding anchor, and formatting handles the resulting paths.

Regression tests cover inventory-only check results, brace/glob scopes, all four edit operations, executable-mode preservation, rollback after rejected verification or exceptions, invalid paths, and a real fix rename that preserves its old anchor. The initial inventory and multi-file regression tests failed before implementation. Core suite: 1,419 passed / 32 skipped, then the additional executable-mode regression passed with the six transaction tests. Core typecheck, Biome and diff checks passed.

Full pack gate

Ran pnpm uptide pack test with per-pack process isolation from #110, exit 0. All five verified packs retain exactly their recorded breaking metrics. No ground-truth expectations or verification records changed.

Pack Status Public repos Breaking TP / FP / FN Precision Recall Recorded recall Overall TP / FP / FN
ai verified 2 9 / 0 / 2 100% 81.82% 81.82% 54 / 0 / 7
react verified 2 89 / 0 / 40 100% 68.99% 68.99% 92 / 6 / 40
stripe verified 2 18 / 0 / 2 100% 90% 90% 18 / 0 / 2
vitest verified 2 16 / 0 / 16 100% 50% 50% 16 / 18,938 / 16
zod verified 3 59 / 0 / 21 100% 73.75% 73.75% 120 / 0 / 21

The overall score includes non-breaking findings: React has six false positives and Vitest has 18,938 unverified false positives. These do not count toward the recorded breaking gate. A separate clean-main run (d0dea2a) reproduced exactly the same Vitest overall counts (16 TP / 18,938 FP / 16 FN) and breaking counts (16 / 0 / 16). This overall noise predates the PR; no expectations have been adjusted.

Next's middleware/proxy and removed eslint configuration rules remain a follow-up commit on #114 after this engine PR merges. No Next expectations are changed here.

UPT-6

@lucasbraum
lucasbraum merged commit d1e7388 into main Oct 14, 2026
10 checks passed
@lucasbraum
lucasbraum deleted the feat/pack-file-inventory branch October 14, 2026 00:49
@uptide-release uptide-release Bot mentioned this pull request Oct 14, 2026
lucasbraum pushed a commit that referenced this pull request Oct 14, 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

- [#118](#118)
[`40b3c1f`](40b3c1f)
Thanks [@lucasbraum](https://github.com/lucasbraum)! - The onboarding
generator (`uptide/onboarding`, the "Add Uptide" pull request) writes
`minReleaseAgeDays` to `uptide.yml`, with a comment, when the settings
set it. Before, the
  setting was kept in the returned config but left out of the file.

- [#117](#117)
[`d1e7388`](d1e7388)
Thanks [@lucasbraum](https://github.com/lucasbraum)! - Let packs inspect
declared config and convention files without imports and apply verified
multi-file create, delete, write and rename transactions.

- [#116](#116)
[`4419673`](4419673)
Thanks [@lucasbraum](https://github.com/lucasbraum)! - Allow migration
packs to require a successful repository build before publication,
including subsequent verification runs.

- [#120](#120)
[`b7e0f42`](b7e0f42)
Thanks [@lucasbraum](https://github.com/lucasbraum)! - `uptide pr` (and
`fix --pr`) publishes when the migration branch is already on GitHub, as
it is after a pull request was closed without merging. A branch holding
only Uptide's commits is replaced with `--force-with-lease`, and an open
Uptide pull request on it is updated instead of a second one being
opened. A branch with anyone else's commit is never overwritten: the run
goes to the next free `<branch>-2`, `-3`, … and the pull request says
so. When publication fails in the Action, the job summary and run report
name the reason.

- [#115](#115)
[`17cb9a2`](17cb9a2)
Thanks [@lucasbraum](https://github.com/lucasbraum)! - Support explicit
pack release groups so installed lockstep companions move with their
lead even without dependency edges or incompatible peers.

Co-authored-by: uptide-release[bot] <338861287+uptide-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant