DOCS

Component origins

How a release reuses two separately authenticated original component archives.

About 3 min read · 2 sections

On this page

A release can carry a component from an earlier published bundle. The bundle that supplies a component is its origin, and the origin is recorded per component.

flowchart LR
  A["SDK bundle 0.4.7<br/>--reuse-components-from + --components-sha256"] -->|gatewaySdk only| C["release stage<br/>package/release.json"]
  B["relay bundle 0.5.0<br/>--reuse-native-from + --native-sha256"] -->|native only| C
  D["this checkout<br/>fresh build"] -->|runtime, scripts, JavaScript| C

package/release.json keeps the legacy top-level bundleVersion / bundleSha256, which name the reused SDK bundle when present, otherwise the reused relay bundle. Each component also has its own origin, so the relay can point at a separate archive:

{ "reusedComponents": { "bundleVersion": "0.4.7", "bundleSha256": "…",
  "components": {
    "gatewaySdk": { "buildVersion": "0.4.7", "sourceSha256": "…",
      "origin": { "bundleVersion": "0.4.7", "bundleSha256": "…" }, "files": [] },
    "native": { "buildVersion": "0.5.0", "sourceSha256": "…",
      "origin": { "bundleVersion": "0.5.0", "bundleSha256": "…" }, "files": [] } } } }

Rules

Signed macOS executor

Managed macOS installations prefer the signed gateway SDK inside the app when its signed receipt identifies the exact original executor and Code Mode companion in the selected CLI release. The app and helper must pass Developer ID and fixed identifier checks, and the signed package is verified before and after signature validation. The executor path is stable across app releases; its Developer ID identity allows macOS to recognize Keychain access grants across updates. The original CLI checksum remains the compatibility identity exchanged by clients and the service. A missing, changed or mismatched app falls back to the verified CLI executor, preserving CLI-only installations and release-skew behavior.

This does not prove that Keychain will retain an existing grant: confirm an approval on the signed executor and check a later restart and app update on the unlocked Mac. macOS can ask again for other credentials or changed access rules. For unattended MCP OAuth operations, see MCP credential storage.