1. Simmer the stock, tamari, sugar, mirin, onions, ginger, and garlic until well-flavored, about 15 minutes.
2. Add the sake and vinegar to the sauce, return to a simmer, and add the dissolved cornstarch. Simmer for another 2 minutes. The sauce should coat the back of a spoon. Keep the sauce warm.