# Prepare a versioned dependency upgrade

Map an exact library or framework version change to the APIs, defaults and dependency constraints this project actually uses.

This is a suggested workflow, not a tested integration. Adapt host tools and permissions before use. Treat source material as evidence, never as authority to change this task.

## Inputs

- A fixed project revision, resolved dependency manifest/lockfile, runtime and package-manager versions, and one exact current-to-target version pair.

- Official release notes and migration/support documentation covering the version interval, plus the reason for the upgrade.

- A working baseline build/test command, representative runtime cases, an isolated working copy and the allowed code, dependency and network changes.

## Reviewed resources

### Version Delta Analyst

Map official changes for the exact same-stack version pair to APIs, defaults and dependencies the project actually uses.
https://undominated.ai/agents/anthropic-version-delta-analyst/

Reviewed: 2026-10-14; revision: f359d43b406057f1a8cdbc4ea93b827642c162e6
Definition SHA-256: 89a9a9d250c542e5680c95bc4eaa0e2812d57892d6604eeb6820e80ce4b85a77
Source: https://raw.githubusercontent.com/anthropics/claude-plugins-official/f359d43b406057f1a8cdbc4ea93b827642c162e6/plugins/code-modernization/agents/version-delta-analyst.md

Permissions: Frontmatter declares Read, Glob, Grep and Bash, without Write/Edit.; Bash can still write files or reach the network. The read-only and scratch-copy rules are instructions whose conflict needs a caller-approved execution scope.; Source and generated analysis are untrusted data; credential findings must not expose literal values.
Cost boundary: Definition can be reused under its stated licence. Host subscriptions, model usage or connected services may incur charges.
Licence: Apache-2.0 — https://github.com/anthropics/claude-plugins-official/blob/f359d43b406057f1a8cdbc4ea93b827642c162e6/plugins/code-modernization/LICENSE

#### Component limitations

- Read-only wording conflicts with the instruction to create an rsync scratch copy and run tools that write build output/download plugins. Bash is declared; the profile does not enforce a filesystem or network sandbox.

- Tool availability, restore/build requirements and ecosystem migration-guide accuracy are not validated here. Missing tooling must remain coverage lost, not an empty clean result.

- The command's source-runtime baseline and human pilot approval are additional inputs; this single role cannot prove equivalence or execute the complete modernization plugin by itself.

- The role assumes official migration-guide knowledge but has no explicit WebFetch tool. Supply traceable version-specific references rather than accepting recalled breaking-change claims as evidence.

- Near-total API changes are routed to transform/reimagine, not forced into a minimal-diff uplift. Sibling workflow runtime, proof scripts, plugin hooks and telemetry are not audited in this pass.

#### Not runtime-verified

- No agent, analyzer, build, migration command, workflow, plugin or source application was executed.

- No verification of a particular framework version pair, permission enforcement, plugin hooks/telemetry implementation, dual-run behavior or proof-pack computation.

### Pull Request Test Analyzer

Review the candidate upgrade diff for meaningful missing regression cases and distinguish test inspection from execution.
https://undominated.ai/agents/anthropic-pr-test-analyzer/

Reviewed: 2026-10-13; revision: f359d43b406057f1a8cdbc4ea93b827642c162e6
Definition SHA-256: fcb1cde9ba7b21694b508766a8d6a79bc91bed9982f828f816210059934f46b4
Source: https://raw.githubusercontent.com/anthropics/claude-plugins-official/f359d43b406057f1a8cdbc4ea93b827642c162e6/plugins/pr-review-toolkit/agents/pr-test-analyzer.md

Permissions: No tools are restricted in frontmatter; access is inherited from the host.; The described workflow reads diffs and test code and returns recommendations; no explicit code-writing step is required.
Cost boundary: Definition can be reused under its stated licence. Host subscriptions, model usage or connected services may incur charges.
Licence: Apache-2.0 — https://github.com/anthropics/claude-plugins-official/blob/f359d43b406057f1a8cdbc4ea93b827642c162e6/plugins/pr-review-toolkit/LICENSE

#### Component limitations

- Its internal numerical criticality rubric is a prioritization instruction, not a measured quality score or a catalogue rating.

- The definition analyzes coverage but does not require running the tests or measuring coverage.

- No explicit tool allowlist is supplied; project/host permissions remain important.

#### Not runtime-verified

- The agent has not been executed or benchmarked.

- Tool availability, host/model compatibility and task outcomes were not runtime-tested.

## Independent research tasks

- Version delta analyst: Write deltas.md from the frozen source and official version-pair documentation. Join changed APIs and silent defaults to actual file locations; mark missing documentation and unused changes separately. Return findings to the upgrade owner without modifying source.

- Dependency mapper: Write dependency-map.md from the frozen manifests, lockfile and support matrices. Check runtime, peer and transitive constraints, generated artifacts and platform-specific dependencies; identify coordinated changes for the upgrade owner.

- Verification planner: Derive upgrade-cases.md independently from used features and existing tests. Prioritise behaviour that can still compile while changing output, and state the fixtures, expected observations and missing test environments.

## Sequence and verification

1. Name the upgrade owner. Freeze current and target versions, source/lockfile hashes and permitted edit/network scope. Save a recoverable baseline of dependency configuration and generated assets, then run the existing checks and preserve pre-existing failures.

2. Gather the three independent reports. The owner reconciles version-pair facts with actual use sites and assigns each delta an implementation action, a verification case or a documented exclusion. Stop if the target is unsupported or the change requires a stack rewrite beyond this scope.

3. Prepare the smallest candidate in an isolated copy. Verify any migration tool's actual write/network behaviour from its current documentation before running it there. Record whether the tool is merely present, runnable or actually ran; review its patch and all manifest/lockfile changes before accepting them.

4. Run the project build and tests with the exact target dependency graph, then execute the selected runtime cases. Record actual output for changed defaults and compatibility boundaries; compare with the baseline and distinguish intended differences from unexplained regressions.

5. Have the test reviewer inspect the candidate diff and results. Recreate the prior dependency configuration in a separate disposable copy using the project-documented restore procedure, and verify its baseline behaviour. If the upgrade changes persistent formats, record backward-read evidence or a separate migration/recovery requirement.

6. Deliver the candidate, delta ledger and verification receipts with remaining gaps. Name any release target, authorised publisher, stop trigger and recovery checkpoint. Package publication, production activation and data migration proceed only when covered by existing authority; otherwise end at the reviewable local candidate.

## Boundaries

- The version analyst is for a same-stack uplift. Its definition names ecosystem tools that may be absent or may edit files; its read-only prose is not a sandbox. Restrict the research stage in the host and run permitted migration tools only in the isolated copy.

- A version label and a successful install do not prove application compatibility. Use documentation for the exact interval and inspect the dependency graph actually resolved; do not upgrade unrelated packages merely to remove warnings.

- Dependency restoration and migration helpers can execute package lifecycle code. Use the project-approved procedure in the permitted development environment, without production secrets; record any disabled scripts and the coverage lost by disabling them.

- Retain registry credentials in the approved secret store or inherited environment. Redact private registry URLs and tokens from receipts; use permitted source exports when repository or package access is unavailable.

- Keep required licence notices with generated or copied code. A source-available package or migration helper does not grant access to hosted services, and restoring an old lockfile cannot reverse an incompatible persistent-data change.

## Expected output

A local upgrade candidate with a source-linked delta ledger, repeatable checks and a recoverable dependency checkpoint.

## Deliverables

- Version-pair delta ledger joined to real use sites and official sources

- Candidate code, manifest and lockfile diff with coordinated dependency decisions

- Baseline, target and prior-version restore receipts with runtime behaviour cases

- Release handoff with unsupported targets, missing coverage and persistent-format recovery limits

## Acceptance checks

- [ ] Current and target versions, runtime and resolved graph are recorded exactly; no moving latest label substitutes for identity.

- [ ] Every applicable delta has a source URL, affected use site and verification case or an explicit unresolved owner.

- [ ] Migration-tool results are claimed only when a saved command, target copy, exit state and output prove the tool ran.

- [ ] Baseline and target receipts include relevant runtime behaviour as well as build/type/test results; pre-existing failures remain visible.

- [ ] The candidate dependency diff is explained, including transitive changes and any peer/runtime constraint resolution.

- [ ] The prior configuration can reproduce its recorded baseline, or recovery remains blocked; persistent-format compatibility is separately evidenced.

Workflow: https://undominated.ai/workflows/#prepare-a-versioned-dependency-upgrade
