An AI tool and researcher found a critical XRP Ledger bug that could have enabled fund theft before an emergency patch blocked it.