emission-graph-may-receiver-overlap-context.ts 672 B

123456789101112
  1. // Context edges over MAY-set receivers: ask#2 runs on {alpha,beta}, ask#3 on
  2. // {beta,gamma}. Sets intersect (beta) -> context edge ask#2 -> ask#3, INEXACT (not the
  3. // same singleton); ask#1 ({alpha}) relates to ask#2 (intersect alpha, inexact) but NOT
  4. // to ask#3 (disjoint). Direction is source order. In the actor projection each may-ask
  5. // fans out inexactly to every candidate lane.
  6. const a = agent("alpha");
  7. const b = agent("beta");
  8. const c = agent("gamma");
  9. const seed = await a.ask<string>("seed");
  10. const one = await (seed.length > 2 ? a : b).ask<string>(`step one ${seed}`);
  11. const two = await (one.length > 2 ? b : c).ask<string>(`step two ${one}`);
  12. return two;