Toolchain installation receipt 0.1.0-draft.1
A receipt describes one installed toolchain generation on one machine. It lives under MORPHIR_HOME/toolchains/generations/<id>/ and is never checked in. It binds the SHA-256 of the exact lock bytes, the platform and every installed object identity, and records local launch paths, ownership, authentication, claim-check status and readiness evidence. Version authority: this page. Schema: toolchain-receipt-0.1.0-draft.1.schema.json.
Members
| Member | Meaning |
|---|---|
generationId | A local opaque token. It is not a release version |
platform | The platform the generation was installed for |
lockSha256 | SHA-256 of the exact lock bytes |
recipe | The lock's recipe reference, repeated |
host | The installed host |
providers | One installed provider per locked provider, in lock order |
readiness, checks | Generation readiness and its one workflow check |
host has:
-
identity:implementation,version,deployment,target,sha256, equal to the lock's host and the platform closure'shostTargetandhostSha256; -
execution:mode(native-aotorjit) andruntime. Native AOT has{ "kind": "none" }; JIT hasbundledorsystemwith the runtimeversion. Any other combination isinconsistent_documentathost.execution.runtime. For thedotnetimplementation the deployment fixes the execution, and a mismatch isinconsistent_documentathost.execution:Deployment Execution native-aotnative-aot, runtimenoneself-containedjit, runtimebundledframework-dependent,dotnet-tooljit, runtimesystemThese are the only four deployment values. The legacy
morphir-{rid}release names carry the Native AOT executable, so a host installed under one of them reportsnative-aot(decided 9 November 2026, finos/morphir#1146). -
installation,readinessandchecks.
Each provider has identity, the lock's provider entry exactly, and readiness and checks. Every provider except a built-in also has installation; a built-in is part of the host and has none.
Installation
| Member | Cases |
|---|---|
ownership.kind | manager-owned; direct-archive; dotnet-tool with packageId and scope (global, tool-path, local-manifest); system-package with manager |
authentication.kind | How the manager authenticated the installed bytes: repository-target with repositoryId and targetsVersion; recipe-digest with repositoryId, recipeTarget, recipeSha256, which must equal the receipt's own recipe (otherwise inconsistent_document at the authentication member); or external-owner. local-developer is refused with inconsistent_document at the authentication member (see below) |
launch | program, an absolute local path in the receipt platform's syntax, and fixed args |
claimCheck (providers) | probed with probeSource (describe or session-fallback), or unchecked without one |
The manager updates or removes only manager-owned installations. For another owner it reports the owner's update mechanism.
Publisher authentication and the claim check are separate facts. authentication says how the manager authenticated the bytes: directly by TUF target metadata, by a digest in an authenticated recipe, or not at all, because an external owner installed them. claimCheck says whether the installed artifact was run to compare its capability claims. An authenticated artifact installed with --no-probe is still unchecked, and a manager-owned installation always says how the manager authenticated it.
Developer artifacts are never part of a generation. A receipt always binds a lock, and a lock names only artifacts that an authenticated recipe binds by digest. So bytes whose digest equals a locked digest were authenticated by that recipe digest, and are labelled recipe-digest, whoever built them. An unsigned developer artifact cannot equal a locked digest, so it is never part of a toolchain generation. It is installed outside generations, under the extension installer's explicit developer policy, and a receipt that labels a provider local-developer is refused (receipt/negative/developer-artifact-in-generation.json).
Readiness
Readiness is ordered: acquired, integrity-verified, capability-checked, workflow-qualified. A component records exactly one integrity and one capability check. A generation records exactly one workflow check, naming its workflow. A check's status is passed, failed, skipped or unsupported; anything other than passed states its reason, so a skipped or unsupported check stays visible.
workflow is a member of the workflow case: a workflow check without it is invalid_document at its workflow, a required member being absent (receipt/negative/workflow-check-without-workflow.json), and any other check with it is inconsistent_document there. In the same way, a probed claim check without probeSource is invalid_document at probeSource (probed-without-probe-source.json). A component's checks that are not exactly one integrity and one capability check are inconsistent_document at its checks (component-checks-not-one-of-each.json). workflow-qualified is the readiness of a generation, so a component that records it names a known state in the wrong place, inconsistent_document at its readiness (component-workflow-qualified.json). A built-in provider is part of the host's bytes, so its integrity check has the same outcome as the host's; a different outcome is inconsistent_document at the provider's checks.
The capability check differs by delivery:
- A process, WASM or .NET tool provider. The host starts a session with it, and the check passes when the session agrees with its locked protocol and model.
- A built-in, which has no session of its own. The staged host runs
extension list --json, and the check passes when that list reports the built-in with the lockedextensionIdandversion, the operation's language or target, and the IR version of its lockedmodelInputormodelOutput. - The host itself. The check passes when it speaks the MEP versions its recipe offering lists.
All three run the staged host with the user's rights, which is why the plan's host component has probe process-with-user-rights (manager result).
Activation (decided 9 November 2026, finos/morphir#1146). Setup activates a staged generation when no check failed and every component is capability-checked. The workflow check runs whenever it can. When it is skipped, because the toolset has no fixed case or the case has pending steps, the receipt and show say skipped, and the generation is never reported as workflow-qualified. A failed check at any level, including a workflow check that ran and failed, prevents activation and leaves the prior selection in place. receipt/workflow-skipped.json is a generation that activates as capability-checked with a skipped workflow check; receipt/negotiation-failed.json is one that does not activate.
Readiness is derived, never asserted:
- a component is
integrity-verifiedwhen its integrity check passed andcapability-checkedwhen both checks passed; - a generation is
workflow-qualifiedwhen every component iscapability-checkedand the workflow check passed, and otherwise has the lowest component readiness.
For the fsharp preset the workflow is fsharp-compile-generate, the fixed case described in F# readiness workflow case.
A receipt whose readiness differs from the derived value is inconsistent_document. A valid archive whose frontend shares no tuple with its host is therefore integrity-verified, installed but not ready.
Understood critical paths: schemaVersion, critical, generationId, platform, lockSha256, recipe, host, host.identity, host.execution, host.installation, host.readiness, host.checks, providers, providers.identity, providers.installation, providers.readiness, providers.checks, readiness, checks.
Binding to the lock
Given the lock bytes and the lock they read as, a receipt is checked in this order and refused at the first failure. Every path names a member of the receipt, except platforms, which names the lock's member, as it does in frozen restore:
| Check | Code | Path | Cases |
|---|---|---|---|
The SHA-256 of the lock bytes equals lockSha256 | lock_changed | lockSha256 | receipt-lock-bytes |
recipe equals the lock's recipe (repositoryId, target, sha256) | receipt_lock_mismatch | recipe | receipt-lock-recipe |
Every repository-target authentication, of the host and then of each provider in index order, names the lock's recipe.repositoryId | repository_mismatch | host.installation.authentication.repositoryId, providers[i].installation.authentication.repositoryId | receipt-lock-repository |
The lock records a closure for the receipt's platform | platform_not_locked | platforms | receipt-lock-platform |
host.identity has the lock's host implementation, version and deployment, and the closure's hostTarget and hostSha256 as target and sha256 | receipt_lock_mismatch | host.identity | receipt-lock-host |
providers has as many entries as the closure's providers | receipt_lock_mismatch | providers | receipt-lock-provider-count |
Each provider's identity, in index order, equals the closure's provider at the same index | receipt_lock_mismatch | providers[i].identity | receipt-lock-provider |
The repository row applies the one repository per binding check rule: bytes the receipt says a repository authenticated came from the lock's repository. A recipe-digest authentication already names the receipt's own recipe, and external-owner names no repository.
A manager result reports lock_changed and receipt_lock_mismatch with document receipt, and platform_not_locked with document lock. repository_mismatch is a trust-failure diagnostic, whose repositoryId names the repository the check ran against.
Launch and rollback against learned revocations
Before run launches a generation, and before rollback selects one, the manager checks the generation's lock against the trust state it has learned from the repository. That state is durable: Morphir Home's trust state records every learned revocation, and it survives a failed metadata refresh and offline use. So a revocation, once learned, keeps refusing even when the repository cannot be reached. The checks, in this order:
| Check | Code | Path | Cases |
|---|---|---|---|
The lock's recipe.repositoryId is the repository the trust state belongs to | repository_mismatch | recipe.repositoryId | generation-repository |
| The trust state lists the lock's recipe target, so its status can be known | target_not_authenticated | recipe.target | generation-recipe-unlisted |
| The lock's recipe target has no learned revocation | release_revoked | recipe.target | generation-recipe-revoked |
The lock's host release has no learned revocation (a tool-release offering) | release_revoked | host.version | generation-host-revoked |
The host release is found by the tool release metadata v1 layout: the release descriptor target releases/<toolId>/<version>.json, with toolId from the source of the offering in the generation's recipe that has the lock's host implementation, deployment and version, and its status from that target's custom.morphir. A host whose offering has a dotnet-tool source has no version 1 release status, and the row does not apply to it. A yanked recipe is still launched: yanking only stops new resolution. A generation without its recipe in the trust state is not launched, because its revocation status cannot be known (signed/negative/lock-recipe-unlisted.lock.json).
A provider has no version 1 release status, so revoking the recipe that binds it is how a provider is revoked. A learned recipe revocation therefore refuses every generation bound to that recipe, whatever its offering, as the recipeRevocation metadata set of the signed fixtures shows. Paths name the lock's members; a result reports these as trust-failure diagnostics.
Fixtures
fixtures/0.1.0-draft.1/receipt/ holds a workflow-qualified Windows generation bound to lock/two-platforms-bound.json, a generation whose frontend failed negotiation, a generation that activates as capability-checked with a skipped workflow check (workflow-skipped.json), and an externally owned global .NET tool host bound to lock/dotnet-tool-host.json. receipt/binding/ holds valid receipts that do not bind their lock: a substituted provider artifact, a substituted host release, a platform the lock does not record, another recipe, a missing provider, a host authenticated by another repository, and another recipe together with another host release, which is refused at recipe because the recipe is compared first. receipt/negative/ covers:
- a later draft and an unknown critical member;
- readiness above its checks, a qualified generation with a failed workflow, an unknown readiness state, a non-passed check without a reason, a workflow name on a component check, two workflow checks, and a built-in whose integrity differs from its host's;
- a workflow check without
workflow, a component recordingworkflow-qualified, and a component with two integrity checks and no capability check; - a provider without a claim check, a probe source on an unchecked claim set, and a probed claim set without its probe source;
- a process provider without
installation, and a provider identity without itsmodelTuple; - Native AOT with a bundled runtime, and a deployment whose execution disagrees;
- an unknown owner, a built-in with an installation, a provider labelled
local-developeralthough it binds the locked digest, an external owner for a manager-owned installation, andrecipe-digestauthentication naming another recipe; - relative, wrong-platform, traversing and drive-root launch paths;
- credential members (
authorization,apiKey) and an invalid generation id.