As various systems evolve towards autonomous self-evolution, self-optimization capability has become a crucial characteristic of modern systems. Systems need to be able to propose improvement suggestions and automatically modify their own code or configuration based on operational data,
user feedback, or external instructions. However, existing technologies suffer from deficiencies such as a lack of secure testing mechanisms,
data corruption during testing, a stateless branching concept, a lack of conflict handling mechanisms, and insufficient
rollback capabilities. This application provides a secure testing method,
system, and computer-readable storage medium for
system self-optimization, aiming to enable the target
system to test improvement suggestions in an
isolated environment, independently store state changes generated during testing, intelligently merge them into the main system after successful testing, safely discard them upon
test failure, and support precise
rollback, ensuring the system maintains stability and
data integrity while autonomously evolving.