Already exists, also in Tokyo: https://medium.com/opensource-cafe
you would write down a task you want to accomplish and deposit it at the cashier. Upon completion, you would say so and would get a free drink (iirc).
Was nice, I think it's closed due to Covid atm.