Activity, events, and workspace insights
Arcane gives operators one view of work in progress, notable changes, current resource state, and useful settings. Activity records explain work that takes time. Events preserve what happened. Dashboards turn current state into action signals. Search metadata helps an operator find the right control or workspace view across managed environments.
Operational insight model
Arcane separates live work from durable records and current summaries. This separation lets an operator follow a deployment while it runs, review a Docker change later, and use the dashboard to decide what needs attention now.
| Surface | Main question | Scope |
|---|---|---|
| Activity | What work is queued, running, or complete? | Environment and resource |
| Events | What notable change or fault occurred? | Global or environment |
| Dashboard | What needs attention in this environment or fleet? | Environment and fleet |
| Search metadata | Where is the control or workspace view for this need? | User access and product area |
Activity records
An activity is the user-facing record for work that may continue after the request ends. It carries the work type, status, progress, current step, latest message, actor, resource, environment, timing, and error state. Related activities can share a batch so one operator action appears as one group of work. types/…/activity.go• L5-71
The Activity Center combines an initial history view with live updates. It separates active work from history, loads detailed messages when an operator expands an item, and lets permitted users cancel work that is queued or running. This makes activity useful from both a resource page and a workspace-wide operations view. frontend/…/activity-service.ts• L7-35 frontend/…/activity.store.svelte.ts• L196-261 frontend/…/activity.store.svelte.ts• L522-681 frontend/…/activity-center.svelte• L87-153
Activity is environment-aware. The client keeps activity state per environment, merges it into one view, and shows which environment cannot provide updates. The API keeps stored summaries visible when a remote environment is unavailable while live delivery reports that environment's error and continues. A stream failure therefore limits one part of the view without making work from other environments look lost. See Activity capture for the activity lifecycle and Web application for the shared client experience. backend/…/handler.go• L92-117 backend/…/handler.go• L236-414
Activity visibility follows the environment that owns the work. Ordinary activity rows use their stored environment, while job-run summaries are shown only when the caller can read the target environment. The same rule applies before pagination and to live stream messages. backend/…/helpers.go• L14-54 backend/…/service.go• L872-916
Activity state is durable, while live updates are a delivery layer. Work can be queued, running, successful, failed, or cancelled. Per-environment slots limit queued work, and waiters recheck the current limit as settings change. Cancellation can interrupt tracked work or finalize untracked work safely. Completion and restart repair keep records from remaining active after work has ended or Arcane has restarted. Message batches reduce write pressure. Ordered publication prevents a later stream update from reverting progress, coalesced progress updates keep bursts small, and a missed-message signal requests a fresh snapshot. Terminal publication also blocks stale non-terminal updates from replacing a completed result. backend/…/service.go• L138-345 backend/…/service.go• L348-428 backend/…/service.go• L504-596 backend/…/service.go• L599-845 backend/…/service.go• L23-160 backend/…/service.go• L43-118
References: types/…/activity.go• L50-107 backend/…/handler.go• L92-167 backend/…/handler.go• L236-414 backend/…/service.go• L138-345 backend/…/service.go• L348-428 backend/…/service.go• L504-596 backend/…/service.go• L599-845 backend/…/service.go• L872-1038 backend/…/service.go• L1156-1341 backend/…/helpers.go• L14-54 backend/…/service.go• L43-118 backend/…/service.go• L23-160 backend/…/service.go• L42-115 frontend/…/activity-service.ts• L7-35 frontend/…/activity.store.svelte.ts• L196-338 frontend/…/activity.store.svelte.ts• L522-681 frontend/…/activity-center.svelte• L234-301
Event records
An event is a durable record of a notable action or condition. It identifies the event type and severity and can include a title, description, resource, user, environment, timestamp, and extra metadata. This gives an operator enough context to connect a change to the resource and actor that matter. types/…/event.go• L5-80
Events cover resource changes and system work across containers, images, projects, volumes, networks, environments, user access, webhooks, notifications, and lifecycle actions. Volume file and workspace events also make changes to persistent application data visible beside ordinary resource events. Replayed daemon deliveries are ignored by their event identity, while distinct Docker occurrences remain separate. Agent-originated events are assigned to the authenticated remote environment before they enter shared history. backend/…/model.go• L25-127 backend/…/service.go• L107-165 backend/…/service.go• L679-717
The Events view exposes global and environment-scoped history with search, pagination, severity counts, type filters, resource context, user context, and detail inspection. Type filters can select a full event type or a category of related types. A change stream signals that the client should refresh its current query, while the database remains the source of the event list and counts. Operators with the required permission can remove events, and retention work removes old records so the event view remains useful. backend/…/handler.go• L18-125 backend/…/service.go• L279-401
Arcane correlates successful local Docker actions with later daemon observations. Short expectations and suppression windows hide the matching daemon record when the local action already represents it. Identity matching covers resource IDs, names, Compose projects, and bulk resource types without suppressing unrelated events. backend/…/docker_correlation.go• L59-256
See Event correlation for how Docker observations and Arcane actions become one event stream. Events from an agent keep the authenticated environment assigned by the manager, so a forwarded record remains tied to the right workspace. Agent mode forwards accepted events through the edge tunnel and can use the manager API when that tunnel is not available. Forwarding is bounded so a burst of events does not create unlimited in-flight sync work. Docker observations use a bounded queue and batch persistence, with a direct write fallback when the queue or writer cannot accept more work. backend/…/service.go• L137-275 backend/…/service.go• L623-768
References: types/…/event.go• L5-80 backend/…/model.go• L25-145 backend/…/docker_correlation.go• L59-256 backend/…/service.go• L99-165 backend/…/service.go• L168-275 backend/…/service.go• L279-401 backend/…/service.go• L593-768 backend/…/service.go• L770-907 backend/…/handler.go• L18-125 frontend/…/+page.ts• L10-47 frontend/…/+page.svelte• L23-127 frontend/…/event-table.svelte• L82-123 frontend/…/event-table.svelte• L189-285
Dashboard snapshots
The dashboard is a current summary of each managed Docker environment. It combines container counts, image and volume use, action items, version information, and the first page of key resources when a detailed view needs it. Action items point to stopped containers, available image updates, actionable vulnerabilities, and expiring API keys. Live consumers can use a smaller snapshot with counts and totals but no table rows, while the initial page can request full resource data. Short-lived shared snapshots keep these views consistent without rebuilding the same current state for every request. backend/…/service.go• L109-151 backend/…/service.go• L153-261 backend/…/service_test.go• L316-374
The first-paint API can include resource tables, while fleet live updates use aggregate counts so each poll stays small. Snapshot variants remain separate for callers with different icon catalog preferences, so a cached result does not apply another user's display choice. Local and remote producers poll on their own schedules. Remote environments share pollers across connected clients, and the stream marks an environment as pending before its first result. backend/…/handler.go• L64-99 backend/…/handler.go• L101-199 backend/…/handler.go• L209-291 backend/…/service.go• L109-151 backend/…/service_test.go• L376-423
Remote delivery falls back to older granular count and version endpoints when an agent does not support the aggregate dashboard endpoint. Each source can contribute to a partial result, while a failed environment reports an error and remains in the polling loop. This keeps an older or partly reachable environment distinct from one that has no resources. backend/…/handler.go• L293-396
The all-environments view turns these snapshots into a fleet picture. It shows reachable, unavailable, and disabled environments with aggregate container, image, and volume counts. Each environment can also show live CPU, memory, disk, and optional GPU use when the caller has system access. frontend/…/dashboard-overview.ts• L8-38 frontend/…/dashboard-all-environments-view.svelte• L118-146 frontend/…/dashboard-all-environments-view.svelte• L531-587 frontend/…/dashboard-environment-card.svelte• L172-273
Dashboard action items connect insight to action. An operator can move from a count to the related updates, containers, images, or volumes view, or start an environment action when the environment is available and the user has permission. A completed background action, such as pruning, causes the dashboard to refresh after the activity reaches a terminal state rather than showing an early result. backend/…/service.go• L264-371 frontend/…/dashboard-all-environments-view.svelte• L391-421 frontend/…/dashboard-all-environments-view.svelte• L625-675
The dashboard also exposes local Docker inventory as operational metrics. These metrics cover resource counts and health, project state, and Swarm capacity when the local engine provides it. The dashboard module registers this observation once when it wires the service. backend/…/service.go• L373-505 backend/…/module.go• L18-32
See Dashboard delivery for the snapshot and live update model. The dashboard also belongs to the wider control plane described in Platform operations and System resilience and administration.
References: backend/…/service.go• L109-151 backend/…/service.go• L153-261 backend/…/service.go• L264-371 backend/…/service.go• L373-505 backend/…/handler.go• L64-99 backend/…/handler.go• L101-199 backend/…/handler.go• L209-396 backend/…/module.go• L18-73 backend/…/service_test.go• L316-423 types/…/dashboard.go• L34-142 frontend/…/dashboard.store.svelte.ts• L24-101
Live workspace view
The live workspace view joins the selected environment, permission scope, current summaries, activity, and events. It gives an operator a stable place to move from a broad fleet signal to one resource without losing the environment that owns the resource. The web application uses the selected environment for resource views and uses environment identity in live state so data from one target does not appear in another. frontend/…/environment.store.svelte.ts• L29-69 frontend/…/dashboard-all-environments-view.svelte• L118-146
This view is not a second source of truth. The dashboard reports current state, activities report work state, and events report durable history. Together they support three related decisions: what is true now, what is changing now, and what changed before. The same model applies to project and volume workspaces, where deployment, file, backup, and workspace updates can be tied to a resource and environment through activity or event context. backend/…/model.go• L68-83 backend/…/service.go• L521-637 frontend/…/activity.store.svelte.ts• L294-338
References: frontend/…/environment.store.svelte.ts• L29-69 frontend/…/dashboard-all-environments-view.svelte• L299-347 backend/…/model.go• L68-83 backend/…/service.go• L521-637 frontend/…/activity.store.svelte.ts• L294-338
Search metadata and workspace discovery
Search is a discovery layer for settings and customization areas. It uses labels, descriptions, keywords, categories, and URLs as product metadata instead of requiring an operator to know a setting key or route name.
Search metadata
Search metadata describes a category and the controls inside it. A query can match a category title, description, or keyword, or it can match a setting key, label, description, or keyword. Results are ranked so a direct category or setting match appears before a weaker text match. backend/…/metadata.go• L17-88 backend/…/metadata.go• L91-146
Settings and customization use the same search idea with separate access filters. The service builds category indexes from model metadata, while the API returns only categories that the caller can use. This keeps search useful without exposing a link to a settings or workspace area that the user cannot open. backend/…/settings_search.go• L9-20 frontend/…/settings-search.ts• L4-18 frontend/…/customize-search.ts• L4-18
Search metadata is part of the product contract. A renamed category, missing keyword, or stale URL can make a working feature hard to find even when its main route still works. Keep the searchable description aligned with the permission boundary and the destination view. types/…/search.go• L5-29
References: backend/…/metadata.go• L17-88 backend/…/metadata.go• L91-146 backend/…/metadata.go• L149-190 backend/…/metadata.go• L192-254 backend/…/settings_search.go• L9-20 frontend/…/settings-search.ts• L4-18 frontend/…/customize-search.ts• L4-18 types/…/search.go• L5-29
Related operational pages
Use Platform operations for the wider control plane that schedules work, checks health, and connects activities and events to operations. Use System resilience and administration for the service view of health, diagnostics, background work, and recovery. Use Web application for the route, environment, permission, and client-state rules that expose these insights.
Change checklist
When these files or sections are changed, remember to consider these:
- Keep activity status, batch identity, source and target environment identity, permission scope, stream updates, detail messages, cancellation, and terminal notifications aligned. A change in one contract can make long work look complete or expose a job summary in the wrong workspace.
- Keep activity queue limits, live slot counts, cancellation behavior, and restart sweeps aligned with the worker lifecycle. A change can otherwise leave work queued forever, fail live work, or show cancellation before the worker has stopped.
- Keep activity publication ordering, progress coalescing, missed-message recovery, and terminal latching aligned. A change can otherwise replace a completed result with stale progress or leave a stream without a repair snapshot.
- Keep event type families, severity values, resource fields, metadata, global filters, and environment filters aligned. A new event can otherwise be stored but remain hard to find or hard to relate to its resource.
- Keep Docker event mapping, replay identity, local-action correlation, suppression windows, batching, overflow fallback, and manager forwarding aligned. The same daemon occurrence must not become duplicate history or lose its environment when it crosses the edge path.
- Keep dashboard action-item counts aligned with the resource views they open. A count can silently become wrong when hidden resources, vulnerability state, or update state changes.
- Keep dashboard snapshot fields, full versus trimmed data, cache scope including icon preferences, pending and error stream states, shared poller scope, legacy fallback data, and last-known display behavior aligned. Older or unreachable environments must remain distinguishable from environments with empty data.
- Keep dashboard inventory metric names and labels aligned with the resource states shown in the dashboard. A change can otherwise split one signal into incompatible time series or hide capacity data.
- Keep search metadata, permission filters, category URLs, and destination routes aligned. A result that is visible but not reachable is a broken discovery contract.
- Keep workspace-related resource names and environment identifiers consistent across activities, events, dashboard cards, and search destinations. Operators must be able to follow one resource across all insight surfaces.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| A job-run activity is listed without checking its target environment permission | A user can see work from an environment that is outside the user's scope, or pagination totals can include hidden rows | Filter job-run summaries before pagination and check their target environment on detail and stream paths. backend/…/helpers.go• L14-54 backend/…/service.go• L872-916 |
| A queued activity uses a stale concurrency limit or a released slot is not counted once | Too much work can run in one environment, or queued work can wait after capacity is available | Count held slots independently of the current limit and recheck waiters after settings changes or releases. backend/…/service.go• L23-45 backend/…/service.go• L66-160 |
| A stale non-terminal activity snapshot is published after its terminal snapshot | The live view can revert a completed activity to running with no later event to correct it | Seal terminal publication and reject later non-terminal snapshots for that activity. backend/…/service.go• L210-266 |
| An activity subscriber loses messages during a burst | Progress or message detail can be incomplete in the live view | Coalesce activity snapshots, bound message backlog, mark missed messages, and send a full snapshot on the next heartbeat. backend/…/service.go• L43-118 backend/…/handler.go• L262-295 |
| An activity sweep treats a live worker as abandoned or restarts with queued work still active | Valid work can be marked failed, or queued work can remain active after restart | Protect tracked workers and explicitly finalize stale image checks, orphaned queued work, stale auto-updates, and interrupted backups. backend/…/service.go• L56-114 backend/…/service.go• L676-797 backend/…/service.go• L1137-1153 |
| An activity stream fails for one environment | Work from that environment can look missing while other environments still have data | Keep per-environment errors visible and provide a stream retry path. frontend/…/activity.store.svelte.ts• L522-610 |
| A late activity or dashboard response arrives after an environment is removed or the stream session changes | Old data can return to the current workspace | Check the current generation and environment state before applying the response. frontend/…/activity.store.svelte.ts• L239-250 frontend/…/dashboard.store.svelte.ts• L63-80 |
| An event change notification arrives while the event page is already refreshing | The list or severity totals can remain one change behind | Keep a pending refresh flag and repeat the list and stats requests until all notifications seen during the refresh are covered. frontend/…/+page.svelte• L44-81 |
| A local Docker action and its matching daemon observation are both recorded | One operator action can appear twice in event history | Register a short expectation or suppression window and match the daemon resource by its ID, name, Compose project, or type. backend/…/service.go• L839-906 |
| A replayed daemon delivery has no stable identity | One Docker occurrence can appear more than once after normal and overflow delivery | Derive a deduplication key from the deterministic daemon message and persist it with a conflict-safe insert. backend/…/service.go• L679-717 backend/…/service.go• L107-155 |
| An agent sends an event with a local or missing environment ID | The manager can attach the event to the wrong workspace | Resolve the authenticated agent token and assign that environment during ingestion. backend/…/service.go• L158-165 |
| A burst of agent events exceeds the manager sync limit | Some forwarded events can be dropped instead of waiting without bound | Bound concurrent edge syncs and use the manager API only when the edge tunnel is unavailable. backend/…/service.go• L41-42 backend/…/service.go• L195-217 |
| A remote dashboard endpoint is missing, incompatible, or unreachable | One environment can show an error or stale summary instead of current insight | Keep polling, classify the error, and compose a partial summary from compatible legacy endpoints when the aggregate endpoint is not available. backend/…/handler.go• L221-370 |
| Several clients open the same remote dashboard stream without shared poller scope | Remote environments receive duplicate polls and the manager spends work per client | Share one remote poller per environment and forward its snapshots to each client. backend/…/handler.go• L160-199 |
| A dashboard cache ignores the caller's icon catalog or mixes full and trimmed variants | A user can see the wrong resource icons, or a live view can omit data needed by the initial page | Keep cache keys separate for display preferences and for table-row inclusion. backend/…/service.go• L109-151 backend/…/service_test.go• L316-423 |
| Dashboard live stats stop while a prior sample exists | Resource health can appear current when it is not | Mark the metric stale or unavailable and keep the last sample visibly distinct. frontend/…/dashboard-all-environments-view.svelte• L155-203 frontend/…/dashboard-environment-card.svelte• L202-264 |
| Search metadata points to a hidden or changed category | An operator cannot reach a control found by search | Build categories from current metadata and filter them with the caller's permissions. backend/…/handler.go• L181-204 backend/…/metadata.go• L17-88 |
Key files
| File | Why to read it |
|---|---|
| types/…/activity.go | Defines the shared activity, message, detail, and stream language for long-running work. |
| backend/…/handler.go | Shows environment-scoped activity access, remote summaries, cancellation, and live stream delivery. |
| backend/…/service.go | Shows durable activity state, queue limits, cancellation, terminal repair, history limits, recovery after missed updates or restarts, and ordered live publication. |
| backend/…/helpers.go | Shows how job activity visibility follows permissions for the environment that owns the work. |
| backend/…/service.go | Shows per-environment activity fan-out, progress coalescing, missed-message recovery, and terminal ordering. |
| backend/…/service.go | Shows how per-environment activity capacity follows changing settings. |
| backend/…/service.go | Shows which active records are candidates for startup and periodic repair. |
| frontend/…/activity.store.svelte.ts | Shows how activity history, live updates, environment scope, batches, detail, and completion notices become one view. |
| frontend/…/activity-center.svelte | Shows the operator surface for active work, history, search, filters, detail, cancellation, and cleanup. |
| types/…/event.go | Defines the event data exposed to API and web clients. |
| backend/…/handler.go | Shows the global and environment-scoped event API plus severity statistics and deletion. |
| backend/…/service.go | Shows event creation, replay protection, environment assignment, filtering, severity counts, Docker ingestion, retention, correlation, and manager forwarding. |
| frontend/…/+page.ts | Shows the initial event list and severity-count load used to build the Events page. |
| frontend/…/+page.svelte | Shows how the event list, severity totals, live change notifications, filters, and bulk removal form one operator view. |
| frontend/…/event-table.svelte | Shows how operators search, filter, inspect, and remove event records across desktop and mobile views. |
| types/…/dashboard.go | Defines dashboard snapshots, action items, environment summaries, and stream errors. |
| backend/…/module.go | Shows the dashboard wiring seam, route registration, and inventory metric registration. |
| backend/…/service.go | Shows the dashboard's current-state and action-item model, shared snapshot delivery, cache variants, and inventory metrics. |
| backend/…/service_test.go | Shows the contract for full and trimmed snapshots, cache sharing, icon catalog scope, and action-item counts. |
| backend/…/handler.go | Shows first-paint delivery, local and remote polling, shared remote pollers, fallback behavior, and live dashboard errors. |
| frontend/…/dashboard.store.svelte.ts | Shows how permission-scoped dashboard snapshots and stream errors reach the client. |
| frontend/…/dashboard-all-environments-view.svelte | Shows the fleet view that combines environment summaries, live stats, actions, and activity completion. |
| frontend/…/dashboard-environment-card.svelte | Shows the environment-level view of resource counts, health metrics, status, and actions. |
| backend/…/metadata.go | Defines category construction, searchable metadata, matching, and relevance ranking. |
| backend/…/settings_search.go | Shows how settings search categories are built and exposed to the settings area. |
| frontend/…/settings-search.ts | Shows the client boundary for settings category and query search. |
| frontend/…/customize-search.ts | Shows the client boundary for customization category and query search. |