Ex Post Facto is making a previously legal activity illegal as of a date in the past with the intent of prosecuting people for what was legal at the time. A retroactive AWB could be made to take effect on the date of the Sunset and say be passed 6 months after the date. There would have to be a grace period or grandfathering of activities between the time of signing and implementation and the effective date. The new law to identify what are now no-nos under the new law.
That grace period could require all turning in all (period nothing legal no matter when made or made after a certain date) without compensation before a certain date(most drastic, likely unconstitutional under takings clause), turning in with compensation, modifying to legal configuration before certain date or most likely illegal after a certain date current possessors may retain. After the grace period is over, the new law takes full effect.
So during the uncovered period, if you buy an AW from a dealer and follow normal long gun rules. You are legal like any long gun. the new law passes AWs are made illegal or restricted. You then have a certain amount of time to comply before criminal penalties apply.
You can take the administrative remedy or not. When you fail to comply with the remedies is when you commit the crime, even though the ban was effective 6-8 months before.
As long as the criminal penalties don't take effect until after the law is enacted, it can be done.
A real life example. - The Immigration Reform and Control Act of 1986 (IRCA -Why you fill out I-9 forms when you take a new job). The law was effective on 1 October, it said that as of 1 October 1986 all employers must verify legal right to work on new employees. Day Workers or Temporaries before starting, permanent employees within 3 days. And then gave a list of ways of veirification. One Document from Col. A showing right to work and identity, or one from Col. B (showing identity) and One from Col. C (Showing right to work) and that information was to be retained on file but not in regular personnel files (so it couldn't be used for national origin) discrimination later and would be available for inspection without access to sensitive personnel info. The INS didn't get the I-9 form approved by OMB until April or May of the next year. When it was issued, employers then had to go back and have employees hired since 1 October fill out the form. If they didn't or couldn't they must be let go.
I worked in Employment for a major Aerospace Defense firm at the time. I got the project and had to go back and re-do 300 people. One guy wasn't going to cooperate with the Feds. (Kinda like some guys here.) Suspended his butt. He came through the next day.