Generate
Generate
Generate target files from a Morphir model. Targets fsharp and
csharp support classic and v4 models. The C# backend reads the current IR
only, so the command upgrades a classic model before the passes and the
backend run. Target and output are explicit. The
input is an explicit --input, or else the IR of the most recent
morphir compile of the project.
Synopsis
morphir generate [--input <file-or-directory>] --target <fsharp|csharp> --output <directory>
[--input-format auto|json|yaml|ion] [--option KEY=VALUE ...] [--json[=stream|document]]
[--extension <path-or-command>] [--project <path-or-name>] [--config <file>] [--out-dir <directory>]
Options
| Option | Meaning |
|---|---|
--input | JSON, YAML, or Ion model file or document tree directory. Without it, the IR of the most recent compile |
--target | Required exact target ID. The built-in targets are fsharp and csharp. An extension declares its own targets. |
--output | Required output directory with owned generated files |
--input-format | auto by default; json, yaml, or ion constrains the reader |
--option | Repeatable backend option, described below |
--json[=stream|document] | Write the structured report to stdout: a bare --json writes one completed record that holds it, --json=document the report alone. See Machine output |
--extension | A backend extension: a command name, a path, or a .dll. Overrides [codegen.<target>].extension. See Backend extensions. |
--project | The project directory, workspace member path or project name: its compile record without --input, and its configuration |
--config | An explicit configuration file of the project |
--out-dir | Without --input: the out root. Overrides MORPHIR_OUT_DIR and workspace.out_dir |
Paths resolve against the invocation directory. With --input, no project
configuration is required. generate reads the project configuration only for the
[codegen.<target>] table: extension selects a backend extension when --extension is absent, and each other key
is an option of the backend (see the C# options below). With --project or --config, a configuration
error fails the command with exit code 2, as it does for compile. With neither, a discovered configuration
that does not load is a warning on stderr, and the built-in backend runs. Repeated option keys use the last value. Values parse
as JSON first, so optimize=false is Boolean while optimize='"false"' is a
string and is refused by this backend.
generate writes generated files and an ownership manifest. It currently has no
--dry-run option; --option format=false controls formatting only.
F# accepts the Boolean options optimize and format, each true by default:
optimizeruns exact constant folding.formatformats the generated source with Fantomas when the host can run it.format=falsewrites the generator’s own text instead: LF line endings only and exactly one final LF, UTF-8 without a byte order mark, the same bytes on every operating system, under JIT and Native AOT, and in every culture. Use it for output that must not depend on the host, such as the Morphir compatibility check.
format is a backend option, like optimize; it is not --input-format, which says how to read the input.
The external F# backend morphir-fsharp-backend accepts the same two options, and they reach it through the
options member of morphir.backend.generateModel.
The default formatted text follows the platform’s line endings (CRLF on Windows, LF elsewhere). The Native AOT
morphir cannot run Fantomas, so under the default it writes the generator’s own text, says so on stderr, and
reports formatting: unavailable. The managed hosts (dotnet-morphir and the managed morphir) format.
C# accepts numeric JSON
language-version=15, the default and the only language version that the backend writes, a string
profile=imperative or profile=functional, optional string
namespace=Pricing.Generated, and the handling options traversal=loop|functional,
tail-recursion=loop|local-function and float-equality=clr|ieee. The keys of [codegen.csharp] in the project
configuration give the same options, with _ for - (float_equality = "ieee"). --option wins over the key. See
C# generation for the table and the attributes in C# source. Plain namespace text becomes a JSON string through
the shared option parser. Numeric strings, preview, latest, unknown keys and wrong JSON kinds are
invocation errors with the code invalid-backend-option. Another number, such as language-version=14, is an
invocation error with the code unsupported-language, and its diagnostic names 15.
C# namespaces are dotted literal identifiers in Unicode Normalization Form C.
An identifier can start with a letter or _ and continue with letters, decimal
digits, connector punctuation, combining marks or formatting characters.
Reserved keywords require @, for example @class.Models. Literal BMP Unicode
is supported, such as Café.模型; source \u/\U escapes and surrogate
characters are refused. The core validates this same vocabulary for direct callers.
An override changes the input package’s emitted namespace and its qualified
references. Relative source paths retain the original package identity.
Inputs and target profile
JSON and YAML single-file models accept classic integer versions 1, 2 and 3,
their supported semantic release declarations, and v4. JSON document trees
(manifest.json) and YAML document trees (manifest.yaml / manifest.yml),
both plain and name-compacted (contextual envelopes), support IR 3.1.0 and
4 / 4.0.0. Ion text, binary and trees support releases 3.0.0, 3.1.0 and
4.0.0. Automatic detection recognizes the binary marker even without an Ion
suffix. For single files without a .json, .yaml, .yml, .ion, or .ionb
suffix, auto classifies the file syntactically before decoding (with no
cross-codec fallback): Ion binary/text markers route to Ion; YAML comments
(#), directives (%YAML/%TAG), document markers (---), YAML block
mappings, and YAML flow mappings with non-double-quoted first keys route to
YAML; and JSON objects ({"..., {}) and arrays ([) route to JSON so
malformed JSON reports malformed-json instead of decoding as YAML (pass
--input-format yaml or a .yaml/.yml suffix for YAML flow syntax with a
double-quoted first key). An Ion tree has manifest.ion at its root. Trees with more than one
manifest (for example manifest.json alongside manifest.yaml or
manifest.ion) are refused as ambiguous, and an explicit --input-format
must match the tree’s manifest profile.
The F# target supports Library implementations at exact versions 1, 2, 3, 3.0.0, 3.1.0, 4 and 4.0.0. It emits types, values and mapped SDK operations. Specs/Application, document literals, open records, holes, incomplete/native/ external bodies, nonempty constraints and unknown required semantics are refused. Integers use Int32, floats finite doubles, decimals exact .NET decimal values with retained scale up to 28, and characters one BMP scalar. Unsupported or lossy representations fail before publication.
A recorded plain JSON or YAML tree can also be served to a compatible external
backend by bounded generation, or
loaded directly by built-in targets (fsharp, csharp). The CLI does not
accept a MEP envelope as an input file.
Generation produces source files and their ownership manifest. It does not
create an F# project or compile and execute the output.
The C# target declares the same exact Library versions. It uses the immutable
Morphir.SDK.CSharp runtime and the admitted
C# generation contract. Its own semantics and
located refusals remain those of the reusable C# library. Generation needs no
compiler installation. A separate consumer chooses the matching numeric compiler
profile and references the runtime package. The production Roslyn adapter remains
deferred.
Backend extensions
A backend extension is a guest process. For inline generation it speaks the Morphir Extension Protocol (MEP) 0.2.0-draft.1
over stdio and serves morphir.backend.generateModel. Select one with --extension, or with
[codegen.<target>].extension in the project configuration. The option overrides the key. compile --target
does not read the key: it runs the built-in backend and prints a note on stderr when the key is set. Without either,
the built-in backend of the target runs, as before. The F# generator is available as the guest
morphir-fsharp-backend; see F# generation.
morphir generate --input model.json --target fsharp --output gen --extension morphir-fsharp-backend
[codegen.fsharp]
extension = "morphir-fsharp-backend"
The table is named by the target id. A target id can contain a dot; then the id is one quoted TOML key,
[codegen."acme.codegen"]. Without the quotes, [codegen.acme.codegen] is a table codegen inside a table
acme, which no target reads.
The command reads the value as compile reads a frontend extension:
- A name without a directory is searched only in the absolute directories of
PATH, in order, and the command starts that absolute path. It is never taken from the invocation directory or from the directory ofmorphiritself. Starting a bare name directly would look there first: CreateProcess searches the application’s directory and the current directory beforePATHon Windows, and .NET does the same on Unix. On Windows the name matches a.exeor.comfile, inPATHEXTorder, and batch files are not started. On Unix the file must be executable. A name that is not onPATHfails withextension.unavailable; to run a file in the current directory, give a path such as./guest. - A relative path is relative to the invocation directory.
- A path that ends in
.dllruns on thedotnethost:DOTNET_HOST_PATHwhen it is set, elsedotnetsearched onPATHin the same way.
What configuration can run. [codegen.<target>].extension names a program that morphir generate starts with your user’s rights.
The project configuration is the morphir.toml found from the working directory upward, so running
morphir generate inside a checkout that you do not trust can start a program that the checkout chooses: a file
inside the checkout, or any command on PATH. MORPHIR_ISOLATED=1 leaves out only the machine and personal
configuration files, not the project’s own file, and MORPHIR_DISCOVERY_BOUNDARY only limits how far up the
search goes. Read the extension keys of a project before you run morphir generate in it, or choose the file
with --config.
generate loads the model first, then starts the guest with explicit arguments and no shell, and passes the
guest’s stderr to its own stderr. It agrees the session with initialize and offers JSON IR in the tuples
profile morphir-ir, codec morphir-json, envelope 0.1.0-draft.1, IR 4.0.0 and 3.0.0. A v4 model
is sent in the 4.0.0 tuple and a classic version 3 model in the 3.0.0 tuple, as the JSON bytes of the
input file. Other versions and Ion input are not sent to an extension. The command checks every artifact
path that the guest returns, keeps the guest’s artifact order, and publishes the files as for a built-in
backend. When the run ends, it sends shutdown and then exit. A guest that does not answer shutdown, or does not take exit, within the deadline (for example a guest that is still busy or no longer reads its input) has its whole process tree stopped. So a request that times out ends within about two deadlines: one for the request and one for the end of the session.
The report names the backend that ran by its own extension id, and adds backendTransport (mep) and
backendVersion, the version that the extension gives. A report of a built-in backend has neither member.
An extension failure is exit code 2 with one of these codes, or exit code 1 when the guest rejects the model with error diagnostics:
| Code | Meaning |
|---|---|
extension.unavailable | The command is not on PATH, the guest did not start, the session did not initialize, the guest does not claim the target, or the guest gave an id reserved for built-ins: every id that starts with morphir. (such as morphir.fsharp), and the id of any registered built-in backend. |
extension.tuple_unavailable | The host and the guest agreed no generateModel tuple, or the model needs a tuple that the session did not agree. The message names the tuples. |
extension.not_admitted | The guest refused the request, for example an option, or the host did not send the model because it is over the limits that the session agreed (by default 45 MiB decoded, 60 MiB of base64, depth 4096, 50,000,000 nodes). |
extension.unsafe_artifact | The guest returned an artifact path that is not a plain relative path; a segment that ends in a period or a space, or is a reserved Windows device name (CON, NUL, COM1 and the like, also with an extension); two paths that differ only in case; or a path that is also the directory of another path. Nothing is published. |
extension.protocol_error | The guest broke the protocol, for example a result that is not a generate result, more than 10,000 artifacts in one result, malformed describe claims, or a -32800 answer that the host did not ask for. |
extension.timeout | The guest did not answer before the deadline. |
invalid-extension | The value of --extension or of the key is empty. |
Selection by an installed extension id is not available: the value is a command, a path or a .dll, as for
compile.
Input from a prior compile
Without --input, generate reads the IR of the most recent successful
morphir compile of the project. It finds the project and the out root in the
same way as compile: --project and
--config select the project, and the out root is --out-dir, else
MORPHIR_OUT_DIR, else the workspace workspace.out_dir, else .morphir/out
under the workspace root. generate then reads the compile record
compile.json and loads the IR that its ir descriptor names. The report gives
that IR file as input and the recorded IR version as sourceVersion. An
explicit --input never reads a record.
When the explicit input is a directory, generate captures its files under
the model-read limits and verifies their paths and bytes in a second pass.
If a captured file changes or disappears between those passes, generation
stops before it starts the backend. After verification, the backend uses
the captured bytes even if the original files are edited.
If there is no compile record, or the most recent compile failed and left a
tombstone, generate fails with compile.record_missing and exit code 2, tells
you to run morphir compile first, and publishes nothing. If the IR file does
not declare the version that the record names, it fails with
compile.record_version_mismatch. An --input-format that is not the format of
the compiled IR fails with generate.input_format_conflict.
generate holds the shared lock compile.lock from when it reads the record
until it has loaded a whole model or finished bounded generation. While a compile of the same project runs, generate
writes one waiting line to stderr, waits, and then reads the IR of that compile.
A compile that starts while generate holds the lock waits for it to be released.
With this morphir.toml in the project directory, and the sources src/Rates.fs
and src/Totals.fs of the MCK corpus case frontend-fsharp-0116:
[project]
name = "acme/demo"
[frontend]
language = "fsharp"
compile the project, then generate F# from the compiled IR. Run both commands in
the project directory. The compile writes the path of the published IR to stdout,
and generate writes the generated files:
$ dotnet-morphir compile
/work/demo/.morphir/out/compile.dest/morphir-ir.json
$ dotnet-morphir generate --target fsharp --output gen
Rates.fs
Totals.fs
Bounded generation from document trees
Given a completed compile record with a JSON or YAML document-tree descriptor (omit --input),
or an explicit --input <tree> directory containing manifest.json, manifest.yaml, or
manifest.yml, Morphir routes external MEP backends (--extension, [codegen.<target>].extension,
or installed --extension-id) through bounded 0.2.0-draft.2 model access (modelAccess).
For a recorded compile, Morphir holds the compile read lease until the guest has stopped.
For an explicit --input <tree>, Morphir captures an owned, bounded immutable snapshot before
dispatch so external edits on disk cannot mutate bytes mid-session. The guest pages the module
inventory and requests definitions by logical identifier, receiving the selected documents through
MEP without being given the tree’s physical path.
morphir generate --out-dir build-artifacts --target text --extension ./orders-generator --output generated
morphir generate --input ./ir-tree --target text --extension-id org.example.generator --output generated
Here orders-generator is a native guest (or installed extension selected by --extension-id)
that advertises the text target. Installed 0.2.0-draft.2 extensions must declare matching
capabilities.modelAccess tuples and bounds in their static claims, which are checked at
activation and against the live negotiated session.
The host offers MEP 0.2.0-draft.2 and access 0.1.0-draft.1 with operation
morphir.backend.generateModel, profile morphir-ir, layout document-tree,
and encoding plain or https://morphir.finos.org/schemas/ir-context/0.1.0-draft.1/document.schema.json
(opening inspects only the manifest lazily so unselected member bodies are not read: contextual manifests
negotiate the contextual envelope, while plain manifests offer contextual first and plain second so both
plain and mixed compacted trees work without eager full-tree scanning; orders-scale continues to require a
plain JSON v4 recorded tree). The offer uses the
tree’s exact IR version (3.1.0 or 4.0.0) and codec (morphir-json or morphir-yaml).
For non-orders-scale runs, if the selected extension speaks only MEP 0.2.0-draft.1 (does not
agree to 0.2.0-draft.2 modelAccess), Morphir converts the model losslessly to single-document
JSON (4.0.0, 3.1.0, or 3.0.0), preserves the original modelId with a deterministic
sha256: revision, admits it against the agreed modelTransport limits, emits an info
diagnostic extension.model_converted, and refuses with data.lossy_conversion (sending no
request) if any unrepresentable metadata would be dropped. Recorded fallback runs commit and
install through the same generate/<target>.json task ledger as 0.2.0-draft.2 runs; explicit
tree runs stage artifacts privately and publish through the configured output ownership manifest.
For process guests, the host checks the negotiated
maxFrameBytes body ceiling from the header before reading the response. For
configured WASM guests, the adapter applies the selected limit to the full
frame, including its Content-Length header, and checks the reply size before
copying it. It also applies maxGuestStateBytes to each linear memory and to
the Extism variable store. If state already exceeds the selection, the host
refuses initialization.
It checks each reply’s combined encoded and decoded artifact bytes before
decoding the chunks. The negotiated session deadline includes guest shutdown
and exit. If it expires, the host stops the guest and discards staged output.
The maxSessionWorkUnits budget is shared by the bounded reader and output
stage for the entire run. The host charges each advance and request, directory
access and enumeration step, and file lookup. It also charges each started
4 KiB block of document input or contextual expansion, and charges separately
for delivery encoding and hashing. Artifact work includes per-chunk and path
checks, encoded and decoded blocks, and the final file hash. Each retained
diagnostic costs one unit. Repeated reads and scans draw from the same budget.
Exhaustion returns extension.bounded_work_limit and discards the stage.
Configure an Extism WASM backend implementing the same tuple under the
target’s extension in morphir.toml.
[extensions.text]
path = "orders-generator.wasm"
abi = "extism-kernel-v1"
The target selects the configured module without an --extension flag.
morphir generate --out-dir build-artifacts --target text --output generated
For the orders fixture, the guest follows two inventory pages to the final
value, reads the earlier value it references, and emits order.txt. Morphir
stages the chunks privately until the guest stops. For a root project, it
then places the completed files in build-artifacts/generate/text.dest,
records their paths in build-artifacts/generate/text.json, and installs
them into generated. A workspace member uses its own directory under the
configured output root. Choose an install directory outside that root.
The CLI acceptance case compares this v4 JSON tree run with the same guest’s
inline run over the expanded v4 model.
The compile lease stays held until generation and installation finish. If
generation fails after replacing a previous working result, its record
becomes a tombstone and the previous install remains in place. Fix the input
or guest and run the same command with the same --out-dir and --output.
If installation is refused or cancelled after the generation record was
written, the completed working files remain in text.dest. Resolve the
reported target conflict or select a clean install directory and rerun.
The installer replaces files it owns through the task record’s installed
ledger. An older .morphir-generated.json manifest does not transfer
ownership to that ledger.
Examples
Run these from a repository checkout, using its shared fixtures:
morphir generate --input tests/Fixtures/MorphirIR/daily-rate-v3.json --target fsharp --output artifacts/generated-fsharp
morphir generate --input tests/Fixtures/MorphirIR/daily-rate-v4.json --target fsharp --output artifacts/generated-fsharp --option optimize=false --json
morphir generate --input tests/Fixtures/MorphirIon/pairs/v3-daily-rate.ion --target fsharp --output artifacts/generated-fsharp --input-format ion --json
morphir generate --input tests/Fixtures/MorphirIon/trees/v3-daily-rate --target fsharp --output artifacts/generated-fsharp --json
For C#:
morphir generate --input tests/Fixtures/MorphirIR/daily-rate-v3.json --target csharp --output artifacts/generated-csharp --json
morphir generate --input tests/Fixtures/MorphirIR/daily-rate-v4.json --target csharp --output artifacts/generated-csharp --option language-version=15 --option namespace=Pricing.Generated --json
morphir generate --input tests/Fixtures/MorphirIon/pairs/v3-daily-rate.ion --target csharp --output artifacts/generated-csharp --input-format ion --json
morphir generate --input tests/Fixtures/MorphirIon/trees/v3-daily-rate --target csharp --output artifacts/generated-csharp --json
--option language-version=14 --option language-version=15 selects 15: the last occurrence of an option wins.
The backend writes C# 15 independently of the SDK installed on the generation machine. Compile it separately
using the .NET SDK 11 compiler. See the executable C# walkthrough.
For CI, retain the JSON report and propagate a failure:
morphir generate --input tests/Fixtures/MorphirIR/daily-rate-v4.json --target fsharp --output artifacts/generated-fsharp --json=document |
Set-Content artifacts/generation-report.json
if ($LASTEXITCODE -ne 0) { throw "Morphir generation failed" }
Output formats and exit codes
Human output lists relative artifact paths on stdout and diagnostics on stderr.
JSON mode writes one document containing success, exitCode, target/backend,
input/output, source version/family/kind/representation, ordered artifacts,
written, unchanged, removed, diagnostics and failureKind, for a selected
backend extension backendTransport and backendVersion, and formatting when the backend reports it:
applied (formatted), off (format=false) or unavailable (the host cannot run the formatter). Only a
built-in backend reports it. An external backend (backendTransport mep) has no formatting member, even
with format=false: a MEP generate result does not say whether the guest formatted, and the host does not report
what it did not observe. When a built-in pass ran before the backend, the report has passes: the ids that ran, the
application list with the node addresses before and after, and the reads of other modules. When no pass ran but the upgrade
of a classic model moved or replaced a node, passes has an empty ran and the records of the upgrade. A feature that the
backend cannot take and that remains after the passes, such as an extensible record for csharp, stops the command before
the backend with transform.feature_remains. An upgrade error names the node address in its location. A pass error stops the
command before the backend with exit code 1, and nothing is published. See the middle end.
Logs and warnings use stderr, never stdout.
Failed reports contain no successful artifact list. Parsed JSON-mode invocation
errors also produce a report.
Structured diagnostics remain fields in that JSON report. JSON failures need
not duplicate them as human-readable stderr text. Human-mode diagnostics and
any emitted log text use stderr. C# reports identify backend morphir.csharp.
| Exit | Meaning |
|---|---|
| 0 | Generation and publication succeeded |
| 1 | Model or generation semantics are unsupported or invalid |
| 2 | Invalid invocation, unavailable provider or operational failure |
| 130 | Cancelled before publication |
For a single-module fixture, artifacts contains ["Inventory.fs"]. Its order
is the F# compilation order, including on repeat runs when files are unchanged.
For the C# daily-rate fixture it contains
["p_Car.Rental/m_InventoryModule.g.cs"]. Both direct generation and the CLI
use those same package-derived paths and source bytes.
Publication and ownership
Generated files are published through the shared tree publisher. The output
directory contains .morphir-generated.json, an ownership manifest listing
artifact paths in declared compilation order. Repeat generation leaves
byte-identical files and the manifest untouched. Reports distinguish written,
unchanged and removed paths.
Files listed by the previous manifest are removed when no longer generated. Files outside that ownership list remain untouched. Keep the manifest alongside the output so later runs can identify stale owned files.
Input and output paths must be separate. Rooted artifact paths, traversal, case collisions and links are refused before publication. Generation errors preserve previous output. A failure while staging also preserves previous files and the ownership manifest.
Publication does not provide directory-wide rollback. A failure while committing staged files can leave a mix of old and new files. Such failures return an operational error; inspect the output and rerun generation after fixing the reported filesystem problem.
Common errors
Missing settings require an explicit --target and --output. Without
--input, generate needs a prior morphir compile of the project.
An unknown target lists registered target IDs. Invalid F# options require the
Boolean optimize or format, for example optimize=false or format=false. Codec diagnostics identify malformed models
and tree members. Limit diagnostics describe the exceeded byte, node, depth,
entry or path budget. See CLI troubleshooting.
Manual Orders scale admission
--bounded-profile orders-scale explicitly selects provisional limits on the
existing recorded-tree path with a configured WASM backend. Omit --input so
the producer record supplies its descriptor and read lease. The profile accepts
plain JSON v4 trees; explicit inputs, built-in generation and process backends
cannot use it. Omitting the flag preserves the normal admission policy.
morphir generate --target text --output generated --bounded-profile orders-scale
The configured module must be the streaming Orders scale guest described at finos/morphir commit 3652032a. The profile does not generate an input tree or change independently fixed outputs.
It offers 32 KiB documents and chunks, 64 KiB full WASM frames, one document and one outstanding request per exchange, 160,000 discovery entries, 2 MiB per artifact, 3 GiB total artifacts, 8 GiB session disk and 200,000 rounds. The 100,000,000 work units and two-hour session deadline are provisional allowances, not measured guarantees. The guest can negotiate smaller limits, including a shorter call deadline, and any exceeded selected limit still refuses the run.
Of the selected 64 MiB host-cache offer, one quarter is reserved for active-package discovery and one half for retained request IDs. Staging can use only the remainder. The fractions are recomputed if negotiation selects a smaller cache. Request IDs retain exact ordinal uniqueness for the single generation on this connection. Their logical charge is 256 fixed bytes plus 128 bytes and two bytes per UTF-16 code unit per distinct ID; an over-budget insertion is refused before retention. These reservations do not establish a process resident-memory ceiling.
The source recipe has 1,024 or 2,048 generated modules. Its input sizes exceed 1 GiB or 2 GiB, and the larger expected artifact total is 2,181,171,200 bytes. This opt-in profile is an admission prerequisite. Both actual scale runs, independent output comparisons, work/time calibration, guest/kernel memory observations and external host/descendant memory receipts remain required. The existing publication transaction can temporarily copy staged artifacts again. The 8 GiB allowance leaves room for both copies of the recipe’s outputs, but publication disk reservations and cancellation during its synchronous commit still require qualification alongside the artifact-stage meter.
The decoded exchange allowance is 64 KiB, independent of the 32 KiB per-document
reader cap. A production 16,560-byte JSON delivery and its 16,385-byte emitted
chunk total 32,945 decoded bytes in one exchange. The pinned guest admits that
combination under the 64 KiB decoded and encoded exchange ceilings; full request
and response frames remain capped at 64 KiB and individual chunks at 32 KiB.
For the explicit profile, JSON reports include effective ceilings in
boundedAccess. For a successful Wasmtime session, boundedAccess.linearMemory
gives the guest’s and Extism kernel’s peak linear-memory sizes and the actual
ceiling applied to each. The engine samples both memories at morphir.exit
before disposing the instance. Linear memory grows in pages over the instance’s
lifetime, so these final sizes are its logical peaks. Host process residency
and frame peaks require separate observations.
The production-sized black-box cases use one original 64-payload module and
the embedded streaming guest pinned to finos/morphir at 3652032a.
On a successful orders-scale run, boundedAccess.maxInputBatchBytes reports
the largest total of decoded model-document bytes sent in one admitted advance.
boundedAccess.maxOutputBatchBytes reports the largest total of validated
artifact bytes across all chunks in one staged response. The two maxima are
independent. They exclude inventory, diagnostics, framing and base64 overhead.
boundedAccess.peakDiscoveryIndexChargedBytes records the peak charged bytes
for the discovery index. The charge covers the retained paths, sorted builder
and final index array. It excludes provider state, traversal data, temporary
paths and objects awaiting garbage collection. Resident working sets, context
caches and operation-wide I/O require separate measurements.
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.