Toolchain acquisition contracts
morphirup installs a Morphir host and language toolsets from authenticated metadata. This section defines the five runtime-neutral documents it reads and writes. The .NET manager and any later MoonBit or Rust manager implement them; none of them is a Morphir CLI command today.
These contracts implement the approved OpenSpec change add-deployment-and-acquisition (decisions DEP-1, UP-1, UP-2, FS-1, LOCK-1, PATH-1 and QUAL-1). The commands named on these pages are that change's proposed interface.
The five documents
| Document | Location | Written by | Read by | Contract |
|---|---|---|---|---|
| Toolset recipe | Authenticated TUF target, for example toolchains/recipes/fsharp/1.0.0.json | Release assembly | Manager resolution | schema |
| Project toolchain request | .morphir/toolchain.toml, checked in | The user | Manager setup, restore and selection | schema |
| Portable lock | .morphir/toolchain.lock.json, checked in | Explicit setup or update | Frozen and offline restore | schema |
| Installation receipt | MORPHIR_HOME/toolchains/generations/<id>/ | The manager, for one installed generation | Activation, run, show, doctor, repair and rollback | schema |
| Manager result | Standard output of morphirup --json | The manager | Automation | schema |
The request is what a project asks for. The lock is the exact answer, portable across machines. The receipt is what one machine installed from that answer. Keeping the three apart lets a colleague on another platform restore the same lock without inheriting anyone's local paths.
Version authorities
Each document starts at 0.1.0-draft.1, and each page above is the authority for its own version. Changing one document's version does not change another's.
The contracts these documents refer to keep their own versions. Nothing here renames them in place. A reader reads each one only at the version listed, never an earlier draft of it, and nothing on these pages converts between drafts (maintainer decision of 9 November 2026: transient pre-1.0 formats are not read or converted):
| Referenced contract | Version | Authority |
|---|---|---|
| Tool release descriptor and TUF profile | schemaVersion: 1 | Tool release metadata v1 |
| Extension release descriptor | 2.0.0-draft.2 | Extension distribution |
| Capability claim set | claimsVersion 0.1.0-draft.2 | Extension protocol |
| MEP | The 0.2 line: every prerelease of 0.2.0 and every final 0.2.x (MEP versions) | Extension protocol and model transport |
| Model envelope | 0.1.0-draft.1 | Model transport |
| Morphir IR | formatVersion | IR format version |
Glossary
Some words are used with more than one meaning across the toolchain, MEP and morphir-dotnet documents. On these pages they mean:
| Word | Meaning here | Not to be confused with |
|---|---|---|
| host | The Morphir CLI release a generation runs: an implementation, a version and a deployment (dotnet 1.2.3 native-aot). A recipe's hosts are host offerings | The command name a host's extension list --json reports (morphir, dotnet-morphir), and the MEP side that runs guests |
| deployment, offering | One separately published form of a host: native-aot, self-contained, framework-dependent or dotnet-tool. An offering is a recipe's entry for one implementation, release and deployment | A command name: dotnet-morphir is the command of the dotnet-tool deployment |
| readiness | The state one component or one generation reached on one machine: acquired, integrity-verified, capability-checked or workflow-qualified | The readiness workflow case, which is the data the workflow check runs |
workflow-qualified | A readiness state: this generation, on this machine, passed the readiness workflow with its selected providers | A qualification claim. It says nothing about a release, an offering or a platform being qualified, which needs release evidence from acquired artifacts. A generation installed from a developer build can reach it |
| probe | The plan member probe: whether setup runs a component's code, and with what rights | The install-time describe claim check, the readiness handshake, and the AOT probe test projects in morphir-dotnet |
| extension id | A provider's registry and MEP identity, such as morphir-dotnet.fsharp, without any transport label or runtime version text | The frontend identity a compile report names, which includes runtime text, and an executable name such as morphir-fsharp-frontend |
| capability check | For a process, WASM or .NET tool provider, the session handshake comparing its claims with the locked model. For a built-in, the staged host's extension list --json reporting the built-in with the locked extensionId, version, language or target, and the IR version of its model | The claim check (claimCheck), which compares a probe's claims with the descriptor's |
Rules shared by all five
Versions
schemaVersion is a SemVer string. A reader lists the versions it supports as SemVer requirements and refuses anything else before it reads another member. A 0.1.0-draft.1 reader lists exactly =0.1.0-draft.1, so it refuses 0.1.0-draft.2 and the released 0.1.0 with unsupported_contract_version. A contract version carries no build metadata: =0.1.0-draft.1 would match 0.1.0-draft.1+build.5 by SemVer precedence, so a reader also refuses any version with build metadata (lock/negative/draft-build-metadata.json). Every other version member is compared as exact text in canonical SemVer spelling, so 1.2.3 and 1.2.3+build are different versions. A string that is not SemVer, such as 0.1, is invalid_value. Drafts promise no compatibility with each other. Use a SemVer library, never a hand-written version type.
The bound on a version. This applies to every version string: schemaVersion, every version member, the version in a comparator, and a MEP version.
- Length: at most 256 characters. This is npm semver's
MAX_LENGTH, so a reader built on it already refuses longer. A version holds only ASCII, so this is also 256 bytes. - Numeric identifiers: major, minor, patch, and every all-digit prerelease identifier, at most 15 digits each. Every 15-digit number is below 253, so it is exact in a JavaScript number, and it fits Rust's
u64, MoonBit'sInt64and any signed 64-bit integer. - Build metadata: bounded only by the 256 characters.
A reader checks the bound on the text before any SemVer parser runs, because parsing an unbounded version with an arbitrary-precision library takes time that grows with the square of its length. A version past the bound is invalid_value at the member that holds it, and so is a comparator whose version is past it; a schemaVersion past it is invalid_value too (lock/negative/schema-version-past-bound.json), where one at the bound is only unlisted (schema-version-at-bound.json). The schemas' version patterns carry the same bound. The version and mep-version binding cases pin it at 255, 256 and 257 characters, at 15 and 16 digits in each numeric identifier, and for long build metadata inside and past 256 characters.
This bound is the one the released morphirup (finos/morphir-dotnet v0.4.0-alpha.4) ships as provisional. No maintainer decision records it yet; the maintainer has been told of it and may still change it.
A note for anyone validating the schemas. Their patterns are ECMA-262 regular expressions, as JSON Schema requires, and a validator must apply ECMA-262 semantics to them. In ECMA-262, $ matches only at the end of the string, so "0.2.0\n" is refused by $defs.mepVersion. .NET's $ also matches before a final line feed, and validators built on .NET regular expressions inherit that. JsonSchema.Net does, so it accepts "0.2.0\n" against $defs.mepVersion, and a trailing line feed in every patterned string. The schemas are right and such a validator is not. Run it with patterns anchored by \z, or check the end of the string yourself. The .NET host hit this trap twice, once in its schema tests and once in its TUF reader.
MEP versions
A provider's protocolVersion and a host offering's protocolVersions are MEP versions on the supported 0.2 line. A version is on the line when, in canonical SemVer spelling without build metadata, its major is 0 and its minor 2, and it either has no prerelease or is a prerelease of 0.2.0. So 0.2.0-draft.1, 0.2.0-draft.2, 0.2.0-DRAFT.1 (SemVer is case-sensitive, so this is another prerelease of 0.2.0), 0.2.0-rc.1, 0.2.0 and 0.2.3 are on it, and 0.1.0, 0.2.1-rc.1, 0.3.0-draft.1, 0.3.0, 1.0.0 and 0.2.0+build.1 are not. MEP 0.1 is not supported.
Two codes apply, following their definitions in the code table:
- a string that is not a version in canonical SemVer spelling fails its type and is
invalid_value, as for every other version member:0.1,0.2,v0.2.0,00.2.0,0.2.0-,0.2.0-01,"0.2.0\n", the empty string, and any version past the bound, such as a patch of 16 digits or a prerelease of 1,100 letters. Under this split a version past the bound isinvalid_valueeven when it would be off the line: it is not a version in the contract's grammar at all, so its type fails before the line is consulted. A 15-digit major is SemVer and off the line,unsupported_case; a 16-digit one isinvalid_value; - a SemVer version that is not on the line, build metadata included, names a protocol this contract does not support and is
unsupported_case, as an unknown case of a tagged member is:0.1.0,0.2.1-rc.1,0.3.0-draft.1,0.3.0,1.0.0and0.2.0+build.1.
Either refusal is at the member that holds the version.
As single comparators the line is >=0.2.0-0 and <0.3.0-0. Both comparators hold for 0.2.1-rc.1 too; the SemVer library rule of the Rust semver crate and @std/semver, under which a prerelease matches only a comparator naming its own major, minor and patch, is what keeps it out. A library without that rule, such as NuGet's version ranges, must apply the definition above rather than the comparators. The mep-version binding cases in cases.json pin the line, and lock/protocol-version-*.json and lock/negative/protocol-version-*.json show it in a lock.
Admitting every prerelease of 0.2.0 is a maintainer exception, for MEP only, to the rule that a prerelease matches only exactly. The five toolchain documents keep exact draft matching for their own schemaVersion, as stated above.
Membership is exact, deliberately. A provider fits a host offering only when the offering lists the provider's protocolVersion, and a release's claims must list it too (authenticated recipe checks). So two versions on the line are still different versions: a provider at 0.2.0 does not fit a host that lists only 0.2.0-draft.1 (recipe/protocol-membership-exact.json and its resolve case). This matches how MEP negotiates, by intersecting the lists of versions each side names. The rule is provisional on open question Q1: whether supporting the 0.2 line means that any version on it may be named, which is this rule, or that peers on the line work together.
Unknown and critical members
A reader ignores any member it does not understand, at any depth. critical is an optional array of unique member paths. A path is a dotted list of member names from the document root. Array elements are named through the array's member name, without an index: toolset.providers.delivery names delivery in every element of toolset.providers. Entries of a map whose keys are data are named by *: platforms.*.providers.modelTuple names modelTuple in every provider of every platform closure.
A reader refuses a critical path it does not understand with unsupported_critical_member, and the diagnostic's path is that critical path. Each page lists the paths a 0.1.0-draft.1 reader understands, and each schema enumerates exactly those under critical. A critical path is understood only when it is exactly one of those strings. A data-keyed map entry is named only by *, and an array element only through its array's member name, so platforms.win-x64.hostTarget and providers[0] are not understood paths, even though they name members the reader reads. The paths in critical are unique: a repeated path is inconsistent_document at critical.
Order of checks
A reader reports the first failure it finds, and the order is part of the contract:
- The bytes are JSON (TOML 1.0 for a request) and the root is an object. Otherwise the code is
invalid_documentat the empty path. A JSON object that repeats a member name is not a document, because readers would keep different members: it isinvalid_documentat the empty path (lock/negative/duplicate-member.json). A JSON document that starts with a UTF-8 byte order mark isinvalid_documenttoo, because a byte order mark is not JSON (RFC 8259) and these documents are written by managers and publishers (lock/negative/byte-order-mark.json). A request may start with one: it is a file a person edits, editors on Windows add one, and the reader reads the TOML after it. Its identity still covers every byte, so a lock bound to the request without the mark reportsrequest_changedwith causebyte-order-mark(request/approved-bom.tomlreads as a document). schemaVersion. If it is absent or not a string, the code isinvalid_document. If it is not SemVer,invalid_value. If it is not a listed version,unsupported_contract_version.critical. If it is not an array of strings, the code isinvalid_document. A repeated path isinconsistent_documentatcritical, checked before any path is compared with the understood ones. After that, the first path in array order that is not understood isunsupported_critical_member.- Credentials. The first credential member found by a depth-first scan of the whole document is
credential_in_document. The scan visits each object's members in UTF-8 byte order of their names and each array's elements in index order. A credential is therefore refused before any other member of the body is read, even inside a member the reader otherwise ignores. - The body. A rule that relates members is checked once the members it relates have been read. The recipe's consistency rules marked after reading wait for the whole document, in the order of their table.
Within the body:
- array elements are read in index order, and each element is read completely, with every rule that concerns it and the elements before it, before the next element is read. So a failure in an earlier element is reported first, and a rule that compares an element with the earlier ones, such as a repetition, is checked as that element is read. For
"protocolVersions": ["0.2.0", "0.2.0", "not-a-version"]the refusal is the repetition at index 1, not the invalid entry at index 2 (recipe/negative/precedence-repetition-before-invalid-entry.json); - in a map keyed by data, every key is checked first. The first invalid key in UTF-8 byte order is
invalid_valueat that key. The entries are then read in key order, whatever order the document lists them in. For platform keys, key order is the order of the platform table:win-x64,win-arm64,osx-x64,osx-arm64,linux-x64,linux-arm64,linux-musl-x64,linux-musl-arm64; - the checks that compare one document with another, on the recipe, lock and receipt pages, visit platforms in the same order;
- which member a refusal names depends on the kind of rule. A rule that compares an element with the elements before it names the later element, the one that broke it: a repetition is reported at the repeated element, such as
hosts[0].protocolVersions[1],operations[1]orhosts[1]. A rule about the collection as a whole, which no single element breaks, names the collection: closures that cover different operations from each other are refused atplatforms, and a missing or surplus plan component atplan.components.
Failures in two different members of one object are not ordered by this contract, with one exception: a reader may report either. The fixtures are written so that no case depends on that order.
The exception is a provider's delivery members. An external provider is checked protocolVersion first (its type, then the line), then the members it must not have (modelInput, then modelOutput), then modelTuple. A built-in is checked for the members it must not have (protocolVersion, then modelTuple), then for the model member of the other operation (modelInput on a compile built-in, modelOutput on a generate one), then for its own model member. So a provider with an off-line protocolVersion and a modelInput is refused at protocolVersion.
These fixtures each break two rules and pin the order between them:
| Fixture | Rules broken | Reported |
|---|---|---|
lock/negative/precedence-version-before-credential.json | A later draft; a credential member | unsupported_contract_version at schemaVersion |
lock/negative/precedence-duplicate-before-unknown-critical.json | A repeated critical path that is also not understood | inconsistent_document at critical |
lock/negative/precedence-critical-before-credential.json | An unknown critical path; a credential member | unsupported_critical_member at platforms.*.unknownMember |
lock/negative/precedence-credential-before-body.json | A credential member; a non-SemVer host version | credential_in_document at apiKey |
lock/negative/precedence-credential-byte-order.json | host.token, listed first; Authorization at the root, listed last | credential_in_document at Authorization |
lock/negative/precedence-platform-table-order.json | A bad digest in osx-arm64, listed first, and in win-x64 | invalid_value at platforms.win-x64.hostSha256 |
lock/negative/precedence-platform-keys-first.json | A bad digest in win-x64; an unknown key zz-unknown | invalid_value at platforms.zz-unknown |
lock/negative/precedence-protocol-version-before-model-member.json | An external provider at MEP 0.3.0 that also has modelInput | unsupported_case at platforms.win-x64.providers[0].protocolVersion |
recipe/negative/precedence-repetition-before-invalid-entry.json | protocolVersions repeats its first entry, and its third is not a version | inconsistent_document at hosts[0].protocolVersions[1] |
recipe/negative/precedence-body-before-consistency.json | No operations; a non-SemVer host version | invalid_value at hosts[0].version |
recipe/negative/precedence-consistency-table-order.json | A second built-in in hosts[0]; hosts[1] repeats the offering | inconsistent_document at hosts[1] |
result/negative/precedence-plan-rule-before-digest.json | The host component's source names another digest than the lock's; planSha256 is the digest of the plan before that change | inconsistent_document at plan.components[0].source.sha256 |
receipt/binding/recipe-and-host-substituted.json (against lock/two-platforms-bound.json) | Another recipe; another host release | receipt_lock_mismatch at recipe |
Numbers
Every number in these documents' known members, and every number anywhere inside a plan, is a non-negative integer, such as downloadBytes, installedBytes and targetsVersion. A plan is the exception among unknown members because its digest covers all of it. A number in an unknown member elsewhere is ignored with the member: lock/unknown-member-fraction.json, with "weight": 1.5 at its root, is valid. The integers are written in plain decimal, with no sign, fraction or exponent. 41943040.0 and 1e3 are refused with invalid_document at the member, although their values are integers (result/negative/download-bytes-fraction.json and download-bytes-exponent.json). JSON Schema's integer type accepts both, so the schemas are looser here.
The integer bound. Every integer in these documents is at most 253 − 1 (9007199254740991), the I-JSON (RFC 7493) range: it is exact in a JavaScript number and in any 64-bit integer, so every reader language holds every integer exactly. A larger integer is invalid_value at the member (result/setup-plan-integer-at-bound.json is valid at the bound, and result/negative/download-bytes-past-bound.json, one past it, is refused). The schemas give every integer the same maximum. A reader under these contracts applies the same bound to every integer of the TUF metadata it loads, where past it is metadata_signature_invalid (metadata rules for toolchain readers). That is a rule of these contracts, not of tool release metadata v1 (Decision 12). No fixture valid before the bound was stated is refused by it.
Tagged cases
Members that select a case are closed sets: delivery, operation, prerequisite, source, ownership and authentication kind, readiness, check, status, command, outcome and diagnostic kind. A reader refuses a case it does not know with unsupported_case. There is no default case: an unknown tag never stands for a known one.
The provider delivery cases are:
delivery | Meaning | Identities it requires |
|---|---|---|
built-in | Compiled into the host | The model it exchanges with the host: modelOutput for compile, which writes the model, and modelInput for generate, which reads it. No artifact |
process | A native process speaking Content-Length framed MEP | Descriptor and per-platform artifact digests |
wasm | A portable module for one named ABI | abi, descriptor and artifact digests |
dotnet-tool | A .NET tool package installed into an isolated tool path | packageId, command, package digest, and the release's descriptor digest |
The public runtime name for WASM stays wasm. The ABI, such as morphir-bytes-v1 or extism-kernel-v1, is a separate member, and a host that supports one ABI never accepts a guest for another.
Prerequisites are runtime, sdk (with phase install or run) and native (optionally limited to platforms). Every prerequisite has kind and name. versions is required for runtime and sdk and optional for native; phase is required for sdk. A comparator is exactly one of =, >, >=, < or <=, then a complete version in canonical SemVer spelling, with no space. ^, ~, wildcards, partial versions such as >=10, and combined ranges are invalid_value, because Rust, TypeScript and .NET give them different meanings (recipe/negative/comparator-*.json). Versions are lists of single SemVer comparators, [">=10.0.0", "<11.0.0"], because Rust and TypeScript separate combined ranges differently. An installed version meets the list when it satisfies every comparator by SemVer precedence and, if it is a prerelease, at least one comparator names its own major, minor and patch with a prerelease. This is the rule of the Rust semver crate and of npm. So [">=10.0.0", "<11.0.0"] is not met by 11.0.0-preview.1, although that version precedes 11.0.0, and [">=11.0.0-preview.1", "<12.0.0"] is met by 11.0.0-rc.1. An empty list is always met. The prerequisite-versions binding cases pin the rule. A native library's version is written as SemVer with missing parts as zero: glibc 2.28 is 2.28.0, so the comparator is >=2.28.0.
Identifiers
| Value | Rule |
|---|---|
| Implementation, deployment, preset, language, target, ABI, generation id, workflow, package manager, command | A lowercase portable token: [a-z], then [a-z0-9-], ending in a letter or digit, at most 64 characters |
Provider identity (extensionId) | Portable tokens joined by ., at most 238 characters: morphir.fsharp, morphir-dotnet.fsharp, org.finos.morphir.fsharp-frontend. In 0.1.0-draft.1 each segment also has at most 64 characters |
| NuGet package id | Segments of [A-Za-z0-9_] joined by . or -, at most 100 characters |
| Tool id | The tool release metadata v1 tool id grammar |
| Digest | 64 lowercase hexadecimal digits of SHA-256 over exact bytes |
| Version | Canonical SemVer |
Dotted extension ids are decided, and the approved plan for them is the OpenSpec change allow-dotted-extension-ids (finos/morphir#1149, merged 10 November 2026). Its last group, which is still to do here, changes three things in these contracts, refining 0.1.0-draft.1 in place:
- the provider identity takes that change's grammar, including its rule that the first segment is not a Windows device name, so
con.examplebecomes invalid; - the 64-character segment limit is dropped, keeping the 238-character total;
- the referenced extension release descriptor moves to
2.0.0-draft.3, and the signed fixtures' descriptors are regenerated at that version with the F# guests under their dotted ids.
Until then the table above and the signed fixtures stand as they are. Every other token in the table keeps its 64-character limit. No toolchain document uses an extension id as a JSON member name, so the critical path grammar is unaffected; ids appear only as values.
An extension id never appears in a target path: target layouts use the descriptor's shortId, as in extensions/fsharp-frontend/0.6.0/release.json. An id does name local files, such as the extension lock MORPHIR_HOME/locks/extensions/<id>.json and its <id>.json.transaction journal. A typical Windows home, the locks\extensions\ directories and the .json.transaction suffix add about 60 characters to the id. So an id longer than about 200 characters exceeds the 260-character MAX_PATH when long paths are not enabled. Long ids were already allowed; dotted ids make them more likely.
Target paths
A target path names an authenticated TUF target. It is relative, uses / as its separator, has at most 512 UTF-8 bytes and at most 240 UTF-16 code units, and has no NUL, control character (U+0000 to U+001F), U+2028 or U+2029. Each /-separated component:
- is not empty,
.or..; - does not end in
.or a space; - contains none of
\ < > : " | ? *; - is at most 255 UTF-8 bytes and 255 UTF-16 code units;
- is not a Windows device name. A component is a device name when the part before its first
., with trailing spaces removed and compared ASCII case-insensitively, isCON,PRN,AUX,NUL,CONIN$,CONOUT$, orCOMorLPTfollowed by one of1to9,¹,²or³. Soartifacts/CON/win-x64.zipandcon.tar.gzare refused.
A path that breaks any of these rules is non_portable_path. This page defines the rules. A target that passes them can be stored on every first-delivery platform, and a manager's tool and extension stores apply the same rules to every path they store.
A target path is also in Unicode Normalization Form C, by the Unicode 17.0.0 rule stated with the plan digest. Canonical encoding normalizes the keys of signed targets metadata to NFC, so a path in another form would be signed under one key and looked up under another. The rule is applied in three places:
- a publisher refuses to publish a target whose path is not NFC;
- a reader refuses a document member that names a non-NFC target path with
non_portable_pathat that member (lock/negative/target-path-nfd.json); - a client refuses a repository whose targets metadata lists a non-NFC path with
non_portable_pathat the empty path. The canonical encoder normalizes every string to NFC, so only a server that serves non-canonical metadata bytes can list one. The signed fixtures serve canonical bytes, so no signed case lists an NFD path; this refusal has no case.
Non-ASCII NFC paths are allowed, and the signed repository publishes one (extensions/fsharp-frontend/0.6.0/notes/café-naïve-字.txt), read by a trust case, so every runner's canonical encoder signs and serves a key that is not ASCII. lock/target-path-non-ascii-nfc.json is the valid lock counterpart.
The length limits count UTF-8 bytes and UTF-16 code units, never code points or characters. 字 (U+5B57) is 3 bytes and 1 code unit; 𝄞 (U+1D11E) is 4 bytes and 2 code units. Both limits apply, so a path of 175 code units is still refused when it is 513 bytes. The schemas cannot express these limits: their maxLength: 240 counts code points, so they accept some paths the reader refuses. The reader's limits govern, and the cases that the schema accepts record that in schemaGap. lock/target-path-512-utf8-bytes.json and lock/target-path-240-utf16-units.json are valid at each limit; lock/negative/target-path-513-utf8-bytes.json, target-path-241-utf16-units.json and target-component-256-utf8-bytes.json are one past them.
Local paths
Only receipts and show results hold local paths. A local path is absolute: a drive letter, :, \ or / and at least one more character (C:\Users\fixture\morphir.exe), a UNC path \\ followed by at least one more character, or / followed by at least one more character. A receipt uses its platform's syntax; a result's project path may use either. No \- or /-separated segment is . or .., and the path has no NUL. Anything else is invalid_value.
Platforms
Platform identifiers use .NET runtime identifier spelling, which states the C library on Linux:
| Platform | Tool release v1 platform | Extension descriptor target triple |
|---|---|---|
win-x64 | windows / x86_64 | x86_64-pc-windows-msvc |
win-arm64 | windows / aarch64 | aarch64-pc-windows-msvc |
osx-x64 | macos / x86_64 | x86_64-apple-darwin |
osx-arm64 | macos / aarch64 | aarch64-apple-darwin |
linux-x64 | linux / x86_64 | x86_64-unknown-linux-gnu |
linux-arm64 | linux / aarch64 | aarch64-unknown-linux-gnu |
linux-musl-x64 | none | x86_64-unknown-linux-musl |
linux-musl-arm64 | none | aarch64-unknown-linux-musl |
The first six are the first-delivery platforms. The two musl identifiers exist so a musl machine can name itself and be told that no matching artifact exists. Tool release metadata v1 platforms do not state a C library, so a recipe binds a v1 Linux artifact only to a glibc platform.
Credentials
No document carries a credential. Every reader refuses, at any depth and including inside members it otherwise ignores, a member whose name equals one of password, passwd, secret, token, apiKey, api-key, api_key, authorization, credential, credentials or cookie, compared ASCII case-insensitively, with credential_in_document. So Authorization and APIKEY are refused too (lock/negative/precedence-credential-byte-order.json, recipe/negative/credential-apikey-uppercase.json). A reported mirror URL has no user information, query or fragment, which are credential_in_document. A mirror is an explicit https or http URL with a host, read the same on every operating system; a bare path such as /srv/mirror, a file: URL and a drive letter such as c:/mirror are invalid_value (result/negative/mirror-*.json).
Document size and files
A manager reads a document only from a regular file, after following symbolic links. A FIFO, a device or a directory in its place is document_unavailable, so a checked-in .morphir/toolchain.toml cannot make a manager wait forever or read without end. A request, lock, receipt or manager result is at most 1 MiB (1,048,576 bytes), and a recipe at most 16 MiB. A larger one is document_unavailable without being parsed. A recipe read through TUF is also bounded by its authenticated target length. These bounds also bound every string in a document. A version string has a tighter bound of its own (versions). No fixture: a file past the bound is not committed, and a FIFO cannot be.
Stable codes
Readers and checks report one code and the member path it concerns. Paths use dotted member names with [index] for array elements, for example platforms.win-x64.providers[0].artifactTarget. The empty path means the document itself, or, for an authenticated-target check, the target itself.
Every code has exactly one result diagnostic kind, so a manager result can report any refusal:
| Code | Result diagnostic kind | Meaning |
|---|---|---|
invalid_document | unsupported-contract | Not the document's syntax, a required member is absent, or a member has the wrong JSON type |
unsupported_contract_version | unsupported-contract | schemaVersion is not a listed version |
unsupported_critical_member | unsupported-contract | critical names a path the reader does not understand |
unsupported_case | unsupported-contract | A tagged member has an unknown case, or a MEP version is not on the supported line |
invalid_value | unsupported-contract | A scalar fails its validated type, such as a version that is not canonical SemVer |
non_portable_path | unsupported-contract | A target path breaks the target path rules |
credential_in_document | unsupported-contract | A credential member or a URL carrying credentials |
inconsistent_document | unsupported-contract | Valid members that contradict each other |
document_unavailable | unsupported-contract | A document the command needs, such as the project request or lock, is absent or unreadable |
request_changed | lock-binding | A lock's requestSha256 differs from the SHA-256 of the request bytes |
platform_not_locked | lock-binding | Frozen restore needs a platform closure the lock does not record |
lock_changed | lock-binding | A receipt's lockSha256 differs from the SHA-256 of the lock bytes |
receipt_lock_mismatch | lock-binding | A receipt identity differs from the lock's closure for its platform |
lock_recipe_mismatch | lock-binding | A lock closure is not one its recipe allows |
plan_changed | lock-binding | --expect-plan named another digest than the plan the command made |
unsupported_artifact | unsupported-artifact | No artifact matches the requested implementation, deployment, release, platform or protocol |
abi_unavailable | unsupported-artifact | The preferred provider needs a WASM ABI the host does not support |
no_compatible_release | unsupported-artifact | Tool release metadata v1: no release matches the selection |
missing_prerequisite | missing-prerequisite | A declared prerequisite is absent |
offline_content_unavailable | offline-content-unavailable | Locked content is absent from the verified store while offline |
ownership_conflict | ownership-conflict | Another owner manages the installation |
readiness_failed | readiness-failed | A readiness check failed |
generation_not_installed | selection-unavailable | The selected generation is not installed |
target_not_authenticated | trust-failure | A target is not listed by the authenticated targets metadata |
target_length_mismatch | trust-failure | Tool release metadata v1: bytes disagree with the authenticated length |
target_digest_mismatch | trust-failure | Tool release metadata v1: bytes or a bound digest disagree with the authenticated digest |
release_descriptor_mismatch | trust-failure | Tool release metadata v1: a binding disagrees with the authenticated release, descriptor or target state |
artifact_platform_mismatch | trust-failure | A platform is bound to another platform's artifact |
repository_mismatch | trust-failure | A document names a repository identity other than the one the check runs against (one repository per binding check) |
release_revoked | trust-failure | Tool release metadata v1: the authenticated state is revoked |
metadata_signature_invalid | trust-failure | Tool release metadata v1: a signature or threshold check failed |
metadata_expired | trust-failure | Tool release metadata v1: metadata has expired |
metadata_rollback | trust-failure | Tool release metadata v1: a metadata version went backwards |
metadata_link_mismatch | trust-failure | Tool release metadata v1: metadata bytes disagree with the role that links them |
metadata_root_rotation_invalid | trust-failure | Tool release metadata v1: a root rotation was refused |
offline_metadata_unavailable | trust-failure | Tool release metadata v1: required metadata is unavailable offline |
repository_unavailable | trust-failure | The repository could not be read for a reason no other code names |
Fixtures and conformance
The contract is the specification pages, the JSON Schemas, the fixture files and the case manifests. fixtures/0.1.0-draft.1/contract-files.json lists them by repository path, and an implementation pins exactly what it lists: two trees copied whole (this fixture tree and the readiness workflow case) and single files. The single files are these pages and their six schemas; the tool release metadata v1 profile, its schema and its conformance corpus, which the host binding rows and the v1Client cases depend on; and the license and notice. Its references name the documents the pages link to without pinning them, each with the reason. The two extension design drafts are among them: an implementation relies on them only for the descriptor and claim set members in what a binding check reads. A test requires every listed path to exist, every toolchain page and schema to be listed, and every repository file a pinned page links to to be pinned or referenced.
The files are language-neutral: an implementation in any language reads the same files and must report the same outcome, code and path for every case. The schemas check document shape. Rules a schema does not express are stated on these pages and covered by cases marked "schema": "accepts"; each of those cases also has a schemaGap saying why the schema is looser, and a test requires one exactly where the schema accepts a refused document.
The schemas and the readers require the same members. A test removes each member of every valid fixture in turn, at every depth: a member whose absence the reader refuses as missing must be one the schema requires, a member the schema requires must be one the reader refuses without, and the members both let a document omit must be exactly a committed list, each optional on its page.
Cases that pin a row of a check table carry a rule, which that row's Cases column names. A row that cannot have a case says No fixture: and why. A test fails when a row names no case and is not marked, when a rule's cases report a code or path the row does not list, when a code the row lists has no case, or when a case's rule is in no table.
fixtures/0.1.0-draft.1/cases.json lists every unsigned fixture document with the contract it claims to follow and either valid or the exact code and path, and whether the JSON Schema accepts it. Its bindings cases check documents against each other:
kind | Inputs | Check |
|---|---|---|
lock-request | lock, request | The lock binds the exact request bytes |
lock-request-bytes | lock, request | As lock-request, from the request's bytes alone; a refusal's expected.cause names CRLF line endings, a byte order mark, or both, and is absent for other changes |
lock-platform | lock, platform | Frozen restore finds the platform's closure |
receipt-lock | receipt, lock | The receipt binds the exact lock bytes and repeats its closure |
resolve | recipe, request, platform | Resolution gives the listed providers, or the code and path |
plan-canonical | result, canonical | The plan's canonical bytes are exactly canonical, and planSha256 is their SHA-256 |
plan-lock | result, lock | The plan's lock equals lock as a parsed value |
setup-platforms | request, platform | A setup of request on platform locks exactly expected.platforms, in platform table order (plans) |
prerequisite-versions | versions, installed | An installed version installed meets the comparator list versions exactly when expected.met is true (tagged cases) |
canonical-json | value, expected, referenceTuf | The canonical bytes of the JSON value, by the plan digest rules, are exactly the UTF-8 of expected. That is also the signature input of the TUF profile. referenceTuf records what securesystemslib 1.6.0's encode_canonical writes for the same value, for comparison |
nfc | input, expected | The canonical encoder writes the string input as ", then expected, then ": expected is the Unicode 17.0.0 NFC of input (the plan digest). The inputs hold no " or \ |
mep-version | version | Read as a protocolVersion value, the string is valid, or refused with invalid_value or unsupported_case (MEP versions). This kind and version check a bare string; path is empty because the member's path belongs to the document that holds it. The string is also checked against the schemas' shared $defs.mepVersion, and a refused string the pattern accepts says so with "schema": "accepts" and a schemaGap |
version | version, optional comparator | Read as a version member, or with "comparator": true as one comparator, the string is valid or invalid_value (the bound on a version); it is also checked against the schemas' semanticVersion or comparator pattern, which must agree |
cli-requirement | requirement, optional cliVersion | Read as a compatibility.morphirCli in the binding check's CLI requirement grammar, which is stricter than tool release metadata v1, the string is valid or invalid_value; with cliVersion, that CLI version meets it exactly when expected.met is true. path is empty, as for version. No schema states the grammar: the version 1 schema requires only a non-blank string |
discover | files, boundary, start | Discovery from start finds expected.request, or no request when it is null. Paths are relative, /-separated, and name files under one synthetic root |
fixtures/0.1.0-draft.1/signed/ holds a TEST-ONLY repository in the tool release metadata v1 profile. Its cases.json has these sections:
| Section | Each case | Check |
|---|---|---|
selection | recipe target, request text, platform | Resolution against the authenticated recipe |
recipeChecks | recipe target | The authenticated recipe checks |
trust | metadata set, mutations, action | The outcome of loading or reading the mutated repository |
channelSelection | preset, channel | The recipe target that channel selection picks, or the code and path |
v1Client | toolId, channel, version 1 platform | Offering descriptors publish compatibility.morphirCli <0.0.0-0, so the tool release metadata v1 client selects nothing (expected.selected is false) at referenceClient.cliVersion or any other CLI version. The fsharp-builtin recipe still binds recipeBinding.targetPath for deployment and recipePlatform with its authenticated digest, and the 18 digests are distinct. Its controls run the same client on morphir-v1-control, a release that is not an offering, at each cliVersion: it is selected, with expected.version and expected.targetPath, exactly when expected.selected is true, so a client that never selects fails them. A resolver run under these contracts evaluates custom.morphir.compatibility.morphirCli in the binding check's CLI requirement grammar. The requirements these cases read, <0.0.0-0 and >=0.4.0-0, <0.5.0, are in that grammar and in the unchanged version 1 schema, so no case depends on the difference between the two. The version 1 resolver's own cases are in its conformance corpus |
v1Descriptors | release target | Read through the client, it validates unchanged against tool-release-v1.schema.json. Every release target except the deliberate negatives of the host rows is listed |
frozen | request, lock, recipe | The SHA-256 of the request bytes is expected.requestSha256 and the lock binds it; the lock's recipe.sha256 is expected.recipeSha256, the authenticated recipe digest; the lock records exactly expected.platforms, the six first-delivery platforms; and each closure equals the resolution of the request on its platform |
lockRecipe | lock, recipe | The lock's closures are ones the recipe allows |
The metadata is served as files. Each role is the canonical JSON bytes, by the plan digest rules, of its envelope (signatures and signed) as stored in repository.json; every signature is over the canonical bytes of signed. The repository uses consistent snapshots:
- the metadata directory holds
1.root.json(also given to the client out of band as the trusted root),timestamp.json,<version>.snapshot.jsonand<version>.targets.json, each version taken from that role'ssigned.version; - each entry of
targetFilesthat the targets metadata lists is served under its SHA-256. The TUF specification puts the digest in front of the file name inside the target's directory, as intoolchains/recipes/fsharp/<sha256>.1.0.0.json. A runner serves each target where its client asks for it; the expected outcomes do not depend on the layout. The former Rust reference client's percent-encoded filesystem layout is not a requirement of this corpus; - a
targetFilesentry the targets metadata does not list is not served.
A trust case starts from the committed repository.json, takes the named metadata set, applies its mutations in order and serves the result as a consistent-snapshot repository trusted from trustedRoot:
Mutation op | Effect |
|---|---|
set-signed-member | Set the member at the RFC 6901 pointer inside role's signed object to value, without signing again |
relink | Recompute the snapshot's targets.json and the timestamp's snapshot.json length, SHA-256 and version over the bytes served for those roles, and sign the snapshot and timestamp again with the fixture keys. The targets role is not signed again |
replace-role-text | Serve role's canonical bytes with the first find replaced by replace. The served bytes then differ from the canonical bytes the role was signed over, as a server that alters them would serve them. A later relink links the bytes as served |
replace-role | Replace role's envelope with the one at the dotted path from in repository.json |
replace-target-bytes | Serve the bytes of target with in place of target target |
replace-target-text | Serve target with the first find replaced by replace |
The metadata sets are:
metadata: the published repository, version 1 of every role;learnedRevocation: version 2, in which the host offering releasemorphir-dotnet-native-aot1.2.3 has release statusrevoked;recipeRevocation: version 2, in which the recipe targettoolchains/recipes/fsharp/1.0.0.jsonhas statusrevokedand no channels, which reaches every generation bound to that recipe;customText: version 2, in which the non-ASCII notes target's entry hascustom.morphir.labelcafé, signed text in NFC. Its cases pin the version 1 signed text rule;caseVariantMember: version 2, in which that entry also hasLengthbesidelength. Its case pins a rule for toolchain readers, not a version 1 rule;keyOrder: version 2, in which that entry'scustom.morphirholds{"a b":2,"a":1}and{"a#":1,"a\"":2}, signed over this profile's canonical bytes;keyOrderReferenceTuf: the same targets, signed over the bytes the reference TUF encoder writes for them (canonical JSON).
The action is one of:
load: load the repository;read: readtargetthrough the TUF client;authenticate: compare the UTF-8 bytes oftextwith the authenticated length and digest oftarget, as for bytes from a local store;check-recipe: the authenticated recipe checks onrecipe;check-recipe-bindings: readrecipethrough the client and parse it as JSON, then apply each entry ofdocumentMutationsin order. Each entry has apointer, an RFC 6901 pointer into the recipe document that names an existing member or array element, and avaluethat replaces it. Read the result with the recipe reader and run only the host and provider binding checks. The mutated document is not authenticated, and the recipe target checks are not run on it;check-locked-generation: the launch and rollback checks on the committed fixturelock, against the repository's learned trust state.
A refused load has the empty path, as does a refused read or authenticate of a target named directly. A binding check reports the binding member that named the target.
Every case has the same outcome at any instant after 2020-01-01T00:00:00Z, when rejectionMetadata.expiredTimestamp expires, and before 2999-01-01T00:00:00Z, when every other role expires. referenceTime (2030-01-01T00:00:00Z) is one instant in that window. A client that accepts an explicit time uses it; the former Rust client's reliance on the wall clock is not part of the contract.
Channel selection must also refuse a repository that lists a recipe under toolchains/recipes/con/. con is a device name that older Windows versions cannot create as a directory, so it is kept out of the shared repository that every runner writes to disk. The .NET tests must exercise that selection without creating a device-named directory. The recipeChecks case for toolchains/recipes/con/1.0.0.json pins the same non_portable_path at the empty path without listing the target, because the path check comes first.
Every key in the signed repository is the Ed25519 key whose 32-byte seed is the SHA-256 of a public UTF-8 label recorded in testOnlyKeys. Anyone can therefore sign with it, which is what makes the relink mutation reproducible in any language and why the keys can never serve as a production root. A production configuration must refuse that repositoryId and those keys.
The F# readiness workflow case in spec/toolchain/workflows/fsharp-compile-generate/ is the fixed compile-and-generate case behind the workflow readiness check. It has its own manifest schema, toolchain-workflow-case-0.1.0-draft.1.schema.json, and its source and expected IR are real corpus data, not synthetic.
Digests and versions in these fixtures are synthetic. A repeated-character digest (aaaa…) or the SHA-256 of a synthetic:<label> string names no released artifact, and version 1.2.3 is illustrative.
Checking the contracts with the .NET implementation
The maintainer directed removal of the Rust reference crate on 10 November 2026. This repository keeps the specifications, schemas, cases and fixed expected results. Behavioral checks use the actual Morphir.Toolchain implementation and its conformance tests in finos/morphir-dotnet, rather than another reader or resolver in the parent repository.
The parent CI job checks out finos/morphir-dotnet at the exact commit in .config/toolchain-contract-tests.json. It passes the absolute path of the current parent checkout as MORPHIR_TOOLCHAIN_CONTRACT_ROOT. The suite reads that checkout's corpus; passing only the implementation's older pinned copy is not sufficient. Missing cases, a different or modified implementation checkout, or a suite that does not acknowledge the external corpus fails the check.
Parent TypeScript checks only corpus metadata: listed paths and references, check-table coverage, example bytes, links, anchors and diagrams. The .NET suite runs the document readers, schemas, bindings, trust mutations, required-member oracle and readiness workflow checks. It also checks every load case across the reference window and reproduces the TEST-ONLY signed repository and locks as parsed JSON values, the requests as exact TOML text, and the recorded referenceTuf text with a test-only encoder. That differential encoder is evidence, not a choice of production TUF encoding.
Resolution, recipe selection and authenticated-target checks follow the rules on the toolset recipe page and the fixed outcomes in the case manifests. An implementation must not derive expected outcomes from its own behavior.
The pages remain the authority over the schemas, manifests, fixtures and implementation. A disagreement is investigated against the page; it is never resolved by regenerating expected results from the implementation. When a page is silent or contradicts itself, the page is clarified first.
With a checkout of the pinned .NET source and its recorded SDK installed:
mise run ci:validate-toolchain-contracts -- --source C:/path/to/morphir-dotnet
The script tools/check-toolchain-contracts.ts builds and runs the .NET test project with capped parallelism. It implements no contract behavior. CI also checks schema formatting and lint through the existing tasks. These are contract and corpus checks, not acquired-artifact or platform qualification; the F# readiness workflow and the shared MCK retain their separate responsibilities.
Decided
The maintainer's decisions that these pages depend on, each recorded on finos/morphir#1146. The rule each one sets is stated on the page linked.
Open questions
These are the questions still open for the maintainer. Each rule that depends on one is marked provisional where it is stated.
- Q1. Does supporting the MEP 0.2 line mean any version on it may be named, or that peers on the line work together? Today a provider fits a host only when the host lists the provider's exact
protocolVersion(MEP versions). (A) Keep exact membership: simple, and it matches MEP negotiation, but a guest released at0.2.1fits no host that lists only0.2.0until the host releases. (B) Compatibility within the line: a host speaking any final0.2.xfits a provider at any final0.2.y, with prereleases still exact. Patch releases then interoperate, but the contract must define which changes a0.2.xrelease may make, and the claims check changes too. Recommendation: A. - Q2. Should target paths refuse invisible, bidirectional and look-alike characters?
- What exists. The target path rules refuse control characters, U+2028 and U+2029, device names and Windows-reserved characters, and require NFC. They admit:
- a zero-width space (U+200B) and a right-to-left override (U+202E);
- no-break and ideographic spaces (U+00A0, U+3000);
- fullwidth full stops (U+FF0E) and the division slash (U+2215).
- Why it matters. Every target path is signed by the targets key, so this cannot break authentication. It is a display and spoofing risk:
a/gpj.exedisplays asa/exe.jpg, anda/../blooks like a traversal that it is not. - 2A. Leave the rule as it is. No cost. A tool that shows a target path must escape such characters itself.
- 2B. Refuse Unicode format characters (General Category Cf) and non-ASCII look-alikes of
.and/in target paths, asnon_portable_path. The rule is shared by recipes, locks, results and TUF metadata, so it changes the contract in place. Every reader needs a small category table beside its NFC tables. The non-ASCII fixtures (lock/target-path-non-ascii-nfc.json, the signedcafé-naïve-字.txttarget,target-path-512-utf8-bytes.jsonandtarget-path-240-utf16-units.json) must be checked again, though none of them uses such a character. - 2C. Refuse every non-ASCII character in target paths. Simplest to state and to check, but it reverses the decision to allow non-ASCII NFC paths, and those four fixtures become negative.
- Recommendation: 2B. It closes the spoofing cases at the cost of one table, and keeps the non-ASCII paths the contract already allows.
- What exists. The target path rules refuse control characters, U+2028 and U+2029, device names and Windows-reserved characters, and require NFC. They admit:
- Q3. Should the canonical JSON of these contracts be the TUF reference implementations' encoding?
- What exists. One encoding, defined with the plan digest, produces plan digests, repository identity and TUF signature input. It sorts keys by their encoded bytes with quotation marks and normalizes strings to NFC. securesystemslib, which python-tuf uses, sorts raw keys and writes strings unnormalized. So standard TUF tooling cannot be assumed to sign this repository's metadata (the difference). The released
morphirup(finos/morphir-dotnetv0.4.0-alpha.4) computes digests with the current rule. - 3A. Keep the current rule and state the difference, as the profile now does. No digest moves. The cost is that a repository's signing tool must use this encoding, not python-tuf or go-tuf as they are.
- 3B. Adopt the reference encoding: raw key order, and no normalization. Strings that are not NFC are then refused instead of normalized, as the signed text rules already refuse them in TUF metadata. Standard TUF tooling then signs for this profile. The cost:
- every plan digest whose plan has a key pair that orders differently changes; the committed fixtures have two, the
keyOrdermember ofresult/setup-plan-escaping.jsonandresult/setup-plan-key-order.json; - every plan with non-NFC text is refused, so
result/setup-plan-escaping.jsonloses its decomposedé; - the released tool's recorded digests and
--expect-planvalues for such plans become invalid; - the .NET encoder changes; the fixed canonical bytes and signed expectations need explicit review rather than regeneration from that encoder.
- every plan digest whose plan has a key pair that orders differently changes; the committed fixtures have two, the
- Recommendation: 3A for now. Keys that order differently are rare in real TUF metadata, and the cost of 3B grows with every release that records digests. If the official repository will be signed with standard TUF tooling, choose 3B before the first production repository exists, while only test digests depend on the rule.
- What exists. One encoding, defined with the plan digest, produces plan digests, repository identity and TUF signature input. It sorts keys by their encoded bytes with quotation marks and normalizes strings to NFC. securesystemslib, which python-tuf uses, sorts raw keys and writes strings unnormalized. So standard TUF tooling cannot be assumed to sign this repository's metadata (the difference). The released
- Q4. Should a binding check evaluate a provider's
requires.host?- What exists. A capability claim set may state
requires.host: single SemVer comparators over the host version, all of which must hold, listed incritical(extension protocol). No binding row evaluates it. Under the critical-path rule a binding check refuses it withrelease_descriptor_mismatchatproviders[i].descriptorTarget, because it does not read the member. No provider in the fixtures states it. Rust's existing extension reader understands it, because a Rust host evaluates it against its own version; the .NET reader refuses it. - Why it is a choice. The member was written for one host's version line. A range written for the Rust CLI, such as
>=0.4.0-alpha.7, compared with a .NET offering's1.2.3, gives an answer about the wrong program. - 4A. Evaluate it against each host offering that can select the provider. A recipe that pairs a provider with an offering outside its range is refused at that provider. This needs a rule for which host's version the range names, so an extension built for several hosts can state a range for each.
- 4B. Refuse it, as the critical-path rule does now. A provider that states a host requirement cannot be bound by a
0.1.0-draft.1recipe. A later draft can adopt 4A once the claim set says which host a range names. - 4C. Ignore it in the binding check, and treat it as understood. The host checks it when it loads the extension, so a recipe binds a provider that readiness then refuses.
- Recommendation: 4B for
0.1.0-draft.1. It needs no change and no fixture moves. 4A is the right end state once the claim set names the host. 4C lets a recipe pass its binding checks and still fail at readiness.
- What exists. A capability claim set may state
- Q5. Should tool release metadata v1 itself adopt the CLI requirement grammar?
-
What exists. The version 1 profile gives
compatibility.morphirClione example,>=0.4.0-alpha.5, <0.5.0, and no grammar; its schema requires a non-blank string. The Rust tool client inmorphir-distributionparses the member with thesemvercrate'sVersionReq, which also accepts^,~,*, partial versions and a comma without a space. These contracts define a stricter CLI requirement grammar for their own binding checks and resolvers: single comparators separated by a comma and one space, with the npm/semverprerelease rule. So one member has two readings. -
Evidence that every published value fits the grammar. In this repository and its submodules, every
morphirClivalue is in it:- the profile's example, the version 1 schema's example and the three records of the version 1 conformance corpus:
>=0.4.0-alpha.5, <0.5.0; - Morphir Desktop's release workflow (
ecosystem/morphir-ui/.github/workflows/release-desktop.yml) passes>=0.4.0-alpha.5, <0.5.0; its release script checks only that the value is not blank; - the
morphir-distributiontests inecosystem/morphir-rust:>=0.4.0, <0.5.0,>=0.4.0and>=0.5.0; - these contracts' signed fixtures:
<0.0.0-0and>=0.4.0-0, <0.5.0, and the deliberate negative^0.4.0.
No production tool repository's metadata is in these checkouts, and none was queried.
- the profile's example, the version 1 schema's example and the three records of the version 1 conformance corpus:
-
5A. Adopt the grammar in version 1 in place. The profile states it and the version 1 schema's pattern enforces it. One reading everywhere, and every known value already fits. The cost: a published version 1 schema tightens without a version change, so a descriptor that validates today could stop validating, and the Rust tool client must change to match.
-
5B. Keep it a toolchain binding rule only, as now. Version 1 is unchanged. The cost: two readings of one member until version 1 is revised. A requirement such as
^0.4.0passes a version 1 client and is refused by a binding check. -
5C. Define it in a later version of the profile. Version 1 stays as it is, and a new profile version adopts the grammar with its own schema. The cost: a new profile version for one member, and two readings until publishers move to it.
-
Recommendation: 5B for now, and 5A when the maintainer next revises version 1. Every known value fits, so adopting it in place would refuse nothing that exists; but it changes a published schema, and that is the maintainer's decision.
-