{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/usewrit-app/json-schema/usewrit-app-agent-status-schema.json",
  "title": "AgentStatus",
  "description": "Lightweight daemon status (`GET /v1/agent`).",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/usewrit-app-agent-api-openapi.yml#/components/schemas/AgentStatus",
  "type": "object",
  "required": [
    "status",
    "version",
    "active_runs",
    "encrypted",
    "due_monitors",
    "warm_browser"
  ],
  "properties": {
    "status": {
      "type": "string",
      "const": "ok"
    },
    "version": {
      "type": "string",
      "description": "Daemon crate version."
    },
    "active_runs": {
      "type": "integer",
      "description": "Number of runs currently executing in the engine."
    },
    "encrypted": {
      "type": "boolean",
      "description": "Always true — the store is SQLCipher-encrypted."
    },
    "due_monitors": {
      "type": "integer",
      "description": "Monitors currently due per the scheduler's last tick."
    },
    "last_tick_at": {
      "type": [
        "string",
        "null"
      ],
      "description": "RFC3339 timestamp of the scheduler's last tick (null before the first tick)."
    },
    "warm_browser": {
      "type": "boolean",
      "description": "Whether a warm browser is available right now (OR'd with live runs)."
    }
  }
}