fix: fence runtime removal races and retries

This commit is contained in:
2026-09-13 02:54:01 +09:00
parent 6c609808c9
commit d2cb50d081
6 changed files with 416 additions and 21 deletions
@@ -178,7 +178,9 @@ Deno.test("Runtime detail keeps trust controls owner-only and conflict-safe", as
"Workspace trust only; this does not delete the Runtime process, Workers, or Workdirs.",
"await revokeRuntimeTrustKey(",
"await removeRemoteRuntime(",
"operation_id: crypto.randomUUID()",
"new RuntimeRemovalAttempt()",
"runtimeRemovalAttempt.operationId()",
"operation_id: operationId",
"expected_binding_revision: trust.revision",
"The Backend removes Workspace trust and this Runtime registration as one guarded operation.",
"deleteRuntimeConfirmation.trim() !== data.runtimeId",