Illegal free agent signings by the AI?

I have one save right before Detroit (CPU team) who is 600k under the cap and able to sign Clint Capela to a $23,841,887 1-year contract. Is this legal based on the new rules? I've seen multiple instances of these over multiple runs and scratching my head on how these CPU teams are making such offers. Is this a "sign and trade" performed between the AIs? There is no evidence of a trade happening though. There were no UFA and RFAs on the roster at that time so it is not like someone signed away a big player at the same time Detroit picked up Capella.
I then replayed as Detroit from scratch and tried to simulate this. By free agent period I was 1.6 million under the cap and I then tried to sign Clint for 23 million. I'm not allowed to.
To reproduce this:
Play as commisioner or dallas
Sim through the season up to the next free agent period.
Take note of the salary cap setup of each team.
Sim through the period and you will see one of the above odd signings.
I then replayed as Detroit from scratch and tried to simulate this. By free agent period I was 1.6 million under the cap and I then tried to sign Clint for 23 million. I'm not allowed to.
To reproduce this:
Play as commisioner or dallas
Sim through the season up to the next free agent period.
Take note of the salary cap setup of each team.
Sim through the period and you will see one of the above odd signings.