mesa-doc /mesa/docs/requirements/contracts-distribution
docs

Contracts distribution (MESA Pro consumes @modu/contracts)

Status: public release contracts-v0.7.0 published (2026-11-28); repo is public and contracts are Apache-2.0. Registry publication not chosen.

Options

optionverdict
Public GitHub Release asset (current)No npm/GitHub Packages scope/auth decision; Pro pins a version + SHA256. Because mesa is public, the asset is public; contracts are Apache-2.0. Workflow: .github/workflows/contracts-release.yml.
GitHub PackagesRequires npm scope to match the repo owner (@delmore7/...), which conflicts with the public contract name @modu/contracts; not chosen.
Public npm@modu scope ownership/auth unknown; publishing an open contract package is acceptable in principle but needs an account decision. Not done.

Release (public)

git tag contracts-v0.7.0
git push origin contracts-v0.7.0

The workflow runs npm run verify:contracts, packs @modu/contracts, and uploads:

  • modu-contracts-0.7.0.tgz
  • SHA256SUMS

to the public release contracts-v0.7.0 (verified assets: modu-contracts-0.7.0.tgz sha256 a26283a5180b4f36d5ebafe209a234d4d51abc3b637545a61d3d6a5733907895, plus SHA256SUMS).

Consume in MESA Pro

Pro must install the exact tarball and verify the checksum before use:

curl -L \
  https://github.com/delmore7/mesa/releases/download/contracts-v0.7.0/modu-contracts-0.7.0.tgz \
  -o modu-contracts-0.7.0.tgz
curl -L https://github.com/delmore7/mesa/releases/download/contracts-v0.7.0/SHA256SUMS -o SHA256SUMS
sha256sum -c SHA256SUMS
npm install ./modu-contracts-0.7.0.tgz

Pin the version in Pro’s lockfile; do not use latest. A future signed-pack flow replaces the checksum with a Pro-issued signature, but the tarball channel stays the same.

Handshake

Pro runs modu contract --json and compares version with the installed @modu/contracts CONTRACTS_VERSION; both must match the pinned release. See mesa-pro/docs/platform-adapter.md.

源文件 · mesa/docs/requirements/contracts-distribution.md