facade-siting-pick-receiver.ts 531 B

123456789
  1. // Boundary probe: `Pick<Agent, "ask">` is a mapped type over the FACADE interface, so its
  2. // `ask` property may still trace back to the facade declaration (unlike a fresh local
  3. // interface). If it does, the call is sited/flagged; if the mapped-type property is a
  4. // synthesized symbol with no facade declaration, it escapes like the retype hole.
  5. const planner = agent("planner");
  6. const seed = await agent("seed").ask<string>("seed");
  7. const d = planner as Pick<Agent, "ask">;
  8. const out = await d.ask(`route ${seed}`);
  9. return out;