What you're describing is called The Fourth Industrial Revolution in Klaus Schwab's book.
Factory machines transmitting their current rate of production all the way up to International Govt. which, being all knowing, can help you regulate your production based on current and forecasted worldwide consumption.
And your machines being flexible enough to reconfigure to produce something else.
Stores doing the same on their sales and Central Bank Digital Currency tying it all together.