may-set-over-cap.ts 703 B

1234567891011
  1. // A may-set past the expansion cap: an array of FIVE agents indexed by a computed index
  2. // widens the receiver to all five. Over the cap the step keeps the single card in
  3. // `lanes[0]`, byte-identical to pre-expansion behaviour — a capped may-set falls back
  4. // rather than truncating, because dropping candidates would be a claim the analysis
  5. // cannot make while five copies would multiply steps and edges past what a reader (and
  6. // the payload) can carry.
  7. const pool = [agent("w0"), agent("w1"), agent("w2"), agent("w3"), agent("w4")];
  8. const seed = await agent("seed").ask<string>("pick a worker");
  9. const picked = pool[seed.length]!;
  10. const out = await picked.ask<string>(`go ${seed}`);
  11. return out;