Limits and timeouts
Values set by configuration show their default and name the setting. Field lengths and formats are on each resource's own page.
Runs
See Runs.
| Item | Value |
|---|---|
| Run lease | 60 seconds |
| Lease renewal by the runner | every 2 seconds |
| Lease renewal by the host while a sandbox starts | every 20 seconds |
| Attempts when the runner is lost | 3 in all |
| Attempts while hooks go unanswered | 6 in all, 5 seconds to 2 minutes apart |
| Run wall clock on a host | SPOTLIGHT_RUN_TIMEOUT, default 6 hours, for each run; the run fails timed-out and is tried again, 3 attempts in all, counted with lost runners |
| Wait for background work after a turn without a handover | SPOTLIGHT_BACKGROUND_WAIT in the sandbox, default 30 minutes, for each turn; 0 sends the reminder at once. See Turns without a handover |
| Stop grace for a sandbox the host stops | 30 seconds |
| Messages a person sends, checked for | every 2 seconds |
| Ended runs checked for missing usage | once a minute, for ended runs with no recorded usage that are not already waiting for it. The first check on a database starts from the oldest ended run, however long ago it ended. Each later check looks only at the ended runs that Spotlight last wrote after a time 1 hour before where the previous check stopped, so a run stored as ended with an end time from much earlier, such as when it paused, is still found. One check notes at most 1,000 runs; while a check notes that many, Spotlight checks again every 2 seconds |
| Usage of ended runs recorded at once | at most 100 runs per look; while a look finds that many due, Spotlight looks again every 2 seconds |
| Attempts to record the usage of an ended run | When a run ends, Spotlight tries to record its usage at once, 8 attempts in all, 2 seconds to 1 hour apart. From 15 minutes after the run ended, it also tries every 15 minutes, 5 times in all. When the fifth of those fails, it records the usage as unknown, with the reason recording-failed. When Spotlight cannot read the stored run even for that, it still records the usage as unknown with the reason recording-failed, but does not announce it, and stops. A replay with that run waits until the usage is announced. Once the stored run is repaired, announce it with POST /api/admin/run-usage/announce, with since a little before the error Spotlight logged for the run |
Hosts
See Host settings.
| Item | Value |
|---|---|
| Heartbeat | every 20 seconds |
| Shown as online | a heartbeat within the last 90 seconds |
| Removed after the last heartbeat | 24 hours |
| Requirements refresh | every minute |
| Claim long poll | 10 seconds |
| Retry after a failed heartbeat or claim | about 2 seconds, doubling to about 30 seconds |
| Sandboxes at once | SPOTLIGHT_CAPACITY, default 1 |
| Memory of each sandbox | SPOTLIGHT_SANDBOX_MEMORY, default no limit |
Pools
| Item | Value |
|---|---|
| Push pool provision call timeout | 10 seconds |
| Provision attempts | 5 in all, 5 seconds to 2 minutes apart |
| Time for a provisioned runner to claim | 5 minutes |
| Time a provisioned runner waits for its work | 5 minutes |
maxRuns | 1 to 10,000, or no limit |
Sandboxes
See Inside a sandbox.
| Item | Value |
|---|---|
| Sandbox start | 5 minutes |
| Image inspection | 2 minutes |
| Harness discovery command | 15 seconds each |
| Wait for a repository mirror | 15 seconds |
| One mirror refresh, at most | 30 minutes |
| Checkouts | 10 minutes for all |
setup per checkout | 15 minutes |
| Change stack check | 5 minutes a step, 60 minutes in all; see Checks |
| Idle grace of a task's or chat's sandbox | SPOTLIGHT_SANDBOX_GRACE, default 10 minutes; none after the task moves to Completed or is deleted. See Sandbox lifetime |
| A sandbox kept up by editors alone | SPOTLIGHT_EDITOR_LIMIT, default 12 hours after its last run |
| A warm sandbox that no run took | SPOTLIGHT_WARM_SANDBOX_AGE, default 24 hours after it started; see Warm sandboxes |
| Editor lease | Renewed every 30 seconds while the connection carried traffic in the last 30 minutes; expires 2 minutes after the last renewal |
| Wait for a sandbox to start for an editor | 10 minutes |
| Sandbox not reported by its host after it starts | 60 seconds, then gone |
| Sandbox checks for draining | every 30 seconds |
Egress
See Egress.
| Item | Value |
|---|---|
| Wait for egress to be ready | 90 seconds |
| Fetching the run's secrets | 1 minute |
| Certificate authority lifetime | 48 hours |
| Upstream connection | 30 seconds |
| Upstream TLS handshake | 15 seconds |
| Shutdown grace | 5 seconds |
A shared egress and the local proxy of a push pool runner:
| Item | Value |
|---|---|
| Requests each second, for each workspace and egress process | SPOTLIGHT_EGRESS_RATE_LIMIT, default 50; 0 is no limit |
| Open connections, for each workspace and egress process | SPOTLIGHT_EGRESS_MAX_CONNECTIONS, default 200; 0 is no limit |
| Checking which runs are still active | Every 30 seconds, at most 500 run proxy credentials in one request |
| A run with no request | Removed from egress memory after 2 minutes |
| Fetching again while the runner has no lease on a run | At most every 5 seconds |
| Sending connection records | Every 5 seconds, at most 2,000 in one call and 10,000 waiting |
| Time a connection record keeps from egress | At most 1 hour before and 1 minute after Spotlight gets it |
| Connection records retained | 30 days |
| Enforcement check | 3 seconds |
| Local proxy authority lifetime | 48 hours |
| Upstream connection | 30 seconds |
| Upstream TLS handshake | 15 seconds |
Working copy archives
See Inside a sandbox.
| Item | Value |
|---|---|
| Packed size | 2 GiB |
| Unpacked size | 8 GiB |
| Upload or download | 30 minutes |
| Archive lease, after the last renewal | 2 minutes |
Store after SIGTERM, once the turn is reported | 25 seconds |
| Retained after its task finishes, or its chat stops carrying the conversation | 7 days |
| Retained after a newer archive replaces it | 1 hour |
| Retained after its task or chat is deleted | none; removed within a minute, even when a run started from it or a replay set pins it |
| Retained after a run that started from it started | 30 days |
| Retained while a run that started from it is in a replay set | until the run leaves the set, or its station leaves the line |
| An archive never completed, retained | 24 hours |
An archive a run started from, or one pinned by a replay set, is retained for that time even when its task has finished or a newer archive has replaced it.
Replays
See Replays.
| Item | Value |
|---|---|
| Replay sets of a station | 1, kept by Spotlight |
| Runs in a replay set | at most 30, one per task |
| Runs a refresh picks from | the station's latest 100 ended task runs |
| A run stays in a replay set | until 90 days after it ended |
| Refresh of a full set | every 7 days |
| Refresh of a set with fewer than 30 runs | every day |
| Replay runs of a team queued or running at once, not counting a search's | 2 |
| Ceiling | above 0, at most 1,000, in a three-letter currency |
| Repeats of each run in a replay | 1 to 5, default 1 |
| Resamples behind a 95% interval | 2,000 |
| Tasks scored on both sides before a gain can read better or worse | 5 |
min_gain | above 0, at most 1, default 0.05 |
| Repeats of each run in a calibration | at least 3 |
| Repeats of each run in a search's seed or a replay check's baseline | at least 3 |
| Reason given for a task's side | one line of at most 200 characters |
| Fewest runs in a set a calibration checks | 5 |
| Live config success above which a set has almost no room to improve | 95% |
| Share of changes the judge passes or fails alike twice, below which its verdicts read as partly chance | 80% |
| A judge's guidance | one sentence of at most 280 characters, with no line break, no 5 words in a row from a claim, and no whole sentence of 3 or more words from one |
| Repeats of each run in a replay with the answer | those of the live replay that started it |
| Attempts to queue a replay run | 10 |
| A replay run's usage not recorded when it ended | recorded from 15 minutes after it ended; counted as one run with no cost reported if Spotlight cannot read what it used. If Spotlight cannot read the stored run, the replay waits until the usage is announced |
| Replays read for Candidates on the Insights Stations tab | the newest 500 started in the period; see Replayed candidates API |
Searches
See Searches.
| Item | Value |
|---|---|
| Tasks a set must cover | at least 5: at least 2 held out and at least 3 searched |
| Share of tasks held out | 30%, rounded up |
| Tasks held out | never a task an earlier search of the station searched on |
| Iterations | 1 to 10, default 3 |
| Candidates per iteration | 2 |
| Proposals an iteration may try, rejected ones included | 3 times its candidates |
| Replay runs of a search queued or running at once | 1 to 10, default 4, apart from the team's 2 |
| Repeats of each run in its replays | 1 to 5, default 1 |
| Searches of a station in progress at once | 1 |
| Ceiling | above 0, at most 1,000 and at most the line's monthly ceiling, in a three-letter currency; default 10 |
| Monthly ceiling of a line's searches | above 0, default 50 |
| Period and cooldown | 1h to 365d; default period 7d, default cooldown 3d; the cooldown at most the period |
| Share of the ceiling for the agent's runs | a tenth |
| Least a replay run may be given | 0.01 of the ceiling's currency |
| Hypothesis | 1 to 4,000 characters |
| Iterations left for a stalled search to look into why | at least 2 |
| A task a reflection looks into | the best config's success on it below one half |
| A cause's evidence | 1 to 4,000 characters |
| A cause's suggestion | at most 4,000 characters |
| Points in a search's notice | at most 20, of at most 1,000 characters each |
| A resolved notice shown in the inbox | 30 days after it was resolved |
| Candidate name | a slug of lowercase letters, digits and hyphens, at most 63 characters |
| An agent run no runner claims | cancelled after 60 minutes |
| An agent run's usage not recorded when it ended | recorded from 15 minutes after it ended; counted as unpriced if Spotlight cannot read what it used. If Spotlight cannot read the stored run, the search waits until the usage is announced |
| Tries to open a config pull request | 5: the first, then again after 30 seconds, 2, 8 and 32 minutes |
| Tries to close a stale config pull request | 5, on the same schedule |
| Open config pull requests of a station | 1 |
| Reading an open config pull request's state from GitHub | every 6 hours |
| A config pull request's description | at most 60,000 characters; Spotlight leaves out its last sections past that |
| Changes listed in a config pull request | 30; long values folded under "Was and now" for the first 8, each value cut at 1,000 characters |
| Tasks in each table of a config pull request | 20, then +<n> more tasks. |
Replay checks
See Replay checks API.
| Item | Value |
|---|---|
| Sets gating a station's changes | at most 1 |
maxRegressions | 0 or more, default 0 |
minGain | above 0, at most 1, default 0.05 |
| Repeats of each run in a check | 1 to 5, default 1 |
| Ceiling, each replay a check starts | above 0, at most 1,000, default 10 USD |
| Replays a check starts | 1, or 2 when the set has no baseline of the live config |
| Planned repositories sent with a check | at most 64,000 characters |
spotlight replay check wait | default 60 minutes |
spotlight replay check interval | default 15 seconds, at least 1 second |
Failed tries in a row before spotlight replay check gives up | 5 |
Reason in a spotlight replay check task table | cut at 160 characters |
Change stacks and decisions
See Change stacks and decisions.
| Item | Value |
|---|---|
| Diff | 6 MiB, 2,000 hunks |
| Generation attempts | 4 in all, 30 minutes each, 30 seconds apart and doubling |
| Waiting for a runner to check | 60 minutes |
| Check output stored | 16,000 characters a step |
Memory
See Memory and Agent commands.
| Item | Value |
|---|---|
| A memory | 1 to 1,000 characters |
| Reason for retiring a memory | 1 to 500 characters |
| A path a memory is about | 1 to 500 characters, within its repository |
| Paths a memory is about | at most 20 |
| Steps and notes a memory cites | at most 20 steps and 20 notes |
| Words a recall looks for | 1 to 500 characters |
| Memories a recall prints | at most 10 |
| Memories in a run's briefing | at most 8, and 3,000 characters together; see Briefing |
| Memories listed on each tab of the Memory page | the newest 500 |
| Drafting attempts | 4 in all, 30 seconds apart and doubling to 10 minutes; after an unreadable failure, 3 in all, doubling to 5 minutes; after no-evidence or interrupted, 1 |
| Drafts at once | 4 on each control plane server |
| Rejected memories shown to the drafter | the 20 newest from the last 90 days that apply where the run ran |
Agent commands
See Agent commands.
| Item | Value |
|---|---|
| Request timeout | 2 minutes |
| Tool input | 8 MiB |
Outbound calls
See Calls out of Spotlight. These limits apply to each call that Spotlight makes for a workspace's configuration, together with the limits of each area below.
| Item | Value |
|---|---|
| Opening a connection | 10 seconds |
| Response headers | 120 seconds |
| Time between two chunks of a response body | 120 seconds |
| Integration request answer | 4 MB |
| File an integration fetches | 25 MB |
| JWKS of a webhook's JWT check | 1 MiB, read within 15 seconds |
Polls, schedules, actions, webhook event lookups and file fetches, tool calls and hook requests that Spotlight sends also count toward a limit for each workspace. See Rate limit.
| Item | Value |
|---|---|
| Requests each workspace sends to other services | 50 each second, and 50 at once, set by SPOTLIGHT_OUTBOUND_RATE_LIMIT |
| Wait for a free request when over the limit | 5 seconds |
Lookup calls of webhook and poll events have their own limit. See Lookup calls.
| Item | Value |
|---|---|
Lookups in one poll or delivery, tool calls and lookup.request requests together | 20, at most 4 at once. A poll reads the other events on the next poll; a delivery fails without reading them |
Actions sent from the network
See Sent from the network. A host's egress sends these, so the limits above other than the rate limit do not apply.
| Item | Value |
|---|---|
| Time from queueing to response | timeoutSeconds, default 30, 1 to 60 |
| Tries | 1 |
| Redirects followed | 0 |
| Response body read | 256 KiB |
| Egress getting the action's secrets | 10 seconds |
API specs
See API specs.
| Item | Value |
|---|---|
| Spec size | 64 MB |
| Fetching a spec | 30 seconds, redirects included |
| Reading its operations once fetched | 30 seconds, waiting for a turn included |
| Specs read at once | 2 on each control plane server |
| Tools generated per integration | 1,000, counted after include and exclude |
| OpenAPI schema depth followed | 8 levels |
| GraphQL input object depth followed | 3 levels |
| Schema nodes read for one operation's inputs | 4,000 |
| Generated tool answer | 4 MB |
| Redirects a request follows | 5 |
GraphQL selection depth | 1 to 5, default 2 |
| Generated tool description | 1,000 characters |
| Specs read | OpenAPI 3.0 and 3.1, in JSON or YAML, and GraphQL; not Swagger 2 |
$refs followed | only those inside the spec |
MCP servers
See MCP servers.
| Item | Value |
|---|---|
| Listing the tools again | every 600 seconds, set by SPOTLIGHT_MCP_RELIST_SECONDS, checked every minute |
| Pages of tools read in one listing | 50 |
| Each MCP request, listing or call | 60 seconds |
| Tool answer | 4 MB |
| Tools offered per integration | 1,000, counted after include and exclude |
| Tool description | 1,000 characters |
| Calls one session carries at once | 1 |
| Session left unused | closed after 5 minutes |
| Calls again after the server no longer has a session | 1 |
| Discovery requests | 15 seconds each |
| What discovery found | cached 10 minutes on each control plane server |
| Transport | streamable HTTP |
Hooks
See spotlight_hook.
| Item | Value |
|---|---|
| Request timeout | timeoutSeconds, default 10, 1 to 30 |
| Callback token lifetime | 15 minutes |
| Response body stored | 16 KiB |
| Delivery attempts | 8 in all, 2 seconds to 1 hour apart |
| Causal chain depth | 8 |
| Firings for the same change | 3 within 10 minutes |
| Text a hook adds to a briefing | 4,000 characters, the rest cut with a note |
| Text of all hook sections in a briefing | 16,000 characters as the agent gets it, headings and note included; later sections are left out with a note |
| Reason a replay gives for a skipped hook | 1,000 characters |
Tokens and trusts
See Workspace tokens and spotlight_oidc_trust.
| Item | Value |
|---|---|
| Workspace token lifetime | until expiresAt, or no expiry |
| Token from an OIDC trust | lifetimeMinutes, default 15, 1 to 60 |
Command line login
See spotlight login.
| Item | Value |
|---|---|
| Device code lifetime | 15 minutes |
Poll interval of spotlight login | 5 seconds, 5 seconds more after each slow_down |
| Login session | ends after 7 days without use; each use renews it |
Resource API
See Resource API.
| Item | Value |
|---|---|
Idempotency-Key retained | 24 hours |
Idempotency-Key length | at most 255 characters |
Other
| Item | Value |
|---|---|
| Attachment size per file | 25 MiB; see Attachments |
| Invite lifetime | 14 days from when it was last sent; see Invites |
| Addresses per invite request | 1 to 50; see Invites |
| Live update connection | The app's connection for live updates closes after 10 to 12 minutes, and the app connects again |
| Delivered domain events | Deleted 7 days after they are recorded, once every subscriber has them; an event that a subscriber has not taken stays |