@fleetless/contracts 13.0.1 → 13.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -9,6 +9,37 @@ version.
9
9
 
10
10
  ## [Unreleased]
11
11
 
12
+ ## [13.2.0] — 2026-11-05
13
+
14
+ ### Changed
15
+
16
+ - Robot and app deletion, bridge-token rotation, server-key minting, rotation
17
+ and revocation, and asset sync and clear no longer need the Owner tier. The
18
+ eight routes (`DELETE /api/robots/:id`, `POST /api/robots/:id/token/rotate`,
19
+ `DELETE /api/apps/:id`, `POST /api/apps/:id/server-keys`,
20
+ `POST /api/apps/:id/server-keys/:keyId/rotate`,
21
+ `DELETE /api/apps/:id/server-keys/:keyId`,
22
+ `POST /api/robots/:id/assets/sync`, `DELETE /api/robots/:id/assets`) carry
23
+ `ownerTier: false` and no longer list `tier_required`, so a developer is
24
+ never answered with it. Statuses, schemas and the remaining errors are
25
+ unchanged.
26
+
27
+ ## [13.1.0] — 2026-11-03
28
+
29
+ ### Added
30
+
31
+ - `retention_range` member of `journalManifestRow` for retention sweeps of
32
+ `datapoint_series_samples` and `bridge_latency_buckets`. One row names an
33
+ expired time range (`table`, `org_id`, `robot_id`, optional `series_id`,
34
+ `from` inclusive, `cutoff` exclusive, `row_count` and a SHA-256
35
+ `rows_digest` of the sorted row keys the range held when it was frozen)
36
+ instead of one manifest row per deleted row. Replay deletes the rows of the
37
+ range and none at or after its cutoff. `journalManifestBinding` accepts
38
+ ranges only under `history.retention`, `history.slug_delete` and
39
+ `latency.retention`, bound to the intent's organization, robot, series and
40
+ cutoff, with no overlap inside one robot. The per-row `history_sample` and
41
+ `latency_bucket` members stay valid for journals written before.
42
+
12
43
  ## [13.0.1] — 2026-11-03
13
44
 
14
45
  ### Fixed
@@ -1569,7 +1569,7 @@
1569
1569
  "description": "Success."
1570
1570
  },
1571
1571
  "default": {
1572
- "description": "An error envelope. Codes this route is known to answer: `unauthorized`, `token_expired`, `token_revoked`, `tier_required`, `invalid_uuid`, `not_found`.",
1572
+ "description": "An error envelope. Codes this route is known to answer: `unauthorized`, `token_expired`, `token_revoked`, `invalid_uuid`, `not_found`.",
1573
1573
  "content": {
1574
1574
  "application/json": {
1575
1575
  "schema": {
@@ -1579,7 +1579,7 @@
1579
1579
  }
1580
1580
  }
1581
1581
  },
1582
- "description": "Owner tier, and the gate runs **after** the org-scoped lookup: a developer-tier admin therefore sees the same `404` a stranger would for an app outside their org, rather than a tier refusal that confirms the id exists. A full cascade — its users, roles, server keys, invitations, OIDC provider configuration and mail templates all go, recorded once as `app.deleted` carrying an `appDeletionSummary`. Its robots are untouched: they belong to the org, not to the app. \n\n**No `force` parameter** — see `GET /api/apps/:id/deletion-preview`."
1582
+ "description": "An app outside the caller's org answers `404`, as an unknown id does. A full cascade — its users, roles, server keys, invitations, OIDC provider configuration and mail templates all go, recorded once as `app.deleted` carrying an `appDeletionSummary`. Its robots are untouched: they belong to the org, not to the app. \n\n**No `force` parameter** — see `GET /api/apps/:id/deletion-preview`."
1583
1583
  }
1584
1584
  },
1585
1585
  "/api/apps/{id}/deletion-preview": {
@@ -2063,7 +2063,7 @@
2063
2063
  }
2064
2064
  },
2065
2065
  "default": {
2066
- "description": "An error envelope. Codes this route is known to answer: `unauthorized`, `token_expired`, `token_revoked`, `tier_required`, `invalid_uuid`, `not_found`, `validation_error`.",
2066
+ "description": "An error envelope. Codes this route is known to answer: `unauthorized`, `token_expired`, `token_revoked`, `invalid_uuid`, `not_found`, `validation_error`.",
2067
2067
  "content": {
2068
2068
  "application/json": {
2069
2069
  "schema": {
@@ -2073,7 +2073,7 @@
2073
2073
  }
2074
2074
  }
2075
2075
  },
2076
- "description": "Owner tier only: a server key carries full app rights and outlives its creator's removal. The body is `{ \"name\": string }`, the same trivial shape role creation takes. `key` is the only moment the raw secret exists outside the caller's hands — it is never in a listing, never in an audit event, and cannot be read back."
2076
+ "description": "A server key carries full app rights and outlives its creator's removal. The body is `{ \"name\": string }`, the same trivial shape role creation takes. `key` is the only moment the raw secret exists outside the caller's hands — it is never in a listing, never in an audit event, and cannot be read back."
2077
2077
  },
2078
2078
  "get": {
2079
2079
  "operationId": "get_api_apps_id_server_keys",
@@ -2166,7 +2166,7 @@
2166
2166
  }
2167
2167
  },
2168
2168
  "default": {
2169
- "description": "An error envelope. Codes this route is known to answer: `unauthorized`, `token_expired`, `token_revoked`, `tier_required`, `invalid_uuid`, `not_found`.",
2169
+ "description": "An error envelope. Codes this route is known to answer: `unauthorized`, `token_expired`, `token_revoked`, `invalid_uuid`, `not_found`.",
2170
2170
  "content": {
2171
2171
  "application/json": {
2172
2172
  "schema": {
@@ -2176,7 +2176,7 @@
2176
2176
  }
2177
2177
  }
2178
2178
  },
2179
- "description": "Owner tier, for the reason creation is. The old secret is refused from this call on, and any `/realtime` socket that authenticated with it is closed — rotation is what a developer reaches for when a key has leaked, and the holder of that socket is exactly who they are rotating against."
2179
+ "description": "The old secret is refused from this call on, and any `/realtime` socket that authenticated with it is closed — rotation is what a developer reaches for when a key has leaked, and the holder of that socket is exactly who they are rotating against."
2180
2180
  }
2181
2181
  },
2182
2182
  "/api/apps/{id}/server-keys/{keyId}": {
@@ -2216,7 +2216,7 @@
2216
2216
  "description": "Success."
2217
2217
  },
2218
2218
  "default": {
2219
- "description": "An error envelope. Codes this route is known to answer: `unauthorized`, `token_expired`, `token_revoked`, `tier_required`, `invalid_uuid`, `not_found`.",
2219
+ "description": "An error envelope. Codes this route is known to answer: `unauthorized`, `token_expired`, `token_revoked`, `invalid_uuid`, `not_found`.",
2220
2220
  "content": {
2221
2221
  "application/json": {
2222
2222
  "schema": {
@@ -2226,7 +2226,7 @@
2226
2226
  }
2227
2227
  }
2228
2228
  },
2229
- "description": "Owner tier, like minting and rotating: all three decide who may speak for the whole app."
2229
+ "description": "The key stops working at once. Minting, rotating and revoking all decide who may speak for the whole app."
2230
2230
  }
2231
2231
  },
2232
2232
  "/api/apps/{id}/users": {
@@ -4812,7 +4812,7 @@
4812
4812
  }
4813
4813
  }
4814
4814
  },
4815
- "description": "JSON-RPC over MCP's Streamable HTTP, so neither the request nor the response is a shape contracts describes; the tool arguments and results are the schemas in each tool definition. **Fleetless users only** — an app's users reach their own app endpoint instead. **The bearer is verified inside the handler**, not by a route guard: the identity comes from the token and the path names none, and the refusal has to carry a `WWW-Authenticate` challenge that a guard shared with the REST surface does not send. `Origin` is checked against the cloud's own, and a foreign one is the `403 forbidden` above. **Both catalogs, unconditionally**: every caller admitted here is a Fleetless user, so the tool list has nothing left to vary with and the admin-ness check on `tools/call` is gone — a console tool that is still narrower than the catalog refuses for itself (`console_robots_write.delete` answers `tier_required` to a non-Owner). `403 forbidden` is also what an `mcp_session` token whose subject is an **app user** gets: this endpoint serves the team only, and such a token belongs to its own app's endpoint. The code is `forbidden` rather than `mcp_disabled` because nothing is switched off — the caller is at the wrong server — and per-app sign-in mints exactly such tokens, so the two states must not share a word. `mcp_access_denied` is gone with the per-user override and the group flag it read: every Fleetless user has MCP access here. Stateless: a fresh transport per request, no session id, nothing survives the call."
4815
+ "description": "JSON-RPC over MCP's Streamable HTTP, so neither the request nor the response is a shape contracts describes; the tool arguments and results are the schemas in each tool definition. **Fleetless users only** — an app's users reach their own app endpoint instead. **The bearer is verified inside the handler**, not by a route guard: the identity comes from the token and the path names none, and the refusal has to carry a `WWW-Authenticate` challenge that a guard shared with the REST surface does not send. `Origin` is checked against the cloud's own, and a foreign one is the `403 forbidden` above. **Both catalogs, unconditionally**: every caller admitted here is a Fleetless user, so the tool list has nothing left to vary with and the admin-ness check on `tools/call` is gone — a console tool that is still narrower than the catalog refuses for itself (`console_team_write.delete` refuses to remove an owner). `403 forbidden` is also what an `mcp_session` token whose subject is an **app user** gets: this endpoint serves the team only, and such a token belongs to its own app's endpoint. The code is `forbidden` rather than `mcp_disabled` because nothing is switched off — the caller is at the wrong server — and per-app sign-in mints exactly such tokens, so the two states must not share a word. `mcp_access_denied` is gone with the per-user override and the group flag it read: every Fleetless user has MCP access here. Stateless: a fresh transport per request, no session id, nothing survives the call."
4816
4816
  }
4817
4817
  },
4818
4818
  "/mcp/{appIdentifier}": {
@@ -6576,7 +6576,7 @@
6576
6576
  }
6577
6577
  },
6578
6578
  "default": {
6579
- "description": "An error envelope. Codes this route is known to answer: `unauthorized`, `token_expired`, `token_revoked`, `tier_required`, `invalid_uuid`, `not_found`.",
6579
+ "description": "An error envelope. Codes this route is known to answer: `unauthorized`, `token_expired`, `token_revoked`, `invalid_uuid`, `not_found`.",
6580
6580
  "content": {
6581
6581
  "application/json": {
6582
6582
  "schema": {
@@ -6586,7 +6586,7 @@
6586
6586
  }
6587
6587
  }
6588
6588
  },
6589
- "description": "Owner tier, behind the org-scoped lookup, so a developer-tier admin sees the `404` a stranger would for a robot outside their org rather than a tier refusal that confirms the id exists. `token` is the only moment the new secret exists outside the caller's hands — the cloud stores a hash — so a caller who loses it rotates again. Audited as `robot.token_rotated`, with no `details`: the one interesting value here is the token. \n\n**It stops the bridge that is connected right now.** The old secret is gone the instant the hash is replaced, so the cloud closes that socket with `CLOSE_TOKEN_ROTATED` rather than leaving a bridge speaking on a credential nothing would accept again. A bridge that does not know the code reconnects and is refused at hello as `invalid_token`, which is the honest answer and ends the same way. **The robot is offline until somebody puts the new token on it** — this is a deliberate interruption, not a background rekey, and a fleet cannot be rotated without a visit to each robot."
6589
+ "description": "A robot outside the caller's org answers `404`, as an unknown id does. `token` is the only moment the new secret exists outside the caller's hands — the cloud stores a hash — so a caller who loses it rotates again. Audited as `robot.token_rotated`, with no `details`: the one interesting value here is the token. \n\n**It stops the bridge that is connected right now.** The old secret is gone the instant the hash is replaced, so the cloud closes that socket with `CLOSE_TOKEN_ROTATED` rather than leaving a bridge speaking on a credential nothing would accept again. A bridge that does not know the code reconnects and is refused at hello as `invalid_token`, which is the honest answer and ends the same way. **The robot is offline until somebody puts the new token on it** — this is a deliberate interruption, not a background rekey, and a fleet cannot be rotated without a visit to each robot."
6590
6590
  }
6591
6591
  },
6592
6592
  "/api/robots/{id}/urdf/joint-state": {
@@ -6787,7 +6787,7 @@
6787
6787
  "description": "Success."
6788
6788
  },
6789
6789
  "default": {
6790
- "description": "An error envelope. Codes this route is known to answer: `unauthorized`, `token_expired`, `token_revoked`, `tier_required`, `invalid_uuid`, `not_found`, `robot_in_use`, `robot_deletion_partial`.",
6790
+ "description": "An error envelope. Codes this route is known to answer: `unauthorized`, `token_expired`, `token_revoked`, `invalid_uuid`, `not_found`, `robot_in_use`, `robot_deletion_partial`.",
6791
6791
  "content": {
6792
6792
  "application/json": {
6793
6793
  "schema": {
@@ -6797,7 +6797,7 @@
6797
6797
  }
6798
6798
  }
6799
6799
  },
6800
- "description": "Owner tier, and the gate runs **after** the org-scoped lookup: a developer-tier admin therefore sees the same `404` a stranger would for a robot outside their org, rather than a tier refusal that confirms the id exists. A full cascade — everything the robot produced goes, except the audit trail, which is a record of what happened and must survive the thing it happened to. An open live session is `409 robot_in_use` unless `?force=true` is passed, matched as the bare string so the caller has to actually say it. A cascade that fails partway is `500 robot_deletion_partial` with the progress, never a bare `internal_error` that would read as \"nothing happened\"."
6800
+ "description": "A robot outside the caller's org answers `404`, as an unknown id does. A full cascade — everything the robot produced goes, except the audit trail, which is a record of what happened and must survive the thing it happened to. An open live session is `409 robot_in_use` unless `?force=true` is passed, matched as the bare string so the caller has to actually say it. A cascade that fails partway is `500 robot_deletion_partial` with the progress, never a bare `internal_error` that would read as \"nothing happened\"."
6801
6801
  }
6802
6802
  },
6803
6803
  "/api/robots/{id}/deletion-preview": {
@@ -9016,7 +9016,7 @@
9016
9016
  }
9017
9017
  },
9018
9018
  "default": {
9019
- "description": "An error envelope. Codes this route is known to answer: `unauthorized`, `token_expired`, `token_revoked`, `forbidden`, `tier_required`, `invalid_uuid`, `not_found`, `busy`.",
9019
+ "description": "An error envelope. Codes this route is known to answer: `unauthorized`, `token_expired`, `token_revoked`, `forbidden`, `invalid_uuid`, `not_found`, `busy`.",
9020
9020
  "content": {
9021
9021
  "application/json": {
9022
9022
  "schema": {
@@ -9026,7 +9026,7 @@
9026
9026
  }
9027
9027
  }
9028
9028
  },
9029
- "description": "The store's escape hatch: a full store is never a dead end, and this is the blunt third of the three answers to it — the URDF upload is exempt from the gate, reconcile after a sync already frees what the new URDF stopped referencing, and this route lets an Owner clear the robot outright. Owner tier, unconditionally, like starting a sync. Removes every asset of the robot and resets its store to `0`; the next sync fills it again. It does not touch the bridge's availability report — `urdf_available` still answers from the connected robot, unrelated to what this cloud happens to have stored. A clear while a sync is running is `409 busy` naming that sync's details, the same refusal starting a second sync gets, because deleting under a running upload would leave the store counter wrong."
9029
+ "description": "The store's escape hatch: a full store is never a dead end, and this is the blunt third of the three answers to it — the URDF upload is exempt from the gate, reconcile after a sync already frees what the new URDF stopped referencing, and this route lets a developer clear the robot outright. Developer sessions only, like starting a sync. Removes every asset of the robot and resets its store to `0`; the next sync fills it again. It does not touch the bridge's availability report — `urdf_available` still answers from the connected robot, unrelated to what this cloud happens to have stored. A clear while a sync is running is `409 busy` naming that sync's details, the same refusal starting a second sync gets, because deleting under a running upload would leave the store counter wrong."
9030
9030
  }
9031
9031
  },
9032
9032
  "/api/robots/{id}/assets/{assetId}": {
@@ -9317,7 +9317,7 @@
9317
9317
  }
9318
9318
  },
9319
9319
  "default": {
9320
- "description": "An error envelope. Codes this route is known to answer: `unauthorized`, `token_expired`, `token_revoked`, `forbidden`, `tier_required`, `invalid_uuid`, `validation_error`, `not_found`, `robot_offline`, `busy`.",
9320
+ "description": "An error envelope. Codes this route is known to answer: `unauthorized`, `token_expired`, `token_revoked`, `forbidden`, `invalid_uuid`, `validation_error`, `not_found`, `robot_offline`, `busy`.",
9321
9321
  "content": {
9322
9322
  "application/json": {
9323
9323
  "schema": {
@@ -9327,7 +9327,7 @@
9327
9327
  }
9328
9328
  }
9329
9329
  },
9330
- "description": "Owner tier, unconditionally. The guard admits an end user or a server key, but only a developer session gets past the handler — and the body is parsed **before** that `401`, because this route has always answered a malformed body first and the order has to survive. The request is strict: a caller naming a source that does not exist learns so, instead of silently getting a bridge sync they did not ask for. A robot that has reported nothing available to sync is `404`. A second sync is `409 busy` naming the `sync_id` that is actually running, so the caller who pressed the button twice can pick it straight up.",
9330
+ "description": "Developer sessions only. The guard admits an end user or a server key, but only a developer session gets past the handler — and the body is parsed **before** that `401`, because this route has always answered a malformed body first and the order has to survive. The request is strict: a caller naming a source that does not exist learns so, instead of silently getting a bridge sync they did not ask for. A robot that has reported nothing available to sync is `404`. A second sync is `409 busy` naming the `sync_id` that is actually running, so the caller who pressed the button twice can pick it straight up.",
9331
9331
  "requestBody": {
9332
9332
  "required": true,
9333
9333
  "content": {
@@ -835,7 +835,7 @@
835
835
  "audience": "developer",
836
836
  "auth": "developer",
837
837
  "rateLimited": false,
838
- "ownerTier": true,
838
+ "ownerTier": false,
839
839
  "status": 204,
840
840
  "params": [
841
841
  {
@@ -850,12 +850,11 @@
850
850
  "unauthorized",
851
851
  "token_expired",
852
852
  "token_revoked",
853
- "tier_required",
854
853
  "invalid_uuid",
855
854
  "not_found"
856
855
  ],
857
856
  "transport": "http",
858
- "notes": "Owner tier, and the gate runs **after** the org-scoped lookup: a developer-tier admin therefore sees the same `404` a stranger would for an app outside their org, rather than a tier refusal that confirms the id exists. A full cascade — its users, roles, server keys, invitations, OIDC provider configuration and mail templates all go, recorded once as `app.deleted` carrying an `appDeletionSummary`. Its robots are untouched: they belong to the org, not to the app. \n\n**No `force` parameter** — see `GET /api/apps/:id/deletion-preview`."
857
+ "notes": "An app outside the caller's org answers `404`, as an unknown id does. A full cascade — its users, roles, server keys, invitations, OIDC provider configuration and mail templates all go, recorded once as `app.deleted` carrying an `appDeletionSummary`. Its robots are untouched: they belong to the org, not to the app. \n\n**No `force` parameter** — see `GET /api/apps/:id/deletion-preview`."
859
858
  },
860
859
  {
861
860
  "method": "POST",
@@ -1094,7 +1093,7 @@
1094
1093
  "audience": "developer",
1095
1094
  "auth": "developer",
1096
1095
  "rateLimited": false,
1097
- "ownerTier": true,
1096
+ "ownerTier": false,
1098
1097
  "status": 201,
1099
1098
  "params": [
1100
1099
  {
@@ -1109,13 +1108,12 @@
1109
1108
  "unauthorized",
1110
1109
  "token_expired",
1111
1110
  "token_revoked",
1112
- "tier_required",
1113
1111
  "invalid_uuid",
1114
1112
  "not_found",
1115
1113
  "validation_error"
1116
1114
  ],
1117
1115
  "transport": "http",
1118
- "notes": "Owner tier only: a server key carries full app rights and outlives its creator's removal. The body is `{ \"name\": string }`, the same trivial shape role creation takes. `key` is the only moment the raw secret exists outside the caller's hands — it is never in a listing, never in an audit event, and cannot be read back."
1116
+ "notes": "A server key carries full app rights and outlives its creator's removal. The body is `{ \"name\": string }`, the same trivial shape role creation takes. `key` is the only moment the raw secret exists outside the caller's hands — it is never in a listing, never in an audit event, and cannot be read back."
1119
1117
  },
1120
1118
  {
1121
1119
  "method": "GET",
@@ -1154,7 +1152,7 @@
1154
1152
  "audience": "developer",
1155
1153
  "auth": "developer",
1156
1154
  "rateLimited": false,
1157
- "ownerTier": true,
1155
+ "ownerTier": false,
1158
1156
  "status": 200,
1159
1157
  "params": [
1160
1158
  {
@@ -1173,12 +1171,11 @@
1173
1171
  "unauthorized",
1174
1172
  "token_expired",
1175
1173
  "token_revoked",
1176
- "tier_required",
1177
1174
  "invalid_uuid",
1178
1175
  "not_found"
1179
1176
  ],
1180
1177
  "transport": "http",
1181
- "notes": "Owner tier, for the reason creation is. The old secret is refused from this call on, and any `/realtime` socket that authenticated with it is closed — rotation is what a developer reaches for when a key has leaked, and the holder of that socket is exactly who they are rotating against."
1178
+ "notes": "The old secret is refused from this call on, and any `/realtime` socket that authenticated with it is closed — rotation is what a developer reaches for when a key has leaked, and the holder of that socket is exactly who they are rotating against."
1182
1179
  },
1183
1180
  {
1184
1181
  "method": "DELETE",
@@ -1188,7 +1185,7 @@
1188
1185
  "audience": "developer",
1189
1186
  "auth": "developer",
1190
1187
  "rateLimited": false,
1191
- "ownerTier": true,
1188
+ "ownerTier": false,
1192
1189
  "status": 204,
1193
1190
  "params": [
1194
1191
  {
@@ -1207,12 +1204,11 @@
1207
1204
  "unauthorized",
1208
1205
  "token_expired",
1209
1206
  "token_revoked",
1210
- "tier_required",
1211
1207
  "invalid_uuid",
1212
1208
  "not_found"
1213
1209
  ],
1214
1210
  "transport": "http",
1215
- "notes": "Owner tier, like minting and rotating: all three decide who may speak for the whole app."
1211
+ "notes": "The key stops working at once. Minting, rotating and revoking all decide who may speak for the whole app."
1216
1212
  },
1217
1213
  {
1218
1214
  "method": "GET",
@@ -4116,7 +4112,7 @@
4116
4112
  "forbidden"
4117
4113
  ],
4118
4114
  "transport": "http",
4119
- "notes": "JSON-RPC over MCP's Streamable HTTP, so neither the request nor the response is a shape contracts describes; the tool arguments and results are the schemas in each tool definition. **Fleetless users only** — an app's users reach their own app endpoint instead. **The bearer is verified inside the handler**, not by a route guard: the identity comes from the token and the path names none, and the refusal has to carry a `WWW-Authenticate` challenge that a guard shared with the REST surface does not send. `Origin` is checked against the cloud's own, and a foreign one is the `403 forbidden` above. **Both catalogs, unconditionally**: every caller admitted here is a Fleetless user, so the tool list has nothing left to vary with and the admin-ness check on `tools/call` is gone — a console tool that is still narrower than the catalog refuses for itself (`console_robots_write.delete` answers `tier_required` to a non-Owner). `403 forbidden` is also what an `mcp_session` token whose subject is an **app user** gets: this endpoint serves the team only, and such a token belongs to its own app's endpoint. The code is `forbidden` rather than `mcp_disabled` because nothing is switched off — the caller is at the wrong server — and per-app sign-in mints exactly such tokens, so the two states must not share a word. `mcp_access_denied` is gone with the per-user override and the group flag it read: every Fleetless user has MCP access here. Stateless: a fresh transport per request, no session id, nothing survives the call."
4115
+ "notes": "JSON-RPC over MCP's Streamable HTTP, so neither the request nor the response is a shape contracts describes; the tool arguments and results are the schemas in each tool definition. **Fleetless users only** — an app's users reach their own app endpoint instead. **The bearer is verified inside the handler**, not by a route guard: the identity comes from the token and the path names none, and the refusal has to carry a `WWW-Authenticate` challenge that a guard shared with the REST surface does not send. `Origin` is checked against the cloud's own, and a foreign one is the `403 forbidden` above. **Both catalogs, unconditionally**: every caller admitted here is a Fleetless user, so the tool list has nothing left to vary with and the admin-ness check on `tools/call` is gone — a console tool that is still narrower than the catalog refuses for itself (`console_team_write.delete` refuses to remove an owner). `403 forbidden` is also what an `mcp_session` token whose subject is an **app user** gets: this endpoint serves the team only, and such a token belongs to its own app's endpoint. The code is `forbidden` rather than `mcp_disabled` because nothing is switched off — the caller is at the wrong server — and per-app sign-in mints exactly such tokens, so the two states must not share a word. `mcp_access_denied` is gone with the per-user override and the group flag it read: every Fleetless user has MCP access here. Stateless: a fresh transport per request, no session id, nothing survives the call."
4120
4116
  },
4121
4117
  {
4122
4118
  "method": "POST",
@@ -4991,7 +4987,7 @@
4991
4987
  "audience": "developer",
4992
4988
  "auth": "developer",
4993
4989
  "rateLimited": false,
4994
- "ownerTier": true,
4990
+ "ownerTier": false,
4995
4991
  "status": 201,
4996
4992
  "params": [
4997
4993
  {
@@ -5006,12 +5002,11 @@
5006
5002
  "unauthorized",
5007
5003
  "token_expired",
5008
5004
  "token_revoked",
5009
- "tier_required",
5010
5005
  "invalid_uuid",
5011
5006
  "not_found"
5012
5007
  ],
5013
5008
  "transport": "http",
5014
- "notes": "Owner tier, behind the org-scoped lookup, so a developer-tier admin sees the `404` a stranger would for a robot outside their org rather than a tier refusal that confirms the id exists. `token` is the only moment the new secret exists outside the caller's hands — the cloud stores a hash — so a caller who loses it rotates again. Audited as `robot.token_rotated`, with no `details`: the one interesting value here is the token. \n\n**It stops the bridge that is connected right now.** The old secret is gone the instant the hash is replaced, so the cloud closes that socket with `CLOSE_TOKEN_ROTATED` rather than leaving a bridge speaking on a credential nothing would accept again. A bridge that does not know the code reconnects and is refused at hello as `invalid_token`, which is the honest answer and ends the same way. **The robot is offline until somebody puts the new token on it** — this is a deliberate interruption, not a background rekey, and a fleet cannot be rotated without a visit to each robot."
5009
+ "notes": "A robot outside the caller's org answers `404`, as an unknown id does. `token` is the only moment the new secret exists outside the caller's hands — the cloud stores a hash — so a caller who loses it rotates again. Audited as `robot.token_rotated`, with no `details`: the one interesting value here is the token. \n\n**It stops the bridge that is connected right now.** The old secret is gone the instant the hash is replaced, so the cloud closes that socket with `CLOSE_TOKEN_ROTATED` rather than leaving a bridge speaking on a credential nothing would accept again. A bridge that does not know the code reconnects and is refused at hello as `invalid_token`, which is the honest answer and ends the same way. **The robot is offline until somebody puts the new token on it** — this is a deliberate interruption, not a background rekey, and a fleet cannot be rotated without a visit to each robot."
5015
5010
  },
5016
5011
  {
5017
5012
  "method": "PUT",
@@ -5160,7 +5155,7 @@
5160
5155
  "audience": "developer",
5161
5156
  "auth": "developer",
5162
5157
  "rateLimited": false,
5163
- "ownerTier": true,
5158
+ "ownerTier": false,
5164
5159
  "status": 204,
5165
5160
  "params": [
5166
5161
  {
@@ -5175,14 +5170,13 @@
5175
5170
  "unauthorized",
5176
5171
  "token_expired",
5177
5172
  "token_revoked",
5178
- "tier_required",
5179
5173
  "invalid_uuid",
5180
5174
  "not_found",
5181
5175
  "robot_in_use",
5182
5176
  "robot_deletion_partial"
5183
5177
  ],
5184
5178
  "transport": "http",
5185
- "notes": "Owner tier, and the gate runs **after** the org-scoped lookup: a developer-tier admin therefore sees the same `404` a stranger would for a robot outside their org, rather than a tier refusal that confirms the id exists. A full cascade — everything the robot produced goes, except the audit trail, which is a record of what happened and must survive the thing it happened to. An open live session is `409 robot_in_use` unless `?force=true` is passed, matched as the bare string so the caller has to actually say it. A cascade that fails partway is `500 robot_deletion_partial` with the progress, never a bare `internal_error` that would read as \"nothing happened\"."
5179
+ "notes": "A robot outside the caller's org answers `404`, as an unknown id does. A full cascade — everything the robot produced goes, except the audit trail, which is a record of what happened and must survive the thing it happened to. An open live session is `409 robot_in_use` unless `?force=true` is passed, matched as the bare string so the caller has to actually say it. A cascade that fails partway is `500 robot_deletion_partial` with the progress, never a bare `internal_error` that would read as \"nothing happened\"."
5186
5180
  },
5187
5181
  {
5188
5182
  "method": "PUT",
@@ -6442,7 +6436,7 @@
6442
6436
  "audience": "client",
6443
6437
  "auth": "developer_or_client",
6444
6438
  "rateLimited": false,
6445
- "ownerTier": true,
6439
+ "ownerTier": false,
6446
6440
  "status": 202,
6447
6441
  "params": [
6448
6442
  {
@@ -6458,7 +6452,6 @@
6458
6452
  "token_expired",
6459
6453
  "token_revoked",
6460
6454
  "forbidden",
6461
- "tier_required",
6462
6455
  "invalid_uuid",
6463
6456
  "validation_error",
6464
6457
  "not_found",
@@ -6466,7 +6459,7 @@
6466
6459
  "busy"
6467
6460
  ],
6468
6461
  "transport": "http",
6469
- "notes": "Owner tier, unconditionally. The guard admits an end user or a server key, but only a developer session gets past the handler — and the body is parsed **before** that `401`, because this route has always answered a malformed body first and the order has to survive. The request is strict: a caller naming a source that does not exist learns so, instead of silently getting a bridge sync they did not ask for. A robot that has reported nothing available to sync is `404`. A second sync is `409 busy` naming the `sync_id` that is actually running, so the caller who pressed the button twice can pick it straight up."
6462
+ "notes": "Developer sessions only. The guard admits an end user or a server key, but only a developer session gets past the handler — and the body is parsed **before** that `401`, because this route has always answered a malformed body first and the order has to survive. The request is strict: a caller naming a source that does not exist learns so, instead of silently getting a bridge sync they did not ask for. A robot that has reported nothing available to sync is `404`. A second sync is `409 busy` naming the `sync_id` that is actually running, so the caller who pressed the button twice can pick it straight up."
6470
6463
  },
6471
6464
  {
6472
6465
  "method": "GET",
@@ -6510,7 +6503,7 @@
6510
6503
  "audience": "client",
6511
6504
  "auth": "developer_or_client",
6512
6505
  "rateLimited": false,
6513
- "ownerTier": true,
6506
+ "ownerTier": false,
6514
6507
  "status": 200,
6515
6508
  "params": [
6516
6509
  {
@@ -6526,13 +6519,12 @@
6526
6519
  "token_expired",
6527
6520
  "token_revoked",
6528
6521
  "forbidden",
6529
- "tier_required",
6530
6522
  "invalid_uuid",
6531
6523
  "not_found",
6532
6524
  "busy"
6533
6525
  ],
6534
6526
  "transport": "http",
6535
- "notes": "The store's escape hatch: a full store is never a dead end, and this is the blunt third of the three answers to it — the URDF upload is exempt from the gate, reconcile after a sync already frees what the new URDF stopped referencing, and this route lets an Owner clear the robot outright. Owner tier, unconditionally, like starting a sync. Removes every asset of the robot and resets its store to `0`; the next sync fills it again. It does not touch the bridge's availability report — `urdf_available` still answers from the connected robot, unrelated to what this cloud happens to have stored. A clear while a sync is running is `409 busy` naming that sync's details, the same refusal starting a second sync gets, because deleting under a running upload would leave the store counter wrong."
6527
+ "notes": "The store's escape hatch: a full store is never a dead end, and this is the blunt third of the three answers to it — the URDF upload is exempt from the gate, reconcile after a sync already frees what the new URDF stopped referencing, and this route lets a developer clear the robot outright. Developer sessions only, like starting a sync. Removes every asset of the robot and resets its store to `0`; the next sync fills it again. It does not touch the bridge's availability report — `urdf_available` still answers from the connected robot, unrelated to what this cloud happens to have stored. A clear while a sync is running is `409 busy` naming that sync's details, the same refusal starting a second sync gets, because deleting under a running upload would leave the store counter wrong."
6536
6528
  },
6537
6529
  {
6538
6530
  "method": "GET",