// .then callback on a Node result (Node extends PromiseLike). Runtime: // writer produces a draft; the .then callback runs the editor ask with text = // draft's resolved output; editor's result becomes `edited` and is returned. // The keystone rule (unknown calls apply their function arguments) must route // draft's taint INTO the callback param and the callback's return OUT to the sink. const draft = agent("writer").ask("write a draft"); const edited = await draft.then((text) => agent("editor").ask(`edit this: ${text}`)); return edited;