Model Client Update Message
OpenFrame Documentation
Get the most out of OpenFrame · Book 30 minutes with Conrad, 25 years in IT. He'll show you what Mingo and Fae can take off your list.
OpenFrame Documentation
Model Client Update Message is the wire model that requests an installed OpenFrame client to move to a specific client release. It belongs to the Rust openframe_agent_lib library from the OpenFrame OSS Library and is assembled into this repository's OpenFrame Client service. The model deliberately carries only the desired version and the OS-specific download choices; validation, update coordination, persistence, binary replacement, and post-restart verification remain responsibilities of the receiving client.
Source: openframe_client_update_message.rs
OpenFrameClientUpdateMessage is a serializable and deserializable Rust structure with camel-case wire names:
| Field | Rust type | Wire name | Meaning |
|---|---|---|---|
version |
String |
version |
Requested client version. The update service trims, validates, parses, and canonicalizes it before beginning an update. |
download_configurations |
Vec<DownloadConfiguration> |
downloadConfigurations |
Candidate binaries or bundles. A configuration identifies the target operating system, source link, source filename, installed target filename, installation type, and optional bundle or service metadata. |
The model derives Debug, Clone, Serialize, and Deserialize. It is therefore suitable for transport decoding, diagnostic logging under the caller's logging policy, and safe ownership transfer into asynchronous update work.
The camel-case serde policy means that Rust's download_configurations is represented as downloadConfigurations on the wire. The embedded download configuration model accepts agentFileName and assetFileName as deserialization aliases for its target filename, preserving compatibility with senders that use either historical name.
A conceptual payload has this shape. Values are illustrative only and are not a prescribed release URL or version.
{
"version": "1.2.3",
"downloadConfigurations": [
{
"os": "windows",
"fileName": "openframe-client.exe",
"targetFileName": "openframe-client.exe",
"link": "https://release-host.example/client/1.2.3/openframe-client.exe"
}
]
}
The message itself does not select a download. The update path evaluates each DownloadConfiguration against the running operating system. The model recognizes windows, macos, and linux case-insensitively; unsupported build targets do not match. A target filename with more than one path component signals folder extraction rather than a single-file placement.
flowchart LR
ControlPlane["Control Plane"] -->|"client update message"| CommandHandler["Client Update Handler"]
CommandHandler -->|"deserializes"| UpdateMessage["Model Client Update Message"]
UpdateMessage -->|"version and download configurations"| UpdateService["Client Update Service"]
UpdateService -->|"selects current operating system asset"| DownloadService["GitHub Download Service"]
UpdateService -->|"records progress"| UpdateState["Update State Service"]
UpdateService -->|"sets status"| ClientInfo["Client Info Service"]
UpdateService -->|"coordinates"| ToolRuntime["Tool Run Manager and Tool Operations"]
UpdateService -->|"launches"| PlatformUpdater["Platform Updater"]
PlatformUpdater -->|"next startup verification"| StartupHandler["Update Handler Service"]
The message is a boundary model. It has no behavior beyond serde mapping and does not embed policy. The surrounding OpenFrame Client components provide the operational guarantees:
Updating, Updated, or Failed status separately from the binary operation.sequenceDiagram
participant Control as Control Plane
participant Listener as Command Listener
participant Model as Model Client Update Message
participant Service as Client Update Service
participant Tools as Tool Runtime
participant State as Update State Service
participant Updater as Platform Updater
participant Startup as Startup Handler
Control->>Listener: Deliver update command
Listener->>Model: Deserialize camel-case payload
Listener->>Service: Reserve update work
Service->>Tools: Mark update pending and check active work
Service->>Service: Validate and parse requested version
Service->>State: Prepare target version state
Service->>Updater: Download selected asset and launch update
Updater->>Startup: Restart client
Startup->>State: Load pending update state
Startup->>Startup: Compare running and target versions
A duplicate delivery cannot overlap a live update: the client update service holds an in-progress guard from reservation until the updater completes its work for the process. If another update-related operation is active, reservation fails so the message can be redelivered rather than racing the existing operation. A request for the version already running is skipped and clears the pending update indication.
stateDiagram-v2
[*] --> Received
Received --> Reserved: update guard acquired
Received --> Deferred: update or tool work active
Reserved --> Skipped: running version or downgrade rejected
Reserved --> Updating: version and assets accepted
Updating --> Launching: state persisted and updater started
Updating --> Failed: download or update failure
Launching --> Verifying: client restarts
Verifying --> Updated: running version equals target
Verifying --> Failed: terminal verification failure
Deferred --> Received: redelivery
Skipped --> [*]
Updated --> [*]
Failed --> [*]
Important operational details:
Failed, clears stale update state, and leaves message retry to the transport flow.| Dependency | Relationship to the model |
|---|---|
DownloadConfiguration |
Nested asset metadata. It identifies OS applicability and how the selected release artifact is placed or extracted. |
| Client Update Handler | Transport-side consumer that routes a decoded update request to update orchestration. |
| OpenFrame Client Update Service | Primary consumer. It reserves the operation, validates the version, coordinates workloads, downloads the asset, and launches replacement. |
| Client Info Model and Service | Holds current version and update status for reporting. |
| Update State Model and Service | Persists restart-resilient state for the target version and update phase. |
| Last Known Good Service | Supplies the downgrade-protection anchor. |
| Tool Run Manager and Tool Operations | Avoid concurrent client replacement and managed tool or package activity. |
| Update Handler Service | Performs startup-time success or failure handling after the updater relaunches the client. |
Treat this structure as a versioned transport contract:
version canonical and semver-compatible with the update service. The service, rather than this DTO, is the enforcement point for version validity and downgrade policy.The OpenFrame OSS Tenant repository publishes and deploys the OpenFrame Client alongside platform services. At runtime, the client connects to the tenant's NATS service and is configured with the tenant's Kafka and NATS endpoints. This model is part of the client-side command contract used to request a local agent upgrade; it is not an HTTP endpoint and does not itself publish a NATS subject.
The model is implemented by the OpenFrame OSS Library artifact openframe_agent_lib version v0.0.5, which this repository consumes. The server-side control-plane services and the local Rust client must remain compatible on the serialized update payload and on its release artifact conventions.