pub fn link(
root: &AppRoot,
repository: &Path,
agent: Option<&AgentId>,
profile: &ProfileName,
) -> Result<LinkOutcome>Expand description
Maps repository (or only agent in it) to profile (SP3 design §6.2). The caller has discovered
repository.