Compatibility and Upgrade Guide
NexusFlow's models, workspace definitions, kernel inputs, result messages, and HTTP API do not share a unified version number. Even if an upgrade is installed successfully, incompatibilities may only occur on one link: the old model can be opened but the meaning changes after saving again, the job can be started but the kernel parses the wrong parameters, the original result is intact but the SDK and page aggregation are different, or an API call fails due to response and paging assumptions.
Therefore, this page does not provide a general "version compatibility matrix", but a set of upgrade processes evidenced by real data and behavior. See Validation, Testing, and Release for release acceptance of the model definition, and the specific structure is subject to Read Job Input, Return Status, Logs, and Results, Run Jobs and Read Results with the SDK and API Conventions.
Before Upgrading: Lock the Compatibility Boundaries First
Establish a Testing Baseline Rather Than Speculating on Version Relationships
Keep a representative set of repeatable samples of the environment to be upgraded, including at least:
- An old single-diagram model with no new structure saved;
- A multi-sheet model of
schemaVersion: 2, including different components across sheets, but does not include cross-sheet connections; - A model that contains a normal component, a normal connection, a wire-to-wire connection, and a two-port wire component;
- A workspace definition using conditional parameters, conditional ports, global parameters, and
expressionVersion: 2expressions; - A short job that can generate
append,update,deleteresult messages; - A set of SDK calls and direct HTTP API calls covering actual usage of list, detail, write, delete and file responses.
Each sample should record the original input before upgrade, unified verification results, job freeze input, original result message, final job status, and key API responses. Page screenshots and aggregated Python objects can be used as auxiliary evidence and cannot replace the original data.
Before upgrading, you should also freeze unnecessary definition edits and model batch saves within the grayscale range, and prepare recoverable copies of workspace definitions, current model snapshots, release packages, application versions, and configurations. Backing up the application without retaining data and definitions cannot handle new structures that have been written during the upgrade.
Model Structure: Old Single Figure and Version 2
The current model read link supports two forms:
| Form | Discrimination Method | Current Compatible Behavior | Escalation Risk |
|---|---|---|---|
| Old version single picture | The top layer has nodes and edges, but there is no sheets | When reading and verifying, it is regarded as a sheet_0 sheet in the memory; the missing edges of edgeKind are filled in according to existing rules. | The read itself does not overwrite the original snapshot in the server; subsequent saves may write version 2, which should be compared before saving. |
| Model snapshot version 2 | schemaVersion: 2 and contains sheets | Supports multiple sheets; sheets, nodes and edges are verified according to version 2 rules | Unknown schemaVersion will be rejected, cannot be assumed to be read forward |
Version 2 requires at least one sheet, the sheet ID and name cannot be repeated, and the internal IDs of nodes and edges are globally unique in the entire model. Connection endpoints can only reference elements within the same sheet. The line component is represented by edgeKind: "component". Ordinary connections and annotations use their own edge types respectively; ordinary connections cannot directly use the line component as a connection endpoint.
This is a Read Compatible capability, not a background automatic migration. The server will save the model snapshot in the same state as when it was submitted. Simply reading the old model will not change the database content to version 2. New clients should generate version 2, but the topology, parameters, port labels, and line component expansion results must be compared before batch opening and saving old models.
Expression Versions Are Independent of Model Versions
expressionVersion: 2 in the workspace metadata represents the current unified expression format; it has no correspondence with schemaVersion: 2 of the model snapshot. The current Workbench load requires expression version 2, and the spatial metadata preservation interface will also write this value, but this does not prove that the semantics of the old expression have been automatically converted correctly.
Before upgrading, you should test run parameter display conditions, port enabling conditions, default values, and expressions that rely on global parameters one by one, and cover true, false, null values, boundary values, and missing dependent fields. Don't just change the version field to 2, and don't take "space saved successfully" as expression migration success.
Stable Identification Is a Cross-Version Contract
The following fields participate in persistent references or running transformations and should be managed as stable identities:
| Logo | Main Citation Location | Typical Consequences of Incompatible Changes |
|---|---|---|
workspace type | Model, job, URL, SDK metadata request | Model cannot find space definition, job or integration request enters wrong space |
component classID | Model instance nodeClassID, definition index, kernel classname | The old instance cannot match the current component definition |
| Parameter Key | Model instance value, global parameter value, expression, kernel param | Old value lost, fallback to default value, or expression reference invalid |
| Port Key | SVG tags, connection endpoints, port labels, kernels pin | The old connection is hanging, the network topology has changed, or the verification failed. |
| internal IDs of sheets, component instances, connections, etc. | Endpoint references, annotations, and result location in graphs | Broken references, mixed elements, or results that cannot be mapped back to the model |
Display names, labels, and group names can be used for interface presentation, but cannot replace these identifiers. The internal ID of version 2 only needs to be globally unique within A Model; when the model is saved, the new model UUID will not regenerate internal IDs such as sheet, component, and connection, so different models may contain the same internal ID. Both the model UUID and the internal ID should be saved when locating the resource.
If you do need to replace type, classID or Key, the explicit conversion of the old value to the new value, the old model still in use, the fallback reading method and the kernel supporting changes should be handled as a separate migration. The current implementation makes no promise to automatically infer rename relationships.
Definition Changes Affect Old Models and Old Jobs Differently
When reopening an old model, the platform uses the "instance data from the model snapshot + the current definition of the workspace". Therefore, changing component parameter types, default values, ranges, ports, conditional expressions, or line configurations may change the loading, normalization, and validation results of older models. Parameter load compatibility only performs deterministic normalization as currently defined, such as filling in default values, trimming shapes, or discarding unrecognized data; it does not infer parameter renames or perform unit conversions. Compatibility of table columns is handled based on column position, and column rearrangement cannot be treated as safe renaming.
The job freezes the model diagram and actual definitions used when it is created. Modifying the workspace definition later will not overwrite the frozen input of existing jobs. This needs to be verified separately:
- The old model is reopened with the new definition, verified and created New Jobs;
- Existing jobs are still interpreted and viewed according to the definitions frozen when they were created.
"The old job has not changed" cannot prove that the old model can continue to be used; "the old model has been revised" cannot change the historical job input.
The Kernel Receives Flattened, Stringified Input
The platform does not hand the editable model JSON to the kernel as is. Before starting the job, multiple sheets will be merged and sorted by globally unique element IDs, sheet names, canvas coordinates, SVG and view information will be omitted; the line component will be expanded into a common component and a line connecting its beginning and end, and comments will not enter the calculation input. The kernel finally reads the JSON whose top level is ele and global from jsonFile_{TASK_ID}. For the detailed structure, see Read Job Input.
JSON scalars in model parameters and global parameters are also converted to strings recursively. List and object structures are retained, but numbers, Boolean values, and null values are formed into corresponding strings respectively; the kernel must explicitly parse the required types and cannot rely on the JSON type during the model editing phase. Upgrade tests handle assertions on Boolean values, zero, negative numbers, scientific notation strings, empty strings, null values, nested objects, and table-by-table assertions.
The flattened network number only belongs to the kernel input generated this time. After adding component, wire, or port labels, network numbers cannot be required to remain the same across jobs, and sheet tab order should not be treated as calculation order.
Result Messages Are Compatible to Compare Original Stream and Aggregated Results
Ordinary result messages are positioned with the incremental id within the job, use stable key to find the result item, and express incremental changes through append, update, and delete of verb. Reading only tail messages may lack initialization configuration and cannot reconstruct the complete chart, table or container. See Return Status, Logs, and Results for the protocol and various types of data.
The SDK and Simulation Workbench consume the same original message, but the current aggregation target is different. The following behaviors cannot be equivalent by default:
| Scene | SDK Aggregation | Page Results View Aggregation |
|---|---|---|
| Logs of the same Key | append retains the history, update resets the Key | The merged view retains the latest news for the Key |
Chart update | Replace complete chart configuration | Keep the history of existing data sets and mainly update non-data configurations |
List format data set append | Append new dataset object | Append rows by data set index to corresponding source |
Monitor update | Replace the monitoring entry for this Key | Keep time series and update monitoring definitions |
| container | Save latest statement | Nesting and routing are also done based on the query |
Therefore, the compatibility conclusion should contain three pieces of evidence at the same time: the ordered original message, the SDK aggregated results, and the page key display. When strict consistency is required between both ends, the kernel output should be limited to a sequence of messages with the same meaning on both sides, or the same merge rules as the target page should be implemented in your own client. For the SDK reading and reconstruction methods, see Run Jobs and Read Results with the SDK.
There Is No Unified Negotiated Version of API and SDK
The current HTTP API uniformly uses the /api/ path under the platform root address, but there is no global /v1 version prefix, and there is no version negotiation endpoint covering all interfaces. Common successful responses include message, code, and data, but responses such as token, raw JSON, file download, 204 No Content, and frame errors are not completely homogeneous. The list may also return a normal array, frame pagination, or custom pagination, with filtering, sorting, and trailing slash rules subject to the specific endpoint.
Direct API callers should save contract tests for each endpoint actually used, asserting HTTP status, response media type, business-critical fields, and pagination location. The client should tolerate the addition of unknown fields in the response, but cannot return undeclared fields to the write interface accordingly. See API Conventions for the complete bounds.
The current SDK will read accessible workspace, component and global parameter definitions through the metadata interface, and will also select or reject corresponding behaviors based on the model schemaVersion, component's line configuration and job's result_status; it does not perform a one-time global capability handshake with the platform. You should actually request space definitions in the target environment before upgrading, and bypass or flush the SDK's local metadata cache when the latest definitions are required. Don't infer that a certain field or endpoint is provided by the platform simply based on the SDK package version.
When calling new capabilities, function-level probing should be performed: confirm that the target endpoint exists, that the response contains the required fields, that the spatial metadata uses supported expression versions, that the component definition meets linetype or port requirements, and that clear failure paths are prepared for 404, 405, missing fields, and unknown model versions. There is currently no public SDK-platform automatic compatibility matrix.
Retention Policy Is Not a Compatibility Promise
Job records, result streams, model or job snapshots, browser local cache, and running snapshots have separate retention boundaries:
- The current server result stream is cleaned according to the result retention policy after the job is completed; the current default window is 3 days, but the client must refer to
result_statusand the actual response; - By default, the current old snapshot cleanup checks data that is 30 days old and is no longer referenced by any model as the current snapshot; the job will still be retained, but its snapshot reference may be released;
- The current running snapshot is retained for 1 day by default. Each user can retain up to 3 snapshots that are being saved or available under the same model. The upper limit of a single copy is 512 MiB; when using,
statusandexpires_atshall prevail; - The browser's local results and job cache are not synchronized across devices with the account, nor are they server backups.
These are current implementation boundaries, not long-term service levels that clients can hard-code. Upgrade samples, regression evidence, and rollback input should be archived separately, and the above online resources cannot be relied upon to survive rollback.
Grayscale Stage: Representative Regression After Running
First, grayscale in a controlled workspace, a small number of test accounts and supporting kernels. Do not directly expand to the entire space. The following list can be used as the minimum regression set; each item must save four types of records: "input, operation, actual results, and passing judgment".
| No. | Execution Steps | Pass Judgment |
|---|---|---|
| C01 Old single image reading | Open the old single diagram sample without saving; export or read the current draft, and then compare the nodes, connections, parameters and port labels with the old snapshot | The single picture is normalized into one sheet, the business data remains unchanged, and the original snapshot of the server has not been overwritten due to reading. |
| C02 Save old single picture | Verify the C01 copy and save it explicitly before re-reading it | The new snapshot structure and topology are as expected; the original snapshot is still traceable and there is no silent value loss. |
| C03 multi-graph model | Open version 2 sample, switch, rearrange sheets and save; open again | The sheet and elements are intact, and the internal ID has not changed unexpectedly; there is no cross-sheet connection |
| C04 linear component | Verify and run the sample containing the linear component and capture the generated kernel input | The linear component is expanded into one component and two connections; the order, parameters and network of the first and last ports are correct |
| C05 Stable Key | Load the post-upgrade definition with the pre-upgrade model and check each classID, parameter Key and port Key | All old references are resolvable; canonical differences are manifested and expected, no mapping guessed by display names |
| C06 expression | Perform true, false, null, and boundary input for each condition and calculation expression | expressionVersion: 2 is loadable with display, port enablement and calculated values consistent with baseline |
| C07 core input | Create a short job, read the actual jsonFile_{TASK_ID}, assert ele, global, pin network and nested parameters | Multigraphs have been flattened, scalar stringification is consistent with the convention, and the kernel safely parses and completes the job. |
| C08 Freeze borders | Create job A, then modify a test definition, check job A again and create job B from the old model | A's frozen input is unchanged; B uses the new definition; the difference is consistent with the change record |
| C09 incremental result | Run short jobs containing append, update, delete, and save all original messages from offset=0 | The message ID is continuous and can be read continuously. The message is emptied after the final state. The type and verb meaning comply with the result protocol. |
| C10 Aggregation at both ends | Use SDK and page to consume the same original stream of C09 respectively | The respective results comply with the recorded aggregation rules; the expected differences are not misjudged as lost messages |
| C11 API Contract | Perform successful, no permission, invalid field, and empty list requests to every real endpoint in the manifest | HTTP status, business fields, media types, and paging locations comply with this endpoint convention |
| C12 SDK capabilities | Clear or refresh the metadata cache, read the space and component definitions, create and verify the model, and then read the job status and result status | SDK does not mask definition changes with old cache; unsupported structures fail explicitly and do not downgrade silently |
| C13 reserved state | Query a result available job, a result expired job and available/expired running snapshots | Job status, result_status and running snapshot status are judged independently, and invalid retries will be stopped after expiration. |
| C14 permission isolation | Use authorized and unauthorized accounts to access the same space, models, jobs and results respectively. | The new capabilities do not bypass resource permissions, and error responses do not leak protected data. |
Avoid repeated overwriting operations on the same sample during grayscale. The old structure sample, the new snapshot after saving, job A and job B should be kept separately to locate whether the difference occurs in the reading, saving, definition interpretation or job generation phase.
After Upgrade: Review the Real Running Link
After the gray scale is passed, the scope will be gradually expanded and reviewed after each batch is completed:
- There are no new failures in workspace entry, definition loading and expression initialization;
- The opening and static verification results of old single-image, version 2, multi-image and linear component models are stable;
- New jobs generate inputs using expected definitions, and kernel completion rates, exception logs, and job durations do not deviate significantly from the baseline;
- The number, order, and content of the original result messages are normal, and the known aggregation differences between the SDK and the page have not expanded;
- There are no concentrated
400,404,405,409,5xx, unpacking or paging errors in direct API calls; result_status, job snapshot reference and running snapshot status change normally, and expiration is not mistakenly reported as job failure;- Permissions, audit information and sensitive data desensitization still meet the original requirements.
Do not batch save all old models at once during the monitoring period. Read compatibility issues can often be affected by stopping upgrades or switching back to read versioning; once a large number of old models are written into new structures by new clients, simply rolling back the application may not allow the old version to re-read the data.
Evidence of upgrade completion should at least include: successful release or installation, representative model verification passed, real job success, results available in target consumers, and API contract testing passed. No item is substituted for any other item.
Fallback: Trigger Conditions and Execution Boundaries
Clarify the Triggering Conditions for Rollback
If any of the following situations occur, you should stop expanding the grayscale range and enter a rollback evaluation; if it has caused data errors, permissions out of bounds, or general inability to calculate, you should immediately roll back according to the plan:
- Unexplained loss of components, connections, parameters or internal IDs occurs after the old model is opened or saved;
classID, parameter Key, port Key, ortypecannot be parsed and there is no verified explicit migration path;- The frozen boundary between old and new jobs is destroyed, and historical job input is rewritten by the current definition;
- The flattened topology or stringified parameters received by the kernel do not match the baseline, causing the batch job to fail or the calculation meaning to change;
- The original result message is missing, out of order, cannot be continued from the confirmed
offset, or the primary consumer has undocumented aggregation differences; - Changes in status code, response structure, or pagination of critical APIs make existing integrations unsafe to parse;
- Permission isolation failure, sensitive information leakage, or uncontrollable duplication of write operations after timeout;
- Abnormal cleanup of result streams, job snapshots, or running snapshots beyond the established policy occurs, affecting diagnosis or recovery.
Business input errors for a single sample, natural expiration of confirmed results, or known aggregate differences between the SDK and the page should not be directly attributed to the platform version without targeting. The fault boundary is first determined using the original input, job freeze input, and original result stream.
Don’T Just Switch Program Versions When Going Back
Rollback is performed in the following order:
- Stop expanding traffic, and suspend definition publishing, model batch saving, and non-essential writing interfaces within the grayscale range;
- Preserve failure models, job UUIDs, job freeze inputs, raw result messages, API responses, and logs to avoid cleaning overwrite evidence;
- Confirm whether version 2 models, new expressions, or newly defined fields have been written during the upgrade, and verify that the previous version can read them;
- Restore the supporting platform extensions, workspace definitions, kernel, SDK, client configuration and necessary data copies according to the plan. You cannot roll back only one of the components;
- Use a new browser session or clear the relevant SDK metadata cache to avoid the old cache giving the illusion of "rewinding";
- Re-execute C01, C05, C07, C09, C11, and C14 and gradually restore flow.
Application rollback does not automatically undo model saves, definition updates, or jobs that have been created during the upgrade, nor does it restore expired results and snapshots. If the previous version cannot read the data written during the upgrade, you should continue to maintain a write freeze, restore the affected resources using the pre-upgrade copy, or complete a verified reverse conversion in an isolated environment. Unvalidated reverse transformations should not be used directly on production data.
Final Record Before Delivery
Each upgrade should leave a record corresponding to the actual deployment, including at least:
- Actual versions or product verification information of platform extensions, space packages, kernels and SDKs;
- This time depends on model
schemaVersion, spaceexpressionVersionand stable identification change list; - Input locations, execution times, results, and evidence for representative regressions C01–C14;
- Known SDK and page aggregation differences, and rules adopted by callers;
- Current retention configuration and inspection methods for results, model or job snapshots, running snapshots;
- Clear rollback responsible person, trigger conditions, recovery points and verification results after rollback.
This record describes a verified combination and does not constitute a permanent compatibility commitment for future versions. The next upgrade still needs to be re-checked using the current source code, interfaces and real operating environment.