Package 

Object ResourceGate


  • 
    public class ResourceGate
    
                        

    Layer 2 admission control: before any download or adapter load, decide whether this model can actually run here. Pure decision logic (evaluate) over a probed Resources snapshot, so the rules are unit-testable without Android. Mirrors the server-side registration guard arithmetic — same multipliers, budget fraction, battery floor, storage headroom and unknown-memory assumption, served via configSettings.guardrails.