{
  "title": "Agent37 lifecycle performance snapshot",
  "generatedAt": "2026-10-22T01:15:40.576Z",
  "window": {
    "hours": 0.4166666666666667,
    "start": "2026-10-22T00:50:00.000Z",
    "end": "2026-10-22T01:15:00.000Z"
  },
  "source": "Production lifecycle and host-wake telemetry, using the same queries, workspace exclusions and percentile convention as the OpenSesame Performance helper (app/api/helpers/agentPerformance.ts). Generated by scripts/snapshot-agent-performance.ts for an explicit observation window.",
  "units": "milliseconds",
  "methodology": [
    "This is an early production snapshot after the lifecycle performance rollout, not an SLA or a controlled comparison. The explicit window excludes traffic before the rollout. Shapes, image sizes, host regions and runtimes vary; low sample counts are less stable than a full-day sample.",
    "API metrics select successful 2xx responses, excluding the configured integration workspace and recognized automated-test workspace prefixes. API timers run from entering authentication through response creation, including downstream work but excluding the caller internet round trip.",
    "Exec includes arbitrary tenant command runtime. Exec overhead subtracts the host-reported command time; it is not equivalent to a full end-to-end command latency benchmark.",
    "Default and VM memory-restore timers run on the host. They exclude the client round trip and the subsequent application request or command. Host wake telemetry is not filtered by workspace. Counts are timing reports, not unique customers or guaranteed unique wake events.",
    "Cold boots, cold-storage recovery and host-relocation wakes have different paths from same-host memory restoration and are reported separately. Already-running wake no-ops are excluded.",
    "Start API timing is omitted because the aggregate includes already-running no-ops, which would make its median misleading as a resume or cold-start measurement.",
    "No sleep/checkpoint-duration aggregate is collected by the existing Performance helper. Stop is not a substitute for memory-preserving sleep.",
    "Observations are sorted and zero-based index floor(p * n) selects p50 and p90, with p = 0.5 and 0.9. The window includes its start and excludes its end. Counts represent operation observations, not customers. No observations is represented by null timing and zero samples, never zero latency or a carried-forward result.",
    "Only aggregate timings are published. No customer, workspace, instance, host, credential or raw-log data is included."
  ],
  "metrics": {
    "create": {
      "label": "Create",
      "p50Ms": 1294,
      "samples": 37,
      "context": "Successful create API duration, from entering API authentication through the response. The sandbox has started; this does not wait for tenant application readiness or the first command. Mixed shapes, images, host regions and runtimes.",
      "p90Ms": 60359
    },
    "exec": {
      "label": "Command execution",
      "p50Ms": 461,
      "samples": 811,
      "context": "Successful exec API duration, including the tenant command runtime. Commands vary across requests. This is not a controlled echo benchmark.",
      "p90Ms": 793
    },
    "execOverhead": {
      "label": "Command API and network overhead",
      "p50Ms": 338,
      "samples": 811,
      "context": "Successful exec API duration minus the command milliseconds reported by the host. Includes API processing and its network path outside the host interval; excludes the caller internet round trip.",
      "p90Ms": 472
    },
    "stop": {
      "label": "Stop",
      "p50Ms": 2533,
      "samples": 2,
      "context": "Successful stop API duration. Stop discards memory state, preserves durable files and waits for the operation response. Includes requests to instances already stopped; this is not memory-preserving sleep latency.",
      "p90Ms": 2533
    },
    "restart": {
      "label": "Restart",
      "p50Ms": 1265,
      "samples": 4,
      "context": "Successful restart API duration, including control-plane work and the restart operation. Mixed shapes, images, host regions and runtimes.",
      "p90Ms": 1341
    },
    "delete": {
      "label": "Delete",
      "p50Ms": 429,
      "samples": 32,
      "context": "Successful delete API response duration. The response acknowledges deletion and ends billing; runtime stop, archive backup and physical teardown continue asynchronously. This is not time to completed cleanup.",
      "p90Ms": 508
    },
    "resume": {
      "label": "Memory restore, default sandbox",
      "p50Ms": 176,
      "samples": 38,
      "context": "Host-timed restoration of a same-host gVisor memory checkpoint, including local startup housekeeping. Excludes the client round trip and subsequent command. Host reports are not filtered by workspace; cold boots and no-ops are excluded.",
      "p90Ms": 1121
    },
    "vmResume": {
      "label": "Memory restore, VM",
      "p50Ms": null,
      "samples": 0,
      "context": "Host-timed restoration of a same-host VM memory checkpoint through the guest resume RPC and local housekeeping. Excludes the client round trip and subsequent command. Host reports are not filtered by workspace; cold boots and no-ops are excluded.",
      "p90Ms": null
    },
    "coldResume": {
      "label": "Wake by cold boot, default sandbox",
      "p50Ms": null,
      "samples": 0,
      "context": "Host-timed wake that cold-boots instead of restoring memory. Durable files remain, while live process state is not restored. Excludes the client round trip; host reports are not filtered by workspace.",
      "p90Ms": null
    },
    "storageResume": {
      "label": "Wake from cold storage",
      "p50Ms": null,
      "samples": 0,
      "context": "Control-plane-timed recovery of a sleeping instance from cold storage onto a host, including data recovery and boot. Process memory is not restored. Separate boundary from same-host memory restoration.",
      "p90Ms": null
    },
    "movedResume": {
      "label": "Wake after host relocation",
      "p50Ms": null,
      "samples": 0,
      "context": "Control-plane-timed wake that moves the sleeping instance to another host, including data transfer and boot. Process memory is not restored. Separate boundary from same-host memory restoration.",
      "p90Ms": null
    }
  }
}
