actor-nonsingleton-lane-computed.ts 530 B

123456789
  1. // An array of agents indexed by a COMPUTED index widens the receiver actor set to
  2. // ALL three agents. The ONLY fixture producing a non-singleton actors= set — the
  3. // documented may-projection. Expect ask#2 actors={actor#1,actor#2,actor#3}, and the
  4. // actor projection fans source -> each and each -> sink, all inexact.
  5. const pool = [agent("a0"), agent("a1"), agent("a2")];
  6. const seed = await agent("seed").ask<string>("pick");
  7. const picked = pool[seed.length]!;
  8. const out = await picked.ask<string>(`go ${seed}`);
  9. return out;