Runtime Dependency Upgrade and Rollback SOP
Preconditions
Read the module contract. Fix the reference version, candidate version, affected seams, migration scope, and rollback point. Live-provider calls, cost, or code egress require separate authorization.
Procedure
- Run
npm run build,npm run baseline:check, andnpm run dependencies:checkfor pre-change evidence. - Write failing tests for version uniqueness and every affected behavior.
- Set every critical dependency to the same exact version and refresh the lockfile with
npm install --ignore-scripts. - Convert messages, tools, usage, and errors inside private adapters. Do not add low-level version fields to Config.
- Run Provider streaming/tool/abort/usage/error/timeout, Session roundtrip, and tool contract tests.
- Build the public declaration rollups and verify that the Runtime and unified SDK roots expose only CoreMind-owned message, tool, and result contracts.
- Regenerate the Provider matrix and dependency report. New catalog entries remain configurable and unverified.
- Document Session/API migration and whole-family rollback before updating the candidate baseline with an explicit reason.
- Run Windows/Linux install, build, package, CLI, and Python Worker smoke tests.
- Synchronize README, Guide, SOP, Skill, examples, and Changelog, then run documentation gates.
Rollback
Restore all three critical packages to one prior version, restore the lockfile and Session adapter, rebuild, and rerun the reference cases. Never roll back only one package.
Stop conditions
Stop on unexplained message loss, changed tool arguments, incorrect usage accounting, lossless-Session recovery failure, or a security-gate failure. Do not continue through a type cast.