The Dark Factory Pattern for Infrastructure: Running Pulumi Lights-Out
Blog post from Pulumi
The concept of a "dark factory," originating from Fanuc's robotics plant in Japan where robots operate without human presence, is now emerging in software development, where autonomous systems handle code generation and validation with minimal human intervention. This trend is exemplified by companies like StrongDM and Stripe, which have implemented varying levels of software autonomy as outlined in Dan Shapiro's autonomy ladder—ranging from basic automation to fully autonomous systems that require no human oversight before code deployment. Infrastructure presents a more complex challenge than application code due to factors like blast radius and state management, but tools like Pulumi offer components that facilitate a more controlled transition to autonomous operations, emphasizing the importance of isolation between code generation and validation to prevent sycophantic behavior from models. The key to successful implementation lies in establishing "holdout scenarios" for isolated validation and gradually expanding the scope of automation as confidence in the system grows, while maintaining tight control over destructive operations and regular audits to mitigate risks.