The document discusses hardware-software security contracts as a strategy for building secure microarchitectures, particularly in the context of mitigating speculative execution attacks such as Spectre. It outlines the limitations of current hardware countermeasures and presents a framework for secure programming using these contracts, which define the information leakage permissible in a program's execution. The work highlights the importance of formal methods and contract specifications in ensuring security against side-channel attacks.