gras: reuse inputs_available for done logic