If using fresh quail eggs, hard boil, peel, and place in a dish and set aside. If using canned eggs, just drain and rinse then place in a bowl and set aside.
In a wok or large non stick pan, heat a splash of oil, when hot, add the garlic and onion. Saute until the onion is soft.
Add the pork, chopping up and turn with your spatula and cook until no longer pink and browned a bit, it gets cooked more later.
Add the mushrooms, sauces, star anise, stock, and sugar, mix and bring to a boil, then reduce to a simmer. Add cover and simmer for 15 minutes.
Stir in the cornstarch slurry and the eggs, simmer until the sauce thickens as you desire. Season with salt and pepper as desired.
When the sauce has thickened, taste and season as desired with salt and pepper as you desire, stir in the spring onion.
Serve with a side of fresh cooked rice.