diff --git a/changelog.mdx b/changelog.mdx index 0d83fd6..bab9243 100644 --- a/changelog.mdx +++ b/changelog.mdx @@ -7,6 +7,32 @@ description: "Product changes and upgrade notes." agentsfleet is in **stealth-mode testing** and pre-production. APIs and agent behavior may change between releases without long deprecation windows. Email [agentsfleet@agentmail.to](mailto:agentsfleet@agentmail.to) if you want a hand calibrating an agent or to join as a design partner. + + ## One clock for runners + + Each runner now renews its runs on its heartbeat, every 10 seconds by default, and sends no separate ping. + The server announces the interval when a runner connects. + + ## Upgrading + + Upgrade every server replica before any runner. + Remove `renewal_interval_ms` from each runner's `[supervisor]` table first: a runner refuses to start with it. + + ## Breaking + + - **Run lifetime** — The default `[runner.run] ttl_seconds` is now 38. The server refuses a value under `heartbeat_interval_seconds` plus 28. + - **Heartbeat interval** — The server refuses `[runner.health] heartbeat_interval_seconds` above 24, above `ttl_seconds` minus 28, or above a third of `ttl_seconds` minus one. + + ## What's new + + - **Held sandboxes** — `[runner.sandboxes] max_idle_hold_seconds` now sets how long a finished run's sandbox stays held, including values over 10 minutes. + - **Setup page** — The page updates when its fleet changes instead of checking every second. + - **Removed teammates** — A removed member's open pages close as soon as the removal saves. + + Set the `[runner.*]` server settings in the daemon's configuration file, which `AGENTSFLEET_CONFIG_FILE` or `agentsfleetd --config serve` selects; a runner refuses them. + See [runner installation](/runners/install) for the runner's own `[supervisor]` settings. + + ## Enable checkpoint resumption after testing diff --git a/docs.json b/docs.json index d50a750..12e665b 100644 --- a/docs.json +++ b/docs.json @@ -221,8 +221,8 @@ "GET /v1/admin/runners/{runner_id}", "PATCH /v1/admin/runners/{runner_id}", "DELETE /v1/admin/runners/{runner_id}", - "GET /v1/admin/runners/{runner_id}/leases", - "GET /v1/admin/runners/{runner_id}/events" + "GET /v1/admin/runners/{runner_id}/runs", + "GET /v1/admin/runners/{runner_id}/history" ] }, { @@ -230,38 +230,38 @@ "pages": [ "GET /v1/runners/me", "POST /v1/runners/me/stream", - "POST /v1/runners/me/leases/{lease_id}/tool-calls", - "POST /v1/runners/me/leases/{lease_id}/messages", - "GET /v1/runners/me/leases/{lease_id}/fleets", - "GET /v1/runners/me/leases/{lease_id}/fleets/{fleet_id}/events", - "POST /v1/runners/me/leases/{lease_id}/steers", - "GET /v1/runners/me/leases/{lease_id}/schedules", - "POST /v1/runners/me/leases/{lease_id}/schedules", - "PATCH /v1/runners/me/leases/{lease_id}/schedules/{schedule_id}", - "DELETE /v1/runners/me/leases/{lease_id}/schedules/{schedule_id}", - "GET /v1/runners/me/leases/{lease_id}/schedules/{schedule_id}/runs", - "POST /v1/runners/me/leases/{lease_id}/schedules/{schedule_id}/runs", + "POST /v1/runners/me/runs/{run_id}/items", + "POST /v1/runners/me/runs/{run_id}/messages", + "GET /v1/runners/me/runs/{run_id}/fleets", + "GET /v1/runners/me/runs/{run_id}/fleets/{fleet_id}/turns", + "POST /v1/runners/me/runs/{run_id}/steers", + "GET /v1/runners/me/runs/{run_id}/schedules", + "POST /v1/runners/me/runs/{run_id}/schedules", + "PATCH /v1/runners/me/runs/{run_id}/schedules/{schedule_id}", + "DELETE /v1/runners/me/runs/{run_id}/schedules/{schedule_id}", + "GET /v1/runners/me/runs/{run_id}/schedules/{schedule_id}/runs", + "POST /v1/runners/me/runs/{run_id}/schedules/{schedule_id}/runs", "POST /v1/runners/me/credentials/mint", "GET /v1/runners/me/memory/{fleet_id}", "POST /v1/runners/me/memory/{fleet_id}", "POST /v1/runners/me/memory/{fleet_id}/recall", - "GET /v1/runners/me/leases/{lease_id}/tasks/checkpoints/{checkpoint_id}/objects", - "GET /v1/runners/me/leases/{lease_id}/tasks/checkpoints/{checkpoint_id}/pages/{page_id}", - "GET /v1/runners/me/leases/{lease_id}/tasks/effects", - "GET /v1/runners/me/leases/{lease_id}/tasks/effects/{effect_id}", - "GET /v1/runners/me/leases/{lease_id}/tasks/inputs", - "PATCH /v1/runners/me/leases/{lease_id}/tasks/checkpoints/{checkpoint_id}", - "PATCH /v1/runners/me/leases/{lease_id}/tasks/checkpoints/{checkpoint_id}/pins/{pin_id}", - "PATCH /v1/runners/me/leases/{lease_id}/tasks/decisions/{call_id}", - "POST /v1/runners/me/leases/{lease_id}/tasks/bindings", - "POST /v1/runners/me/leases/{lease_id}/tasks/checkpoints", - "POST /v1/runners/me/leases/{lease_id}/tasks/checkpoints/{checkpoint_id}/authorizations", - "POST /v1/runners/me/leases/{lease_id}/tasks/checkpoints/{checkpoint_id}/objects", - "POST /v1/runners/me/leases/{lease_id}/tasks/checkpoints/{checkpoint_id}/uploads", - "POST /v1/runners/me/leases/{lease_id}/tasks/decisions", - "POST /v1/runners/me/leases/{lease_id}/tasks/effects", - "POST /v1/runners/me/leases/{lease_id}/tasks/input-receipts", - "PUT /v1/runners/me/leases/{lease_id}/tasks/checkpoints/{checkpoint_id}/pages/{page_id}" + "GET /v1/runners/me/runs/{run_id}/durable_tasks/checkpoints/{checkpoint_id}/objects", + "GET /v1/runners/me/runs/{run_id}/durable_tasks/checkpoints/{checkpoint_id}/pages/{page_id}", + "GET /v1/runners/me/runs/{run_id}/durable_tasks/effects", + "GET /v1/runners/me/runs/{run_id}/durable_tasks/effects/{effect_id}", + "GET /v1/runners/me/runs/{run_id}/durable_tasks/inputs", + "PATCH /v1/runners/me/runs/{run_id}/durable_tasks/checkpoints/{checkpoint_id}", + "PATCH /v1/runners/me/runs/{run_id}/durable_tasks/checkpoints/{checkpoint_id}/pins/{pin_id}", + "PATCH /v1/runners/me/runs/{run_id}/durable_tasks/decisions/{call_id}", + "POST /v1/runners/me/runs/{run_id}/durable_tasks/bindings", + "POST /v1/runners/me/runs/{run_id}/durable_tasks/checkpoints", + "POST /v1/runners/me/runs/{run_id}/durable_tasks/checkpoints/{checkpoint_id}/authorizations", + "POST /v1/runners/me/runs/{run_id}/durable_tasks/checkpoints/{checkpoint_id}/objects", + "POST /v1/runners/me/runs/{run_id}/durable_tasks/checkpoints/{checkpoint_id}/uploads", + "POST /v1/runners/me/runs/{run_id}/durable_tasks/decisions", + "POST /v1/runners/me/runs/{run_id}/durable_tasks/effects", + "POST /v1/runners/me/runs/{run_id}/durable_tasks/input-receipts", + "PUT /v1/runners/me/runs/{run_id}/durable_tasks/checkpoints/{checkpoint_id}/pages/{page_id}" ] }, { @@ -275,8 +275,8 @@ "pages": [ "POST /v1/workspaces", "GET /v1/workspaces/{workspace_id}/members", - "GET /v1/workspaces/{workspace_id}/events", - "GET /v1/workspaces/{workspace_id}/events/stream", + "GET /v1/workspaces/{workspace_id}/turns", + "GET /v1/workspaces/{workspace_id}/turns/stream", "GET /v1/workspaces/{workspace_id}/onboarding", "GET /v1/workspaces/{workspace_id}/models" ] @@ -291,14 +291,8 @@ "DELETE /v1/workspaces/{workspace_id}/drafts/{draft_id}", "GET /v1/workspaces/{workspace_id}/drafts/{draft_id}/messages", "POST /v1/workspaces/{workspace_id}/drafts/{draft_id}/messages", - "POST /v1/workspaces/{workspace_id}/drafts/{draft_id}/cancellations", - "GET /v1/workspaces/{workspace_id}/drafts/{draft_id}/events/stream" - ] - }, - { - "group": "Workspace preferences", - "pages": [ - "PUT /v1/workspaces/{workspace_id}/preferences/{pref_key}" + "PATCH /v1/workspaces/{workspace_id}/drafts/{draft_id}/turns/{turn_id}", + "GET /v1/workspaces/{workspace_id}/drafts/{draft_id}/turns/stream" ] }, { @@ -335,27 +329,15 @@ "GET /v1/workspaces/{workspace_id}/fleets", "POST /v1/workspaces/{workspace_id}/fleets", "GET /v1/workspaces/{workspace_id}/fleets/{fleet_id}", - "GET /v1/workspaces/{workspace_id}/fleets/{fleet_id}/authoring-context", + "GET /v1/workspaces/{workspace_id}/fleets/{fleet_id}/setup-context", "PATCH /v1/workspaces/{workspace_id}/fleets/{fleet_id}", "DELETE /v1/workspaces/{workspace_id}/fleets/{fleet_id}", "POST /v1/workspaces/{workspace_id}/fleets/{fleet_id}/revisions", "PATCH /v1/workspaces/{workspace_id}/fleets/{fleet_id}/memory-access", - "GET /v1/workspaces/{workspace_id}/fleets/{fleet_id}/authoring-context", - "GET /v1/workspaces/{workspace_id}/fleets/{fleet_id}/tasks", - "GET /v1/workspaces/{workspace_id}/fleets/{fleet_id}/tasks/{task_id}", - "PATCH /v1/workspaces/{workspace_id}/fleets/{fleet_id}/tasks/{task_id}" - ] - }, - { - "group": "Plugins", - "pages": [ - "GET /v1/workspaces/{workspace_id}/plugins", - "POST /v1/workspaces/{workspace_id}/plugins", - "GET /v1/workspaces/{workspace_id}/plugins/{plugin_id}", - "DELETE /v1/workspaces/{workspace_id}/plugins/{plugin_id}", - "GET /v1/workspaces/{workspace_id}/plugins/{plugin_id}/revisions", - "POST /v1/workspaces/{workspace_id}/plugins/{plugin_id}/revisions", - "GET /v1/workspaces/{workspace_id}/plugins/{plugin_id}/revisions/{revision_id}" + "GET /v1/workspaces/{workspace_id}/fleets/{fleet_id}/setup-context", + "GET /v1/workspaces/{workspace_id}/fleets/{fleet_id}/durable_tasks", + "GET /v1/workspaces/{workspace_id}/fleets/{fleet_id}/durable_tasks/{durable_task_id}", + "PATCH /v1/workspaces/{workspace_id}/fleets/{fleet_id}/durable_tasks/{durable_task_id}" ] }, { @@ -387,10 +369,11 @@ { "group": "Fleet events", "pages": [ - "GET /v1/workspaces/{workspace_id}/fleets/{fleet_id}/events", - "GET /v1/workspaces/{workspace_id}/fleets/{fleet_id}/events/{event_id}", - "GET /v1/workspaces/{workspace_id}/fleets/{fleet_id}/events/{event_id}/tool-calls/{call_id}", - "GET /v1/workspaces/{workspace_id}/fleets/{fleet_id}/events/stream" + "GET /v1/workspaces/{workspace_id}/fleets/{fleet_id}/turns", + "GET /v1/workspaces/{workspace_id}/fleets/{fleet_id}/turns/{turn_id}", + "PATCH /v1/workspaces/{workspace_id}/fleets/{fleet_id}/turns/{turn_id}", + "GET /v1/workspaces/{workspace_id}/fleets/{fleet_id}/turns/{turn_id}/items/{item_id}", + "GET /v1/workspaces/{workspace_id}/fleets/{fleet_id}/turns/stream" ] }, { diff --git a/runners/install.mdx b/runners/install.mdx index b55a883..f060de8 100644 --- a/runners/install.mdx +++ b/runners/install.mdx @@ -309,9 +309,6 @@ max_retry_after_seconds = 60 daemon_max_attempts = 5 daemon_initial_backoff_ms = 250 daemon_max_backoff_ms = 30_000 -renewal_interval_ms = 5000 -authoring_renewal_interval_ms = 10_000 -authoring_renewal_retry_ms = 250 max_concurrent_file_operations = 2 ``` @@ -326,9 +323,6 @@ max_concurrent_file_operations = 2 | `supervisor` | `daemon_max_attempts` | 1–10 | Caps sends for a bounded daemon operation. | | `supervisor` | `daemon_initial_backoff_ms` | 1–`daemon_max_backoff_ms` | Sets the first jittered daemon retry pause. | | `supervisor` | `daemon_max_backoff_ms` | 1–30,000 | Caps the exponential component before jitter. | -| `supervisor` | `renewal_interval_ms` | 100–5000 | Sets the batched host renewal interval. | -| `supervisor` | `authoring_renewal_interval_ms` | 100–10,000 | Sets the private authoring renewal interval. | -| `supervisor` | `authoring_renewal_retry_ms` | 1–250 | Sets the pause after a retryable authoring renewal failure. | | `supervisor` | `max_concurrent_file_operations` | 1–16 | Caps admitted file captures and restores across this runner. | Attempt counts include the first send. diff --git a/runners/recovery.mdx b/runners/recovery.mdx index e9221ed..d38bca4 100644 --- a/runners/recovery.mdx +++ b/runners/recovery.mdx @@ -37,7 +37,7 @@ An incomplete upload never replaces the last complete checkpoint. ### Replacing a failed runner The failed runner's lease must expire before another runner takes the work. -The normal deadline is 35 seconds after the last confirmed renewal. +The normal deadline is 38 seconds after the last confirmed renewal. The deployment can configure the lease lifetime. Capacity, permissions, funds, approval checks, and restore time can delay continuation. diff --git a/workspaces/teammates.mdx b/workspaces/teammates.mdx index 50a8af3..5d42325 100644 --- a/workspaces/teammates.mdx +++ b/workspaces/teammates.mdx @@ -93,7 +93,7 @@ The link stops working. You can invite the same address again. If your teammate accepted the invite first, `agentsfleet` refuses the revoke with [`UZ-INV-003`](/api-reference/error-codes#UZ-INV-003). The **People** table then lists them as a member. To take back their access, remove them. -A removed member loses access to every workspace in your account within 15 seconds, including any page they have open. Your fleets, secrets, and workspaces stay as they are. +A removed member loses access to every workspace in your account as soon as the removal saves, including any page they have open. Your fleets, secrets, and workspaces stay as they are. To remove a member: