The episode begins with the of the events of "Sandcastles in the Sand": Barney and Robin are in bed together after having sex and she proposes to pretend it never happened. Barney agrees but feels quite awkward and uncomfortable around Ted at MacLaren's later in the day. Hoping to find an excuse for his and Robin's actions, Barney seeks out Marshall to help him find a loophole in the Bro Code, a book listing the rules and philosophies of Barney's life as a "bro". Allegedly written by Barnabas Stinson in the 18th century when Benjamin Franklin and George Washington were too busy to write it themselves, the Bro Code proves to be a very tight document that Ted has followed flawlessly and Barney fails in finding a loophole. When Marshall's nervous behavior reveals to Robin that Barney told him, she tells him that Ted is never finding out. That night, when Barney picks up Ted in a limo, he attempts to give Ted an ultimate 30th birthday by flying him to Las Vegas, which includes staying at the Bellagio, steaks at Boa, and a boxing match between Floyd Mayweather and a grizzly bear. Ted reveals that he knows Barney and Robin had sex together, because Robin told him right after she warned Marshall. Ted, at first, seems calm, and Barney is relieved, but Ted screams at him, angrily declares they're no longer friends, and hails a cab to take him home. Barney then sadly sits in the limo alone all night. Meanwhile, Lily rescues a goat named Missy when a farmer brings it to her kindergarten class and horrifies her students by going into great detail about what will happen to Missy when she visits the butcher. Lily plans to give the goat away to animal control, but becomes attached to the goat while waiting for Ted to arrive at his birthday party. Older Ted reveals at the end of the episode, after hinting at the destruction the goat would do, that he had the story wrong: Everything involving the goat actually takes place during his 31st birthday, at which point – Older Ted also reveals – Robin is living in the apartment.
Critical response
Donna Bowman of the A.V. Club graded the episode at A−. She says that the previous episode has potential for more Barney-Robin material, even if the fallout from the episode can affect all the characters. Michelle Zoromski of IGN gave the episode a 7.7/10 score. TV Critic gave it 27/100 saying that "the attempts at humour and the entire goat sub-plot are pathetic".