A question about OSR command and policy frontier

That is not easy to impose. Dynare allows you to impose bounds on the parameters, not on the endogenous objects. In the exampe posted at [Policy frontier) you would probably need to check whether

var_y(grid_iter)

is above a particular value and then set the output to NaN.