It may be possible to crunch enough data to determine what short term behaviors are most likely to result in short, medium, and long term gain, and then you could, in theory, peg someone’s weekly “progress”. But today I think that’s (dystopian) science fiction
Piece-work programming, as managed by an "AI", is downright Dickensian.
Employees would quickly learn to game such a system, or quit. It also seems like it would run afoul of employment law, because a job offer constitutes a contract even if verbal, and you can't just vary pay unless both parties agreed to that from the outset.
Sweatshop factories pay like that -- a few pennies for each label sewn in or each shoe glues together. Good luck getting programmers to work in such conditions.