Model Tool Version Overrides
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 Tool Version Overrides is a compile-time policy adapter in the OpenFrame client agent. It resolves a replacement version for a small, feature-selected set of integrated tools. When no matching override is compiled into the agent, it returns no value and the installation message's declared version remains authoritative.
The implementation is supplied by the openframe_agent_lib Cargo dependency from OpenFrame OSS Library version v0.0.5. Its source is maintained in tool version overrides.
The module exposes one function: lookup(tool_key: &str) -> Option<&'static str>.
env! macro.None.The current lookup table is deliberately narrow:
| Compile-time feature | Tool key | Embedded environment variable |
|---|---|---|
openframe-chat-version |
OpenFrame Chat tool agent identifier | OPENFRAME_CHAT_VERSION |
meshcentral-agent-version |
meshcentral-server |
MESHCENTRAL_AGENT_VERSION |
fleetmdm-agent-version |
fleetmdm-server |
FLEETMDM_AGENT_VERSION |
osquery-version |
osqueryd |
OSQUERY_VERSION |
Feature-gated match arms do not exist in a build unless their feature is enabled. Conversely, an enabled feature requires its associated environment variable while compiling because env! embeds the value into the binary. There is no runtime environment lookup or dynamic override configuration in this module.
flowchart LR
BuildFeatures["Enabled Cargo features"] --> Lookup["Model Tool Version Overrides lookup"]
BuildEnvironment["Build environment version variables"] --> Lookup
ToolMessage["Tool installation message"] --> EffectiveVersion["Effective version resolution"]
Lookup --> EffectiveVersion
EffectiveVersion --> DownloadConfig["Download configuration version substitution"]
DownloadConfig --> Installer["Tool installation workflow"]
ToolMessage --> Installer
Model Tool Version Overrides sits at the model boundary of the Rust client. It provides version selection only; the installation message provides the baseline tool identifier and version, while later layers use the resolved version to prepare an installation artifact.
The installation-message model invokes lookup as part of its effective-version calculation:
resolved version = lookup(tool identifier) when present
resolved version = message version when no override is present
This creates a clear precedence rule: a compiled override wins for its exact tool key. All other tools, including keys whose features are not included in the build, retain the version supplied by the tool installation message.
flowchart TD
Start["Receive tool identifier and declared version"] --> Query["Call lookup with tool identifier"]
Query --> Match{"Enabled override matches?"}
Match -->|"Yes"| Embedded["Return embedded override version"]
Match -->|"No"| Declared["Keep declared message version"]
Embedded --> Resolved["Use resolved version for installation"]
Declared --> Resolved
Matching is exact and string-based. For example, the MeshCentral and Fleet MDM entries match their server-key strings, and the osquery entry matches osqueryd. A caller cannot obtain an override by providing an alias, partial name, or differently cased key.
The surrounding client model exposes an effective_version operation that asks this module for an override and otherwise returns the installation message's version. A download configuration can then clone itself with with_version_override, replacing the original version text in its download link when the two versions differ.
sequenceDiagram
participant Message as Tool installation message
participant Overrides as Model Tool Version Overrides
participant Resolver as Effective version resolver
participant Download as Download configuration
participant Workflow as Installation workflow
Message->>Resolver: Provide tool identifier and declared version
Resolver->>Overrides: Lookup tool identifier
alt override present
Overrides-->>Resolver: Embedded version
else no override
Overrides-->>Resolver: No value
end
Resolver->>Download: Resolve download link version
Download-->>Workflow: Configuration with resolved link
The download configuration replaces text only when the declared version is nonempty and differs from the resolved version. If the declared version does not occur in the link, the configuration layer preserves the link and emits a warning. Therefore, a successful lookup selects the intended version but does not by itself guarantee that an artifact URL can be rewritten or downloaded.
tool_id values emitted in tool installation messages. Renaming a key silently removes the override path for that tool.When introducing or changing an override:
Because this module returns a static string borrowed from compile-time configuration, it contains no mutable state, network dependency, or error result. Failures related to absent artifacts or malformed URLs are intentionally handled by the downstream download and installation layers rather than by Model Tool Version Overrides.