Osgood Box
The "Osgood Box" was a device given to Osgood and her Zygon duplicate by the Doctor to use if the ceasefire between humans and Zygons broke down after a peace treaty was arranged. The two Osgoods recorded a brief video explaining the Osgood Box and its abilities before one of them was murdered by Missy. (TV: The Zygon Invasion)
Initially, one Osgood box- a red box- was revealed to exist, supposedly with the ability to either save the Zygons or destroy them. This Osgood Box was kept within the Black Archive under the Tower of London. However, inside the Archive, an identical blue box was revealed with the red box. In reality, two Osgood Boxes existed, named after the fact there were two Osgoods who guarded watch over them.
Both boxes contained two buttons inside them, hidden underneath a lid. The buttons were labeled "truth" and "consequences" in all capital letters accordingly. Pressing them would allegedly cause an event to take place as safeguards or countermeasures against either humans or Zygons. The red box would either release Z-67 gas into the Earth's atmosphere which would turn Zygon biology inside-out, or detonate the nuclear warhead underneath the Archive used in case self-destructing it was the only way to avoid its compromise, which would wipe out most of London. The blue box would either send out a signal that would disable their ability to shapeshift for at least an hour and revert them to their true forms, exposing their alien nature to all, or send out a signal that permanently prevented them from changing back from the human forms or other disguises that they assumed.
However, neither of the boxes posed a threat at all, merely being empty objects with superficial buttons made to appear threatening through clever deception and misinformation. The Osgood Boxes were simply framing devices used by the Doctor to demonstrate a "scale model of war", as no matter what decision the parties made who used the boxes, they would never know for sure what the impact of their actions would be or who would potentially have their lives shattered. The Doctor was able to use them to persuade Bonnie to stop a rebellion and stop Kate Stewart from taking drastic actions against the Zygons.
The Doctor needed to rely on the memory-wiping devices in the Black Archive to make the Osgood Boxes serve their purpose to their fullest, and he set them off with his sonic sunglasses each time the experiment failed. It took the Doctor sixteen tries to get Bonnie to see reason and realise the boxes were harmless while Kate always refused to use the box. (TV: The Zygon Inversion)
The designs and functions of the Osgood Boxes were directly inspired by that of the Moment in its box form and the red button it created when his wartime incarnation wanted it to be easier to activate, as the Doctor had once faced a decision to use the dangerous weapon to end the Last Great Time War at the expense of innocent Gallifreyan lives. (TV: The Day of the Doctor) Like the moral dilemma with the Moment (TV: The Day of the Doctor), the moral dilemma with the Osgood Boxes was resolved through Clara Oswald having an influence in some way over the conflict. (TV: The Zygon Inversion)
Once Bonnie had been reasoned with, the Doctor erased the minds of Kate and the Zygons who served under Bonnie so that her actions would be forgiven and forgotten. Bonnie then halted the rebellion and took on the form of Osgood's double in place of the one who had died to make amends by serving alongside UNIT and protecting the Osgood Boxes in case the same conflict ever returned. (TV: The Zygon Inversion)