callback-dead-function-sweep.ts 386 B

123456
  1. // Callback invocation family: the sweep's remaining job. `unused` is never applied by any
  2. // call, so its ask is genuinely unreachable — the end-of-walk sweep still places it as a
  3. // detached body, and that is the ONLY way a `detached` region arises now.
  4. const unused = () => agent("ghost").ask<string>("never");
  5. const real = await agent("worker").ask<string>("do it");
  6. return real;