Shared platform services
OpenLogi's shared platform services give its product processes one view of devices, user choices, access rights, device resources, support state, and common UI terms. They keep the settings app, background agent, and overlay aligned while the agent remains the owner of device I/O.
Shared domain model
The shared domain model describes devices and their supported actions without tying those facts to one operating system or one user interface. Product processes use the same identity, route, capability, and result data to decide what state to show and what action to offer.
Device identity and capability model
The device model separates what a device is from what it can do. Identity covers the product family and connection details. Capabilities describe features measured from the device, so controls follow firmware support rather than a broad device label. crates/…/device.rs• L18-63 crates/…/device.rs• L125-250
This distinction also supports devices that are offline. A saved model identity can keep a device visible, while measured capabilities choose the correct panels when the device is online. A small kind-based fallback keeps common mouse and keyboard controls available before a new probe completes. Standalone lights and other raw-HID devices use their own capability record instead of entering the receiver model. crates/…/device.rs• L313-350 crates/…/device.rs• L719-755
The capability set covers device controls such as keyboard backlight, force sensing, pointer scaling, report rate, fixed-key disabling, haptic panels, headset audio, and G-series keyboard controls. These are shared product facts. The device layer still decides how to read or write them. crates/…/device.rs• L138-249
References: crates/…/device.rs• L18-63 crates/…/device.rs• L125-250 crates/…/device.rs• L313-350 crates/…/device.rs• L646-755
Device identity and route state
OpenLogi stores user settings under a stable physical-device key when the device reports one. A route table records the receiver slot, direct connection, or raw-HID path where that device was seen. This lets settings follow a device when it changes connection while still letting the system find an asleep device through its last known route. crates/…/identity.rs• L18-44 crates/…/identity.rs• L83-144
Routes also preserve how the agent reaches the device. Receiver slots use the receiver's protocol family, direct devices use their own HID++ address, and standalone raw-HID devices stay outside HID++ channel handling. Receiver families keep their own user-facing names even when two families share a protocol path. An unknown receiver with a known identity uses the safe receiver route rather than silently dropping writes. crates/…/route.rs• L1-18 crates/…/route.rs• L84-111 crates/…/route.rs• L166-210
Route resolution prefers the device identity only when that entry holds user settings. A metadata-only identity entry does not hide settings that still use an older route key, which lets the agent keep working before route adoption completes. When a device is online, adoption records the measured capabilities for that route, removes a stale route claim from a device that was replaced in a receiver slot, and folds the older entry into the canonical device entry. It also updates the selected device and host-switch links. Differences that belong to one connection stay as link overrides, so a wired and wireless route can have different supported features or values. crates/…/identity.rs• L101-162 crates/…/identity.rs• L164-230
The device state includes bindings, application overlays, Actions Ring layout, camera and light choices, wheel behavior, keyboard state, pointer state, force-sensing state, and key-disable policy. An enabled flag controls whether OpenLogi manages the device at all. An absent value means that OpenLogi leaves a setting under device control. crates/…/device.rs• L184-405 crates/…/per_device.rs• L22-191
References: crates/…/identity.rs• L18-44 crates/…/identity.rs• L83-144 crates/…/identity.rs• L101-162 crates/…/identity.rs• L164-230 crates/…/identity.rs• L233-246 crates/…/device.rs• L184-405 crates/…/per_device.rs• L22-191 crates/…/route.rs• L1-18 crates/…/route.rs• L84-111 crates/…/route.rs• L166-210
Deterministic device ordering
The device ordering service gives the GUI and agent the same stable order even when device discovery order changes. It derives runtime keys from receiver slots, direct identities, or raw-HID routes. Only identities that can represent a physical device become persistent configuration keys. crates/…/device_order.rs• L1-9 crates/…/device_order.rs• L88-132 crates/…/device_order.rs• L206-223
This keeps display order and settings lookup stable without treating a temporary operating-system node as a permanent device identity. Receiver and direct routes can therefore share ordering rules while raw-HID devices remain separate from HID++ handling. crates/…/device_order.rs• L135-185
References: crates/…/device_order.rs• L1-9 crates/…/device_order.rs• L12-85 crates/…/device_order.rs• L88-223
Binding vocabulary
A binding is the shared rule that maps a physical control to an action. The vocabulary covers mouse controls, HID controls, keypad grid positions, G-series keyboard keys, Easy-Switch channel changes, and device-specific controls. It gives the configuration, agent, and UI one stable name for each control. Action variant names are also persisted configuration names, so existing names remain stable and new variants are appended rather than renamed. crates/…/binding.rs• L1-10 crates/…/action.rs• L10-24
Keypad bindings use a physical grid position and a page. G-series keyboard bindings use a physical G-key and one of the M1–M3 profiles, or use the nine-button mode where the profile keys also become bindable controls. Page and profile context changes which saved rule a press selects without changing the physical control identity. crates/…/button.rs• L90-119 crates/…/g_keys.rs• L17-39
Effective bindings start with safe defaults and then apply saved device and application choices. Unbound keyboard and gaming-cluster controls keep their native behavior until the user enables software control. A multi-page keypad adds page actions only when it has more than one page. crates/…/defaults.rs• L9-31 crates/…/bindings.rs• L46-81
The action picker uses one declaration table for action labels, translation keys, categories, catalog order, and default Actions Ring icons. Payload actions such as recorded shortcuts and scripts keep their data in the action while the picker gives them a suitable label and icon. This keeps the settings UI and agent-facing action data from drifting apart. crates/…/action.rs• L294-489 crates/…/icon.rs• L121-331
References: crates/…/binding.rs• L1-10 crates/…/action.rs• L10-24 crates/…/action.rs• L158-252 crates/…/action.rs• L294-489 crates/…/icon.rs• L121-331 crates/…/button.rs• L90-119 crates/…/g_keys.rs• L17-194 crates/…/defaults.rs• L9-97 crates/…/bindings.rs• L46-142
Binding execution model
An action is lowered into a small platform-neutral effect before an injector backend runs it. The effect separates shared intent from operating-system mechanics: clicks, named shortcuts, recorded chords, scroll directions, media keys, native system actions, scripts, text, and actions handled by the agent each have their own path. This lets each platform backend translate the same product action without matching the full action list. crates/…/effect.rs• L1-85 crates/…/effect.rs• L219-308
Some actions last for the physical press. A held chord can keep the whole chord down or tap its ordinary key once while holding only its modifiers. A bare-modifier action holds one or more modifiers without an ordinary key. These actions need a lifecycle-aware source that can release state on normal release, cancellation, or shutdown; a one-shot source uses a safe fallback rather than leaving keys down. crates/…/action.rs• L182-252 crates/…/action.rs• L537-567 crates/…/effect.rs• L41-50
The default action catalog contains only actions that a one-shot picker can safely offer. Recorded shortcuts, scripts, workflows, and held actions remain available to explicit configuration or dedicated editors. The shared tests protect catalog exclusion, action labels, persisted names, effect classification, and TOML round trips. crates/…/action.rs• L412-478 crates/…/tests.rs• L21-184
References: crates/…/action.rs• L182-252 crates/…/action.rs• L412-567 crates/…/effect.rs• L1-85 crates/…/effect.rs• L102-217 crates/…/effect.rs• L219-308 crates/…/tests.rs• L21-184 crates/…/tests.rs• L724-814
Device control contracts
The crates/…/hid.rs contract is the data-only boundary for device control. It carries routes, read-back state, changes, and typed errors between the agent and GUI without bringing the transport stack into the GUI. crates/…/hid.rs• L1-48
The shared state preserves the difference between a device feature, its current state, and a requested change. This is important for controls whose firmware may keep its own status, such as backlight mode, battery shutoff, or a force-sensing range. The GUI can show the device's real state instead of treating every request as success. crates/…/backlight.rs• L15-98 crates/…/force_sensing.rs• L9-43
Key disabling uses a capability-bounded policy. OpenLogi edits only known supported keys and preserves device bits that this version does not understand. This keeps a newer device's state from being erased by an older client. crates/…/disable_keys.rs• L9-15 crates/…/disable_keys.rs• L94-127
Typed operation errors preserve whether a failure is permanent, temporary, unsupported, or caused by a value that was not applied. The GUI can then choose between showing an unavailable feature, retrying a transport failure, or correcting user input. crates/…/error.rs• L14-24 crates/…/error.rs• L41-166
References: crates/…/hid.rs• L1-48 crates/…/backlight.rs• L15-98 crates/…/force_sensing.rs• L9-43 crates/…/disable_keys.rs• L9-127 crates/…/error.rs• L14-166
Configuration foundation
The configuration foundation turns shared domain state into a user-owned TOML file. The GUI changes durable choices. The agent reloads those choices and applies them to devices.
Configuration scopes
The configuration keeps values at the scope where they have meaning:
- App-wide settings control startup, input capture, scrolling, updates, assets, language, appearance, scale, gallery layout, notifications, and profile targeting.
- Device settings apply to one physical device.
- Application overlays apply while a matching foreground application is active.
- Global keyboard bindings apply independently of the selected device.
- Application aliases connect platform-specific application identifiers to one shared profile.
- Flow settings describe trusted peer machines, screen-edge links, and device host slots for cross-machine handoff.
- Keypad and G-series settings define page count, profile ownership, and gaming-cluster behavior for the relevant device.
Device settings can also fall back from a route-specific value to a device-wide value. This lets one physical device keep a common default while preserving a deliberate difference on one connection. crates/…/config.rs• L137-185 crates/…/settings.rs• L153-319
The current schema includes explicit per-device policy for disabling known keyboard keys, keypad pages, G-series keyboard modes, and cross-machine Flow handoff. Older files load without those fields and mean that OpenLogi does not manage the missing policies or handoff. A current file rejects unknown fields so a typo cannot silently change the user's intent. crates/…/config.rs• L68-135 crates/…/device.rs• L378-405
References: crates/…/config.rs• L68-185 crates/…/device.rs• L132-174 crates/…/device.rs• L378-405 crates/…/settings.rs• L153-319
Cross-machine handoff configuration
Flow configuration describes how a device can move between trusted machines when it crosses a configured screen edge. It keeps peer identity, screen layout, and each device's host-slot mapping as one validated domain value, while discovery and transport remain outside the shared core. crates/…/flow.rs• L1-7 crates/…/flow.rs• L255-278
The configuration accepts named peers with pinned public keys, maps screen edges to those peers, and assigns distinct Easy-Switch slots to the local machine and each peer. Validation rejects unknown references, duplicate names or slots, invalid device keys, and missing local slots before consumers use the value. crates/…/flow.rs• L25-80 crates/…/flow.rs• L346-385 crates/…/flow.rs• L449-539
References: crates/…/config.rs• L137-155 crates/…/flow.rs• L1-7 crates/…/flow.rs• L25-80 crates/…/flow.rs• L346-385 crates/…/flow.rs• L449-539
Cross-platform shortcut model
Custom keyboard shortcuts use one platform-neutral value across saved configuration, IPC, and input backends. The value stores a standard HID keyboard usage with validated modifier flags, while human-readable text uses a canonical chord label. This keeps macOS, Linux, and Windows key codes out of shared product state. crates/…/key_combo.rs• L11-21 crates/…/key_combo.rs• L125-193 crates/…/modifiers.rs• L13-70
The shortcut contract accepts common names for Command, Super or Windows, Shift, Control, and Option or Alt. It requires one ordinary key and rejects unknown usages or modifier bits. It also accepts common names for editing, navigation, keypad, and Print Screen keys, then renders one stable label that can be parsed again. A separate non-empty modifier value supports bindings that hold modifiers without an ordinary key. crates/…/modifiers.rs• L37-175 crates/…/key_combo.rs• L199-386
This value is readable in TOML and compact in binary IPC. Human-readable shortcuts use canonical text, while binary values use validated HID and modifier bits. Round-trip checks protect the saved form so an accepted key can be loaded on another platform without changing its meaning. crates/…/key_combo.rs• L135-193 crates/…/tests.rs• L503-647
References: crates/…/key_combo.rs• L11-21 crates/…/key_combo.rs• L125-193 crates/…/key_combo.rs• L199-386 crates/…/modifiers.rs• L13-175 crates/…/tests.rs• L503-647
Configuration lifecycle
Configuration loading accepts supported older schemas and brings them to the current in-memory shape. Unsupported future schemas, invalid values, undefined application aliases, and obsolete fields fail clearly instead of being reduced and saved. crates/…/file.rs• L308-351 crates/…/file.rs• L354-380
Saving protects user data in three ways. It checks that the source file did not change, preserves useful comments and formatting, and replaces the file atomically. It also keeps rotating recovery copies and a separate pre-migration copy when an older file is first rewritten. crates/…/file.rs• L107-121 crates/…/file.rs• L176-267 crates/…/file.rs• L438-467
Other writers use a revision-aware edit. They read the file, change the shared in-memory model, and commit only if the file still has the revision they read. A concurrent change is reported as a conflict instead of being overwritten. Device edits also resolve the same device key and refuse to hide a route-specific override behind a device-wide value. crates/…/edit.rs• L1-9 crates/…/edit.rs• L26-73 crates/…/edit.rs• L125-218
The configuration file is not live device state. A successful save records the user's durable choice. A later reload tells the agent to apply it. This separation allows the GUI to report when a choice is saved but the agent is unavailable. crates/…/ipc.rs• L485-503
References: crates/…/file.rs• L107-121 crates/…/file.rs• L176-267 crates/…/file.rs• L308-380 crates/…/file.rs• L438-467 crates/…/edit.rs• L1-9 crates/…/edit.rs• L26-73 crates/…/edit.rs• L125-218 crates/…/ipc.rs• L485-503
Release channels
The update channel is the shared choice of release set that an installation follows. A user can choose Stable or Beta. Without a saved choice, the running version selects the matching channel. The channel maps to one published directory and manifest path, so the app and release process use the same feed contract. crates/…/update_feed.rs• L17-89
The update choice is separate from device state and applies on the next launch. This keeps an update check from changing the device configuration that the current agent is using. crates/…/update_feed.rs• L35-43
References: crates/…/update_feed.rs• L17-89
Process and permission foundation
OpenLogi uses several cooperating processes. Shared process, profile, permission, and IPC rules keep them aligned while assigning hardware access to the process that owns the resource.
Process coordination
The agent, settings app, overlay, tools, and test processes share process names, profile selection, user paths, and local command vocabulary. Development identities use a separate profile from shipped identities, so a development process does not take over production state. Role-specific locks allow one GUI and one agent while allowing those two roles to run together. crates/…/brand.rs• L15-79 crates/…/paths.rs• L31-75 crates/…/single_instance.rs• L66-125
The GUI observes the agent through a local IPC socket. It receives complete state snapshots and sends commands through the same boundary. Reconnects request a fresh snapshot, and version checks prevent a client from using an unknown agent message shape. crates/…/ipc.rs• L1-20 crates/…/ipc.rs• L163-188 crates/…/ipc.rs• L401-437
The portable core keeps domain data separate from host services. File access, locale negotiation, async workers, and process logging are optional capabilities, so consumers that need only shared data can remain portable. crates/…/Cargo.toml• L13-29
References: crates/…/brand.rs• L15-79 crates/…/paths.rs• L31-75 crates/…/single_instance.rs• L66-125 crates/…/ipc.rs• L1-20 crates/…/ipc.rs• L163-188 crates/…/ipc.rs• L401-437 crates/…/Cargo.toml• L13-29
Permission ownership
The permission service reports access state and provides platform actions without owning a UI toolkit. Status reads do not prompt. The process that owns a resource must raise its prompt, which prevents a grant from being attached to the wrong process. The service keeps platform-specific support isolated from the product UI. crates/…/Cargo.toml• L9-27 crates/…/lib.rs• L1-79
The background agent owns device access and input capture. The settings app reads permission state and asks the agent to request access when the platform prompt must name the agent. On Linux, input access is the combined result of three needs: read/write access to virtual input creation, read/write access to a Logitech HID path, and read access to each relevant Logitech mouse event path. A missing device is unknown, while any definite denial is denied. crates/…/permissions.rs• L1-11 crates/…/permissions.rs• L29-64 crates/…/linux.rs• L17-41
References: crates/…/Cargo.toml• L9-27 crates/…/lib.rs• L1-79 crates/…/permissions.rs• L1-11 crates/…/permissions.rs• L29-64 crates/…/linux.rs• L17-41 crates/…/linux.rs• L146-187
Linux access remediation
Linux has no consent database for these resources. OpenLogi grants access by installing udev rules that make the virtual input node, Logitech HID nodes, and relevant mouse event nodes available to the active user. The settings app can ask for administrator approval, then the process reruns the rules and the app probes access again. crates/…/lib.rs• L22-29 crates/…/udev.rs• L1-20 crates/…/udev.rs• L133-140
The remediation avoids taking ownership of hosts whose package manager or sandbox controls udev rules. Flatpak and NixOS receive host-specific guidance instead. The installation uses fixed inputs and replaces the rules file as one staged file, so a user request cannot write through a destination link or pass arbitrary commands to the root step. crates/…/udev.rs• L23-34 crates/…/udev.rs• L191-241
References: crates/…/lib.rs• L22-29 crates/…/udev.rs• L1-20 crates/…/udev.rs• L23-34 crates/…/udev.rs• L133-140 crates/…/udev.rs• L191-241
Device resource foundation
The resource foundation supplies device artwork and metadata for device cards and controls. It combines release-bundled assets with a per-user cache and uses remote sources only when local resources do not suffice or the user requests a refresh.
Asset registry and cache
The resolver checks the read-only app bundle before the writable user cache. If neither contains a usable asset, the UI draws a synthetic silhouette. This keeps core device views useful during an empty cache, a first run, or a network outage. crates/…/assets.rs• L1-20 crates/…/assets.rs• L169-225
The registry maps a model identity to a product depot. Depot metadata supports current and older package shapes, while optional assignment data remains separate from the image data needed to render a device. Automatic downloads follow a user preference. A manual refresh can fetch on demand without removing bundled artwork. crates/…/assets.rs• L148-167 crates/…/metadata.rs• L1-116 crates/…/assets.rs• L58-147
References: crates/…/assets.rs• L1-20 crates/…/assets.rs• L148-167 crates/…/assets.rs• L169-225 crates/…/metadata.rs• L1-116 crates/…/assets.rs• L58-147
Asset source selection
An asset synchronization run selects one complete valid source and keeps that source for the whole run. Built-in sources follow the current asset release line. The jsDelivr path can resolve the newest patch in that line, then pins the catalog and shard files to one exact release. This lets new device artwork arrive without an app release while preventing a cache from mixing catalog and file versions. crates/…/source.rs• L23-51 crates/…/source.rs• L126-173 crates/…/source.rs• L351-407
Remote content is accepted only when its catalog, route information, names, and checksums are valid. If all built-in sources fail, the caller receives a combined source error. The local bundle and existing cache remain available as independent fallbacks. crates/…/error.rs• L7-112 crates/…/http.rs• L190-219 crates/…/http.rs• L294-334
References: crates/…/source.rs• L23-51 crates/…/source.rs• L126-173 crates/…/source.rs• L351-407 crates/…/error.rs• L7-112 crates/…/http.rs• L190-219 crates/…/http.rs• L294-334
Diagnostics foundation
The diagnostics service turns shared runtime state into a support report. It joins process versions, IPC state, inventory health, permissions, configuration, asset state, and model-level device details while excluding unique receiver and unit identifiers. The report distinguishes receiver family, direct or paired connection, render source, and the state of inventory discovery. crates/…/diagnostics.rs• L1-19 crates/…/diagnostics.rs• L22-115 crates/…/diagnostics.rs• L166-252
Direct connection labels use the live route when model data identifies its transport. If that data is missing, the report falls back to a best-effort label rather than claiming certainty. crates/…/diagnostics.rs• L46-90
The report distinguishes unknown state from failure. For example, an unreachable agent leaves permission and hook state unknown, and an inventory scan remains marked as in progress until it is authoritative. This keeps support triage from treating startup or reconnect state as a permission denial. crates/…/diagnostics.rs• L104-115 crates/…/diagnostics.rs• L166-222
The copied Markdown report is model-level by construction. It gives support enough context to compare app, agent, protocol, host, asset, and device health without exposing unique hardware identifiers. crates/…/diagnostics.rs• L241-265 crates/…/diagnostics.rs• L267-433
References: crates/…/diagnostics.rs• L1-19 crates/…/diagnostics.rs• L22-115 crates/…/diagnostics.rs• L46-90 crates/…/diagnostics.rs• L166-252 crates/…/diagnostics.rs• L241-433
Shared presentation layer
The shared presentation layer gives the settings app and overlay the same visual primitives, action glyphs, language keys, and meaning for common notices. The agent can also consume the shared action glyph data for keypad displays. Product-specific layout stays in each frontend. crates/…/lib.rs• L1-15
Shared color ownership
The shared UI package owns the brand accent and the neutral color shape used by the overlay. It keeps accent shades tied to one hue and saturation, while the settings app continues to take appearance-dependent colors from its active theme. The overlay can choose lightness for its dark surfaces without creating a second brand color. crates/…/color.rs• L1-55
The ui-neutral-owner rule guards this boundary across shared UI and overlay code. It directs neutral colors through the shared helper, so ring surfaces, notices, and key indicators keep one color shape even when their lightness differs. crates/…/ui-neutral-owner.yml• L1-31
References: crates/…/color.rs• L1-55 crates/…/ui-neutral-owner.yml• L1-31
Shared icons and language catalogs
Embedded action icons are vendored into the shared UI package and exposed only under the action-icons/ path. The same embedded bytes serve settings and overlay rendering, while the agent reads them for keypad keys. Shared names identify the Actions Ring cancel mark, common notices, and Easy-Switch channel actions. The numbered square glyphs make those channel actions visible in every frontend. crates/…/action_icons.rs• L1-12 crates/…/action_icons.rs• L20-32 crates/…/action_icons.rs• L89-130
Locale catalogs provide semantic keys for devices, permissions, assets, updates, appearance, profiles, bindings, keypad and G-series controls, diagnostics, action controls, and agent connection states. Every bundled language follows the same key and placeholder contract, so a new shared message must be available to every frontend language. Permission remediation, reconnect, save-conflict, and delayed-apply messages let the UI explain access, unavailable resources, and configuration state without changing the shared process contract. crates/…/en.toml• L1-1062 crates/…/catalog_parity.rs• L22-95
Keyboard settings use shared messages for loading and confirming device state, save and reload failures, unsupported controls, and offline snapshots. Diagnostics, permission, Flow, keypad, and input-interception notices use the same catalog contract. These messages let the UI distinguish a value applied to hardware from a value saved for later use. crates/…/en.toml• L551-603 crates/…/en.toml• L795-819 crates/…/en.toml• L1042-1059
Locale selection first uses a supported stored choice. Otherwise it maps the system locale to a shipped catalog and falls back to English. Region and script rules keep related Chinese, Portuguese, and Norwegian variants consistent. crates/…/locale.rs• L22-55 crates/…/locale.rs• L57-147
References: crates/…/lib.rs• L1-15 crates/…/action_icons.rs• L1-12 crates/…/action_icons.rs• L20-32 crates/…/action_icons.rs• L89-130 crates/…/en.toml• L1-1062 crates/…/catalog_parity.rs• L22-95 crates/…/locale.rs• L22-147
Related service pages
Read Core domain and configuration for the shared device model, configuration rules, and state lifecycle. Read Permissions and assets for platform access and device-artwork resource flows. Read User interface foundation for reusable UI primitives and the boundary between product processes.
Change checklist
When these files or sections are changed, remember to consider these:
- Changes to device identity, capabilities, routes, or persisted device state must keep offline display, route adoption, asset lookup, device ordering, and GUI-agent messages aligned.
- Changes to identity resolution or route adoption must not let metadata-only canonical entries hide legacy settings. Keep route ownership, measured per-link capabilities, selected-device references, and host-switch targets aligned after re-pairing.
- Changes to stable device keys or ordering must keep runtime display order separate from persistent identity. Do not persist temporary raw-HID node identities.
- Changes to receiver route variants, receiver family labels, or protocol selection must keep inventory discovery, channel opening, capture, writes, and IPC wire compatibility aligned.
- Changes to a serialized device control or error must preserve the IPC contract. Append new fields and variants or bump the protocol when the wire shape changes.
- Changes to the configuration schema must define older-file behavior. Keep unsupported future files from being silently rewritten.
- Changes to non-settings config writers must retain revision checks and must surface conflicts rather than overwrite another writer's edit.
- Changes to Flow peers, screen edges, or host slots must keep trusted peer references, physical-device keys, and distinct Easy-Switch assignments valid together.
- Changes to shortcut names, HID usages, modifier meanings, or rendered labels must keep config parsing, IPC values, platform injection, and user-facing text compatible. Keep aliases and canonical labels round-trippable.
- Changes to held shortcut or bare-modifier actions must keep press, release, cancellation, and shutdown behavior aligned with the lifecycle-aware dispatcher. A one-shot source must not leave output held.
- Changes to the action declaration table must keep labels, translation keys, categories, catalog order, pickability, and default Actions Ring icons aligned.
- Changes to action variants or effect buckets must update the exhaustive lowering contract and every platform backend's semantic mapping.
- Changes to keypad pages or G-series profiles must keep saved physical slots, active-page or active-profile dispatch, page shrinking, and UI labels aligned.
- Changes to gaming ownership or model layouts must keep the native-versus-host boundary and model-specific stock actions aligned.
- Changes to disable-key policy must keep unknown device bits intact and reject requested keys that the device does not advertise.
- Changes to force-sensing or backlight values must preserve device-reported ranges and the difference between requested state and firmware read-back.
- Changes to update channel names or feed paths must keep settings, update checks, packaging, and release publishing on the same directory contract.
- Changes to asset mirrors or npm routing must keep one synchronization run on one valid release and must retain checksum and path checks.
- Changes to permission status or prompts must preserve resource ownership. The GUI must not request access for a resource owned by the agent.
- Changes to the permission crate's platform dependencies must keep status reads UI-free and retain the core-type-only boundary on Linux.
- Changes to Linux input probes must keep uinput read/write access, HID access, and every hookable mouse event node in the verdict. Do not treat absent hardware or unrelated event nodes as denial.
- Changes to Linux udev remediation must keep the fixed root command, managed-host guidance, staged replacement, rule reload, and post-install re-probe aligned.
- Changes to shared locale keys or icons must update every bundled locale and keep the catalog parity and embedded-asset contracts valid. A new action glyph must be present in the embedded icon registry before a frontend names it.
- Changes to shared accent or neutral color helpers must keep overlay colors on the shared brand and neutral contracts while leaving settings-app theme colors with their owner. Keep the neutral-owner rule aligned with the permitted color forms.
- Changes to permission, save, delayed-apply, or agent status messages must keep their semantic keys and placeholders aligned in every bundled locale, including the distinction between denied, unknown, conflicting, and reconnecting states.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| A device setting stays under a route key after identity becomes known | Settings can disappear when the device changes connection | Resolve legacy settings until adoption and fold the route into the identity entry |
| A route remains indexed by a device after the receiver slot is re-paired | The new device can inherit the old device's route state | Remove stale route claims before registering the new owner |
| A temporary raw-HID or zero-unit identity becomes a persistent key | Settings can move to a different device after reconnect | Require a physical identity before writing a persistent key |
| A new capability is gated by device kind instead of measured support | The UI hides a supported control or offers an unsafe one | Use measured capabilities and only use kind-based values as an offline fallback |
| A current config contains an unknown field or future schema | User state can be misread or lost | Reject unsupported schemas and unknown fields before saving |
| Two writers commit an edit from the same old revision | One user's change can silently replace another's | Check the read revision and report a conflict |
| A keypad page or G-key profile is resolved without its current context | A press runs the wrong saved action or a page is shown as empty | Resolve the active page or profile before dispatch and keep context in the binding identity |
| Software takes a G-series keyboard row without an explicit ownership choice | Unbound keys can stop their native firmware actions | Require the software-owner setting before diverting the full row |
| A Flow layout names an unknown peer or a device reuses an Easy-Switch slot | Handoff can target the wrong machine or fail to switch hosts | Validate peer references, require a local slot, and reject duplicate slots before use |
| A shortcut stores a platform key code, an unknown modifier, or a label that cannot round-trip | The same binding cannot load or run consistently on another platform | Store validated HID usages, canonical modifier values, and labels that parse back |
| A held action has no release path or a dispatcher ignores its lifecycle | Modifier or chord output can remain stuck after release, cancellation, or shutdown | Keep held actions out of one-shot catalogs and release them on every terminal outcome |
| An action is added without lowering it to the shared effect model | One platform backend can silently omit or mis-handle the action | Keep the exhaustive Action to Effect mapping and backend semantic tables complete |
| An action catalog row and its icon mapping disagree | The picker can show the wrong glyph or fail to render an action | Derive both from the shared action declaration and test every icon asset path |
| A receiver route uses the wrong protocol or sends a raw-HID route through HID++ | Writes or capture target the wrong channel or fail without a useful device action | Select the route from receiver protocol and keep raw-HID paths outside HID++ |
| A requested disable-key bit is unknown or unsupported | The write can remove newer firmware state or fail on the device | Validate against known and advertised masks and preserve unknown disabled bits |
| A saved force value is outside the device's reported range | The device rejects or changes the requested value | Clamp the value to the current device range before writing |
| A typed device error is reduced to plain text | The GUI cannot tell a permanent feature failure from a retryable failure | Keep the structured error across IPC |
| A mirror changes during an asset synchronization | The cache can contain a catalog from one release and files from another | Select one complete source and pin its release for the run |
| Remote asset metadata contains a path or a bad checksum | The cache may receive unsafe or invalid content | Accept only safe file names and catalog-matching bytes |
| Permission is granted to the GUI instead of the agent | Device access or input capture remains unavailable | Let the resource-owning process raise the prompt |
| Linux probes check only uinput and hidraw | Button remapping appears permitted but the hook cannot read a mouse event node | Probe read/write uinput, read/write Logitech hidraw, and each hookable Logitech mouse event node |
| A companion keyboard or OpenLogi pass-through event node is counted as a mouse | A working Linux setup is reported as denied | Filter event nodes by mouse capabilities and exclude OpenLogi-owned devices |
| Udev rules are installed through the wrong host path | Access remains missing or a package-managed ruleset is overwritten | Give Flatpak and NixOS their own path and refuse unmanaged installation there |
| A locale or icon is missing from the shared catalog or embedded registry | One product process shows missing text or a blank action | Keep locale parity and the embedded icon set complete |
| Overlay code writes a private accent or neutral color | Settings and overlay can show different brand colors or drift in neutral surfaces | Use the shared color helpers and keep the neutral-owner rule active |
| A permission, save, or agent message has a missing key or placeholder in one locale | A process shows fallback text or fails to render a status message | Keep every catalog aligned with the source key and placeholder contract |
| A diagnostics report treats an unreachable agent or incomplete inventory as a denial or an empty setup | Support triage follows the wrong path | Preserve unknown, scanning, and unavailable states in the report |
Key files
| File | Why to read it |
|---|---|
| crates/…/device.rs | Defines device identity, capabilities, inventory, and standalone resources. |
| crates/…/device_order.rs | Defines stable runtime ordering and the boundary between temporary routes and persistent device keys. |
| crates/…/config.rs | Defines configuration scopes, Flow inclusion, and the persisted schema boundary. |
| crates/…/settings.rs | Shows app-wide choices such as appearance, interface scale, scrolling, assets, and notifications. |
| crates/…/edit.rs | Defines revision-aware edits for writers outside the long-lived settings app. |
| crates/…/device.rs | Shows device identity snapshots, route data, user settings, keypad pages, and gaming policy. |
| crates/…/identity.rs | Explains route resolution, stable physical-device keys, route adoption, and migration-safe settings transfer. |
| crates/…/file.rs | Defines migration, conflict checks, atomic saves, and recovery copies. |
| crates/…/per_device.rs | Shows the shared read and write view of device settings. |
| crates/…/binding.rs | Exposes the shared binding vocabulary and keeps the binding modules in the portable core. |
| crates/…/action.rs | Defines persisted actions, picker metadata, held-action lifecycle data, and the single action declaration table. |
| crates/…/effect.rs | Defines the platform-neutral effect boundary used by input backends. |
| crates/…/modifiers.rs | Defines validated modifier sets, including modifier-only holds and their saved forms. |
| crates/…/key_combo.rs | Defines the platform-neutral shortcut value, accepted aliases, and its saved text form. |
| crates/…/icon.rs | Maps action semantics to the shared Actions Ring icon vocabulary and asset paths. |
| crates/…/button.rs | Defines the stable vocabulary for mouse controls, keypad positions, and gaming keys. |
| crates/…/g_keys.rs | Defines G-key profiles and mode-key context. |
| crates/…/defaults.rs | Defines native-safe defaults for fresh devices and gesture controls. |
| crates/…/bindings.rs | Builds effective bindings from defaults, device state, app overlays, pages, and profiles. |
| crates/…/gaming.rs | Defines model-specific gaming layouts and stock actions. |
| crates/…/tests.rs | Protects persisted binding names, catalog behavior, lifecycle semantics, effect lowering, and shortcut round trips. |
| crates/…/hid.rs | Lists the data-only device control contracts shared with the GUI. |
| crates/…/Cargo.toml | Shows which core capabilities touch files, locales, workers, or process logging. |
| crates/…/lib.rs | Defines the cross-platform permission contract and ownership rule. |
| crates/…/linux.rs | Defines Linux input-access probes and the distinction between denied and unknown state. |
| crates/…/udev.rs | Defines the user-approved Linux access remediation and its host boundaries. |
| crates/…/source.rs | Defines asset mirror selection and release pinning. |
| crates/…/error.rs | Defines asset validation and source-selection failures. |
| crates/…/diagnostics.rs | Defines the privacy-filtered support report, connection labels, and health states. |
| crates/…/lib.rs | Defines which presentation primitives are shared by the settings app, overlay, and agent. |
| crates/…/action_icons.rs | Defines the embedded icon paths shared by frontends and agent-rendered keypad keys. |
| crates/…/square-1.svg | Illustrates the numbered Easy-Switch channel glyphs embedded for shared use. |
| crates/…/en.toml | Defines the shared product vocabulary, permission states, agent states, and save-application messages. |
| crates/…/catalog_parity.rs | Protects matching keys, placeholders, order, and language coverage. |