All contracts

Workspace operations / JSON Schema

Workspai Activity Monitor Fleet Snapshot

A deterministic aggregate of bounded local activity monitor snapshots.

Schema version
workspace-activity-monitor-fleet.v1
Contract path
contracts/workspace-activity-monitor-fleet.v1.json
Publication
json-schema
Defined fields
4
Artifact bindings
0

Why this contract exists

Architecture role

Defines a versioned interoperability boundary used by Workspai and contract-aware consumers.

Consumption boundary

  • Workspai CLI
  • Workspace Intelligence consumers
  • IDEs and agents

Related commands

Commands are linked only when the runtime contract identifies a direct production relationship. Supporting contracts may be consumed without having a single producer command.

This is a supporting, capability, cache, compatibility, or consumer contract. It has no single direct producer command in the canonical Workspace Intelligence execution registry.

Produced artifacts

These durable files are emitted by registered commands and validated against this contract.

No canonical file artifact is registered for this contract. It may describe capabilities, embedded data, runtime exchange, or supporting state instead of a standalone report.

Field reference

Every declared schema property or published capability path is listed here. Required means the contract declares or publishes that field at the shown boundary.

Field pathTypeRequiredMeaningConstraints
diagnosticsarrayYesDefines the diagnostics value at this contract boundary.
generatedAtstringYesDefines the generatedat value at this contract boundary.format: date-time
schemaVersionstringYesDefines the schemaversion value at this contract boundary.const: "workspace-activity-monitor-fleet.v1"
scopesarrayYesDefines the scopes value at this contract boundary.

Canonical machine-readable definition

The raw synchronized contract remains authoritative. The educational sections above are projections of this definition.

Show raw JSON
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://workspai.dev/contracts/workspace-activity-monitor-fleet.v1.json",
  "title": "Workspai Activity Monitor Fleet Snapshot",
  "description": "A deterministic aggregate of bounded local activity monitor snapshots.",
  "type": "object",
  "required": [
    "schemaVersion",
    "generatedAt",
    "scopes",
    "diagnostics"
  ],
  "properties": {
    "schemaVersion": {
      "const": "workspace-activity-monitor-fleet.v1"
    },
    "generatedAt": {
      "type": "string",
      "format": "date-time"
    },
    "scopes": {
      "type": "array",
      "items": {
        "$ref": "workspace-activity-monitor-snapshot.v1.json"
      }
    },
    "diagnostics": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "additionalProperties": false
}