Fleet records
Every approved device's AI tools, model runtimes and configuration state, kept in your realm's AI fleet and read through the API.
Available, with limitsAPI
Your realm’s AI fleet is where every approved device’s AI tools agent reports. It keeps, for each device, the AI tools found on it, the model runtimes and their models, the state of its managed configuration, and when it was last seen. You read it to answer “which AI tools are our users running, and where?” Today it’s read through the API; the dashboard’s fleet screens are planned, and managed configuration and usage are empty until their features arrive.
Before you begin
Section titled “Before you begin”- A privilege that reads your realm’s configuration, such as
RealmViewerorRealmOwner, held in your realm or in a realm above it (Delegated administration). An administrator of a realm above reads a sub-realm’s fleet on that sub-realm’s host, as for any of its configuration. - Your session in
$CVYUH_SESSION; Call the API shows how to get one. - Approved devices; see AI governance sign-in.
How it works
Section titled “How it works”Each realm sees only its own devices. A device is admitted only into the realm it was enrolled in, what it reports is kept as that realm’s, and only administrators of that realm, or of a realm above it, can read it.
What’s kept, and for how long. The fleet keeps each device’s latest inventory only: every report replaces the last. A device’s record stays until it’s dropped from the fleet, the device is removed, or the realm is deleted, which takes every device of the realm and everything reported about it.
A device counts as online when it was seen in the last 90 seconds.
Set it up
Section titled “Set it up”Signed in as an administrator, call the fleet’s API. Unlike the rest of the realm’s API, this one spells its fields in
snake_case (total_devices, last_seen_at), and its times are seconds since the Unix epoch.
curl https://foobar.cvyuh.com/api/v0/endpoint/aig/v1/api/v1/overview \ -H "Cookie: x-cvyuh-token=$CVYUH_SESSION"| To | Call | What you get |
|---|---|---|
| See the fleet at a glance | GET https://foobar.cvyuh.com/api/v0/endpoint/aig/v1/api/v1/overview | total_devices, online_devices, offline_devices, config_failures, active_revision, and recent_devices, the five seen most recently |
| List its devices | GET https://foobar.cvyuh.com/api/v0/endpoint/aig/v1/api/v1/devices | Every device, most recently seen first, with the device fields below |
| Read one device | GET https://foobar.cvyuh.com/api/v0/endpoint/aig/v1/api/v1/devices/<fleet device id> | The device fields, plus discoveries, model_runtimes, recent_events, programs and programs_reported |
| Drop a device from the fleet | DELETE https://foobar.cvyuh.com/api/v0/endpoint/aig/v1/api/v1/devices/<fleet device id> | 204 |
The fleet device id is the fleet’s own id for the device, from the device list. It isn’t the device id on the
realm’s device records.
Field reference
Section titled “Field reference”Each device, in the list and in one device’s record:
| Field | Type | What it holds |
|---|---|---|
id | string | The fleet device id |
hostname | string | The device’s host name |
os | string | linux or macos |
architecture | string | x86_64 or aarch64 |
agent_version | string | The AI tools agent’s version |
created_at | number | When the device joined the fleet |
last_seen_at | number or null | When the fleet last heard from it |
enrolled_by_issuer | string | Your realm’s issuer, where the approving user signed in |
enrolled_by_subject | string | The approving user’s id |
installed_tools | array of strings | The kind of each tool found |
discovery_count | number | How many tools were found |
config_revision, config_state, config_error, config_updated_at | number, number, string, number; each null until configuration arrives | The managed configuration last applied, and whether it took (config_state 1 applied, 2 failed) |
One device’s record adds:
| Field | Type | What it holds |
|---|---|---|
discoveries | array | Each tool: kind, version (blank when unknown), path, mcp_servers, skills; see AI tool discovery |
discoveries[].mcp_servers | array | Each server: name, transport (stdio, http or sse), command or url, enabled, source; see MCP servers and skills |
discoveries[].skills | array | Each skill: path and frontMatter (camelCase) |
model_runtimes | array | Each runtime (ollama): kind, and models, each with its name |
recent_events | array | The device’s last 50 activity events, newest first: id, timestamp_unix_ms (milliseconds), event_type, payload. Empty today; see Activity events |
programs | array | Each managed tool’s configuration outcome: program, state, detail, revision, updated_at. Empty today; see Configuration status |
programs_reported | boolean or null | null until the device has reported configuration status |
Drop a device
Section titled “Drop a device”curl -X DELETE https://foobar.cvyuh.com/api/v0/endpoint/aig/v1/api/v1/devices/<fleet device id> \ -H "Cookie: x-cvyuh-token=$CVYUH_SESSION"The fleet answers 204, and the device and everything reported about it leave the fleet at once. Dropping isn’t
removing: the device stays enrolled in the realm. Its AI tools agent is no longer recognized, so the device stops
reporting; the next time it reconnects to the fleet, it asks for a new approval, and once a user approves it, it joins
again under a new fleet device id. To take a machine out of the realm, use
Device removal, which drops it from the fleet too.
What happens when it fails
Section titled “What happens when it fails”| Answer | Why | What to do |
|---|---|---|
401 | No session, or it has ended | Sign in again; see Call the API |
403 | Your privileges don’t read this realm’s configuration | Ask for RealmViewer in this realm or one above it |
404 device not found | No device in your realm’s fleet has that id: it was dropped, or the id is a device record’s id | List the fleet’s devices and use their id |
500 | The fleet couldn’t read its records | Try again; if it persists, contact support |
Limits and defaults
Section titled “Limits and defaults”| What | Value |
|---|---|
| Counted as online | Seen in the last 90 seconds |
recent_devices in the overview | The five seen most recently |
recent_events per device | The last 50 |
| Device list | Every device in one answer, no paging |
| Inventory kept | The latest only |
| Kept until | The device is dropped or removed, or the realm is deleted |
Good to know
Section titled “Good to know”- Configuration and usage are empty for now. The fleet has room for each device’s managed configuration and model usage, but the realm doesn’t push a configuration or collect usage yet; see What’s next for configuration and What’s next for models.
- One user per device.
enrolled_by_subjectis the one user who approved the device; tools other users set up on the same machine are attributed to them too. See AI tool discovery.
Troubleshooting
Section titled “Troubleshooting”| Symptom | Cause | Fix |
|---|---|---|
| A device is missing from the fleet | It hasn’t been approved, it was dropped or removed, or it isn’t enrolled | Approve it (AI governance sign-in); check its device record |
| A device counts as offline | It hasn’t been seen for 90 seconds: it’s off, off the network, or revoked | Bring it online, or restore it if it was revoked |
| A device stopped reporting after its user left | The user was disabled or their sign-in revoked | Have another user of your realm approve it |
A tool is missing from discoveries | It isn’t a supported tool, it keeps no settings where discovery reads them, or the agent hasn’t looked again yet | Install it the standard way; wait up to 15 minutes |
model_runtimes is empty | Ollama isn’t running | Start Ollama; the next look lists its models |
A tool’s version is blank | The install keeps no version discovery can read | Nothing to fix: the tool is still listed |
Audit record
Section titled “Audit record”Each time the realm issues you a token to call the fleet, it records a TOKEN_EXCHANGED in your own trail
(Read a user’s or agent’s trail). The fleet doesn’t record which
devices you read, or a drop.
Related
Section titled “Related”- Get started with AI Governance: the calls, start to finish.
- Count the AI tools across your devices: a roll-up across the fleet.
- AI tool discovery: what fills
discoveries. - AI governance sign-in: how a device joins.
- AI Governance API: every endpoint.