iteration-fanout-empty-body-no-promote.ts 530 B

1234567891011
  1. // EMPTY-body candidates over tracked data: neither the forEach with an empty inline
  2. // callback nor the empty for...of reaches a facade site, so neither may promote
  3. // (no fan-out nodes) — and the collection's flow to the later ask must survive.
  4. // Expected: source -> world-read#1; world-read#1 -> ask#1; ask#1 -> sink;
  5. // NO fan-out nodes.
  6. const seeds = await files.glob("*.md");
  7. seeds.forEach(() => {});
  8. for (const _s of seeds) {
  9. // intentionally empty
  10. }
  11. return agent("summarizer").ask<string>(seeds.join(","));