// The context relation. `shared` is one actor asked at two sites -> a context edge // between those asks (exact: same singleton actor). Two independent actors asked // separately share no actor -> no context edge between them. An actor passed into a // helper that asks it relates via the summary's actor taint. // The helper `interrogate` is declared first, so its ask is ask#1; the direct // `shared` asks are ask#2/ask#3. Context edges: ask#1 -> ask#2, ask#1 -> ask#3, ask#2 -> ask#3. function interrogate(who: Agent, topic: string): Node { return who.ask(`about ${topic}`); } const shared = agent("shared"); const first = await shared.ask("one"); const second = await shared.ask("two"); const loner = agent("loner"); const alone = await loner.ask("solo"); const soloTwo = await agent("ephemeral").ask("throwaway"); const viaHelper = await interrogate(shared, "delegated"); return `${first} ${second} ${alone} ${soloTwo} ${viaHelper}`;