emission-graph-dedupe-exact-or.ts 393 B

12345678
  1. // One edge, two witnesses: `a` reaches ask#2 directly (exact) AND through a
  2. // computed-index container read (inexact). Dedup by (from,to,kind,port) must OR the
  3. // exactness: exactly ONE ask#1 -> ask#2 data edge, exact.
  4. const a = await agent("one").ask<string>("A");
  5. const arr = [a, "pad"];
  6. const i = a.length % 2;
  7. const picked = arr[i];
  8. return agent("two").ask<string>(`${a} :: ${picked}`);