pub fn register(
router: &mut Router,
registry: Arc<SessionRegistry>,
project: PathBuf,
agents_dir: PathBuf,
)Expand description
Register task.run onto router.
Why: the one place that wires the method, mirroring
session::protocol::register’s role for session.*.
What: closes over registry, project, and agents_dir — all shared,
cheap to clone (Arc/PathBuf) per call.
Test: task::protocol::tests::register_wires_task_run.