Skip to content
AI GovernanceMarkdown

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.

  • A privilege that reads your realm’s configuration, such as RealmViewer or RealmOwner, 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.

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.

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.

Terminal window
curl https://foobar.cvyuh.com/api/v0/endpoint/aig/v1/api/v1/overview \
-H "Cookie: x-cvyuh-token=$CVYUH_SESSION"
ToCallWhat you get
See the fleet at a glanceGET https://foobar.cvyuh.com/api/v0/endpoint/aig/v1/api/v1/overviewtotal_devices, online_devices, offline_devices, config_failures, active_revision, and recent_devices, the five seen most recently
List its devicesGET https://foobar.cvyuh.com/api/v0/endpoint/aig/v1/api/v1/devicesEvery device, most recently seen first, with the device fields below
Read one deviceGET 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 fleetDELETE 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.

Each device, in the list and in one device’s record:

FieldTypeWhat it holds
idstringThe fleet device id
hostnamestringThe device’s host name
osstringlinux or macos
architecturestringx86_64 or aarch64
agent_versionstringThe AI tools agent’s version
created_atnumberWhen the device joined the fleet
last_seen_atnumber or nullWhen the fleet last heard from it
enrolled_by_issuerstringYour realm’s issuer, where the approving user signed in
enrolled_by_subjectstringThe approving user’s id
installed_toolsarray of stringsThe kind of each tool found
discovery_countnumberHow many tools were found
config_revision, config_state, config_error, config_updated_atnumber, number, string, number; each null until configuration arrivesThe managed configuration last applied, and whether it took (config_state 1 applied, 2 failed)

One device’s record adds:

FieldTypeWhat it holds
discoveriesarrayEach tool: kind, version (blank when unknown), path, mcp_servers, skills; see AI tool discovery
discoveries[].mcp_serversarrayEach server: name, transport (stdio, http or sse), command or url, enabled, source; see MCP servers and skills
discoveries[].skillsarrayEach skill: path and frontMatter (camelCase)
model_runtimesarrayEach runtime (ollama): kind, and models, each with its name
recent_eventsarrayThe device’s last 50 activity events, newest first: id, timestamp_unix_ms (milliseconds), event_type, payload. Empty today; see Activity events
programsarrayEach managed tool’s configuration outcome: program, state, detail, revision, updated_at. Empty today; see Configuration status
programs_reportedboolean or nullnull until the device has reported configuration status
Terminal window
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.

AnswerWhyWhat to do
401No session, or it has endedSign in again; see Call the API
403Your privileges don’t read this realm’s configurationAsk for RealmViewer in this realm or one above it
404 device not foundNo device in your realm’s fleet has that id: it was dropped, or the id is a device record’s idList the fleet’s devices and use their id
500The fleet couldn’t read its recordsTry again; if it persists, contact support
WhatValue
Counted as onlineSeen in the last 90 seconds
recent_devices in the overviewThe five seen most recently
recent_events per deviceThe last 50
Device listEvery device in one answer, no paging
Inventory keptThe latest only
Kept untilThe device is dropped or removed, or the realm is deleted
  • 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_subject is 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.
SymptomCauseFix
A device is missing from the fleetIt hasn’t been approved, it was dropped or removed, or it isn’t enrolledApprove it (AI governance sign-in); check its device record
A device counts as offlineIt hasn’t been seen for 90 seconds: it’s off, off the network, or revokedBring it online, or restore it if it was revoked
A device stopped reporting after its user leftThe user was disabled or their sign-in revokedHave another user of your realm approve it
A tool is missing from discoveriesIt isn’t a supported tool, it keeps no settings where discovery reads them, or the agent hasn’t looked again yetInstall it the standard way; wait up to 15 minutes
model_runtimes is emptyOllama isn’t runningStart Ollama; the next look lists its models
A tool’s version is blankThe install keeps no version discovery can readNothing to fix: the tool is still listed

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.