The Kochen-Specker (KS) theorem is a mathematical result that reveals the inconsistency between quantum theory and any putative underlying model of it where the outcomes of a measurement are fixed prior to the act of measurement by some ontic states of the system in a manner that does not depend on (operationally irrelevant) details of the measurement context, i.e., the outcome assignments are fixed noncontextually in the model. A logical proof of the Kochen-Specker theorem is one that relies only on the compatibility relations amongst a set of projectors (called a KS set) to witness this inconsistency. These compatibility relations can be represented by a hypergraph, often referred to as a contextuality scenario. We introduce a framework for obtaining noise-robust noncontextuality inequalities from contextuality scenarios that we will call KS-uncolourable scenarios. These scenarios include all those that appear in logical proofs of the KS theorem. Our approach here goes beyond the result of R. Kunjwal and R. W. Spekkens, Phys. Rev. Lett. 115, 110403 (2015), which relied on an explicit numerical enumeration of all the vertices of the polytope of (measurement) noncontextual assignments of probabilities to such a KS-uncolourable contextuality scenario. In particular, this work forms a necessary counterpart to the framework for noise-robust noncontextuality inequalities presented in R. Kunjwal, arXiv:1709.01098 [quant-ph] (2017), which only applies to KS-colourable contextuality scenarios, i.e., those which do not admit logical proofs of the KS theorem but do admit statistical proofs. The framework we present here relies on a single hypergraph invariant, defined in R. Kunjwal, arXiv:1709.01098 [quant-ph] (2017), that is relevant for noise-robust noncontextuality inequalities arising from any KS-uncolourable contextuality scenario Γ, namely, the weighted max-predictability β(Γ, q). Indeed, the present work can also be viewed as a study of this hypergraph invariant. Significantly, none of the graph invariants arising in the graph-theoretic framework for KS contextuality due to Cabello, Severini, and Winter (Phys. Rev. Lett. 112, 040401 (2014)) are relevant for our noise-robust noncontextuality inequalities. In this sense, the framework we present for generalized contextuality applied to KS-uncolourable scenarios has no analogue in previous literature on KS-contextuality.Ravi Kunjwal: rkunjwal@perimeterinstitute.caThe Kochen-Specker (KS) theorem [1] stands out as a fundamental insight into the nature of quantum measurements, formalizing the fact that these measurements cannot always be understood as merely revealing pre-existing values of physical quantities. However, the experimental testability of the theorem, and therefore its relevance for real-world physics with finite-precision measurements, has been a subject of intense controversy in the past [2][3][4][5]. Recent work [6][7][8][9][10][11] has taken the first steps towards turning the insight of the Kochen-Specker theorem into operational constraints -or noncont...