// .catch on a real Promise (Promise.all returns Promise). Runtime: if any // ask rejects, fallback runs and its result becomes the awaited value. The keystone // rule must let the fallback ask reach the return sink. const a = agent("a").ask("x"); const b = agent("b").ask("y"); const r = await Promise.all([a, b]).catch(() => agent("fallback").ask("recover")); return r;