referenced node in primary tabs
Is this for Drupal 7? 

If so you can create a custom module using hook_menu_local_tasks_alter, maybe in the hook get the arg for the nid for the current page. Then do a node load on the current pages nid to check a reference is set, then from this reference field which will contain the nid... do another node load to get its title. Finally the title local menu tab.