Releases and Integrity#

Use AgentPM CLI 0.1.43+ for these workflows. Newly published Python Tools use an immutable agentpm.package.release.v1 release. Node Tools and other package kinds use the legacy single-archive format. Existing published Python versions retain their original format; no migration or republish is required.

One version, multiple artifacts#

A release is one logical package identity and semantic version. Its inventory contains independently downloadable target archives; it is not several package versions. A pure-source Python Tool can publish one any artifact even when its declared dependencies need native wheels, because dependencies are installed separately for each consumer. Bundling native executables/libraries makes the payload concrete-target-specific.

Supported concrete targets are:

  • aarch64-apple-darwin: Apple Silicon macOS;
  • x86_64-apple-darwin: Intel macOS;
  • x86_64-unknown-linux-gnu: Linux x86-64 with glibc (CLI 0.1.43 requires glibc 2.39+);
  • x86_64-pc-windows-msvc: Windows x64.

any describes recognized portable payload formats. It does not prove that code has no OS assumptions, that external programs are available, or that dependency wheels exist for every Python version. Build native payloads on their real platform; changing a target label does not cross-compile them. Unix executable permissions can narrow text files that Windows packages without an executable mode. CI rejects mixed any/concrete claims; inspect diagnostics and fix/rebuild the source or permissions rather than relabeling or dropping outputs.

Every intended target must be included when the release is finalized. Adding or replacing an artifact requires a new semantic version. A failed matrix build must prevent publication; partial uploads never become a partial installable version. Retrying finalize with the same completed inventory is idempotent.

The canonical release document#

A simplified illustration with placeholder digests:

{
  "type": "agentpm.package.release.v1",
  "kind": "tool",
  "name": "@your-namespace/example-tool",
  "version": "1.0.0",
  "manifestDigest": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "pythonResolutionDigest": "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
  "artifacts": [
    {
      "target": "any",
      "digest": "sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc",
      "size": 12345,
      "contentType": "application/gzip",
      "format": "tar.gz"
    }
  ]
}

manifestDigest binds the logical manifest; pythonResolutionDigest binds its portable Python resolution and is omitted when no resolution exists. The complete artifact array is sorted by canonical target, with unique targets. Each descriptor binds the archive digest, byte size, format and content type. Mutable scan status, upload IDs, storage URLs, local paths and interpreter fingerprints do not belong in this document.

The release schema and its shared fixtures define the exact versioned contract. AgentPM generates the document; do not construct author locks from placeholder examples.

Digests and signatures#

ObjectWhat it binds
Artifact SHA-256Exact bytes of one target archive
Manifest digestLogical package manifest
Python resolution digestExact portable distribution versions, markers and digest sets
Release digestCanonical release document and therefore its complete artifact inventory
Author signaturePublisher's signed package/release identity
Registry attestationRegistry's signed record of the stored package/release

New release-level cryptographic JSON uses RFC 8785 JSON Canonicalization Scheme (JCS): UTF-8, deterministic object-key ordering and number serialization, with no insignificant whitespace. JCS preserves array order, so AgentPM sorts set-like arrays before canonicalizing. The release digest is SHA-256 of those canonical bytes. New timestamps use normalized UTC RFC3339 Z. Historical signature types retain their original serialization; reserializing them with JCS would change the bytes they actually signed.

New-format author statements are agentpm.package.signature.v2; Registry attestations are agentpm.registry.attestation.v3. One signature/attestation covers the entire release, including every target artifact, through the release digest. Legacy publications use author agentpm.package.signature.v1 and Registry agentpm.registry.attestation.v2; supported historical labels remain verifiable. Statement versions and package versions are separate concepts.

A registry attestation proves provenance/integrity, not that a Tool is safe or that it passed dependency vulnerability analysis. Malware scans are asynchronous; see scanning.

What install verifies#

agentpm install @your-namespace/example-tool@1.0.0 \
  --require-signature --require-attestation

For a new-format release, the client:

  1. Resolves its logical version and verifies the release digest and provenance.
  2. Validates the exact-target descriptor, falling back to any only when no exact artifact exists, and checks membership in the verified release.
  3. Downloads only the selected archive, then checks its SHA-256 and size before safe extraction.
  4. Installs applicable locked Python distributions into a managed environment using compatible wheels and recorded hashes, then finalizes installation.

A compatible newer version is never silently substituted for an exact or locked version. Incompatible targets report both the consumer and available targets. SDK loading/calling uses the installed result; it does not select another artifact or provision a missing runtime.

New-format release provenance is verified during normal installation. Namespace required-signing policy requires at least one valid authorized author signature; --require-signature applies that requirement even when policy is optional/off. --require-attestation requires an actual cryptographically valid Registry signature for legacy and new-format packages. A badge or boolean is not proof.

Trust and key rotation#

The official CLI pins the public root for https://api.agentpackagemanager.com. It authenticates the Registry's agentpm.registry.keyset.v1 response from /v1/registry/signing-keys with that root before trusting routine attestation keys. Key IDs select full public keys from the authenticated set; short display fingerprints are not trust anchors. Unknown keys, invalid signatures and expired/untrusted key sets fail verification. Only a verified, unexpired cached key set can be reused.

Routine Registry signing-key rotation retains retired keys in the root-signed set so historical releases remain verifiable. Root rotation is a separate bootstrap operation that may require an updated CLI trust ring. Custom Registry trust is not established by accepting whatever key appears beside a signature. Ordinary author-key revocation blocks new publication but preserves signatures accepted while the signer was authorized; the Security page shows current revocation status separately.

Portable and local state#

agent.lock keeps one logical entry such as tool:@your-namespace/example-tool@1.0.0. Its integrity is the 64-character lowercase release SHA-256 for a new release; legacy entries retain their archive digest. It contains the portable Python resolution when applicable. Neither a target-qualified key nor the selected artifact/interpreter belongs in the portable lock. v2/v3 locks remain supported; v4 represents the newer capabilities, and unsupported future versions fail instead of being rewritten.

Selected target/artifact markers, extracted payloads and runtime fingerprints live under .agentpm/; caches are also machine-local. Keep .agentpm/ out of source control and use agentpm install on each consumer. Use CLI commands to update installed dependencies rather than editing generated locks or markers.

Advanced publishing and storage#

agentpm package creates an archive plus a provider-neutral build descriptor. Collect native build bundles and use one publish --build fan-in, as described in CI publishing. Normal local publishing remains available. The Registry stores canonical release.json alongside separate immutable target objects under its configured final-object prefix. Staging objects are temporary; an object merely existing in storage does not mean its release was committed. Finalization verifies stored bytes and atomically exposes the complete version. Basic authors do not need to configure storage keys or upload objects manually.