Yaramoto cut short a holiday that Admiral James T. Kirk was on and assigned him temporary command of the Enterprise for a priority diplomatic mission. Kirk was to deliver two courier clones to the Sangdor Principality who would decode a peace message with the aim of ending hostilities between Sangdor and the Federation. Per customs of the Sangdor, the message had to be delivered by an admiral, which Yaramoto explained was why Captain Spock couldn't lead the mission.
When the Enterprise returned to drydock and Kirk reported back to San Francisco, Yaramoto ended Kirk’s temporary status with the ship, assigning him to permanent shore duty. Kirk reacted defiantly by resigning from Starfleet. Kirk accepted an offer to be captain of a free trader vessel. Yaramoto updated Spock on Kirk’s status. After Kirk discovered that the free trader vessel was secretly ferrying slaves to Epsilon-21, Kirk’s commission was reactivated and his status restored, with Kirk soon back aboard the Enterprise. (TOS comic: "The Retirement of Admiral Kirk")