emission-graph-port-subsumption.ts 459 B

1234567
  1. // Port subsumption at one sink: element 0 of a join result AND the whole tuple both
  2. // reach the return. The portless whole-tuple read must subsume the ported element read:
  3. // exactly ONE join#1 -> sink edge, portless, exact — plus the additive producer edges
  4. // ask#1 -> sink and ask#2 -> sink.
  5. const pair = await Promise.all([agent("a").ask<string>("A"), agent("b").ask<string>("B")]);
  6. const first = pair[0];
  7. return `${first} | ${JSON.stringify(pair)}`;