While U.S. coup plotting against Venezuela goes back to at least 1998 when the deceased President Chavez won his first election, the actual planning for this coup attempt was only done during the last two month. There are many holes in the plan and it involves a lot of wishful thinking. That might give the Maduro government openings to deflect the attack.
More likely though the insufficient planning, based on false perceptions of the situation on the ground, will lead to demands for escalation and mission creep. Venezuela must thus immediately prepare for the worst.
Today U.S. media give some insight into the decision making before the coup attempt. The Wall Street Journal headline makes it clear that the U.S. is 100% responsible for it: